@activepieces/piece-zoom 0.6.5 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";var Us=Object.create;var Ke=Object.defineProperty;var Ms=Object.getOwnPropertyDescriptor;var js=Object.getOwnPropertyNames;var Ls=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty;var o=(e,t)=>Ke(e,"name",{value:t,configurable:!0});var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ln=(e,t)=>{for(var r in t)Ke(e,r,{get:t[r],enumerable:!0})},dn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of js(t))!Fs.call(e,i)&&i!==r&&Ke(e,i,{get:()=>t[i],enumerable:!(n=Ms(t,i))||n.enumerable});return e};var Re=(e,t,r)=>(r=e!=null?Us(Ls(e)):{},dn(t||!e||!e.__esModule?Ke(r,"default",{value:e,enumerable:!0}):r,e)),Bs=e=>dn(Ke({},"__esModule",{value:!0}),e);var ko=E((Ao,Mt)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={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"),i=new RegExp("^0x[a-f0-9]+$","i"),u="%[0-9a-z]{1,}",p="(?:[0-9a-f]+::?)+",d={zoneIndex:new RegExp(u,"i"),native:new RegExp(`^(::)?(${p})?([0-9a-f]+)?(::)?(${u})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${u})?)$`,"i"),transitional:new RegExp(`^((?:${p})|(?:::)(?:${p})?)${t}\\.${t}\\.${t}\\.${t}(${u})?$`,"i")};function y(s,l){if(s.indexOf("::")!==s.lastIndexOf("::"))return null;let f=0,m=-1,v=(s.match(d.zoneIndex)||[])[0],P,j;for(v&&(v=v.substring(1),s=s.replace(/%.+$/,""));(m=s.indexOf(":",m+1))>=0;)f++;if(s.substr(0,2)==="::"&&f--,s.substr(-2,2)==="::"&&f--,f>l)return null;for(j=l-f,P=":";j--;)P+="0:";return s=s.replace("::",P),s[0]===":"&&(s=s.slice(1)),s[s.length-1]===":"&&(s=s.slice(0,-1)),l=function(){let Q=s.split(":"),ie=[];for(let Ge=0;Ge<Q.length;Ge++)ie.push(parseInt(Q[Ge],16));return ie}(),{parts:l,zoneId:v}}o(y,"expandIPv6");function h(s,l,f,m){if(s.length!==l.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let v=0,P;for(;m>0;){if(P=f-m,P<0&&(P=0),s[v]>>P!==l[v]>>P)return!1;m-=f,v+=1}return!0}o(h,"matchCIDR");function _(s){if(i.test(s))return parseInt(s,16);if(s[0]==="0"&&!isNaN(parseInt(s[1],10))){if(n.test(s))return parseInt(s,8);throw new Error(`ipaddr: cannot parse ${s} as octal`)}return parseInt(s,10)}o(_,"parseIntAuto");function $(s,l){for(;s.length<l;)s=`0${s}`;return s}o($,"padPart");let x={};x.IPv4=function(){function s(l){if(l.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let f,m;for(f=0;f<l.length;f++)if(m=l[f],!(0<=m&&m<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=l}return o(s,"IPv4"),s.prototype.SpecialRanges={unspecified:[[new s([0,0,0,0]),8]],broadcast:[[new s([255,255,255,255]),32]],multicast:[[new s([224,0,0,0]),4]],linkLocal:[[new s([169,254,0,0]),16]],loopback:[[new s([127,0,0,0]),8]],carrierGradeNat:[[new s([100,64,0,0]),10]],private:[[new s([10,0,0,0]),8],[new s([172,16,0,0]),12],[new s([192,168,0,0]),16]],reserved:[[new s([192,0,0,0]),24],[new s([192,0,2,0]),24],[new s([192,88,99,0]),24],[new s([198,18,0,0]),15],[new s([198,51,100,0]),24],[new s([203,0,113,0]),24],[new s([240,0,0,0]),4]],as112:[[new s([192,175,48,0]),24],[new s([192,31,196,0]),24]],amt:[[new s([192,52,193,0]),24]]},s.prototype.kind=function(){return"ipv4"},s.prototype.match=function(l,f){let m;if(f===void 0&&(m=l,l=m[0],f=m[1]),l.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return h(this.octets,l.octets,8,f)},s.prototype.prefixLengthFromSubnetMask=function(){let l=0,f=!1,m={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},v,P,j;for(v=3;v>=0;v-=1)if(P=this.octets[v],P in m){if(j=m[P],f&&j!==0)return null;j!==8&&(f=!0),l+=j}else return null;return 32-l},s.prototype.range=function(){return x.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){return this.octets.slice(0)},s.prototype.toIPv4MappedAddress=function(){return x.IPv6.parse(`::ffff:${this.toString()}`)},s.prototype.toNormalizedString=function(){return this.toString()},s.prototype.toString=function(){return this.octets.join(".")},s}(),x.IPv4.broadcastAddressFromCIDR=function(s){try{let l=this.parseCIDR(s),f=l[0].toByteArray(),m=this.subnetMaskFromPrefixLength(l[1]).toByteArray(),v=[],P=0;for(;P<4;)v.push(parseInt(f[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},x.IPv4.isIPv4=function(s){return this.parser(s)!==null},x.IPv4.isValid=function(s){try{return new this(this.parser(s)),!0}catch{return!1}},x.IPv4.isValidCIDR=function(s){try{return this.parseCIDR(s),!0}catch{return!1}},x.IPv4.isValidFourPartDecimal=function(s){return!!(x.IPv4.isValid(s)&&s.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},x.IPv4.isValidCIDRFourPartDecimal=function(s){let l=s.match(/^(.+)\/(\d+)$/);return!x.IPv4.isValidCIDR(s)||!l?!1:x.IPv4.isValidFourPartDecimal(l[1])},x.IPv4.networkAddressFromCIDR=function(s){let l,f,m,v,P;try{for(l=this.parseCIDR(s),m=l[0].toByteArray(),P=this.subnetMaskFromPrefixLength(l[1]).toByteArray(),v=[],f=0;f<4;)v.push(parseInt(m[f],10)&parseInt(P[f],10)),f++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},x.IPv4.parse=function(s){let l=this.parser(s);if(l===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(l)},x.IPv4.parseCIDR=function(s){let l;if(l=s.match(/^(.+)\/(\d+)$/)){let f=parseInt(l[2]);if(f>=0&&f<=32){let m=[this.parse(l[1]),f];return Object.defineProperty(m,"toString",{value:o(function(){return this.join("/")},"value")}),m}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},x.IPv4.parser=function(s){let l,f,m;if(l=s.match(r.fourOctet))return function(){let v=l.slice(1,6),P=[];for(let j=0;j<v.length;j++)f=v[j],P.push(_(f));return P}();if(l=s.match(r.longValue)){if(m=_(l[1]),m>4294967295||m<0)throw new Error("ipaddr: address outside defined range");return function(){let v=[],P;for(P=0;P<=24;P+=8)v.push(m>>P&255);return v}().reverse()}else return(l=s.match(r.twoOctet))?function(){let v=l.slice(1,4),P=[];if(m=_(v[1]),m>16777215||m<0)throw new Error("ipaddr: address outside defined range");return P.push(_(v[0])),P.push(m>>16&255),P.push(m>>8&255),P.push(m&255),P}():(l=s.match(r.threeOctet))?function(){let v=l.slice(1,5),P=[];if(m=_(v[2]),m>65535||m<0)throw new Error("ipaddr: address outside defined range");return P.push(_(v[0])),P.push(_(v[1])),P.push(m>>8&255),P.push(m&255),P}():null},x.IPv4.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>32)throw new Error("ipaddr: invalid IPv4 prefix length");let l=[0,0,0,0],f=0,m=Math.floor(s/8);for(;f<m;)l[f]=255,f++;return m<4&&(l[m]=Math.pow(2,s%8)-1<<8-s%8),new this(l)},x.IPv6=function(){function s(l,f){let m,v;if(l.length===16)for(this.parts=[],m=0;m<=14;m+=2)this.parts.push(l[m]<<8|l[m+1]);else if(l.length===8)this.parts=l;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(m=0;m<this.parts.length;m++)if(v=this.parts[m],!(0<=v&&v<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");f&&(this.zoneId=f)}return o(s,"IPv6"),s.prototype.SpecialRanges={unspecified:[new s([0,0,0,0,0,0,0,0]),128],linkLocal:[new s([65152,0,0,0,0,0,0,0]),10],multicast:[new s([65280,0,0,0,0,0,0,0]),8],loopback:[new s([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new s([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new s([0,0,0,0,0,65535,0,0]),96],discard:[new s([256,0,0,0,0,0,0,0]),64],rfc6145:[new s([0,0,0,0,65535,0,0,0]),96],rfc6052:[new s([100,65435,0,0,0,0,0,0]),96],"6to4":[new s([8194,0,0,0,0,0,0,0]),16],teredo:[new s([8193,0,0,0,0,0,0,0]),32],benchmarking:[new s([8193,2,0,0,0,0,0,0]),48],amt:[new s([8193,3,0,0,0,0,0,0]),32],as112v6:[[new s([8193,4,274,0,0,0,0,0]),48],[new s([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new s([8193,16,0,0,0,0,0,0]),28],orchid2:[new s([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new s([8193,48,0,0,0,0,0,0]),28],reserved:[[new s([8193,0,0,0,0,0,0,0]),23],[new s([8193,3512,0,0,0,0,0,0]),32]]},s.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},s.prototype.kind=function(){return"ipv6"},s.prototype.match=function(l,f){let m;if(f===void 0&&(m=l,l=m[0],f=m[1]),l.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return h(this.parts,l.parts,16,f)},s.prototype.prefixLengthFromSubnetMask=function(){let l=0,f=!1,m={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},v,P;for(let j=7;j>=0;j-=1)if(v=this.parts[j],v in m){if(P=m[v],f&&P!==0)return null;P!==16&&(f=!0),l+=P}else return null;return 128-l},s.prototype.range=function(){return x.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){let l,f=[],m=this.parts;for(let v=0;v<m.length;v++)l=m[v],f.push(l>>8),f.push(l&255);return f},s.prototype.toFixedLengthString=function(){let l=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push($(this.parts[v].toString(16),4));return m}.call(this).join(":"),f="";return this.zoneId&&(f=`%${this.zoneId}`),l+f},s.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let l=this.parts.slice(-2),f=l[0],m=l[1];return new x.IPv4([f>>8,f&255,m>>8,m&255])},s.prototype.toNormalizedString=function(){let l=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(this.parts[v].toString(16));return m}.call(this).join(":"),f="";return this.zoneId&&(f=`%${this.zoneId}`),l+f},s.prototype.toRFC5952String=function(){let l=/((^|:)(0(:|$)){2,})/g,f=this.toNormalizedString(),m=0,v=-1,P;for(;P=l.exec(f);)P[0].length>v&&(m=P.index,v=P[0].length);return v<0?f:`${f.substring(0,m)}::${f.substring(m+v)}`},s.prototype.toString=function(){return this.toRFC5952String()},s}(),x.IPv6.broadcastAddressFromCIDR=function(s){try{let l=this.parseCIDR(s),f=l[0].toByteArray(),m=this.subnetMaskFromPrefixLength(l[1]).toByteArray(),v=[],P=0;for(;P<16;)v.push(parseInt(f[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch(l){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${l})`)}},x.IPv6.isIPv6=function(s){return this.parser(s)!==null},x.IPv6.isValid=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{let l=this.parser(s);return new this(l.parts,l.zoneId),!0}catch{return!1}},x.IPv6.isValidCIDR=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{return this.parseCIDR(s),!0}catch{return!1}},x.IPv6.networkAddressFromCIDR=function(s){let l,f,m,v,P;try{for(l=this.parseCIDR(s),m=l[0].toByteArray(),P=this.subnetMaskFromPrefixLength(l[1]).toByteArray(),v=[],f=0;f<16;)v.push(parseInt(m[f],10)&parseInt(P[f],10)),f++;return new this(v)}catch(j){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${j})`)}},x.IPv6.parse=function(s){let l=this.parser(s);if(l.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(l.parts,l.zoneId)},x.IPv6.parseCIDR=function(s){let l,f,m;if((f=s.match(/^(.+)\/(\d+)$/))&&(l=parseInt(f[2]),l>=0&&l<=128))return m=[this.parse(f[1]),l],Object.defineProperty(m,"toString",{value:o(function(){return this.join("/")},"value")}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},x.IPv6.parser=function(s){let l,f,m,v,P,j;if(m=s.match(d.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(d.native.test(s))return y(s,8);if((m=s.match(d.transitional))&&(j=m[6]||"",l=m[1],m[1].endsWith("::")||(l=l.slice(0,-1)),l=y(l+j,6),l.parts)){for(P=[parseInt(m[2]),parseInt(m[3]),parseInt(m[4]),parseInt(m[5])],f=0;f<P.length;f++)if(v=P[f],!(0<=v&&v<=255))return null;return l.parts.push(P[0]<<8|P[1]),l.parts.push(P[2]<<8|P[3]),{parts:l.parts,zoneId:l.zoneId}}return null},x.IPv6.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>128)throw new Error("ipaddr: invalid IPv6 prefix length");let l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,m=Math.floor(s/8);for(;f<m;)l[f]=255,f++;return m<16&&(l[m]=Math.pow(2,s%8)-1<<8-s%8),new this(l)},x.fromByteArray=function(s){let l=s.length;if(l===4)return new x.IPv4(s);if(l===16)return new x.IPv6(s);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},x.isValid=function(s){return x.IPv6.isValid(s)||x.IPv4.isValid(s)},x.isValidCIDR=function(s){return x.IPv6.isValidCIDR(s)||x.IPv4.isValidCIDR(s)},x.parse=function(s){if(x.IPv6.isValid(s))return x.IPv6.parse(s);if(x.IPv4.isValid(s))return x.IPv4.parse(s);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},x.parseCIDR=function(s){try{return x.IPv6.parseCIDR(s)}catch{try{return x.IPv4.parseCIDR(s)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},x.process=function(s){let l=this.parse(s);return l.kind()==="ipv6"&&l.isIPv4MappedAddress()?l.toIPv4Address():l},x.subnetMatch=function(s,l,f){let m,v,P,j;f==null&&(f="unicast");for(v in l)if(Object.prototype.hasOwnProperty.call(l,v)){for(P=l[v],P[0]&&!(P[0]instanceof Array)&&(P=[P]),m=0;m<P.length;m++)if(j=P[m],s.kind()===j[0].kind()&&s.match.apply(s,j))return v}return f},typeof Mt<"u"&&Mt.exports?Mt.exports=x:e.ipaddr=x})(Ao)});var $i=E((ZS,Ei)=>{var Ii=require("stream").Stream,hp=require("util");Ei.exports=se;function se(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(se,"DelayedStream");hp.inherits(se,Ii);se.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(se.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});se.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};se.prototype.resume=function(){this._released||this.release(),this.source.resume()};se.prototype.pause=function(){this.source.pause()};se.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};se.prototype.pipe=function(){var e=Ii.prototype.pipe.apply(this,arguments);return this.resume(),e};se.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)};se.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 ki=E((qS,Ai)=>{var vp=require("util"),zi=require("stream").Stream,Si=$i();Ai.exports=W;function W(){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}o(W,"CombinedStream");vp.inherits(W,zi);W.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};W.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};W.prototype.append=function(e){var t=W.isStreamLike(e);if(t){if(!(e instanceof Si)){var r=Si.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};W.prototype.pipe=function(e,t){return zi.prototype.pipe.call(this,e,t),this.resume(),e};W.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}};W.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(r){var n=W.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};W.prototype._pipeNext=function(e){this._currentStream=e;var t=W.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};W.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};W.prototype.write=function(e){this.emit("data",e)};W.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};W.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")};W.prototype.end=function(){this._reset(),this.emit("end")};W.prototype.destroy=function(){this._reset(),this.emit("close")};W.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};W.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};W.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)};W.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var wi=E((GS,Oi)=>{"use strict";Oi.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var Di=E(Y=>{"use strict";var Zt=wi(),xp=require("path").extname,Ri=/^\s*([^;\s]*)(?:;|\s|$)/,_p=/^text\//i;Y.charset=Ni;Y.charsets={lookup:Ni};Y.contentType=Pp;Y.extension=bp;Y.extensions=Object.create(null);Y.lookup=Tp;Y.types=Object.create(null);Ip(Y.extensions,Y.types);function Ni(e){if(!e||typeof e!="string")return!1;var t=Ri.exec(e),r=t&&Zt[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&_p.test(t[1])?"UTF-8":!1}o(Ni,"charset");function Pp(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Y.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Y.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}o(Pp,"contentType");function bp(e){if(!e||typeof e!="string")return!1;var t=Ri.exec(e),r=t&&Y.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}o(bp,"extension");function Tp(e){if(!e||typeof e!="string")return!1;var t=xp("x."+e).toLowerCase().substr(1);return t&&Y.types[t]||!1}o(Tp,"lookup");function Ip(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Zt).forEach(o(function(i){var u=Zt[i],p=u.extensions;if(!(!p||!p.length)){e[i]=p;for(var d=0;d<p.length;d++){var y=p[d];if(t[y]){var h=r.indexOf(Zt[t[y]].source),_=r.indexOf(u.source);if(t[y]!=="application/octet-stream"&&(h>_||h===_&&t[y].substr(0,12)==="application/"))continue}t[y]=i}}},"forEachMimeType"))}o(Ip,"populateMaps")});var Ui=E((XS,Ci)=>{Ci.exports=Ep;function Ep(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}o(Ep,"defer")});var Fr=E((QS,ji)=>{var Mi=Ui();ji.exports=$p;function $p(e){var t=!1;return Mi(function(){t=!0}),o(function(n,i){t?e(n,i):Mi(o(function(){e(n,i)},"nextTick_callback"))},"async_callback")}o($p,"async")});var Br=E((tz,Li)=>{Li.exports=Sp;function Sp(e){Object.keys(e.jobs).forEach(zp.bind(e)),e.jobs={}}o(Sp,"abort");function zp(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}o(zp,"clean")});var Vr=E((nz,Bi)=>{var Fi=Fr(),Ap=Br();Bi.exports=kp;function kp(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=Op(t,i,e[i],function(u,p){i in r.jobs&&(delete r.jobs[i],u?Ap(r):r.results[i]=p,n(u,r.results))})}o(kp,"iterate");function Op(e,t,r,n){var i;return e.length==2?i=e(r,Fi(n)):i=e(r,t,Fi(n)),i}o(Op,"runJob")});var Zr=E((iz,Vi)=>{Vi.exports=wp;function wp(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,u){return t(e[i],e[u])}),n}o(wp,"state")});var Hr=E((sz,Zi)=>{var Rp=Br(),Np=Fr();Zi.exports=Dp;function Dp(e){Object.keys(this.jobs).length&&(this.index=this.size,Rp(this),Np(e)(null,this.results))}o(Dp,"terminator")});var qi=E((cz,Hi)=>{var Cp=Vr(),Up=Zr(),Mp=Hr();Hi.exports=jp;function jp(e,t,r){for(var n=Up(e);n.index<(n.keyedList||e).length;)Cp(e,t,n,function(i,u){if(i){r(i,u);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return Mp.bind(n,r)}o(jp,"parallel")});var qr=E((lz,Ht)=>{var Wi=Vr(),Lp=Zr(),Fp=Hr();Ht.exports=Bp;Ht.exports.ascending=Gi;Ht.exports.descending=Vp;function Bp(e,t,r,n){var i=Lp(e,r);return Wi(e,t,i,o(function u(p,d){if(p){n(p,d);return}if(i.index++,i.index<(i.keyedList||e).length){Wi(e,t,i,u);return}n(null,i.results)},"iteratorHandler")),Fp.bind(i,n)}o(Bp,"serialOrdered");function Gi(e,t){return e<t?-1:e>t?1:0}o(Gi,"ascending");function Vp(e,t){return-1*Gi(e,t)}o(Vp,"descending")});var Ji=E((mz,Ki)=>{var Zp=qr();Ki.exports=Hp;function Hp(e,t,r){return Zp(e,t,null,r)}o(Hp,"serial")});var Yi=E((gz,Xi)=>{Xi.exports={parallel:qi(),serial:Ji(),serialOrdered:qr()}});var Wr=E((yz,Qi)=>{"use strict";Qi.exports=Object});var ta=E((hz,ea)=>{"use strict";ea.exports=Error});var na=E((vz,ra)=>{"use strict";ra.exports=EvalError});var ia=E((xz,oa)=>{"use strict";oa.exports=RangeError});var sa=E((_z,aa)=>{"use strict";aa.exports=ReferenceError});var ca=E((Pz,ua)=>{"use strict";ua.exports=SyntaxError});var qt=E((bz,pa)=>{"use strict";pa.exports=TypeError});var da=E((Tz,la)=>{"use strict";la.exports=URIError});var fa=E((Iz,ma)=>{"use strict";ma.exports=Math.abs});var ya=E((Ez,ga)=>{"use strict";ga.exports=Math.floor});var va=E(($z,ha)=>{"use strict";ha.exports=Math.max});var _a=E((Sz,xa)=>{"use strict";xa.exports=Math.min});var ba=E((zz,Pa)=>{"use strict";Pa.exports=Math.pow});var Ia=E((Az,Ta)=>{"use strict";Ta.exports=Math.round});var $a=E((kz,Ea)=>{"use strict";Ea.exports=Number.isNaN||o(function(t){return t!==t},"isNaN")});var za=E((wz,Sa)=>{"use strict";var qp=$a();Sa.exports=o(function(t){return qp(t)||t===0?t:t<0?-1:1},"sign")});var ka=E((Nz,Aa)=>{"use strict";Aa.exports=Object.getOwnPropertyDescriptor});var Gr=E((Dz,Oa)=>{"use strict";var Wt=ka();if(Wt)try{Wt([],"length")}catch{Wt=null}Oa.exports=Wt});var Ra=E((Cz,wa)=>{"use strict";var Gt=Object.defineProperty||!1;if(Gt)try{Gt({},"a",{value:1})}catch{Gt=!1}wa.exports=Gt});var Kr=E((Uz,Na)=>{"use strict";Na.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var u 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 p=Object.getOwnPropertySymbols(t);if(p.length!==1||p[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,r);if(d.value!==i||d.enumerable!==!0)return!1}return!0},"hasSymbols")});var Ua=E((jz,Ca)=>{"use strict";var Da=typeof Symbol<"u"&&Symbol,Wp=Kr();Ca.exports=o(function(){return typeof Da!="function"||typeof Symbol!="function"||typeof Da("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Wp()},"hasNativeSymbols")});var Jr=E((Fz,Ma)=>{"use strict";Ma.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Xr=E((Bz,ja)=>{"use strict";var Gp=Wr();ja.exports=Gp.getPrototypeOf||null});var Ba=E((Vz,Fa)=>{"use strict";var Kp="Function.prototype.bind called on incompatible ",Jp=Object.prototype.toString,Xp=Math.max,Yp="[object Function]",La=o(function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var u=0;u<r.length;u+=1)n[u+t.length]=r[u];return n},"concatty"),Qp=o(function(t,r){for(var n=[],i=r||0,u=0;i<t.length;i+=1,u+=1)n[u]=t[i];return n},"slicy"),el=o(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");Fa.exports=o(function(t){var r=this;if(typeof r!="function"||Jp.apply(r)!==Yp)throw new TypeError(Kp+r);for(var n=Qp(arguments,1),i,u=o(function(){if(this instanceof i){var _=r.apply(this,La(n,arguments));return Object(_)===_?_:this}return r.apply(t,La(n,arguments))},"binder"),p=Xp(0,r.length-n.length),d=[],y=0;y<p;y++)d[y]="$"+y;if(i=Function("binder","return function ("+el(d,",")+"){ return binder.apply(this,arguments); }")(u),r.prototype){var h=o(function(){},"Empty");h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},"bind")});var Ve=E((Hz,Va)=>{"use strict";var tl=Ba();Va.exports=Function.prototype.bind||tl});var Kt=E((qz,Za)=>{"use strict";Za.exports=Function.prototype.call});var Yr=E((Wz,Ha)=>{"use strict";Ha.exports=Function.prototype.apply});var Wa=E((Gz,qa)=>{"use strict";qa.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ka=E((Kz,Ga)=>{"use strict";var rl=Ve(),nl=Yr(),ol=Kt(),il=Wa();Ga.exports=il||rl.call(ol,nl)});var Xa=E((Jz,Ja)=>{"use strict";var al=Ve(),sl=qt(),ul=Kt(),cl=Ka();Ja.exports=o(function(t){if(t.length<1||typeof t[0]!="function")throw new sl("a function is required");return cl(al,ul,t)},"callBindBasic")});var ns=E((Yz,rs)=>{"use strict";var pl=Xa(),Ya=Gr(),es;try{es=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Qr=!!es&&Ya&&Ya(Object.prototype,"__proto__"),ts=Object,Qa=ts.getPrototypeOf;rs.exports=Qr&&typeof Qr.get=="function"?pl([Qr.get]):typeof Qa=="function"?o(function(t){return Qa(t==null?t:ts(t))},"getDunder"):!1});var us=E((eA,ss)=>{"use strict";var os=Jr(),is=Xr(),as=ns();ss.exports=os?o(function(t){return os(t)},"getProto"):is?o(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return is(t)},"getProto"):as?o(function(t){return as(t)},"getProto"):null});var en=E((rA,cs)=>{"use strict";var ll=Function.prototype.call,dl=Object.prototype.hasOwnProperty,ml=Ve();cs.exports=ml.call(ll,dl)});var ys=E((nA,gs)=>{"use strict";var M,fl=Wr(),gl=ta(),yl=na(),hl=ia(),vl=sa(),We=ca(),qe=qt(),xl=da(),_l=fa(),Pl=ya(),bl=va(),Tl=_a(),Il=ba(),El=Ia(),$l=za(),ms=Function,tn=o(function(e){try{return ms('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),yt=Gr(),Sl=Ra(),rn=o(function(){throw new qe},"throwTypeError"),zl=yt?function(){try{return arguments.callee,rn}catch{try{return yt(arguments,"callee").get}catch{return rn}}}():rn,Ze=Ua()(),J=us(),Al=Xr(),kl=Jr(),fs=Yr(),ht=Kt(),He={},Ol=typeof Uint8Array>"u"||!J?M:J(Uint8Array),we={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?M:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?M:ArrayBuffer,"%ArrayIteratorPrototype%":Ze&&J?J([][Symbol.iterator]()):M,"%AsyncFromSyncIteratorPrototype%":M,"%AsyncFunction%":He,"%AsyncGenerator%":He,"%AsyncGeneratorFunction%":He,"%AsyncIteratorPrototype%":He,"%Atomics%":typeof Atomics>"u"?M:Atomics,"%BigInt%":typeof BigInt>"u"?M:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?M:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?M:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?M:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":gl,"%eval%":eval,"%EvalError%":yl,"%Float16Array%":typeof Float16Array>"u"?M:Float16Array,"%Float32Array%":typeof Float32Array>"u"?M:Float32Array,"%Float64Array%":typeof Float64Array>"u"?M:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?M:FinalizationRegistry,"%Function%":ms,"%GeneratorFunction%":He,"%Int8Array%":typeof Int8Array>"u"?M:Int8Array,"%Int16Array%":typeof Int16Array>"u"?M:Int16Array,"%Int32Array%":typeof Int32Array>"u"?M:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ze&&J?J(J([][Symbol.iterator]())):M,"%JSON%":typeof JSON=="object"?JSON:M,"%Map%":typeof Map>"u"?M:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ze||!J?M:J(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fl,"%Object.getOwnPropertyDescriptor%":yt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?M:Promise,"%Proxy%":typeof Proxy>"u"?M:Proxy,"%RangeError%":hl,"%ReferenceError%":vl,"%Reflect%":typeof Reflect>"u"?M:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?M:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ze||!J?M:J(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?M:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ze&&J?J(""[Symbol.iterator]()):M,"%Symbol%":Ze?Symbol:M,"%SyntaxError%":We,"%ThrowTypeError%":zl,"%TypedArray%":Ol,"%TypeError%":qe,"%Uint8Array%":typeof Uint8Array>"u"?M:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?M:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?M:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?M:Uint32Array,"%URIError%":xl,"%WeakMap%":typeof WeakMap>"u"?M:WeakMap,"%WeakRef%":typeof WeakRef>"u"?M:WeakRef,"%WeakSet%":typeof WeakSet>"u"?M:WeakSet,"%Function.prototype.call%":ht,"%Function.prototype.apply%":fs,"%Object.defineProperty%":Sl,"%Object.getPrototypeOf%":Al,"%Math.abs%":_l,"%Math.floor%":Pl,"%Math.max%":bl,"%Math.min%":Tl,"%Math.pow%":Il,"%Math.round%":El,"%Math.sign%":$l,"%Reflect.getPrototypeOf%":kl};if(J)try{null.error}catch(e){ps=J(J(e)),we["%Error.prototype%"]=ps}var ps,wl=o(function e(t){var r;if(t==="%AsyncFunction%")r=tn("async function () {}");else if(t==="%GeneratorFunction%")r=tn("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=tn("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&J&&(r=J(i.prototype))}return we[t]=r,r},"doEval"),ls={__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"]},vt=Ve(),Jt=en(),Rl=vt.call(ht,Array.prototype.concat),Nl=vt.call(fs,Array.prototype.splice),ds=vt.call(ht,String.prototype.replace),Xt=vt.call(ht,String.prototype.slice),Dl=vt.call(ht,RegExp.prototype.exec),Cl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ul=/\\(\\)?/g,Ml=o(function(t){var r=Xt(t,0,1),n=Xt(t,-1);if(r==="%"&&n!=="%")throw new We("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new We("invalid intrinsic syntax, expected opening `%`");var i=[];return ds(t,Cl,function(u,p,d,y){i[i.length]=d?ds(y,Ul,"$1"):p||u}),i},"stringToPath"),jl=o(function(t,r){var n=t,i;if(Jt(ls,n)&&(i=ls[n],n="%"+i[0]+"%"),Jt(we,n)){var u=we[n];if(u===He&&(u=wl(n)),typeof u>"u"&&!r)throw new qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:u}}throw new We("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");gs.exports=o(function(t,r){if(typeof t!="string"||t.length===0)throw new qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new qe('"allowMissing" argument must be a boolean');if(Dl(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ml(t),i=n.length>0?n[0]:"",u=jl("%"+i+"%",r),p=u.name,d=u.value,y=!1,h=u.alias;h&&(i=h[0],Nl(n,Rl([0,1],h)));for(var _=1,$=!0;_<n.length;_+=1){var x=n[_],s=Xt(x,0,1),l=Xt(x,-1);if((s==='"'||s==="'"||s==="`"||l==='"'||l==="'"||l==="`")&&s!==l)throw new We("property names with quotes must have matching quotes");if((x==="constructor"||!$)&&(y=!0),i+="."+x,p="%"+i+"%",Jt(we,p))d=we[p];else if(d!=null){if(!(x in d)){if(!r)throw new qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(yt&&_+1>=n.length){var f=yt(d,x);$=!!f,$&&"get"in f&&!("originalValue"in f.get)?d=f.get:d=d[x]}else $=Jt(d,x),d=d[x];$&&!y&&(we[p]=d)}}return d},"GetIntrinsic")});var vs=E((iA,hs)=>{"use strict";var Ll=Kr();hs.exports=o(function(){return Ll()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Ps=E((sA,_s)=>{"use strict";var Fl=ys(),xs=Fl("%Object.defineProperty%",!0),Bl=vs()(),Vl=en(),Zl=qt(),Yt=Bl?Symbol.toStringTag:null;_s.exports=o(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new Zl("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Yt&&(n||!Vl(t,Yt))&&(xs?xs(t,Yt,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[Yt]=r)},"setToStringTag")});var Ts=E((cA,bs)=>{"use strict";var Hl=Function.prototype.call,ql=Object.prototype.hasOwnProperty,Wl=Ve();bs.exports=Wl.call(Hl,ql)});var Es=E((pA,Is)=>{"use strict";Is.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var zs=E((lA,Ss)=>{"use strict";var sn=ki(),Gl=require("util"),nn=require("path"),Kl=require("http"),Jl=require("https"),Xl=require("url").parse,Yl=require("fs"),Ql=require("stream").Stream,ed=require("crypto"),on=Di(),td=Yi(),rd=Ps(),$e=Ts(),an=Es();function $s(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}o($s,"escapeHeaderParam");function L(e){if(!(this instanceof L))return new L(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],sn.call(this),e=e||{};for(var t in e)this[t]=e[t]}o(L,"FormData");Gl.inherits(L,sn);L.LINE_BREAK=`\r
|
|
2
2
|
`;L.DEFAULT_CONTENT_TYPE="application/octet-stream";L.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=sn.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 i=this._multiPartHeader(e,t,r),u=this._multiPartFooter();n(i),n(t),n(u),this._trackLength(i,t,r)};L.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+L.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&$e(t,"httpVersion"))&&!(t instanceof Ql))&&(r.knownLength||this._valuesToMeasure.push(t))};L.prototype._lengthRetriever=function(e,t){$e(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Yl.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):$e(e,"httpVersion")?t(null,Number(e.headers["content-length"])):$e(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};L.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),u="",p={"Content-Disposition":["form-data",'name="'+$s(e)+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&an(p,r.header);var d;for(var y in p)if($e(p,y)){if(d=p[y],d==null)continue;Array.isArray(d)||(d=[d]),d.length&&(u+=y+": "+d.join("; ")+L.LINE_BREAK)}return"--"+this.getBoundary()+L.LINE_BREAK+u+L.LINE_BREAK};L.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=nn.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=nn.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&$e(e,"httpVersion")&&(r=nn.basename(e.client._httpMessage.path||"")),r)return'filename="'+$s(r)+'"'};L.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=on.lookup(e.name)),!r&&e&&e.path&&(r=on.lookup(e.path)),!r&&e&&e.readable&&$e(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=on.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=L.DEFAULT_CONTENT_TYPE),r};L.prototype._multiPartFooter=function(){return function(e){var t=L.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};L.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+L.LINE_BREAK};L.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)$e(e,t)&&(r[t.toLowerCase()]=e[t]);return r};L.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};L.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};L.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(L.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};L.prototype._generateBoundary=function(){this._boundary="--------------------------"+ed.randomBytes(12).toString("hex")};L.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};L.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};L.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}td.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};L.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=Xl(e),n=an({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=an(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=Jl.request(n):r=Kl.request(n),this.getLength(function(u,p){if(u&&u!=="Unknown stream"){this._error(u);return}if(p&&r.setHeader("Content-Length",p),this.pipe(r),t){var d,y=o(function(h,_){return r.removeListener("error",y),r.removeListener("response",d),t.call(this,h,_)},"callback");d=y.bind(this,null),r.on("error",y),r.on("response",d)}}.bind(this)),r};L.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};L.prototype.toString=function(){return"[object FormData]"};rd(L.prototype,"FormData");Ss.exports=L});var md={};ln(md,{zoom:()=>dd,zoomAuth:()=>re});module.exports=Bs(md);var Vs=Object.freeze({status:"aborted"});function T(e,t,r){function n(d,y){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:y,constr:p,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,y);let h=p.prototype,_=Object.keys(h);for(let $=0;$<_.length;$++){let x=_[$];x in d||(d[x]=h[x].bind(d))}}o(n,"init");let i=r?.Parent??Object;class u extends i{static{o(this,"Definition")}}Object.defineProperty(u,"name",{value:e});function p(d){var y;let h=r?.Parent?new u:this;n(h,d),(y=h._zod).deferred??(y.deferred=[]);for(let _ of h._zod.deferred)_();return h}return o(p,"_"),Object.defineProperty(p,"init",{value:n}),Object.defineProperty(p,Symbol.hasInstance,{value:o(d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(e),"value")}),Object.defineProperty(p,"name",{value:e}),p}o(T,"$constructor");var Zs=Symbol("zod_brand"),ue=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},_t=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},rr={};function de(e){return e&&Object.assign(rr,e),rr}o(de,"config");function or(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}o(or,"getEnumValues");function fn(e,t){return typeof t=="bigint"?t.toString():t}o(fn,"jsonStringifyReplacer");function bt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}o(bt,"cached");function gn(e){return e==null}o(gn,"nullish");function Tt(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}o(Tt,"cleanRegex");var mn=Symbol("evaluating");function G(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==mn)return n===void 0&&(n=mn,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}o(G,"defineLazy");var ir="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Je(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(Je,"isObject");var Hs=bt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yn(e){if(Je(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Je(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}o(yn,"isPlainObject");var hn=new Set(["string","number","symbol"]);function Ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Ne,"escapeRegex");function It(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}o(It,"clone");function Z(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>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:o(()=>t.error,"error")}:t}o(Z,"normalizeParams");function vn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(vn,"optionalKeys");var qs={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]};function De(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}o(De,"aborted");function xe(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}o(xe,"prefixIssues");function Pt(e){return typeof e=="string"?e:e?.message}o(Pt,"unwrapMessage");function _e(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=Pt(e.inst?._zod.def?.error?.(e))??Pt(t?.error?.(e))??Pt(r.customError?.(e))??Pt(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}o(_e,"finalizeIssue");function xn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(xn,"getLengthableOrigin");function ar(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}o(ar,"issue");var _n=o((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,fn,2),Object.defineProperty(e,"toString",{value:o(()=>e.message,"value"),enumerable:!1})},"initializer"),Pn=T("$ZodError",_n),Xe=T("$ZodError",_n,{Parent:Error});var Gs=o(e=>(t,r,n,i)=>{let u=n?Object.assign(n,{async:!1}):{async:!1},p=t._zod.run({value:r,issues:[]},u);if(p instanceof Promise)throw new ue;if(p.issues.length){let d=new(i?.Err??e)(p.issues.map(y=>_e(y,u,de())));throw ir(d,i?.callee),d}return p.value},"_parse"),Et=Gs(Xe),Ks=o(e=>async(t,r,n,i)=>{let u=n?Object.assign(n,{async:!0}):{async:!0},p=t._zod.run({value:r,issues:[]},u);if(p instanceof Promise&&(p=await p),p.issues.length){let d=new(i?.Err??e)(p.issues.map(y=>_e(y,u,de())));throw ir(d,i?.callee),d}return p.value},"_parseAsync"),$t=Ks(Xe),Js=o(e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},u=t._zod.run({value:r,issues:[]},i);if(u instanceof Promise)throw new ue;return u.issues.length?{success:!1,error:new(e??Pn)(u.issues.map(p=>_e(p,i,de())))}:{success:!0,data:u.value}},"_safeParse"),Ye=Js(Xe),Xs=o(e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},u=t._zod.run({value:r,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(p=>_e(p,i,de())))}:{success:!0,data:u.value}},"_safeParseAsync"),Qe=Xs(Xe);var Ys="(?:(?:\\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])))",Qs=new RegExp(`^${Ys}$`);var bn=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Tn=/^-?\d+n?$/;var sr=/^-?\d+(?:\.\d+)?$/,In=/^(?:true|false)$/i;var Ce=T("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var En=T("$ZodCheckMinLength",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!gn(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let p=xn(i);n.issues.push({origin:p,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}});var ur=T("$ZodCheckStringFormat",(e,t)=>{var r,n;Ce.init(e,t),e._zod.onattach.push(i=>{let u=i._zod.bag;u.format=t.format,t.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),$n=T("$ZodCheckRegex",(e,t)=>{ur.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var zn={major:4,minor:3,patch:6};var H=T("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zn;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let u of i._zod.onattach)u(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=o((p,d,y)=>{let h=De(p),_;for(let $ of d){if($._zod.def.when){if(!$._zod.def.when(p))continue}else if(h)continue;let x=p.issues.length,s=$._zod.check(p);if(s instanceof Promise&&y?.async===!1)throw new ue;if(_||s instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await s,p.issues.length!==x&&(h||(h=De(p,x)))});else{if(p.issues.length===x)continue;h||(h=De(p,x))}}return _?_.then(()=>p):p},"runChecks"),u=o((p,d,y)=>{if(De(p))return p.aborted=!0,p;let h=i(d,n,y);if(h instanceof Promise){if(y.async===!1)throw new ue;return h.then(_=>e._zod.parse(_,y))}return e._zod.parse(h,y)},"handleCanaryResult");e._zod.run=(p,d)=>{if(d.skipChecks)return e._zod.parse(p,d);if(d.direction==="backward"){let h=e._zod.parse({value:p.value,issues:[]},{...d,skipChecks:!0});return h instanceof Promise?h.then(_=>u(_,p,d)):u(h,p,d)}let y=e._zod.parse(p,d);if(y instanceof Promise){if(d.async===!1)throw new ue;return y.then(h=>i(h,n,d))}return i(y,n,d)}}G(e,"~standard",()=>({validate:o(i=>{try{let u=Ye(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return Qe(e,i).then(p=>p.success?{value:p.data}:{issues:p.error?.issues})}},"validate"),vendor:"zod",version:1}))}),At=T("$ZodString",(e,t)=>{H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??bn(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),cr=T("$ZodStringFormat",(e,t)=>{ur.init(e,t),At.init(e,t)});var Rn=T("$ZodURL",(e,t)=>{cr.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var Nn=T("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??sr,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let u=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...u?{received:u}:{}}),r}});var pr=T("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=In,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Dn=T("$ZodBigInt",(e,t)=>{H.init(e,t),e._zod.pattern=Tn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var Cn=T("$ZodAny",(e,t)=>{H.init(e,t),e._zod.parse=r=>r}),Un=T("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=r=>r});var Mn=T("$ZodVoid",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),jn=T("$ZodDate",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,u=i instanceof Date;return u&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...u?{received:"Invalid Date"}:{},inst:e}),r}});function An(e,t,r){e.issues.length&&t.issues.push(...xe(r,e.issues)),t.value[r]=e.value}o(An,"handleArrayResult");var Ln=T("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let u=[];for(let p=0;p<i.length;p++){let d=i[p],y=t.element._zod.run({value:d,issues:[]},n);y instanceof Promise?u.push(y.then(h=>An(h,r,p))):An(y,r,p)}return u.length?Promise.all(u).then(()=>r):r}});function zt(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(...xe(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}o(zt,"handlePropertyResult");function eu(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 r=vn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}o(eu,"normalizeDef");function tu(e,t,r,n,i,u){let p=[],d=i.keySet,y=i.catchall._zod,h=y.def.type,_=y.optout==="optional";for(let $ in t){if(d.has($))continue;if(h==="never"){p.push($);continue}let x=y.run({value:t[$],issues:[]},n);x instanceof Promise?e.push(x.then(s=>zt(s,r,$,t,_))):zt(x,r,$,t,_)}return p.length&&r.issues.push({code:"unrecognized_keys",keys:p,input:t,inst:u}),e.length?Promise.all(e).then(()=>r):r}o(tu,"handleCatchall");var Fn=T("$ZodObject",(e,t)=>{if(H.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let d=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let y={...d};return Object.defineProperty(t,"shape",{value:y}),y},"get")})}let n=bt(()=>eu(t));G(e._zod,"propValues",()=>{let d=t.shape,y={};for(let h in d){let _=d[h]._zod;if(_.values){y[h]??(y[h]=new Set);for(let $ of _.values)y[h].add($)}}return y});let i=Je,u=t.catchall,p;e._zod.parse=(d,y)=>{p??(p=n.value);let h=d.value;if(!i(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};let _=[],$=p.shape;for(let x of p.keys){let s=$[x],l=s._zod.optout==="optional",f=s._zod.run({value:h[x],issues:[]},y);f instanceof Promise?_.push(f.then(m=>zt(m,d,x,h,l))):zt(f,d,x,h,l)}return u?tu(_,h,d,y,n.value,e):_.length?Promise.all(_).then(()=>d):d}});function kn(e,t,r,n){for(let u of e)if(u.issues.length===0)return t.value=u.value,t;let i=e.filter(u=>!De(u));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(u=>u.issues.map(p=>_e(p,n,de())))}),t)}o(kn,"handleUnionResults");var lr=T("$ZodUnion",(e,t)=>{H.init(e,t),G(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),G(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),G(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),G(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(u=>u._zod.pattern);return new RegExp(`^(${i.map(u=>Tt(u.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,u)=>{if(r)return n(i,u);let p=!1,d=[];for(let y of t.options){let h=y._zod.run({value:i.value,issues:[]},u);if(h instanceof Promise)d.push(h),p=!0;else{if(h.issues.length===0)return h;d.push(h)}}return p?Promise.all(d).then(y=>kn(y,i,e,u)):kn(d,i,e,u)}});var Bn=T("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,lr.init(e,t);let r=e._zod.parse;G(e._zod,"propValues",()=>{let i={};for(let u of t.options){let p=u._zod.propValues;if(!p||Object.keys(p).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let[d,y]of Object.entries(p)){i[d]||(i[d]=new Set);for(let h of y)i[d].add(h)}}return i});let n=bt(()=>{let i=t.options,u=new Map;for(let p of i){let d=p._zod.propValues?.[t.discriminator];if(!d||d.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(p)}"`);for(let y of d){if(u.has(y))throw new Error(`Duplicate discriminator value "${String(y)}"`);u.set(y,p)}}return u});e._zod.parse=(i,u)=>{let p=i.value;if(!Je(p))return i.issues.push({code:"invalid_type",expected:"object",input:p,inst:e}),i;let d=n.value.get(p?.[t.discriminator]);return d?d._zod.run(i,u):t.unionFallback?r(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:p,path:[t.discriminator],inst:e}),i)}});var Vn=T("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!yn(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let u=[],p=t.keyType._zod.values;if(p){r.value={};let d=new Set;for(let h of p)if(typeof h=="string"||typeof h=="number"||typeof h=="symbol"){d.add(typeof h=="number"?h.toString():h);let _=t.valueType._zod.run({value:i[h],issues:[]},n);_ instanceof Promise?u.push(_.then($=>{$.issues.length&&r.issues.push(...xe(h,$.issues)),r.value[h]=$.value})):(_.issues.length&&r.issues.push(...xe(h,_.issues)),r.value[h]=_.value)}let y;for(let h in i)d.has(h)||(y=y??[],y.push(h));y&&y.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:y})}else{r.value={};for(let d of Reflect.ownKeys(i)){if(d==="__proto__")continue;let y=t.keyType._zod.run({value:d,issues:[]},n);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof d=="string"&&sr.test(d)&&y.issues.length){let $=t.keyType._zod.run({value:Number(d),issues:[]},n);if($ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");$.issues.length===0&&(y=$)}if(y.issues.length){t.mode==="loose"?r.value[d]=i[d]:r.issues.push({code:"invalid_key",origin:"record",issues:y.issues.map($=>_e($,n,de())),input:d,path:[d],inst:e});continue}let _=t.valueType._zod.run({value:i[d],issues:[]},n);_ instanceof Promise?u.push(_.then($=>{$.issues.length&&r.issues.push(...xe(d,$.issues)),r.value[y.value]=$.value})):(_.issues.length&&r.issues.push(...xe(d,_.issues)),r.value[y.value]=_.value)}}return u.length?Promise.all(u).then(()=>r):r}});var Zn=T("$ZodEnum",(e,t)=>{H.init(e,t);let r=or(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>hn.has(typeof i)).map(i=>typeof i=="string"?Ne(i):i.toString()).join("|")})$`),e._zod.parse=(i,u)=>{let p=i.value;return n.has(p)||i.issues.push({code:"invalid_value",values:r,input:p,inst:e}),i}}),Hn=T("$ZodLiteral",(e,t)=>{if(H.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ne(n):n?Ne(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let u=n.value;return r.has(u)||n.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),n}});var qn=T("$ZodTransform",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new _t(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(p=>(r.value=p,r));if(i instanceof Promise)throw new ue;return r.value=i,r}});function On(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(On,"handleOptionalResult");var Wn=T("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",G(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),G(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Tt(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(u=>On(u,r.value)):On(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var Gn=T("$ZodNullable",(e,t)=>{H.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Tt(r.source)}|null)$`):void 0}),G(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var Kn=T("$ZodPipe",(e,t)=>{H.init(e,t),G(e._zod,"values",()=>t.in._zod.values),G(e._zod,"optin",()=>t.in._zod.optin),G(e._zod,"optout",()=>t.out._zod.optout),G(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let u=t.out._zod.run(r,n);return u instanceof Promise?u.then(p=>St(p,t.in,n)):St(u,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(u=>St(u,t.out,n)):St(i,t.out,n)}});function St(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}o(St,"handlePipeResult");var Jn=T("$ZodCustom",(e,t)=>{Ce.init(e,t),H.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(u=>wn(u,r,n,e));wn(i,r,n,e)}});function wn(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(ar(i))}}o(wn,"handleRefineResult");var Yn,iu=Symbol("ZodOutput"),au=Symbol("ZodInput"),dr=class{static{o(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[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 r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Qn(){return new dr}o(Qn,"registry");(Yn=globalThis).__zod_globalRegistry??(Yn.__zod_globalRegistry=Qn());var mr=globalThis.__zod_globalRegistry;function eo(e,t){return new e({type:"string",...Z(t)})}o(eo,"_string");function to(e,t){return new e({type:"string",coerce:!0,...Z(t)})}o(to,"_coercedString");function ro(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Z(t)})}o(ro,"_url");function no(e,t){return new e({type:"number",checks:[],...Z(t)})}o(no,"_number");function oo(e,t){return new e({type:"number",coerce:!0,checks:[],...Z(t)})}o(oo,"_coercedNumber");function io(e,t){return new e({type:"boolean",...Z(t)})}o(io,"_boolean");function ao(e,t){return new e({type:"boolean",coerce:!0,...Z(t)})}o(ao,"_coercedBoolean");function so(e,t){return new e({type:"bigint",coerce:!0,...Z(t)})}o(so,"_coercedBigint");function uo(e){return new e({type:"any"})}o(uo,"_any");function co(e){return new e({type:"unknown"})}o(co,"_unknown");function po(e,t){return new e({type:"void",...Z(t)})}o(po,"_void");function lo(e,t){return new e({type:"date",coerce:!0,...Z(t)})}o(lo,"_coercedDate");function ae(e,t){return new En({check:"min_length",...Z(t),minimum:e})}o(ae,"_minLength");function Pe(e,t){return new $n({check:"string_format",format:"regex",...Z(t),pattern:e})}o(Pe,"_regex");function mo(e,t,r){let n=Z(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}o(mo,"_custom");var K=T("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>Et(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Ye(e,r,n),e.parseAsync=async(r,n)=>$t(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Qe(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>It(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.apply=r=>r(e)}),Ot=T("ZodMiniString",(e,t)=>{At.init(e,t),K.init(e,t)});function a(e){return eo(Ot,e)}o(a,"string");var fo=T("ZodMiniStringFormat",(e,t)=>{cr.init(e,t),Ot.init(e,t)});var yu=T("ZodMiniURL",(e,t)=>{Rn.init(e,t),fo.init(e,t)});function go(e){return ro(yu,e)}o(go,"url");var fr=T("ZodMiniNumber",(e,t)=>{Nn.init(e,t),K.init(e,t)});function X(e){return no(fr,e)}o(X,"number");var gr=T("ZodMiniBoolean",(e,t)=>{pr.init(e,t),K.init(e,t)});function B(e){return io(gr,e)}o(B,"boolean");var yo=T("ZodMiniBigInt",(e,t)=>{Dn.init(e,t),K.init(e,t)});var hu=T("ZodMiniAny",(e,t)=>{Cn.init(e,t),K.init(e,t)});function tt(){return uo(hu)}o(tt,"any");var vu=T("ZodMiniUnknown",(e,t)=>{Un.init(e,t),K.init(e,t)});function O(){return co(vu)}o(O,"unknown");var xu=T("ZodMiniVoid",(e,t)=>{Mn.init(e,t),K.init(e,t)});function ho(e){return po(xu,e)}o(ho,"_void");var vo=T("ZodMiniDate",(e,t)=>{jn.init(e,t),K.init(e,t)});var _u=T("ZodMiniArray",(e,t)=>{Ln.init(e,t),K.init(e,t)});function N(e,t){return new _u({type:"array",element:e,...Z(t)})}o(N,"array");var Pu=T("ZodMiniObject",(e,t)=>{Fn.init(e,t),K.init(e,t),G(e,"shape",()=>t.shape)});function c(e,t){let r={type:"object",shape:e??{},...Z(t)};return new Pu(r)}o(c,"object");var bu=T("ZodMiniUnion",(e,t)=>{lr.init(e,t),K.init(e,t)});function D(e,t){return new bu({type:"union",options:e,...Z(t)})}o(D,"union");var Tu=T("ZodMiniDiscriminatedUnion",(e,t)=>{Bn.init(e,t),K.init(e,t)});function Ue(e,t,r){return new Tu({type:"union",options:t,discriminator:e,...Z(r)})}o(Ue,"discriminatedUnion");var Iu=T("ZodMiniRecord",(e,t)=>{Vn.init(e,t),K.init(e,t)});function w(e,t,r){return new Iu({type:"record",keyType:e,valueType:t,...Z(r)})}o(w,"record");var Eu=T("ZodMiniEnum",(e,t)=>{Zn.init(e,t),K.init(e,t),e.options=Object.values(t.entries)});function U(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Eu({type:"enum",entries:r,...Z(t)})}o(U,"_enum");var $u=T("ZodMiniLiteral",(e,t)=>{Hn.init(e,t),K.init(e,t)});function S(e,t){return new $u({type:"literal",values:Array.isArray(e)?e:[e],...Z(t)})}o(S,"literal");var Su=T("ZodMiniTransform",(e,t)=>{qn.init(e,t),K.init(e,t)});function be(e){return new Su({type:"transform",transform:e})}o(be,"transform");var zu=T("ZodMiniOptional",(e,t)=>{Wn.init(e,t),K.init(e,t)});function g(e){return new zu({type:"optional",innerType:e})}o(g,"optional");var Au=T("ZodMiniNullable",(e,t)=>{Gn.init(e,t),K.init(e,t)});function rt(e){return new Au({type:"nullable",innerType:e})}o(rt,"nullable");var ku=T("ZodMiniPipe",(e,t)=>{Kn.init(e,t),K.init(e,t)});function Te(e,t){return new ku({type:"pipe",in:e,out:t})}o(Te,"pipe");var Ou=T("ZodMiniCustom",(e,t)=>{Jn.init(e,t),K.init(e,t)});function wt(e,t){return mo(Ou,e??(()=>!0),t)}o(wt,"custom");var nt={};ln(nt,{bigint:()=>Mu,boolean:()=>Uu,date:()=>ju,number:()=>Cu,string:()=>Du});function Du(e){return to(Ot,e)}o(Du,"string");function Cu(e){return oo(fr,e)}o(Cu,"number");function Uu(e){return ao(gr,e)}o(Uu,"boolean");function Mu(e){return so(yo,e)}o(Mu,"bigint");function ju(e){return lo(vo,e)}o(ju,"date");var hr=c({retryOnFailure:c({defaultValue:g(B()),hide:g(B())}),continueOnFailure:c({defaultValue:g(B()),hide:g(B())})}),yr=class{constructor(t,r,n,i,u,p,d,y,h,_,$){this.name=t;this.displayName=r;this.description=n;this.props=i;this.run=u;this.test=p;this.requireAuth=d;this.errorHandlingOptions=y;this.outputSchema=h;this.audience=_;this.aiMetadata=$}static{o(this,"IAction")}},ce=o(e=>new yr(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var F=c({displayName:a(),description:g(a())}),C=o((e,t)=>c({type:S(t),required:B(),defaultValue:g(tt())}),"TPropertyValue");var ee=c({...F.shape,...C(a(),"SHORT_TEXT").shape}),me=c({...F.shape,...C(a(),"LONG_TEXT").shape});var _o=c({label:a(),value:O()}),Rt=c({disabled:g(B()),placeholder:g(a()),options:N(_o)});var te=c({...F.shape,options:Rt,...C(O(),"STATIC_DROPDOWN").shape}),fe=c({...F.shape,options:Rt,...C(N(O()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var vr=c({...F.shape,...C(O(),"DROPDOWN").shape,refreshers:N(a())}),ot=c({...F.shape,...C(N(O()),"MULTI_SELECT_DROPDOWN").shape,refreshers:N(a())});var ge=c({...F.shape,...C(B(),"CHECKBOX").shape});var ye=c({...F.shape,...C(X(),"NUMBER").shape});var it=c({...F.shape,...C(O(),"FILE").shape});var at=c({...F.shape,...C(a(),"DATE_TIME").shape});var Po=w(a(),D([ee,me,te,ot,fe,ge,ye,it,at])),st=c({...F.shape,properties:Po,...C(N(O()),"ARRAY").shape});var ut=c({...F.shape,...C(D([w(a(),O())]),"JSON").shape});var bo=D([ee,te,ut,st,fe]),Fu=w(a(),bo),xr=c({refreshers:N(a()),...F.shape,...C(O(),"DYNAMIC").shape});var Nt=c({...F.shape,...C(ho(),"MARKDOWN").shape});var ct=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(ct||{}),Me=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(Me||{}),je=(v=>(v.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",v.COMMUNICATION="COMMUNICATION",v.COMMERCE="COMMERCE",v.CORE="CORE",v.UNIVERSAL_AI="UNIVERSAL_AI",v.FLOW_CONTROL="FLOW_CONTROL",v.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",v.ACCOUNTING="ACCOUNTING",v.PRODUCTIVITY="PRODUCTIVITY",v.CONTENT_AND_FILES="CONTENT_AND_FILES",v.DEVELOPER_TOOLS="DEVELOPER_TOOLS",v.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",v.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",v.HUMAN_RESOURCES="HUMAN_RESOURCES",v.PAYMENT_PROCESSING="PAYMENT_PROCESSING",v.MARKETING="MARKETING",v.SALES_AND_CRM="SALES_AND_CRM",v))(je||{});var pt=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(pt||{}),_r="both_client_credentials_and_authorization_code";var ze=(i=>(i.POLLING="POLLING",i.WEBHOOK="WEBHOOK",i.APP_WEBHOOK="APP_WEBHOOK",i.MANUAL="MANUAL",i))(ze||{}),lt=(u=>(u.NONE="NONE",u.HEADER_PRESENT="HEADER_PRESENT",u.QUERY_PRESENT="QUERY_PRESENT",u.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",u.HEAD_REQUEST="HEAD_REQUEST",u))(lt||{}),Bu=c({strategy:U(lt),paramName:g(a())}),dt=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(dt||{});var Dt=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Dt||{}),To=c({status:g(X()),body:g(O()),headers:g(w(a(),a()))}),Io=c({type:S("DELAY"),resumeDateTime:a(),requestIdToReply:g(a()),handlerId:g(a()),streamStepProgress:g(U(Dt))}),Eo=c({type:S("WEBHOOK"),requestId:a(),requestIdToReply:g(a()),response:To,handlerId:g(a()),streamStepProgress:g(U(Dt))}),Vu=D([Io,Eo]);var Zu=c({body:O(),rawBody:g(O()),headers:w(a(),a()),queryParams:w(a(),a())});function he(e){return e==null}o(he,"isNil");function mt(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}o(mt,"isEmpty");function Ct(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}o(Ct,"assertNotNullOrUndefined");var Pr=Re(require("crypto"),1);var Hu=128,Ae,Le,qu=o(e=>{!Ae||Ae.length<e?(Ae=Buffer.allocUnsafe(e*Hu),Pr.default.randomFillSync(Ae),Le=0):Le+e>Ae.length&&(Pr.default.randomFillSync(Ae),Le=0),Le+=e},"fillPool"),Wu=o(e=>(qu(e|=0),Ae.subarray(Le-e,Le)),"random"),Gu=o((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,i=Math.ceil(1.6*n*t/e.length);return(u=t)=>{let p="";for(;;){let d=r(i),y=i;for(;y--;)if(p+=e[d[y]&n]||"",p.length===u)return p}}},"customRandom"),So=o((e,t=21)=>Gu(e,t,Wu),"customAlphabet");var Ku="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",zo=21,JP=a().check(Pe(new RegExp(`^[0-9a-zA-Z]{${zo}}$`))),Ju=So(Ku,zo);var Ie=Te(be(e=>e instanceof Date?e.toISOString():e),a()),ne={id:a(),created:Ie,updated:Ie},V=o(e=>g(rt(e)),"Nullable");function br(e){return g(rt(U(e)))}o(br,"NullableEnum");var QP=Te(be(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),g(B())),Ut=o(e=>Te(be(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),g(N(e))),"OptionalArrayFromQuery");var rb=w(a(),O());var ft=(_=>(_.OPENAI="openai",_.OPENROUTER="openrouter",_.ANTHROPIC="anthropic",_.AZURE="azure",_.GOOGLE="google",_.ACTIVEPIECES="activepieces",_.CLOUDFLARE_GATEWAY="cloudflare-gateway",_.CUSTOM="custom",_.BEDROCK="bedrock",_.MISTRAL="mistral",_))(ft||{});var fb=a().check(Pe(/^#[0-9A-Fa-f]{6}$/));var yb=c({filename:a(),data:O(),type:S("file"),mimetype:g(a())});var Xu=Re(ko());var Tb=c({...ne,name:a(),permissions:N(a()),platformId:V(a()),type:a(),userCount:g(X())});var Oo=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Oo||{}),Tr=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Tr||{}),Ir=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Ir||{});var Er=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(Er||{});var $r=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))($r||{});var Yu=c({mode:U(Oo),value:O()}),Qu=c({auth:g(a()),fields:w(a(),Yu)}),ec=c({pieceName:a(),pieceVersion:a(),actionName:a(),predefinedInput:g(Qu)}),tc=c({type:S("PIECE"),toolName:a().check(ae(1)),pieceMetadata:ec}),rc=c({type:S("none")}),nc=c({type:S("access_token"),accessToken:a()}),oc=c({type:S("api_key"),apiKey:a(),apiKeyHeader:a()}),ic=c({type:S("headers"),headers:w(a(),a())}),ac=Ue("type",[rc,nc,oc,ic]),wo=c({type:S("FLOW"),toolName:a().check(ae(1)),externalFlowId:a(),flowDisplayName:g(a())}),Ro=c({type:S("MCP"),toolName:a().check(ae(1)),serverUrl:go(),protocol:U(Ir),auth:ac}),No=c({type:S("KNOWLEDGE_BASE"),toolName:a().check(ae(1)),sourceType:U(Tr),sourceId:a(),sourceName:a()}),sc=Ue("type",[tc,wo,Ro,No]),uc=c({displayName:a(),description:g(a()),type:U(Er)}),Do=c({type:S("MARKDOWN"),markdown:a()}),Fe={type:S("TOOL_CALL"),input:V(w(a(),O())),output:g(O()),toolName:a(),status:U($r),toolCallId:a(),startTime:a(),endTime:g(a())},Jb=c(Fe),Co=Ue("toolCallType",[c({...Fe,toolCallType:S("PIECE"),pieceName:a(),pieceVersion:a(),actionName:a()}),c({...Fe,toolCallType:S("FLOW"),displayName:a(),externalFlowId:a()}),c({...Fe,toolCallType:S("MCP"),displayName:a(),serverUrl:a()}),c({...Fe,toolCallType:S("KNOWLEDGE_BASE"),displayName:a(),sourceType:a()}),c({...Fe,toolCallType:S("UNKNOWN"),displayName:a()})]),cc=D([Do,Co]);var Sr=(r=>(r.IMAGE="image",r.TEXT="text",r))(Sr||{}),ve=c({apiKey:a()}),pc=ve,lc=c({apiKey:a(),apiKeyHash:a()}),dc=ve,mc=ve,fc=ve,gc=ve,yc=ve,hc=ve,vc=ve,Uo=c({accessKeyId:a().check(ae(1)),secretAccessKey:a().check(ae(1))}),xc=c({}),_c=c({}),Pc=c({}),bc=c({}),Tc=c({}),Ic=c({}),Mo=c({modelId:a(),modelName:a(),modelType:U(Sr)}),jo=c({apiKeyHeader:a(),baseUrl:a(),models:N(Mo),defaultHeaders:g(w(a(),a()))}),Lo=c({accountId:a(),gatewayId:a(),models:N(Mo),vertexProject:g(a()),vertexRegion:g(a())}),Fo=c({resourceName:a(),apiVersion:Te(be(e=>typeof e=="string"&&e.trim().length===0?void 0:e),g(a()))}),Bo=c({region:a().check(ae(1))}),Ec=D([pc,fc,gc,yc,hc,mc,dc,lc,Uo,vc]),Vo=D([jo,Lo,Fo,Bo,xc,Pc,bc,Tc,_c,Ic]),$c=c({id:a(),name:a(),type:U(Sr)}),Sc=c({id:a(),name:a(),provider:U(ft),config:Vo,enabledForChat:B()}),zc=c({provider:U(ft),config:Vo,auth:Ec,platformId:a()});var eT={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var Ac=c({base64Url:a(),fileName:a(),extension:g(a())}),kc=c({mimeType:a(),url:a(),fileName:g(a())}),zr=D([Ac,kc]);var Oc=D([c({type:S("file"),value:zr}),c({type:S("markdown"),value:a(),files:g(N(zr))})]),wc=c({sessionId:a(),message:a(),files:g(N(a()))});var Ho=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(Ho||{}),qo=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(qo||{}),Ar=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(Ar||{});var Rc=D([c({...ne,name:a(),externalId:a(),type:S("STATIC_DROPDOWN"),tableId:a(),projectId:a(),data:c({options:N(c({value:a()}))})}),c({...ne,name:a(),externalId:a(),type:D([S("TEXT"),S("NUMBER"),S("DATE")]),tableId:a(),projectId:a()})]),Nc=c({...ne,name:a(),folderId:V(a()),projectId:a(),externalId:a(),status:br(qo),trigger:br(Ho)}),Dc=c({...ne,tableId:a(),projectId:a(),cells:w(a(),c({updated:a(),created:a(),value:O(),fieldName:a()}))}),Cc=c({events:N(U(Ar)),webhookUrl:a(),flowId:a()}),Uc=c({fields:N(c({id:a(),name:a()})),rows:N(w(a(),a())),name:a()}),Mc=c({projectId:a(),limit:g(nt.number()),cursor:g(a()),name:g(a()),externalIds:Ut(a()),folderId:g(a()),folderIds:Ut(a())}),jc=c({records:N(N(c({fieldId:a(),value:Go()}))),tableId:a()}),Lc=c({cells:g(N(c({fieldId:a(),value:Go()}))),tableId:a(),agentUpdate:g(B())}),Wo=Ue("operator",[ke("eq"),ke("neq"),ke("gt"),ke("gte"),ke("lt"),ke("lte"),ke("co"),Zo("exists"),Zo("not_exists")]),Fc=c({tableId:a(),limit:g(nt.number()),cursor:g(a()),filters:Ut(Wo)});function Go(){return Te(be(e=>e==null?e:String(e)),rt(a()))}o(Go,"coerceToString");function ke(e){return c({fieldId:a(),operator:S(e),value:a()})}o(ke,"valueFilter");function Zo(e){return c({fieldId:a(),operator:S(e)})}o(Zo,"existenceFilter");var Bc=c({status:g(X()),body:g(O()),headers:g(w(a(),a()))}),Vc=c({...ne,deleted:V(Ie),ownerId:a(),displayName:a(),platformId:a(),externalId:V(a())});var Ko=c({name:a(),description:g(a()),type:a(),required:B()}),Zc=c({pieceName:a(),triggerName:a(),input:c({toolName:a(),toolDescription:a(),inputSchema:N(Ko),returnsResponse:B()})});var Jo="^[0-9]+\\.[0-9]+\\.[0-9]+$",xT=new RegExp(Jo),qc="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",_T=a().check(Pe(new RegExp(Jo))),PT=a().check(Pe(new RegExp(qc))),Wc=c({packageType:S("ARCHIVE"),pieceType:U(Me),pieceName:a(),pieceVersion:a(),archiveId:a(),platformId:a()}),Xo=c({packageType:S("REGISTRY"),pieceType:S("OFFICIAL"),pieceName:a(),pieceVersion:a()}),Yo=c({packageType:S("REGISTRY"),pieceType:S("CUSTOM"),pieceName:a(),pieceVersion:a(),platformId:a()}),bT=D([Xo,Yo]),TT=D([Wc,Xo,Yo]),Qo=(t=>(t.CRON_EXPRESSION="CRON_EXPRESSION",t))(Qo||{}),Gc=c({type:U(Qo),cronExpression:a(),timezone:a()}),IT=c({...ne,type:U(ze),projectId:a(),flowId:a(),triggerName:a(),schedule:V(Gc),flowVersionId:a(),pieceName:a(),pieceVersion:a(),deleted:V(a()),simulate:B()}),ei=(m=>(m.UNKNOWN="UNKNOWN",m.FLOW_RUN_LOG="FLOW_RUN_LOG",m.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",m.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",m.FLOW_STEP_FILE="FLOW_STEP_FILE",m.SAMPLE_DATA="SAMPLE_DATA",m.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",m.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",m.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",m.PROJECT_RELEASE="PROJECT_RELEASE",m.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",m.PLATFORM_ASSET="PLATFORM_ASSET",m.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",m.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",m.KNOWLEDGE_BASE="KNOWLEDGE_BASE",m.FLOW_BUNDLE="FLOW_BUNDLE",m))(ei||{}),ti=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(ti||{}),ri=(r=>(r.S3="S3",r.DB="DB",r))(ri||{}),ET=c({...ne,projectId:V(a()),platformId:V(a()),type:U(ei),compression:U(ti),data:g(O()),location:U(ri),size:V(X()),fileName:V(a()),s3Key:V(a()),metadata:V(w(a(),a()))}),ni=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(ni||{}),oi=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(oi||{}),$T=c({id:a(),email:a(),firstName:a(),status:U(oi),externalId:V(a()),platformId:V(a()),platformRole:U(ni),lastName:a(),created:Ie,updated:Ie,lastActiveDate:V(Ie),imageUrl:V(a())});var kr=c({...F.shape,...C(w(a(),O()),"OBJECT").shape});var ui=c({...F.shape,...C(a(),"COLOR").shape});var Or=D([ee,me,Nt,ge,te,fe,vr,ot,xr,ye,st,kr,ut,at,it,ui]),b={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"}},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"}},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 pe=c({displayName:a(),description:g(a())});var ci=c({username:a(),password:a()}),wr=c({...pe.shape,username:c({displayName:a(),description:g(a())}),password:c({displayName:a(),description:g(a())}),...C(ci,"BASIC_AUTH").shape});var Yc=w(a(),D([ee,me,ye,ge,te])),Rr=c({...pe.shape,props:Yc,...C(O(),"CUSTOM_AUTH").shape});var Oe=c({...pe.shape,...C(c({auth:a()}),"SECRET_TEXT").shape});var Qc=w(a(),D([ee,me,Oe,ye,ge,te,fe,Nt])),pi=c({...pe.shape,props:Qc,...C(O(),"OIDC").shape});var Nr=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Nr||{}),li=D([ee,Oe,te]),di=w(a(),li),ep=c({props:g(w(a(),li)),authUrl:a(),tokenUrl:a(),scope:N(a()),prompt:g(D([S("none"),S("consent"),S("login"),S("omit")])),pkce:g(B()),pkceMethod:g(D([S("plain"),S("S256")])),authorizationMethod:g(U(Nr)),grantType:g(D([U(pt),S(_r)])),extra:g(w(a(),a()))}),mi=c({access_token:a(),props:g(di),data:w(a(),tt())}),Dr=c({...pe.shape,...ep.shape,...C(mi,"OAUTH2").shape});var Be=D([wr,Rr,pi,Dr,Oe]),gt="Connection",Cr={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||gt}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||gt,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||gt}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||gt}},None(){}};var oE={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 tp=c({...F.shape,...C(O(),"CUSTOM").shape,code:a()});var rp=D([Or,Be]),Ur=w(a(),rp),IE=w(a(),Or);var fi=D([c({strategy:S("CRON"),cronExpression:a()}),c({strategy:S("NONE")})]);var gi="2",jt="0.82.0";var Mr=class{constructor(t,r,n,i,u,p,d,y,h=jt,_,$=""){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=i;this.categories=d;this.auth=y;this.minimumSupportedRelease=h;this.maximumSupportedRelease=_;this.description=$;this._actions={};this._triggers={};this.getContextInfo=o(()=>({version:gi}),"getContextInfo");(!np(h)||op(h,jt))&&(this.minimumSupportedRelease=jt),u.forEach(x=>this._actions[x.name]=x),p.forEach(x=>this._triggers[x.name]=x)}static{o(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:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},yi=o(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,i)=>n===i.findIndex(u=>u.type===r.type)))throw new Error("Auth properties must be unique by type");return new Mr(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function np(e){return/^\d+\.\d+\.\d+$/.test(e)}o(np,"isValidSimpleSemver");function op(e,t){let[r,n,i]=e.split(".").map(Number),[u,p,d]=t.split(".").map(Number);return r!==u?r<u:n!==p?n<p:i<d}o(op,"isSemverLessThan");var ip=g(w(a(),w(a(),a()))),hi=c({id:g(a()),name:a(),displayName:a(),logoUrl:a(),description:a(),authors:N(a()),platformId:g(a()),directoryPath:g(a()),auth:g(D([Be,N(Be)])),version:a(),categories:g(N(U(je))),minimumSupportedRelease:g(a()),maximumSupportedRelease:g(a()),i18n:ip}),ap=U(["human","ai","both"]),vi=c({description:g(a()),idempotent:g(B())}),xi=c({name:a(),displayName:a(),description:a(),props:Ur,requireAuth:B(),errorHandlingOptions:g(hr),outputSchema:g(wt()),audience:g(ap),aiMetadata:g(vi)}),_i=c({name:a(),displayName:a(),description:a(),props:Ur,errorHandlingOptions:g(hr),type:U(ze),sampleData:O(),handshakeConfiguration:g(wt()),renewConfiguration:g(fi),testStrategy:U(dt),outputSchema:g(wt()),aiMetadata:g(vi)}),sp=c({...hi.shape,actions:w(a(),xi),triggers:w(a(),_i)}),up=c({...hi.shape,actions:X(),triggers:X(),suggestedActions:g(N(_i)),suggestedTriggers:g(N(xi))}),Pi=c({projectUsage:X(),tags:g(N(a())),pieceType:U(Me),packageType:U(ct),platformId:g(a()),archiveId:g(a())}),I$=c({...sp.shape,...Pi.shape}),E$=c({...up.shape,...Pi.shape}),$$=c({name:a(),version:a()});var cp=Re(require("path")),pp=Re(require("fs/promises"));var Lt=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{o(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,i=new URLSearchParams;return r.searchParams.forEach((u,p)=>{i.append(p,u)}),{urlWithoutQueryParams:n,queryParams:i}}getHeaders(t){let r={Accept:"application/json"};if(t.authentication&&this.populateAuthentication(t.authentication,r),t.body)switch(t.headers?.["Content-Type"]){case"text/csv":r["Content-Type"]="text/csv";break;default:r["Content-Type"]="application/json";break}return t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var Ft=class{static{o(this,"DelegatingAuthenticationConverter")}constructor(t=new jr,r=new Lr){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},jr=class{static{o(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},Lr=class{static{o(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,i=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${i}`,r}};var Bt=class extends Error{constructor(r,n){let i=n.status||500,u=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:i,body:u},request:{body:r}}));this.requestBody=r;this.status=i,this.responseBody=u}static{o(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}}};var Vt=class extends Lt{static{o(this,"FetchHttpClient")}constructor(t="",r=new Ft){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:i}=this.getUrl(t),u=this.getHeaders(t),p=t.queryParams??{};for(let[j,Q]of Object.entries(p))i.append(j,Q);let d=i.toString(),y=d?`${n}?${d}`:n,h=t.responseType??"json",_=t.followRedirects??!0,$=t.retries??0,{body:x,extraHeaders:s,isStream:l}=lp(t.body,u),f=mp({...u,...s}),m=await dp(async()=>{let j=new AbortController,Q=t.timeout&&t.timeout>0?setTimeout(()=>j.abort(),t.timeout):void 0;try{let ie={method:t.method.toString(),headers:f,body:x,redirect:_?"follow":"manual",signal:j.signal};return l&&(ie.duplex="half"),r?.dispatcher!==void 0&&(ie.dispatcher=r.dispatcher),await fetch(y,ie)}finally{Q!==void 0&&clearTimeout(Q)}},$),v=_?300:400;if(m.status<200||m.status>=v){let j=await bi(m,h),Q=new Bt(t.body,{status:m.status,responseBody:j});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Q),Q}let P=await bi(m,h);return{status:m.status,headers:fp(m.headers),body:P}}};function lp(e,t){return yp(e)?{body:void 0,extraHeaders:{},isStream:!1}:gp(e)?{body:e,extraHeaders:e.getHeaders(),isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||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}}o(lp,"serializeBody");async function bi(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();case"json":default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}o(bi,"parseResponseBody");async function dp(e,t){let r;for(let n=0;n<=t;n++)try{let i=await e();if(i.status>=500&&n<t){await Ti(n);continue}return i}catch(i){if(r=i,n<t){await Ti(n);continue}throw i}throw r}o(dp,"sendWithRetries");function Ti(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}o(Ti,"backoff");function mp(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=Array.isArray(n)?n.join(", "):n);return t}o(mp,"normalizeHeaders");function fp(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}o(fp,"toHttpHeaders");function gp(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}o(gp,"isNodeFormData");function yp(e){return e==null}o(yp,"isNil");var oe=new Vt;var Ee=(p=>(p.GET="GET",p.POST="POST",p.PATCH="PATCH",p.PUT="PUT",p.DELETE="DELETE",p.HEAD="HEAD",p))(Ee||{});var nd=Re(require("fs")),As=Re(zs());var od={"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 id(e){let t=e.split(";")[0].trim().toLowerCase();return od[t]??""}o(id,"contentTypeToExtension");var ad=o(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),sd=o((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function ks({auth:e,baseUrl:t,authMapping:r,description:n,displayName:i,name:u,props:p,extraProps:d,authLocation:y="headers"}){return ce({audience:"human",name:u||"custom_api_call",displayName:i||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:b.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:o(async({auth:h})=>({url:b.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
|
|
3
|
-
i.e ${sd(t,h)}/resource or /resource`,required:!0,defaultValue:h?t(h):"",...p?.url??{}})}),"props")}),method:b.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Ee).map(h=>({label:h,value:h}))},...p?.method??{}}),headers:b.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...p?.headers??{}}),queryParams:b.Object({displayName:"Query Parameters",required:!0,...p?.queryParams??{}}),body_type:b.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:b.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:o(async({body_type:h})=>{if(!h)return{};let _=h,$={};switch(_){case"none":break;case"json":$.data=b.Json({displayName:"JSON Body",required:!0,...p?.body??{}});break;case"raw":$.data=b.LongText({displayName:"Raw Body",required:!0});break;case"form_data":$.data=b.Array({displayName:"Form Data",required:!0,properties:{fieldName:b.ShortText({displayName:"Field Name",required:!0}),fieldType:b.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:b.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:b.File({displayName:"File Field Value",required:!1})}});break}return $},"props")}),response_is_binary:b.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:b.Checkbox({displayName:"No Error on Failure",required:!1,...p?.failsafe??{}}),timeout:b.Number({displayName:"Timeout (in seconds)",required:!1,...p?.timeout??{}}),followRedirects:b.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...d},run:o(async h=>{let{method:_,url:$,headers:x,queryParams:s,body:l,body_type:f,failsafe:m,timeout:v,response_is_binary:P,followRedirects:j}=h.propsValue;Ct(_,"Method"),Ct($,"URL");let Q=he(r)?{}:await r(h.auth,h.propsValue),ie=$.url,Ge=ie.startsWith("http://")||ie.startsWith("https://")?ie:ad({baseUrl:t(h.auth),relativePath:ie}),Se={method:_,url:Ge,headers:{...x??{},...y==="headers"||!he(y)?Q:{}},queryParams:{...y==="queryParams"?Q:{},...s??{}},timeout:v?v*1e3:0,followRedirects:j};if(P&&(Se.responseType="arraybuffer"),l)if(f&&f!=="none"){let le=l.data;if(f==="form_data"){let Cs=le,xt=new As.default;for(let{fieldName:un,fieldType:cn,textFieldValue:pn,fileFieldValue:tr}of Cs)cn==="text"&&!mt(pn)?xt.append(un,pn):cn==="file"&&!mt(tr)&&xt.append(un,tr.data,{filename:tr?.filename});Se.body=xt,Se.headers={...Se.headers,...xt.getHeaders()}}else Se.body=le}else f||(Se.body=l);try{let le=await oe.sendRequest(Se);return await ud(h.files,le.body,le.status,le.headers,P)}catch(le){if(m)return le.errorMessage();throw le}},"run")})}o(ks,"createCustomApiCallAction");var ud=o(async(e,t,r,n,i)=>{let u;if(i&&cd(t)){let p=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],d=id(p??"")||"txt",y;t instanceof ArrayBuffer?y=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?y=t:y=Buffer.from(t),u=await e.write({fileName:`output.${d}`,data:y})}else u=t;return{status:r,headers:n,body:u}},"handleBinaryResponse"),cd=o(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var pd={agenda:"My Meeting",default_password:!1,duration:30,pre_schedule:!1,settings:{allow_multiple_devices:!0,approval_type:2,audio:"telephony",calendar_type:1,close_registration:!1,email_notification:!0,host_video:!0,join_before_host:!1,meeting_authentication:!0,mute_upon_entry:!1,participant_video:!1,private_meeting:!1,registrants_confirmation_email:!0,registrants_email_notification:!0,registration_type:1,show_share_button:!0,host_save_video_order:!0},timezone:"UTC",type:2},ld=o(()=>ce({auth:re,name:"zoom_create_meeting",displayName:"Create Zoom Meeting",description:"Create a new Zoom Meeting",audience:"both",aiMetadata:{description:"Schedules a new Zoom meeting on the authenticated user's account, returning the meeting ID and join URL. Use to set up a video call; only the topic is required, with optional start time, duration, password, and audio/recording settings. Each call creates a distinct meeting, so it is not idempotent.",idempotent:!1},props:{topic:b.ShortText({displayName:"Meeting's topic",description:"The meeting's topic",required:!0}),start_time:b.ShortText({displayName:"Start Time",description:"Meeting start date-time",required:!1}),duration:b.Number({displayName:"Duration (in Minutes)",description:"Duration of the meeting",required:!1}),auto_recording:b.StaticDropdown({displayName:"Auto Recording",required:!1,options:{disabled:!1,options:[{label:"Local",value:"local"},{label:"Cloud",value:"cloud"},{label:"None",value:"none"}]}}),audio:b.StaticDropdown({displayName:"Audio",required:!1,options:{disabled:!1,options:[{label:"Both telephony and VoIP",value:"both"},{label:"Telephony only",value:"telephony"},{label:"VoIP only",value:"voip"},{label:"Third party audio conference",value:"thirdParty"}]}}),agenda:b.LongText({displayName:"Agenda",description:"The meeting's agenda",required:!1}),password:b.ShortText({displayName:"Password",description:"The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.",required:!1}),pre_schedule:b.Checkbox({displayName:"Pre Schedule",description:"Whether the prescheduled meeting was created via the GSuite app.",required:!1}),schedule_for:b.ShortText({displayName:"Schedule for",description:"The email address or user ID of the user to schedule a meeting for.",required:!1}),join_url:b.LongText({displayName:"Join URL",description:"URL for participants to join the meeting.",required:!1})},async run(e){let t={...pd,...e.propsValue};e.propsValue.auto_recording&&(t.settings.auto_recording=e.propsValue.auto_recording),e.propsValue.audio&&(t.settings.audio=e.propsValue.audio),delete t.auth;let r={method:"POST",url:"https://api.zoom.us/v2/users/me/meetings",body:t,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token},queryParams:{}},n=await oe.sendRequest(r);return n.status===201?n.body:n}}),"action"),Os=ld();var er=b.Dropdown({displayName:"Meeting",description:"Select a meeting from your Zoom account.",required:!0,auth:re,refreshers:["auth"],options:o(async({auth:e})=>{if(!e)return{disabled:!0,placeholder:"Connect your Zoom account first.",options:[]};let t=e.access_token,r=[],n="";try{do{let i={type:"scheduled",page_size:"300"};n&&(i.next_page_token=n);let u=await oe.sendRequest({method:"GET",url:"https://api.zoom.us/v2/users/me/meetings",authentication:{type:"BEARER_TOKEN",token:t},queryParams:i});r.push(...u.body.meetings.map(p=>({label:p.topic||`Meeting ${p.id}`,value:String(p.id)}))),n=u.body.next_page_token}while(n)}catch{return{disabled:!0,placeholder:"Could not load meetings. Ensure your Zoom app has the meeting:read:list_meetings scope.",options:[]}}return{options:r}},"options")}),ws=o(()=>({meeting_id:b.ShortText({displayName:"Meeting ID",description:"The meeting ID.",required:!0}),first_name:b.ShortText({displayName:"First name",description:"The registrant's first name.",required:!0}),last_name:b.ShortText({displayName:"Last name",description:"The registrant's last name.",required:!1}),email:b.ShortText({displayName:"Email",description:"The registrant's email address.",required:!0}),address:b.ShortText({displayName:"Address",description:"The registrant's address",required:!1}),city:b.ShortText({displayName:"City",description:"The registrant's city",required:!1}),state:b.ShortText({displayName:"State",description:"The registrant's state or province.",required:!1}),zip:b.ShortText({displayName:"Zip",description:"The registrant's zip or postal code.",required:!1}),country:b.ShortText({displayName:"Country",description:"The registrant's two-letter country code.",required:!1}),phone:b.ShortText({displayName:"Phone",description:"The registrant's phone number.",required:!1}),comments:b.LongText({displayName:"Comments",description:"The registrant's questions and comments.",required:!1}),custom_questions:b.Object({displayName:"Custom questions",description:"",required:!1}),industry:b.ShortText({displayName:"Industry",description:"The registrant's industry.",required:!1}),job_title:b.ShortText({displayName:"Job title",description:"The registrant's job title.",required:!1}),no_of_employees:b.StaticDropdown({displayName:"No of employees",description:"The registrant's number of employees.",required:!1,options:{disabled:!1,options:[{label:"1-20",value:"1-20"},{label:"21-50",value:"21-50"},{label:"51-100",value:"51-100"},{label:"101-500",value:"101-500"},{label:"500-1,000",value:"500-1,000"},{label:"1,001-5,000",value:"1,001-5,000"},{label:"5,001-10,000",value:"5,001-10,000"},{label:"More than 10,000",value:"More than 10,000"}]}}),org:b.ShortText({displayName:"Organization",description:"The registrant's organization.",required:!1}),purchasing_time_frame:b.StaticDropdown({displayName:"Purchasing time frame",description:"The registrant's purchasing time frame.",required:!1,options:{disabled:!1,options:[{label:"Within a month",value:"Within a month"},{label:"1-3 months",value:"1-3 months"},{label:"4-6 months",value:"4-6 months"},{label:"More than 6 months",value:"More than 6 months"},{label:"No timeframe",value:"No timeframe"}]}}),role_in_purchase_process:b.StaticDropdown({displayName:"Role in purchase process",description:"The registrant's role in the purchase process.",required:!1,options:{disabled:!1,options:[{label:"Decision Maker",value:"Decision Maker"},{label:"Evaluator/Recommender",value:"Evaluator/Recommender"},{label:"Influencer",value:"Influencer"},{label:"Not involved",value:"Not involved"}]}})}),"getRegistarantProps");var Rs=ce({auth:re,name:"zoom_create_meeting_registrant",displayName:"Create Zoom Meeting Registrant",description:"Create and submit a user's registration to a meeting.",audience:"both",aiMetadata:{description:"Registers an attendee for an existing Zoom meeting identified by its meeting ID, capturing their name, email, and optional profile/custom-question fields. Use to add a participant to a meeting that has registration enabled. Each call submits a new registration, so it is not idempotent.",idempotent:!1},props:ws(),async run(e){let t={first_name:e.propsValue.first_name,last_name:e.propsValue.last_name,email:e.propsValue.email,address:e.propsValue.address,city:e.propsValue.city,state:e.propsValue.state,zip:e.propsValue.zip,country:e.propsValue.country,phone:e.propsValue.phone,comments:e.propsValue.comments,industry:e.propsValue.industry,job_title:e.propsValue.job_title,no_of_employees:e.propsValue.no_of_employees,org:e.propsValue.org,purchasing_time_frame:e.propsValue.purchasing_time_frame,role_in_purchase_process:e.propsValue.role_in_purchase_process};e.propsValue.custom_questions&&Object.keys(e.propsValue.custom_questions).length>0&&(t.custom_questions=Object.entries(e.propsValue.custom_questions).map(([i,u])=>({title:i,value:u})));let r={method:"POST",url:`https://api.zoom.us/v2/meetings/${e.propsValue.meeting_id}/registrants`,body:t,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token},queryParams:{}},n=await oe.sendRequest(r);return n.status===201?n.body:n}});var Ns=ce({auth:re,name:"zoom_find_meeting",displayName:"Find Zoom Meeting",description:"Retrieve the details of an existing meeting or webinar.",audience:"both",aiMetadata:{description:"Fetches the full details of an existing Zoom meeting or webinar by its meeting ID. Use to look up a meeting before acting on it; optionally target a specific occurrence of a recurring meeting or include all previous occurrences. Read-only and idempotent.",idempotent:!0},props:{meeting_id:er,occurrence_id:b.ShortText({displayName:"Occurrence ID",description:"Meeting Occurrence ID. Provide this field to view meeting details of a particular occurrence of the recurring meeting.",required:!1}),show_previous_occurrences:b.Checkbox({displayName:"Show Previous Occurrences",description:"Set to true if you would like to view meeting details of all previous occurrences of a recurring meeting.",required:!1,defaultValue:!1})},async run(e){let t=e.propsValue.meeting_id,r={};return e.propsValue.occurrence_id&&(r.occurrence_id=e.propsValue.occurrence_id),e.propsValue.show_previous_occurrences&&(r.show_previous_occurrences="true"),(await oe.sendRequest({method:"GET",url:`https://api.zoom.us/v2/meetings/${t}`,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token},queryParams:r})).body}});var Ds=ce({auth:re,name:"zoom_update_meeting",displayName:"Update Zoom Meeting",description:"Update the details of an existing meeting.",audience:"both",aiMetadata:{description:"Modifies an existing Zoom meeting identified by its meeting ID, applying only the fields you supply (topic, start time, duration, timezone, password, and audio/video/recording/waiting-room settings). Use to reschedule or reconfigure a meeting. Repeating the call with the same values produces the same end state, so it is idempotent.",idempotent:!0},props:{meeting_id:er,topic:b.ShortText({displayName:"Meeting's topic",description:"The meeting's topic",required:!1}),start_time:b.ShortText({displayName:"Start Time",description:"Meeting start date-time (ISO 8601 format, e.g., 2023-05-01T12:00:00Z)",required:!1}),duration:b.Number({displayName:"Duration (in Minutes)",description:"Duration of the meeting",required:!1}),timezone:b.ShortText({displayName:"Timezone",description:"Timezone for the meeting (e.g., UTC, America/New_York)",required:!1}),auto_recording:b.StaticDropdown({displayName:"Auto Recording",required:!1,options:{disabled:!1,options:[{label:"Local",value:"local"},{label:"Cloud",value:"cloud"},{label:"None",value:"none"}]}}),audio:b.StaticDropdown({displayName:"Audio",required:!1,options:{disabled:!1,options:[{label:"Both telephony and VoIP",value:"both"},{label:"Telephony only",value:"telephony"},{label:"VoIP only",value:"voip"},{label:"Third party audio conference",value:"thirdParty"}]}}),agenda:b.LongText({displayName:"Agenda",description:"The meeting's agenda",required:!1}),password:b.ShortText({displayName:"Password",description:"The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.",required:!1}),host_video:b.Checkbox({displayName:"Host Video",description:"Whether to start video when the host joins the meeting.",required:!1}),participant_video:b.Checkbox({displayName:"Participant Video",description:"Whether to start video when participants join the meeting.",required:!1}),join_before_host:b.Checkbox({displayName:"Join Before Host",description:"Whether participants can join the meeting before the host starts the meeting.",required:!1}),mute_upon_entry:b.Checkbox({displayName:"Mute Upon Entry",description:"Whether to mute participants upon entry.",required:!1}),waiting_room:b.Checkbox({displayName:"Waiting Room",description:"Whether to enable waiting room.",required:!1})},async run(e){let t=e.propsValue.meeting_id,r={};e.propsValue.topic&&(r.topic=e.propsValue.topic),e.propsValue.start_time&&(r.start_time=e.propsValue.start_time),e.propsValue.duration&&(r.duration=e.propsValue.duration),e.propsValue.timezone&&(r.timezone=e.propsValue.timezone),e.propsValue.agenda&&(r.agenda=e.propsValue.agenda),e.propsValue.password&&(r.password=e.propsValue.password);let n={},i=!1;return e.propsValue.auto_recording&&(n.auto_recording=e.propsValue.auto_recording,i=!0),e.propsValue.audio&&(n.audio=e.propsValue.audio,i=!0),e.propsValue.host_video!==void 0&&(n.host_video=e.propsValue.host_video,i=!0),e.propsValue.participant_video!==void 0&&(n.participant_video=e.propsValue.participant_video,i=!0),e.propsValue.join_before_host!==void 0&&(n.join_before_host=e.propsValue.join_before_host,i=!0),e.propsValue.mute_upon_entry!==void 0&&(n.mute_upon_entry=e.propsValue.mute_upon_entry,i=!0),e.propsValue.waiting_room!==void 0&&(n.waiting_room=e.propsValue.waiting_room,i=!0),i&&(r.settings=n),await oe.sendRequest({method:"PATCH",url:`https://api.zoom.us/v2/meetings/${t}`,body:r,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}}),{success:!0,message:"Meeting updated successfully"}}});var re=Cr.OAuth2({description:`
|
|
3
|
+
i.e ${sd(t,h)}/resource or /resource`,required:!0,defaultValue:h?t(h):"",...p?.url??{}})}),"props")}),method:b.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Ee).map(h=>({label:h,value:h}))},...p?.method??{}}),headers:b.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...p?.headers??{}}),queryParams:b.Object({displayName:"Query Parameters",required:!0,...p?.queryParams??{}}),body_type:b.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:b.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:o(async({body_type:h})=>{if(!h)return{};let _=h,$={};switch(_){case"none":break;case"json":$.data=b.Json({displayName:"JSON Body",required:!0,...p?.body??{}});break;case"raw":$.data=b.LongText({displayName:"Raw Body",required:!0});break;case"form_data":$.data=b.Array({displayName:"Form Data",required:!0,properties:{fieldName:b.ShortText({displayName:"Field Name",required:!0}),fieldType:b.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:b.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:b.File({displayName:"File Field Value",required:!1})}});break}return $},"props")}),response_is_binary:b.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:b.Checkbox({displayName:"No Error on Failure",required:!1,...p?.failsafe??{}}),timeout:b.Number({displayName:"Timeout (in seconds)",required:!1,...p?.timeout??{}}),followRedirects:b.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...d},run:o(async h=>{let{method:_,url:$,headers:x,queryParams:s,body:l,body_type:f,failsafe:m,timeout:v,response_is_binary:P,followRedirects:j}=h.propsValue;Ct(_,"Method"),Ct($,"URL");let Q=he(r)?{}:await r(h.auth,h.propsValue),ie=$.url,Ge=ie.startsWith("http://")||ie.startsWith("https://")?ie:ad({baseUrl:t(h.auth),relativePath:ie}),Se={method:_,url:Ge,headers:{...x??{},...y==="headers"||!he(y)?Q:{}},queryParams:{...y==="queryParams"?Q:{},...s??{}},timeout:v?v*1e3:0,followRedirects:j};if(P&&(Se.responseType="arraybuffer"),l)if(f&&f!=="none"){let le=l.data;if(f==="form_data"){let Cs=le,xt=new As.default;for(let{fieldName:un,fieldType:cn,textFieldValue:pn,fileFieldValue:tr}of Cs)cn==="text"&&!mt(pn)?xt.append(un,pn):cn==="file"&&!mt(tr)&&xt.append(un,tr.data,{filename:tr?.filename});Se.body=xt,Se.headers={...Se.headers,...xt.getHeaders()}}else Se.body=le}else f||(Se.body=l);try{let le=await oe.sendRequest(Se);return await ud(h.files,le.body,le.status,le.headers,P)}catch(le){if(m)return le.errorMessage();throw le}},"run")})}o(ks,"createCustomApiCallAction");var ud=o(async(e,t,r,n,i)=>{let u;if(i&&cd(t)){let p=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],d=id(p??"")||"txt",y;t instanceof ArrayBuffer?y=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?y=t:y=Buffer.from(t),u=await e.write({fileName:`output.${d}`,data:y})}else u=t;return{status:r,headers:n,body:u}},"handleBinaryResponse"),cd=o(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var pd={agenda:"My Meeting",default_password:!1,duration:30,pre_schedule:!1,settings:{allow_multiple_devices:!0,approval_type:2,audio:"telephony",calendar_type:1,close_registration:!1,email_notification:!0,host_video:!0,join_before_host:!1,meeting_authentication:!0,mute_upon_entry:!1,participant_video:!1,private_meeting:!1,registrants_confirmation_email:!0,registrants_email_notification:!0,registration_type:1,show_share_button:!0,host_save_video_order:!0},timezone:"UTC",type:2},ld=o(()=>ce({auth:re,name:"zoom_create_meeting",displayName:"Create Zoom Meeting",description:"Create a new Zoom Meeting",audience:"both",aiMetadata:{description:"Schedules a new Zoom meeting on the authenticated user's account, returning the meeting ID and join URL. Use to set up a video call; only the topic is required, with optional start time, duration, password, and audio/recording settings. Each call creates a distinct meeting, so it is not idempotent.",idempotent:!1},props:{topic:b.ShortText({displayName:"Meeting's topic",description:"The meeting's topic",required:!0}),start_time:b.ShortText({displayName:"Start Time",description:"Meeting start date-time",required:!1}),duration:b.Number({displayName:"Duration (in Minutes)",description:"Duration of the meeting",required:!1}),auto_recording:b.StaticDropdown({displayName:"Auto Recording",required:!1,options:{disabled:!1,options:[{label:"Local",value:"local"},{label:"Cloud",value:"cloud"},{label:"None",value:"none"}]}}),audio:b.StaticDropdown({displayName:"Audio",required:!1,options:{disabled:!1,options:[{label:"Both telephony and VoIP",value:"both"},{label:"Telephony only",value:"telephony"},{label:"VoIP only",value:"voip"},{label:"Third party audio conference",value:"thirdParty"}]}}),agenda:b.LongText({displayName:"Agenda",description:"The meeting's agenda",required:!1}),password:b.ShortText({displayName:"Password",description:"The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.",required:!1}),pre_schedule:b.Checkbox({displayName:"Pre Schedule",description:"Whether the prescheduled meeting was created via the GSuite app.",required:!1}),schedule_for:b.ShortText({displayName:"Schedule for",description:"The email address or user ID of the user to schedule a meeting for.",required:!1}),join_url:b.LongText({displayName:"Join URL",description:"URL for participants to join the meeting.",required:!1})},async run(e){let t={...pd,...e.propsValue};e.propsValue.auto_recording&&(t.settings.auto_recording=e.propsValue.auto_recording),e.propsValue.audio&&(t.settings.audio=e.propsValue.audio),delete t.auth;let r={method:"POST",url:"https://api.zoom.us/v2/users/me/meetings",body:t,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token},queryParams:{}},n=await oe.sendRequest(r);return n.status===201?n.body:n}}),"action"),Os=ld();var er=b.Dropdown({displayName:"Meeting",description:"Select a meeting from your Zoom account.",required:!0,auth:re,refreshers:["auth"],options:o(async({auth:e})=>{if(!e)return{disabled:!0,placeholder:"Connect your Zoom account first.",options:[]};let t=e.access_token,r=[],n="";try{do{let i={type:"scheduled",page_size:"300"};n&&(i.next_page_token=n);let u=await oe.sendRequest({method:"GET",url:"https://api.zoom.us/v2/users/me/meetings",authentication:{type:"BEARER_TOKEN",token:t},queryParams:i});r.push(...u.body.meetings.map(p=>({label:p.topic||`Meeting ${p.id}`,value:String(p.id)}))),n=u.body.next_page_token}while(n)}catch{return{disabled:!0,placeholder:"Could not load meetings. Ensure your Zoom app has the meeting:read:list_meetings scope.",options:[]}}return{options:r}},"options")}),ws=o(()=>({meeting_id:b.ShortText({displayName:"Meeting ID",description:"The meeting ID.",required:!0}),first_name:b.ShortText({displayName:"First name",description:"The registrant's first name.",required:!0}),last_name:b.ShortText({displayName:"Last name",description:"The registrant's last name.",required:!1}),email:b.ShortText({displayName:"Email",description:"The registrant's email address.",required:!0}),address:b.ShortText({displayName:"Address",description:"The registrant's address",required:!1}),city:b.ShortText({displayName:"City",description:"The registrant's city",required:!1}),state:b.ShortText({displayName:"State",description:"The registrant's state or province.",required:!1}),zip:b.ShortText({displayName:"Zip",description:"The registrant's zip or postal code.",required:!1}),country:b.ShortText({displayName:"Country",description:"The registrant's two-letter country code.",required:!1}),phone:b.ShortText({displayName:"Phone",description:"The registrant's phone number.",required:!1}),comments:b.LongText({displayName:"Comments",description:"The registrant's questions and comments.",required:!1}),custom_questions:b.Object({displayName:"Custom questions",description:"",required:!1}),industry:b.ShortText({displayName:"Industry",description:"The registrant's industry.",required:!1}),job_title:b.ShortText({displayName:"Job title",description:"The registrant's job title.",required:!1}),no_of_employees:b.StaticDropdown({displayName:"No of employees",description:"The registrant's number of employees.",required:!1,options:{disabled:!1,options:[{label:"1-20",value:"1-20"},{label:"21-50",value:"21-50"},{label:"51-100",value:"51-100"},{label:"101-500",value:"101-500"},{label:"500-1,000",value:"500-1,000"},{label:"1,001-5,000",value:"1,001-5,000"},{label:"5,001-10,000",value:"5,001-10,000"},{label:"More than 10,000",value:"More than 10,000"}]}}),org:b.ShortText({displayName:"Organization",description:"The registrant's organization.",required:!1}),purchasing_time_frame:b.StaticDropdown({displayName:"Purchasing time frame",description:"The registrant's purchasing time frame.",required:!1,options:{disabled:!1,options:[{label:"Within a month",value:"Within a month"},{label:"1-3 months",value:"1-3 months"},{label:"4-6 months",value:"4-6 months"},{label:"More than 6 months",value:"More than 6 months"},{label:"No timeframe",value:"No timeframe"}]}}),role_in_purchase_process:b.StaticDropdown({displayName:"Role in purchase process",description:"The registrant's role in the purchase process.",required:!1,options:{disabled:!1,options:[{label:"Decision Maker",value:"Decision Maker"},{label:"Evaluator/Recommender",value:"Evaluator/Recommender"},{label:"Influencer",value:"Influencer"},{label:"Not involved",value:"Not involved"}]}})}),"getRegistarantProps");var Rs=ce({auth:re,name:"zoom_create_meeting_registrant",displayName:"Create Zoom Meeting Registrant",description:"Create and submit a user's registration to a meeting.",audience:"both",aiMetadata:{description:"Registers an attendee for an existing Zoom meeting identified by its meeting ID, capturing their name, email, and optional profile/custom-question fields. Use to add a participant to a meeting that has registration enabled. Each call submits a new registration, so it is not idempotent.",idempotent:!1},props:ws(),async run(e){let t={first_name:e.propsValue.first_name,last_name:e.propsValue.last_name,email:e.propsValue.email,address:e.propsValue.address,city:e.propsValue.city,state:e.propsValue.state,zip:e.propsValue.zip,country:e.propsValue.country,phone:e.propsValue.phone,comments:e.propsValue.comments,industry:e.propsValue.industry,job_title:e.propsValue.job_title,no_of_employees:e.propsValue.no_of_employees,org:e.propsValue.org,purchasing_time_frame:e.propsValue.purchasing_time_frame,role_in_purchase_process:e.propsValue.role_in_purchase_process};e.propsValue.custom_questions&&Object.keys(e.propsValue.custom_questions).length>0&&(t.custom_questions=Object.entries(e.propsValue.custom_questions).map(([i,u])=>({title:i,value:u})));let r={method:"POST",url:`https://api.zoom.us/v2/meetings/${e.propsValue.meeting_id}/registrants`,body:t,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token},queryParams:{}},n=await oe.sendRequest(r);return n.status===201?n.body:n}});var Ns=ce({auth:re,name:"zoom_find_meeting",displayName:"Find Zoom Meeting",description:"Retrieve the details of an existing meeting.",audience:"both",aiMetadata:{description:"Fetches the full details of an existing Zoom meeting by its meeting ID. Use to look up a meeting before acting on it; optionally target a specific occurrence of a recurring meeting or include all previous occurrences. Read-only and idempotent.",idempotent:!0},props:{meeting_id:er,occurrence_id:b.ShortText({displayName:"Occurrence ID",description:"Meeting Occurrence ID. Provide this field to view meeting details of a particular occurrence of the recurring meeting.",required:!1}),show_previous_occurrences:b.Checkbox({displayName:"Show Previous Occurrences",description:"Set to true if you would like to view meeting details of all previous occurrences of a recurring meeting.",required:!1,defaultValue:!1})},async run(e){let t=e.propsValue.meeting_id,r={};return e.propsValue.occurrence_id&&(r.occurrence_id=e.propsValue.occurrence_id),e.propsValue.show_previous_occurrences&&(r.show_previous_occurrences="true"),(await oe.sendRequest({method:"GET",url:`https://api.zoom.us/v2/meetings/${t}`,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token},queryParams:r})).body}});var Ds=ce({auth:re,name:"zoom_update_meeting",displayName:"Update Zoom Meeting",description:"Update the details of an existing meeting.",audience:"both",aiMetadata:{description:"Modifies an existing Zoom meeting identified by its meeting ID, applying only the fields you supply (topic, start time, duration, timezone, password, and audio/video/recording/waiting-room settings). Use to reschedule or reconfigure a meeting. Repeating the call with the same values produces the same end state, so it is idempotent.",idempotent:!0},props:{meeting_id:er,topic:b.ShortText({displayName:"Meeting's topic",description:"The meeting's topic",required:!1}),start_time:b.ShortText({displayName:"Start Time",description:"Meeting start date-time (ISO 8601 format, e.g., 2023-05-01T12:00:00Z)",required:!1}),duration:b.Number({displayName:"Duration (in Minutes)",description:"Duration of the meeting",required:!1}),timezone:b.ShortText({displayName:"Timezone",description:"Timezone for the meeting (e.g., UTC, America/New_York)",required:!1}),auto_recording:b.StaticDropdown({displayName:"Auto Recording",required:!1,options:{disabled:!1,options:[{label:"Local",value:"local"},{label:"Cloud",value:"cloud"},{label:"None",value:"none"}]}}),audio:b.StaticDropdown({displayName:"Audio",required:!1,options:{disabled:!1,options:[{label:"Both telephony and VoIP",value:"both"},{label:"Telephony only",value:"telephony"},{label:"VoIP only",value:"voip"},{label:"Third party audio conference",value:"thirdParty"}]}}),agenda:b.LongText({displayName:"Agenda",description:"The meeting's agenda",required:!1}),password:b.ShortText({displayName:"Password",description:"The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.",required:!1}),host_video:b.Checkbox({displayName:"Host Video",description:"Whether to start video when the host joins the meeting.",required:!1}),participant_video:b.Checkbox({displayName:"Participant Video",description:"Whether to start video when participants join the meeting.",required:!1}),join_before_host:b.Checkbox({displayName:"Join Before Host",description:"Whether participants can join the meeting before the host starts the meeting.",required:!1}),mute_upon_entry:b.Checkbox({displayName:"Mute Upon Entry",description:"Whether to mute participants upon entry.",required:!1}),waiting_room:b.Checkbox({displayName:"Waiting Room",description:"Whether to enable waiting room.",required:!1})},async run(e){let t=e.propsValue.meeting_id,r={};e.propsValue.topic&&(r.topic=e.propsValue.topic),e.propsValue.start_time&&(r.start_time=e.propsValue.start_time),e.propsValue.duration&&(r.duration=e.propsValue.duration),e.propsValue.timezone&&(r.timezone=e.propsValue.timezone),e.propsValue.agenda&&(r.agenda=e.propsValue.agenda),e.propsValue.password&&(r.password=e.propsValue.password);let n={},i=!1;return e.propsValue.auto_recording&&(n.auto_recording=e.propsValue.auto_recording,i=!0),e.propsValue.audio&&(n.audio=e.propsValue.audio,i=!0),e.propsValue.host_video!==void 0&&(n.host_video=e.propsValue.host_video,i=!0),e.propsValue.participant_video!==void 0&&(n.participant_video=e.propsValue.participant_video,i=!0),e.propsValue.join_before_host!==void 0&&(n.join_before_host=e.propsValue.join_before_host,i=!0),e.propsValue.mute_upon_entry!==void 0&&(n.mute_upon_entry=e.propsValue.mute_upon_entry,i=!0),e.propsValue.waiting_room!==void 0&&(n.waiting_room=e.propsValue.waiting_room,i=!0),i&&(r.settings=n),await oe.sendRequest({method:"PATCH",url:`https://api.zoom.us/v2/meetings/${t}`,body:r,authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}}),{success:!0,message:"Meeting updated successfully"}}});var re=Cr.OAuth2({description:`
|
|
4
4
|
1. Go to [marketplace.zoom.us](https://marketplace.zoom.us/) and log in to your account.
|
|
5
5
|
2. In the upper-right corner, click **Develop** then **Build App**.
|
|
6
6
|
3. Select **General App**.
|
|
7
7
|
4. Copy the Client ID and Client Secret.Add Redirect URL and press continue.
|
|
8
|
-
5. Go to **Scopes** from left side bar and add **meeting:write:meeting**, **meeting:read:meeting**, **meeting:read:list_meetings**, **meeting:update:meeting**,
|
|
8
|
+
5. Go to **Scopes** from left side bar and add **meeting:write:meeting**, **meeting:read:meeting**, **meeting:read:list_meetings**, **meeting:update:meeting**, and **meeting:write:registrant** as scopes.`,authUrl:"https://zoom.us/oauth/authorize",tokenUrl:"https://zoom.us/oauth/token",required:!0,scope:[]}),dd=yi({displayName:"Zoom",description:"Video conferencing, web conferencing, webinars, screen sharing",minimumSupportedRelease:"0.30.0",logoUrl:"https://cdn.activepieces.com/pieces/zoom.png",categories:["COMMUNICATION"],actions:[Os,Rs,Ns,Ds,ks({baseUrl:o(()=>"https://api.zoom.us/v2","baseUrl"),auth:re,authMapping:o(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],auth:re,authors:["kanarelo","kishanprmr","MoShizzle","khaledmashaly","abuaboud","murex971"],triggers:[]});0&&(module.exports={zoom,zoomAuth});
|
|
9
9
|
/*! Bundled license information:
|
|
10
10
|
|
|
11
11
|
mime-types/index.js:
|