@activepieces/piece-fragment 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -13
- package/src/index.js +13 -33
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-task.d.ts +0 -9
- package/src/lib/actions/create-task.d.ts.map +0 -1
- package/src/lib/actions/create-task.js +0 -72
- package/src/lib/actions/create-task.js.map +0 -1
- package/src/lib/actions/custom-api-call.d.ts +0 -13
- package/src/lib/actions/custom-api-call.d.ts.map +0 -1
- package/src/lib/actions/custom-api-call.js +0 -20
- package/src/lib/actions/custom-api-call.js.map +0 -1
- package/src/lib/actions/delete-task.d.ts +0 -4
- package/src/lib/actions/delete-task.d.ts.map +0 -1
- package/src/lib/actions/delete-task.js +0 -30
- package/src/lib/actions/delete-task.js.map +0 -1
- package/src/lib/actions/get-task.d.ts +0 -4
- package/src/lib/actions/get-task.d.ts.map +0 -1
- package/src/lib/actions/get-task.js +0 -30
- package/src/lib/actions/get-task.js.map +0 -1
- package/src/lib/actions/list-tasks.d.ts +0 -6
- package/src/lib/actions/list-tasks.d.ts.map +0 -1
- package/src/lib/actions/list-tasks.js +0 -58
- package/src/lib/actions/list-tasks.js.map +0 -1
- package/src/lib/actions/update-task.d.ts +0 -11
- package/src/lib/actions/update-task.d.ts.map +0 -1
- package/src/lib/actions/update-task.js +0 -96
- package/src/lib/actions/update-task.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -2
- package/src/lib/common/auth.d.ts.map +0 -1
- package/src/lib/common/auth.js +0 -37
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -22
- package/src/lib/common/client.d.ts.map +0 -1
- package/src/lib/common/client.js +0 -32
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -3
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -6
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/new-task.d.ts +0 -3
- package/src/lib/triggers/new-task.d.ts.map +0 -1
- package/src/lib/triggers/new-task.js +0 -134
- package/src/lib/triggers/new-task.js.map +0 -1
- package/src/lib/triggers/task-updated.d.ts +0 -3
- package/src/lib/triggers/task-updated.d.ts.map +0 -1
- package/src/lib/triggers/task-updated.js +0 -134
- package/src/lib/triggers/task-updated.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-fragment",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"tslib": "2.3.0"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc -p tsconfig.lib.json && cp package.json dist/",
|
|
16
|
-
"lint": "eslint 'src/**/*.ts'"
|
|
17
|
-
}
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/index.js",
|
|
9
|
+
"package.json",
|
|
10
|
+
"src/i18n"
|
|
11
|
+
]
|
|
18
12
|
}
|
package/src/index.js
CHANGED
|
@@ -1,33 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fragment = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.fragment = (0, pieces_framework_1.createPiece)({
|
|
15
|
-
displayName: 'Fragment',
|
|
16
|
-
auth: common_1.fragmentAuth,
|
|
17
|
-
minimumSupportedRelease: '0.36.1',
|
|
18
|
-
logoUrl: 'https://cdn.activepieces.com/pieces/fragment.png',
|
|
19
|
-
authors: ["meenulekha-premakumar"],
|
|
20
|
-
actions: [
|
|
21
|
-
create_task_1.createTask,
|
|
22
|
-
update_task_1.updateTask,
|
|
23
|
-
get_task_1.getTask,
|
|
24
|
-
list_tasks_1.listTasks,
|
|
25
|
-
delete_task_1.deleteTask,
|
|
26
|
-
custom_api_call_1.customApiCall,
|
|
27
|
-
],
|
|
28
|
-
triggers: [
|
|
29
|
-
new_task_1.newTaskTrigger,
|
|
30
|
-
task_updated_1.taskUpdatedTrigger,
|
|
31
|
-
],
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var du=Object.create;var xt=Object.defineProperty;var mu=Object.getOwnPropertyDescriptor;var fu=Object.getOwnPropertyNames;var gu=Object.getPrototypeOf,yu=Object.prototype.hasOwnProperty;var o=(e,t)=>xt(e,"name",{value:t,configurable:!0});var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mn=(e,t)=>{for(var r in t)xt(e,r,{get:t[r],enumerable:!0})},jn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fu(t))!yu.call(e,i)&&i!==r&&xt(e,i,{get:()=>t[i],enumerable:!(n=mu(t,i))||n.enumerable});return e};var je=(e,t,r)=>(r=e!=null?du(gu(e)):{},jn(t||!e||!e.__esModule?xt(r,"default",{value:e,enumerable:!0}):r,e)),hu=e=>jn(xt({},"__esModule",{value:!0}),e);var ni=A((ri,ur)=>{(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,}",c="(?:[0-9a-f]+::?)+",l={zoneIndex:new RegExp(u,"i"),native:new RegExp(`^(::)?(${c})?([0-9a-f]+)?(::)?(${u})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${u})?)$`,"i"),transitional:new RegExp(`^((?:${c})|(?:::)(?:${c})?)${t}\\.${t}\\.${t}\\.${t}(${u})?$`,"i")};function f(s,d){if(s.indexOf("::")!==s.lastIndexOf("::"))return null;let y=0,m=-1,v=(s.match(l.zoneIndex)||[])[0],P,F;for(v&&(v=v.substring(1),s=s.replace(/%.+$/,""));(m=s.indexOf(":",m+1))>=0;)y++;if(s.substr(0,2)==="::"&&y--,s.substr(-2,2)==="::"&&y--,y>d)return null;for(F=d-y,P=":";F--;)P+="0:";return s=s.replace("::",P),s[0]===":"&&(s=s.slice(1)),s[s.length-1]===":"&&(s=s.slice(0,-1)),d=function(){let oe=s.split(":"),fe=[];for(let ze=0;ze<oe.length;ze++)fe.push(parseInt(oe[ze],16));return fe}(),{parts:d,zoneId:v}}o(f,"expandIPv6");function g(s,d,y,m){if(s.length!==d.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let v=0,P;for(;m>0;){if(P=y-m,P<0&&(P=0),s[v]>>P!==d[v]>>P)return!1;m-=y,v+=1}return!0}o(g,"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 I(s,d){for(;s.length<d;)s=`0${s}`;return s}o(I,"padPart");let x={};x.IPv4=function(){function s(d){if(d.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let y,m;for(y=0;y<d.length;y++)if(m=d[y],!(0<=m&&m<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=d}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(d,y){let m;if(y===void 0&&(m=d,d=m[0],y=m[1]),d.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return g(this.octets,d.octets,8,y)},s.prototype.prefixLengthFromSubnetMask=function(){let d=0,y=!1,m={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},v,P,F;for(v=3;v>=0;v-=1)if(P=this.octets[v],P in m){if(F=m[P],y&&F!==0)return null;F!==8&&(y=!0),d+=F}else return null;return 32-d},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 d=this.parseCIDR(s),y=d[0].toByteArray(),m=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],P=0;for(;P<4;)v.push(parseInt(y[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 d=s.match(/^(.+)\/(\d+)$/);return!x.IPv4.isValidCIDR(s)||!d?!1:x.IPv4.isValidFourPartDecimal(d[1])},x.IPv4.networkAddressFromCIDR=function(s){let d,y,m,v,P;try{for(d=this.parseCIDR(s),m=d[0].toByteArray(),P=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],y=0;y<4;)v.push(parseInt(m[y],10)&parseInt(P[y],10)),y++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},x.IPv4.parse=function(s){let d=this.parser(s);if(d===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(d)},x.IPv4.parseCIDR=function(s){let d;if(d=s.match(/^(.+)\/(\d+)$/)){let y=parseInt(d[2]);if(y>=0&&y<=32){let m=[this.parse(d[1]),y];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 d,y,m;if(d=s.match(r.fourOctet))return function(){let v=d.slice(1,6),P=[];for(let F=0;F<v.length;F++)y=v[F],P.push(_(y));return P}();if(d=s.match(r.longValue)){if(m=_(d[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(d=s.match(r.twoOctet))?function(){let v=d.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}():(d=s.match(r.threeOctet))?function(){let v=d.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 d=[0,0,0,0],y=0,m=Math.floor(s/8);for(;y<m;)d[y]=255,y++;return m<4&&(d[m]=Math.pow(2,s%8)-1<<8-s%8),new this(d)},x.IPv6=function(){function s(d,y){let m,v;if(d.length===16)for(this.parts=[],m=0;m<=14;m+=2)this.parts.push(d[m]<<8|d[m+1]);else if(d.length===8)this.parts=d;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");y&&(this.zoneId=y)}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(d,y){let m;if(y===void 0&&(m=d,d=m[0],y=m[1]),d.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return g(this.parts,d.parts,16,y)},s.prototype.prefixLengthFromSubnetMask=function(){let d=0,y=!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 F=7;F>=0;F-=1)if(v=this.parts[F],v in m){if(P=m[v],y&&P!==0)return null;P!==16&&(y=!0),d+=P}else return null;return 128-d},s.prototype.range=function(){return x.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){let d,y=[],m=this.parts;for(let v=0;v<m.length;v++)d=m[v],y.push(d>>8),y.push(d&255);return y},s.prototype.toFixedLengthString=function(){let d=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(I(this.parts[v].toString(16),4));return m}.call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),d+y},s.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let d=this.parts.slice(-2),y=d[0],m=d[1];return new x.IPv4([y>>8,y&255,m>>8,m&255])},s.prototype.toNormalizedString=function(){let d=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(this.parts[v].toString(16));return m}.call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),d+y},s.prototype.toRFC5952String=function(){let d=/((^|:)(0(:|$)){2,})/g,y=this.toNormalizedString(),m=0,v=-1,P;for(;P=d.exec(y);)P[0].length>v&&(m=P.index,v=P[0].length);return v<0?y:`${y.substring(0,m)}::${y.substring(m+v)}`},s.prototype.toString=function(){return this.toRFC5952String()},s}(),x.IPv6.broadcastAddressFromCIDR=function(s){try{let d=this.parseCIDR(s),y=d[0].toByteArray(),m=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],P=0;for(;P<16;)v.push(parseInt(y[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch(d){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${d})`)}},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 d=this.parser(s);return new this(d.parts,d.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 d,y,m,v,P;try{for(d=this.parseCIDR(s),m=d[0].toByteArray(),P=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],y=0;y<16;)v.push(parseInt(m[y],10)&parseInt(P[y],10)),y++;return new this(v)}catch(F){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${F})`)}},x.IPv6.parse=function(s){let d=this.parser(s);if(d.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(d.parts,d.zoneId)},x.IPv6.parseCIDR=function(s){let d,y,m;if((y=s.match(/^(.+)\/(\d+)$/))&&(d=parseInt(y[2]),d>=0&&d<=128))return m=[this.parse(y[1]),d],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 d,y,m,v,P,F;if(m=s.match(l.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(l.native.test(s))return f(s,8);if((m=s.match(l.transitional))&&(F=m[6]||"",d=m[1],m[1].endsWith("::")||(d=d.slice(0,-1)),d=f(d+F,6),d.parts)){for(P=[parseInt(m[2]),parseInt(m[3]),parseInt(m[4]),parseInt(m[5])],y=0;y<P.length;y++)if(v=P[y],!(0<=v&&v<=255))return null;return d.parts.push(P[0]<<8|P[1]),d.parts.push(P[2]<<8|P[3]),{parts:d.parts,zoneId:d.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 d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=0,m=Math.floor(s/8);for(;y<m;)d[y]=255,y++;return m<16&&(d[m]=Math.pow(2,s%8)-1<<8-s%8),new this(d)},x.fromByteArray=function(s){let d=s.length;if(d===4)return new x.IPv4(s);if(d===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 d=this.parse(s);return d.kind()==="ipv6"&&d.isIPv4MappedAddress()?d.toIPv4Address():d},x.subnetMatch=function(s,d,y){let m,v,P,F;y==null&&(y="unicast");for(v in d)if(Object.prototype.hasOwnProperty.call(d,v)){for(P=d[v],P[0]&&!(P[0]instanceof Array)&&(P=[P]),m=0;m<P.length;m++)if(F=P[m],s.kind()===F[0].kind()&&s.match.apply(s,F))return v}return y},typeof ur<"u"&&ur.exports?ur.exports=x:e.ipaddr=x})(ri)});var Qi=A((_A,Yi)=>{var Xi=require("stream").Stream,Wl=require("util");Yi.exports=$e;function $e(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o($e,"DelayedStream");Wl.inherits($e,Xi);$e.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($e.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});$e.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};$e.prototype.resume=function(){this._released||this.release(),this.source.resume()};$e.prototype.pause=function(){this.source.pause()};$e.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};$e.prototype.pipe=function(){var e=Xi.prototype.pipe.apply(this,arguments);return this.resume(),e};$e.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)};$e.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 na=A((bA,ra)=>{var ql=require("util"),ta=require("stream").Stream,ea=Qi();ra.exports=ne;function ne(){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(ne,"CombinedStream");ql.inherits(ne,ta);ne.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};ne.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};ne.prototype.append=function(e){var t=ne.isStreamLike(e);if(t){if(!(e instanceof ea)){var r=ea.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};ne.prototype.pipe=function(e,t){return ta.prototype.pipe.call(this,e,t),this.resume(),e};ne.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}};ne.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=ne.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};ne.prototype._pipeNext=function(e){this._currentStream=e;var t=ne.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()};ne.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};ne.prototype.write=function(e){this.emit("data",e)};ne.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ne.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")};ne.prototype.end=function(){this._reset(),this.emit("end")};ne.prototype.destroy=function(){this._reset(),this.emit("close")};ne.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ne.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};ne.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)};ne.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var ia=A((IA,oa)=>{"use strict";oa.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 ua=A(ye=>{"use strict";var yr=ia(),Gl=require("path").extname,aa=/^\s*([^;\s]*)(?:;|\s|$)/,Kl=/^text\//i;ye.charset=sa;ye.charsets={lookup:sa};ye.contentType=Jl;ye.extension=Xl;ye.extensions=Object.create(null);ye.lookup=Yl;ye.types=Object.create(null);Ql(ye.extensions,ye.types);function sa(e){if(!e||typeof e!="string")return!1;var t=aa.exec(e),r=t&&yr[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Kl.test(t[1])?"UTF-8":!1}o(sa,"charset");function Jl(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?ye.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=ye.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}o(Jl,"contentType");function Xl(e){if(!e||typeof e!="string")return!1;var t=aa.exec(e),r=t&&ye.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}o(Xl,"extension");function Yl(e){if(!e||typeof e!="string")return!1;var t=Gl("x."+e).toLowerCase().substr(1);return t&&ye.types[t]||!1}o(Yl,"lookup");function Ql(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(yr).forEach(o(function(i){var u=yr[i],c=u.extensions;if(!(!c||!c.length)){e[i]=c;for(var l=0;l<c.length;l++){var f=c[l];if(t[f]){var g=r.indexOf(yr[t[f]].source),_=r.indexOf(u.source);if(t[f]!=="application/octet-stream"&&(g>_||g===_&&t[f].substr(0,12)==="application/"))continue}t[f]=i}}},"forEachMimeType"))}o(Ql,"populateMaps")});var la=A((SA,ca)=>{ca.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 mn=A((zA,da)=>{var pa=la();da.exports=tp;function tp(e){var t=!1;return pa(function(){t=!0}),o(function(n,i){t?e(n,i):pa(o(function(){e(n,i)},"nextTick_callback"))},"async_callback")}o(tp,"async")});var fn=A((OA,ma)=>{ma.exports=rp;function rp(e){Object.keys(e.jobs).forEach(np.bind(e)),e.jobs={}}o(rp,"abort");function np(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}o(np,"clean")});var gn=A((RA,ga)=>{var fa=mn(),op=fn();ga.exports=ip;function ip(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=ap(t,i,e[i],function(u,c){i in r.jobs&&(delete r.jobs[i],u?op(r):r.results[i]=c,n(u,r.results))})}o(ip,"iterate");function ap(e,t,r,n){var i;return e.length==2?i=e(r,fa(n)):i=e(r,t,fa(n)),i}o(ap,"runJob")});var yn=A((NA,ya)=>{ya.exports=sp;function sp(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(sp,"state")});var hn=A((UA,ha)=>{var up=fn(),cp=mn();ha.exports=lp;function lp(e){Object.keys(this.jobs).length&&(this.index=this.size,up(this),cp(e)(null,this.results))}o(lp,"terminator")});var xa=A((jA,va)=>{var pp=gn(),dp=yn(),mp=hn();va.exports=fp;function fp(e,t,r){for(var n=dp(e);n.index<(n.keyedList||e).length;)pp(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(fp,"parallel")});var vn=A((FA,hr)=>{var _a=gn(),gp=yn(),yp=hn();hr.exports=hp;hr.exports.ascending=Pa;hr.exports.descending=vp;function hp(e,t,r,n){var i=gp(e,r);return _a(e,t,i,o(function u(c,l){if(c){n(c,l);return}if(i.index++,i.index<(i.keyedList||e).length){_a(e,t,i,u);return}n(null,i.results)},"iteratorHandler")),yp.bind(i,n)}o(hp,"serialOrdered");function Pa(e,t){return e<t?-1:e>t?1:0}o(Pa,"ascending");function vp(e,t){return-1*Pa(e,t)}o(vp,"descending")});var Ta=A((VA,ba)=>{var xp=vn();ba.exports=_p;function _p(e,t,r){return xp(e,t,null,r)}o(_p,"serial")});var $a=A((HA,Ia)=>{Ia.exports={parallel:xa(),serial:Ta(),serialOrdered:vn()}});var xn=A((WA,Ea)=>{"use strict";Ea.exports=Object});var Aa=A((qA,Sa)=>{"use strict";Sa.exports=Error});var ka=A((GA,za)=>{"use strict";za.exports=EvalError});var wa=A((KA,Oa)=>{"use strict";Oa.exports=RangeError});var Da=A((JA,Ra)=>{"use strict";Ra.exports=ReferenceError});var Ca=A((XA,Na)=>{"use strict";Na.exports=SyntaxError});var vr=A((YA,Ua)=>{"use strict";Ua.exports=TypeError});var ja=A((QA,Ma)=>{"use strict";Ma.exports=URIError});var Fa=A((ez,La)=>{"use strict";La.exports=Math.abs});var Va=A((tz,Ba)=>{"use strict";Ba.exports=Math.floor});var Ha=A((rz,Za)=>{"use strict";Za.exports=Math.max});var qa=A((nz,Wa)=>{"use strict";Wa.exports=Math.min});var Ka=A((oz,Ga)=>{"use strict";Ga.exports=Math.pow});var Xa=A((iz,Ja)=>{"use strict";Ja.exports=Math.round});var Qa=A((az,Ya)=>{"use strict";Ya.exports=Number.isNaN||o(function(t){return t!==t},"isNaN")});var ts=A((uz,es)=>{"use strict";var Pp=Qa();es.exports=o(function(t){return Pp(t)||t===0?t:t<0?-1:1},"sign")});var ns=A((lz,rs)=>{"use strict";rs.exports=Object.getOwnPropertyDescriptor});var _n=A((pz,os)=>{"use strict";var xr=ns();if(xr)try{xr([],"length")}catch{xr=null}os.exports=xr});var as=A((dz,is)=>{"use strict";var _r=Object.defineProperty||!1;if(_r)try{_r({},"a",{value:1})}catch{_r=!1}is.exports=_r});var Pn=A((mz,ss)=>{"use strict";ss.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 c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},"hasSymbols")});var ls=A((gz,cs)=>{"use strict";var us=typeof Symbol<"u"&&Symbol,bp=Pn();cs.exports=o(function(){return typeof us!="function"||typeof Symbol!="function"||typeof us("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bp()},"hasNativeSymbols")});var bn=A((hz,ps)=>{"use strict";ps.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Tn=A((vz,ds)=>{"use strict";var Tp=xn();ds.exports=Tp.getPrototypeOf||null});var gs=A((xz,fs)=>{"use strict";var Ip="Function.prototype.bind called on incompatible ",$p=Object.prototype.toString,Ep=Math.max,Sp="[object Function]",ms=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"),Ap=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"),zp=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");fs.exports=o(function(t){var r=this;if(typeof r!="function"||$p.apply(r)!==Sp)throw new TypeError(Ip+r);for(var n=Ap(arguments,1),i,u=o(function(){if(this instanceof i){var _=r.apply(this,ms(n,arguments));return Object(_)===_?_:this}return r.apply(t,ms(n,arguments))},"binder"),c=Ep(0,r.length-n.length),l=[],f=0;f<c;f++)l[f]="$"+f;if(i=Function("binder","return function ("+zp(l,",")+"){ return binder.apply(this,arguments); }")(u),r.prototype){var g=o(function(){},"Empty");g.prototype=r.prototype,i.prototype=new g,g.prototype=null}return i},"bind")});var pt=A((Pz,ys)=>{"use strict";var kp=gs();ys.exports=Function.prototype.bind||kp});var Pr=A((bz,hs)=>{"use strict";hs.exports=Function.prototype.call});var In=A((Tz,vs)=>{"use strict";vs.exports=Function.prototype.apply});var _s=A((Iz,xs)=>{"use strict";xs.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var bs=A(($z,Ps)=>{"use strict";var Op=pt(),wp=In(),Rp=Pr(),Dp=_s();Ps.exports=Dp||Op.call(Rp,wp)});var Is=A((Ez,Ts)=>{"use strict";var Np=pt(),Cp=vr(),Up=Pr(),Mp=bs();Ts.exports=o(function(t){if(t.length<1||typeof t[0]!="function")throw new Cp("a function is required");return Mp(Np,Up,t)},"callBindBasic")});var ks=A((Az,zs)=>{"use strict";var jp=Is(),$s=_n(),Ss;try{Ss=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var $n=!!Ss&&$s&&$s(Object.prototype,"__proto__"),As=Object,Es=As.getPrototypeOf;zs.exports=$n&&typeof $n.get=="function"?jp([$n.get]):typeof Es=="function"?o(function(t){return Es(t==null?t:As(t))},"getDunder"):!1});var Ns=A((kz,Ds)=>{"use strict";var Os=bn(),ws=Tn(),Rs=ks();Ds.exports=Os?o(function(t){return Os(t)},"getProto"):ws?o(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ws(t)},"getProto"):Rs?o(function(t){return Rs(t)},"getProto"):null});var En=A((wz,Cs)=>{"use strict";var Lp=Function.prototype.call,Fp=Object.prototype.hasOwnProperty,Bp=pt();Cs.exports=Bp.call(Lp,Fp)});var Vs=A((Rz,Bs)=>{"use strict";var W,Vp=xn(),Zp=Aa(),Hp=ka(),Wp=wa(),qp=Da(),gt=Ca(),ft=vr(),Gp=ja(),Kp=Fa(),Jp=Va(),Xp=Ha(),Yp=qa(),Qp=Ka(),ed=Xa(),td=ts(),Ls=Function,Sn=o(function(e){try{return Ls('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Lt=_n(),rd=as(),An=o(function(){throw new ft},"throwTypeError"),nd=Lt?function(){try{return arguments.callee,An}catch{try{return Lt(arguments,"callee").get}catch{return An}}}():An,dt=ls()(),ce=Ns(),od=Tn(),id=bn(),Fs=In(),Ft=Pr(),mt={},ad=typeof Uint8Array>"u"||!ce?W:ce(Uint8Array),Qe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?W:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?W:ArrayBuffer,"%ArrayIteratorPrototype%":dt&&ce?ce([][Symbol.iterator]()):W,"%AsyncFromSyncIteratorPrototype%":W,"%AsyncFunction%":mt,"%AsyncGenerator%":mt,"%AsyncGeneratorFunction%":mt,"%AsyncIteratorPrototype%":mt,"%Atomics%":typeof Atomics>"u"?W:Atomics,"%BigInt%":typeof BigInt>"u"?W:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?W:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?W:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?W:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Zp,"%eval%":eval,"%EvalError%":Hp,"%Float16Array%":typeof Float16Array>"u"?W:Float16Array,"%Float32Array%":typeof Float32Array>"u"?W:Float32Array,"%Float64Array%":typeof Float64Array>"u"?W:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?W:FinalizationRegistry,"%Function%":Ls,"%GeneratorFunction%":mt,"%Int8Array%":typeof Int8Array>"u"?W:Int8Array,"%Int16Array%":typeof Int16Array>"u"?W:Int16Array,"%Int32Array%":typeof Int32Array>"u"?W:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dt&&ce?ce(ce([][Symbol.iterator]())):W,"%JSON%":typeof JSON=="object"?JSON:W,"%Map%":typeof Map>"u"?W:Map,"%MapIteratorPrototype%":typeof Map>"u"||!dt||!ce?W:ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Vp,"%Object.getOwnPropertyDescriptor%":Lt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?W:Promise,"%Proxy%":typeof Proxy>"u"?W:Proxy,"%RangeError%":Wp,"%ReferenceError%":qp,"%Reflect%":typeof Reflect>"u"?W:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?W:Set,"%SetIteratorPrototype%":typeof Set>"u"||!dt||!ce?W:ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?W:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dt&&ce?ce(""[Symbol.iterator]()):W,"%Symbol%":dt?Symbol:W,"%SyntaxError%":gt,"%ThrowTypeError%":nd,"%TypedArray%":ad,"%TypeError%":ft,"%Uint8Array%":typeof Uint8Array>"u"?W:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?W:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?W:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?W:Uint32Array,"%URIError%":Gp,"%WeakMap%":typeof WeakMap>"u"?W:WeakMap,"%WeakRef%":typeof WeakRef>"u"?W:WeakRef,"%WeakSet%":typeof WeakSet>"u"?W:WeakSet,"%Function.prototype.call%":Ft,"%Function.prototype.apply%":Fs,"%Object.defineProperty%":rd,"%Object.getPrototypeOf%":od,"%Math.abs%":Kp,"%Math.floor%":Jp,"%Math.max%":Xp,"%Math.min%":Yp,"%Math.pow%":Qp,"%Math.round%":ed,"%Math.sign%":td,"%Reflect.getPrototypeOf%":id};if(ce)try{null.error}catch(e){Us=ce(ce(e)),Qe["%Error.prototype%"]=Us}var Us,sd=o(function e(t){var r;if(t==="%AsyncFunction%")r=Sn("async function () {}");else if(t==="%GeneratorFunction%")r=Sn("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Sn("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ce&&(r=ce(i.prototype))}return Qe[t]=r,r},"doEval"),Ms={__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"]},Bt=pt(),br=En(),ud=Bt.call(Ft,Array.prototype.concat),cd=Bt.call(Fs,Array.prototype.splice),js=Bt.call(Ft,String.prototype.replace),Tr=Bt.call(Ft,String.prototype.slice),ld=Bt.call(Ft,RegExp.prototype.exec),pd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dd=/\\(\\)?/g,md=o(function(t){var r=Tr(t,0,1),n=Tr(t,-1);if(r==="%"&&n!=="%")throw new gt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new gt("invalid intrinsic syntax, expected opening `%`");var i=[];return js(t,pd,function(u,c,l,f){i[i.length]=l?js(f,dd,"$1"):c||u}),i},"stringToPath"),fd=o(function(t,r){var n=t,i;if(br(Ms,n)&&(i=Ms[n],n="%"+i[0]+"%"),br(Qe,n)){var u=Qe[n];if(u===mt&&(u=sd(n)),typeof u>"u"&&!r)throw new ft("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:u}}throw new gt("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Bs.exports=o(function(t,r){if(typeof t!="string"||t.length===0)throw new ft("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ft('"allowMissing" argument must be a boolean');if(ld(/^%?[^%]*%?$/,t)===null)throw new gt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=md(t),i=n.length>0?n[0]:"",u=fd("%"+i+"%",r),c=u.name,l=u.value,f=!1,g=u.alias;g&&(i=g[0],cd(n,ud([0,1],g)));for(var _=1,I=!0;_<n.length;_+=1){var x=n[_],s=Tr(x,0,1),d=Tr(x,-1);if((s==='"'||s==="'"||s==="`"||d==='"'||d==="'"||d==="`")&&s!==d)throw new gt("property names with quotes must have matching quotes");if((x==="constructor"||!I)&&(f=!0),i+="."+x,c="%"+i+"%",br(Qe,c))l=Qe[c];else if(l!=null){if(!(x in l)){if(!r)throw new ft("base intrinsic for "+t+" exists, but the property is not available.");return}if(Lt&&_+1>=n.length){var y=Lt(l,x);I=!!y,I&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[x]}else I=br(l,x),l=l[x];I&&!f&&(Qe[c]=l)}}return l},"GetIntrinsic")});var Hs=A((Nz,Zs)=>{"use strict";var gd=Pn();Zs.exports=o(function(){return gd()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Gs=A((Uz,qs)=>{"use strict";var yd=Vs(),Ws=yd("%Object.defineProperty%",!0),hd=Hs()(),vd=En(),xd=vr(),Ir=hd?Symbol.toStringTag:null;qs.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 xd("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ir&&(n||!vd(t,Ir))&&(Ws?Ws(t,Ir,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[Ir]=r)},"setToStringTag")});var Js=A((jz,Ks)=>{"use strict";var _d=Function.prototype.call,Pd=Object.prototype.hasOwnProperty,bd=pt();Ks.exports=bd.call(_d,Pd)});var Ys=A((Lz,Xs)=>{"use strict";Xs.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var tu=A((Fz,eu)=>{"use strict";var wn=na(),Td=require("util"),zn=require("path"),Id=require("http"),$d=require("https"),Ed=require("url").parse,Sd=require("fs"),Ad=require("stream").Stream,zd=require("crypto"),kn=ua(),kd=$a(),Od=Gs(),We=Js(),On=Ys();function Qs(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}o(Qs,"escapeHeaderParam");function q(e){if(!(this instanceof q))return new q(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],wn.call(this),e=e||{};for(var t in e)this[t]=e[t]}o(q,"FormData");Td.inherits(q,wn);q.LINE_BREAK=`\r
|
|
2
|
+
`;q.DEFAULT_CONTENT_TYPE="application/octet-stream";q.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=wn.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)};q.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)+q.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&We(t,"httpVersion"))&&!(t instanceof Ad))&&(r.knownLength||this._valuesToMeasure.push(t))};q.prototype._lengthRetriever=function(e,t){We(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Sd.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):We(e,"httpVersion")?t(null,Number(e.headers["content-length"])):We(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};q.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="",c={"Content-Disposition":["form-data",'name="'+Qs(e)+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&On(c,r.header);var l;for(var f in c)if(We(c,f)){if(l=c[f],l==null)continue;Array.isArray(l)||(l=[l]),l.length&&(u+=f+": "+l.join("; ")+q.LINE_BREAK)}return"--"+this.getBoundary()+q.LINE_BREAK+u+q.LINE_BREAK};q.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=zn.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=zn.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&We(e,"httpVersion")&&(r=zn.basename(e.client._httpMessage.path||"")),r)return'filename="'+Qs(r)+'"'};q.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=kn.lookup(e.name)),!r&&e&&e.path&&(r=kn.lookup(e.path)),!r&&e&&e.readable&&We(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=kn.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=q.DEFAULT_CONTENT_TYPE),r};q.prototype._multiPartFooter=function(){return function(e){var t=q.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};q.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+q.LINE_BREAK};q.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)We(e,t)&&(r[t.toLowerCase()]=e[t]);return r};q.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};q.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};q.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(q.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};q.prototype._generateBoundary=function(){this._boundary="--------------------------"+zd.randomBytes(12).toString("hex")};q.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};q.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};q.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}kd.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};q.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=Ed(e),n=On({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=On(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=$d.request(n):r=Id.request(n),this.getLength(function(u,c){if(u&&u!=="Unknown stream"){this._error(u);return}if(c&&r.setHeader("Content-Length",c),this.pipe(r),t){var l,f=o(function(g,_){return r.removeListener("error",f),r.removeListener("response",l),t.call(this,g,_)},"callback");l=f.bind(this,null),r.on("error",f),r.on("response",l)}}.bind(this)),r};q.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};q.prototype.toString=function(){return"[object FormData]"};Od(q.prototype,"FormData");eu.exports=q});var Nn=A((Rn,Dn)=>{(function(e,t){typeof Rn=="object"&&typeof Dn<"u"?Dn.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Rn,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",u="minute",c="hour",l="day",f="week",g="month",_="quarter",I="year",x="date",s="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(O){var T=["th","st","nd","rd"],b=O%100;return"["+O+(T[(b-20)%10]||T[b]||T[0])+"]"},"ordinal")},v=o(function(O,T,b){var z=String(O);return!z||z.length>=T?O:""+Array(T+1-z.length).join(b)+O},"m"),P={s:v,z:o(function(O){var T=-O.utcOffset(),b=Math.abs(T),z=Math.floor(b/60),$=b%60;return(T<=0?"+":"-")+v(z,2,"0")+":"+v($,2,"0")},"z"),m:o(function O(T,b){if(T.date()<b.date())return-O(b,T);var z=12*(b.year()-T.year())+(b.month()-T.month()),$=T.clone().add(z,g),B=b-$<0,V=T.clone().add(z+(B?-1:1),g);return+(-(z+(b-$)/(B?$-V:V-$))||0)},"t"),a:o(function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},"a"),p:o(function(O){return{M:g,y:I,w:f,d:l,D:x,h:c,m:u,s:i,ms:n,Q:_}[O]||String(O||"").toLowerCase().replace(/s$/,"")},"p"),u:o(function(O){return O===void 0},"u")},F="en",oe={};oe[F]=m;var fe="$isDayjsObject",ze=o(function(O){return O instanceof ke||!(!O||!O[fe])},"S"),_e=o(function O(T,b,z){var $;if(!T)return F;if(typeof T=="string"){var B=T.toLowerCase();oe[B]&&($=B),b&&(oe[B]=b,$=B);var V=T.split("-");if(!$&&V.length>1)return O(V[0])}else{var Y=T.name;oe[Y]=T,$=Y}return!z&&$&&(F=$),$||!z&&F},"t"),J=o(function(O,T){if(ze(O))return O.clone();var b=typeof T=="object"?T:{};return b.date=O,b.args=arguments,new ke(b)},"O"),K=P;K.l=_e,K.i=ze,K.w=function(O,T){return J(O,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var ke=function(){function O(b){this.$L=_e(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[fe]=!0}o(O,"M");var T=O.prototype;return T.parse=function(b){this.$d=function(z){var $=z.date,B=z.utc;if($===null)return new Date(NaN);if(K.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var V=$.match(d);if(V){var Y=V[2]-1||0,ie=(V[7]||"0").substring(0,3);return B?new Date(Date.UTC(V[1],Y,V[3]||1,V[4]||0,V[5]||0,V[6]||0,ie)):new Date(V[1],Y,V[3]||1,V[4]||0,V[5]||0,V[6]||0,ie)}}return new Date($)}(b),this.init()},T.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},T.$utils=function(){return K},T.isValid=function(){return this.$d.toString()!==s},T.isSame=function(b,z){var $=J(b);return this.startOf(z)<=$&&$<=this.endOf(z)},T.isAfter=function(b,z){return J(b)<this.startOf(z)},T.isBefore=function(b,z){return this.endOf(z)<J(b)},T.$g=function(b,z,$){return K.u(b)?this[z]:this.set($,b)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(b,z){var $=this,B=!!K.u(z)||z,V=K.p(b),Y=o(function(Ge,ge){var Me=K.w($.$u?Date.UTC($.$y,ge,Ge):new Date($.$y,ge,Ge),$);return B?Me:Me.endOf(l)},"l"),ie=o(function(Ge,ge){return K.w($.toDate()[Ge].apply($.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(ge)),$)},"$"),ue=this.$W,de=this.$M,Pe=this.$D,et="set"+(this.$u?"UTC":"");switch(V){case I:return B?Y(1,0):Y(31,11);case g:return B?Y(1,de):Y(0,de+1);case f:var qe=this.$locale().weekStart||0,ht=(ue<qe?ue+7:ue)-qe;return Y(B?Pe-ht:Pe+(6-ht),de);case l:case x:return ie(et+"Hours",0);case c:return ie(et+"Minutes",1);case u:return ie(et+"Seconds",2);case i:return ie(et+"Milliseconds",3);default:return this.clone()}},T.endOf=function(b){return this.startOf(b,!1)},T.$set=function(b,z){var $,B=K.p(b),V="set"+(this.$u?"UTC":""),Y=($={},$[l]=V+"Date",$[x]=V+"Date",$[g]=V+"Month",$[I]=V+"FullYear",$[c]=V+"Hours",$[u]=V+"Minutes",$[i]=V+"Seconds",$[n]=V+"Milliseconds",$)[B],ie=B===l?this.$D+(z-this.$W):z;if(B===g||B===I){var ue=this.clone().set(x,1);ue.$d[Y](ie),ue.init(),this.$d=ue.set(x,Math.min(this.$D,ue.daysInMonth())).$d}else Y&&this.$d[Y](ie);return this.init(),this},T.set=function(b,z){return this.clone().$set(b,z)},T.get=function(b){return this[K.p(b)]()},T.add=function(b,z){var $,B=this;b=Number(b);var V=K.p(z),Y=o(function(de){var Pe=J(B);return K.w(Pe.date(Pe.date()+Math.round(de*b)),B)},"y");if(V===g)return this.set(g,this.$M+b);if(V===I)return this.set(I,this.$y+b);if(V===l)return Y(1);if(V===f)return Y(7);var ie=($={},$[u]=t,$[c]=r,$[i]=e,$)[V]||1,ue=this.$d.getTime()+b*ie;return K.w(ue,this)},T.subtract=function(b,z){return this.add(-1*b,z)},T.format=function(b){var z=this,$=this.$locale();if(!this.isValid())return $.invalidDate||s;var B=b||"YYYY-MM-DDTHH:mm:ssZ",V=K.z(this),Y=this.$H,ie=this.$m,ue=this.$M,de=$.weekdays,Pe=$.months,et=$.meridiem,qe=o(function(ge,Me,vt,Vt){return ge&&(ge[Me]||ge(z,B))||vt[Me].slice(0,Vt)},"h"),ht=o(function(ge){return K.s(Y%12||12,ge,"0")},"d"),Ge=et||function(ge,Me,vt){var Vt=ge<12?"AM":"PM";return vt?Vt.toLowerCase():Vt};return B.replace(y,function(ge,Me){return Me||function(vt){switch(vt){case"YY":return String(z.$y).slice(-2);case"YYYY":return K.s(z.$y,4,"0");case"M":return ue+1;case"MM":return K.s(ue+1,2,"0");case"MMM":return qe($.monthsShort,ue,Pe,3);case"MMMM":return qe(Pe,ue);case"D":return z.$D;case"DD":return K.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return qe($.weekdaysMin,z.$W,de,2);case"ddd":return qe($.weekdaysShort,z.$W,de,3);case"dddd":return de[z.$W];case"H":return String(Y);case"HH":return K.s(Y,2,"0");case"h":return ht(1);case"hh":return ht(2);case"a":return Ge(Y,ie,!0);case"A":return Ge(Y,ie,!1);case"m":return String(ie);case"mm":return K.s(ie,2,"0");case"s":return String(z.$s);case"ss":return K.s(z.$s,2,"0");case"SSS":return K.s(z.$ms,3,"0");case"Z":return V}return null}(ge)||V.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(b,z,$){var B,V=this,Y=K.p(z),ie=J(b),ue=(ie.utcOffset()-this.utcOffset())*t,de=this-ie,Pe=o(function(){return K.m(V,ie)},"D");switch(Y){case I:B=Pe()/12;break;case g:B=Pe();break;case _:B=Pe()/3;break;case f:B=(de-ue)/6048e5;break;case l:B=(de-ue)/864e5;break;case c:B=de/r;break;case u:B=de/t;break;case i:B=de/e;break;default:B=de}return $?B:K.a(B)},T.daysInMonth=function(){return this.endOf(g).$D},T.$locale=function(){return oe[this.$L]},T.locale=function(b,z){if(!b)return this.$L;var $=this.clone(),B=_e(b,z,!0);return B&&($.$L=B),$},T.clone=function(){return K.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},O}(),yt=ke.prototype;return J.prototype=yt,[["$ms",n],["$s",i],["$m",u],["$H",c],["$W",l],["$M",g],["$y",I],["$D",x]].forEach(function(O){yt[O[1]]=function(T){return this.$g(T,O[0],O[1])}}),J.extend=function(O,T){return O.$i||(O(T,ke,J),O.$i=!0),J},J.locale=_e,J.isDayjs=ze,J.unix=function(O){return J(1e3*O)},J.en=oe[F],J.Ls=oe,J.p={},J})});var Vd={};Mn(Vd,{fragment:()=>Bd});module.exports=hu(Vd);var vu=Object.freeze({status:"aborted"});function E(e,t,r){function n(l,f){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:f,constr:c,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,f);let g=c.prototype,_=Object.keys(g);for(let I=0;I<_.length;I++){let x=_[I];x in l||(l[x]=g[x].bind(l))}}o(n,"init");let i=r?.Parent??Object;class u extends i{static{o(this,"Definition")}}Object.defineProperty(u,"name",{value:e});function c(l){var f;let g=r?.Parent?new u:this;n(g,l),(f=g._zod).deferred??(f.deferred=[]);for(let _ of g._zod.deferred)_();return g}return o(c,"_"),Object.defineProperty(c,"init",{value:n}),Object.defineProperty(c,Symbol.hasInstance,{value:o(l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e),"value")}),Object.defineProperty(c,"name",{value:e}),c}o(E,"$constructor");var xu=Symbol("zod_brand"),Ee=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Zt=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Sr={};function Oe(e){return e&&Object.assign(Sr,e),Sr}o(Oe,"config");function zr(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(zr,"getEnumValues");function Fn(e,t){return typeof t=="bigint"?t.toString():t}o(Fn,"jsonStringifyReplacer");function Wt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}o(Wt,"cached");function Bn(e){return e==null}o(Bn,"nullish");function qt(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}o(qt,"cleanRegex");var Ln=Symbol("evaluating");function ae(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Ln)return n===void 0&&(n=Ln,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}o(ae,"defineLazy");var kr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(_t,"isObject");var _u=Wt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Vn(e){if(_t(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(_t(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}o(Vn,"isPlainObject");var Zn=new Set(["string","number","symbol"]);function tt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(tt,"escapeRegex");function Gt(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}o(Gt,"clone");function ee(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(ee,"normalizeParams");function Hn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(Hn,"optionalKeys");var Pu={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 rt(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(rt,"aborted");function Le(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}o(Le,"prefixIssues");function Ht(e){return typeof e=="string"?e:e?.message}o(Ht,"unwrapMessage");function Fe(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=Ht(e.inst?._zod.def?.error?.(e))??Ht(t?.error?.(e))??Ht(r.customError?.(e))??Ht(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}o(Fe,"finalizeIssue");function Wn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Wn,"getLengthableOrigin");function Or(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}o(Or,"issue");var qn=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"),Gn=E("$ZodError",qn),Pt=E("$ZodError",qn,{Parent:Error});var Tu=o(e=>(t,r,n,i)=>{let u=n?Object.assign(n,{async:!1}):{async:!1},c=t._zod.run({value:r,issues:[]},u);if(c instanceof Promise)throw new Ee;if(c.issues.length){let l=new(i?.Err??e)(c.issues.map(f=>Fe(f,u,Oe())));throw kr(l,i?.callee),l}return c.value},"_parse"),Kt=Tu(Pt),Iu=o(e=>async(t,r,n,i)=>{let u=n?Object.assign(n,{async:!0}):{async:!0},c=t._zod.run({value:r,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){let l=new(i?.Err??e)(c.issues.map(f=>Fe(f,u,Oe())));throw kr(l,i?.callee),l}return c.value},"_parseAsync"),Jt=Iu(Pt),$u=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 Ee;return u.issues.length?{success:!1,error:new(e??Gn)(u.issues.map(c=>Fe(c,i,Oe())))}:{success:!0,data:u.value}},"_safeParse"),bt=$u(Pt),Eu=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(c=>Fe(c,i,Oe())))}:{success:!0,data:u.value}},"_safeParseAsync"),Tt=Eu(Pt);var Su="(?:(?:\\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])))",Au=new RegExp(`^${Su}$`);var Kn=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Jn=/^-?\d+n?$/;var wr=/^-?\d+(?:\.\d+)?$/,Xn=/^(?:true|false)$/i;var nt=E("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Yn=E("$ZodCheckMinLength",(e,t)=>{var r;nt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!Bn(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 c=Wn(i);n.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}});var Rr=E("$ZodCheckStringFormat",(e,t)=>{var r,n;nt.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=()=>{})}),Qn=E("$ZodCheckRegex",(e,t)=>{Rr.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 to={major:4,minor:3,patch:6};var te=E("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=to;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((c,l,f)=>{let g=rt(c),_;for(let I of l){if(I._zod.def.when){if(!I._zod.def.when(c))continue}else if(g)continue;let x=c.issues.length,s=I._zod.check(c);if(s instanceof Promise&&f?.async===!1)throw new Ee;if(_||s instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await s,c.issues.length!==x&&(g||(g=rt(c,x)))});else{if(c.issues.length===x)continue;g||(g=rt(c,x))}}return _?_.then(()=>c):c},"runChecks"),u=o((c,l,f)=>{if(rt(c))return c.aborted=!0,c;let g=i(l,n,f);if(g instanceof Promise){if(f.async===!1)throw new Ee;return g.then(_=>e._zod.parse(_,f))}return e._zod.parse(g,f)},"handleCanaryResult");e._zod.run=(c,l)=>{if(l.skipChecks)return e._zod.parse(c,l);if(l.direction==="backward"){let g=e._zod.parse({value:c.value,issues:[]},{...l,skipChecks:!0});return g instanceof Promise?g.then(_=>u(_,c,l)):u(g,c,l)}let f=e._zod.parse(c,l);if(f instanceof Promise){if(l.async===!1)throw new Ee;return f.then(g=>i(g,n,l))}return i(f,n,l)}}ae(e,"~standard",()=>({validate:o(i=>{try{let u=bt(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return Tt(e,i).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Qt=E("$ZodString",(e,t)=>{te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kn(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}}),Dr=E("$ZodStringFormat",(e,t)=>{Rr.init(e,t),Qt.init(e,t)});var ao=E("$ZodURL",(e,t)=>{Dr.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 so=E("$ZodNumber",(e,t)=>{te.init(e,t),e._zod.pattern=e._zod.bag.pattern??wr,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 Nr=E("$ZodBoolean",(e,t)=>{te.init(e,t),e._zod.pattern=Xn,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}}),uo=E("$ZodBigInt",(e,t)=>{te.init(e,t),e._zod.pattern=Jn,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 co=E("$ZodAny",(e,t)=>{te.init(e,t),e._zod.parse=r=>r}),lo=E("$ZodUnknown",(e,t)=>{te.init(e,t),e._zod.parse=r=>r});var po=E("$ZodVoid",(e,t)=>{te.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}}),mo=E("$ZodDate",(e,t)=>{te.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 ro(e,t,r){e.issues.length&&t.issues.push(...Le(r,e.issues)),t.value[r]=e.value}o(ro,"handleArrayResult");var fo=E("$ZodArray",(e,t)=>{te.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 c=0;c<i.length;c++){let l=i[c],f=t.element._zod.run({value:l,issues:[]},n);f instanceof Promise?u.push(f.then(g=>ro(g,r,c))):ro(f,r,c)}return u.length?Promise.all(u).then(()=>r):r}});function Yt(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(...Le(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}o(Yt,"handlePropertyResult");function zu(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=Hn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}o(zu,"normalizeDef");function ku(e,t,r,n,i,u){let c=[],l=i.keySet,f=i.catchall._zod,g=f.def.type,_=f.optout==="optional";for(let I in t){if(l.has(I))continue;if(g==="never"){c.push(I);continue}let x=f.run({value:t[I],issues:[]},n);x instanceof Promise?e.push(x.then(s=>Yt(s,r,I,t,_))):Yt(x,r,I,t,_)}return c.length&&r.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:u}),e.length?Promise.all(e).then(()=>r):r}o(ku,"handleCatchall");var go=E("$ZodObject",(e,t)=>{if(te.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let f={...l};return Object.defineProperty(t,"shape",{value:f}),f},"get")})}let n=Wt(()=>zu(t));ae(e._zod,"propValues",()=>{let l=t.shape,f={};for(let g in l){let _=l[g]._zod;if(_.values){f[g]??(f[g]=new Set);for(let I of _.values)f[g].add(I)}}return f});let i=_t,u=t.catchall,c;e._zod.parse=(l,f)=>{c??(c=n.value);let g=l.value;if(!i(g))return l.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),l;l.value={};let _=[],I=c.shape;for(let x of c.keys){let s=I[x],d=s._zod.optout==="optional",y=s._zod.run({value:g[x],issues:[]},f);y instanceof Promise?_.push(y.then(m=>Yt(m,l,x,g,d))):Yt(y,l,x,g,d)}return u?ku(_,g,l,f,n.value,e):_.length?Promise.all(_).then(()=>l):l}});function no(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=>!rt(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(c=>Fe(c,n,Oe())))}),t)}o(no,"handleUnionResults");var Cr=E("$ZodUnion",(e,t)=>{te.init(e,t),ae(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ae(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ae(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ae(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=>qt(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 c=!1,l=[];for(let f of t.options){let g=f._zod.run({value:i.value,issues:[]},u);if(g instanceof Promise)l.push(g),c=!0;else{if(g.issues.length===0)return g;l.push(g)}}return c?Promise.all(l).then(f=>no(f,i,e,u)):no(l,i,e,u)}});var yo=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Cr.init(e,t);let r=e._zod.parse;ae(e._zod,"propValues",()=>{let i={};for(let u of t.options){let c=u._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let[l,f]of Object.entries(c)){i[l]||(i[l]=new Set);for(let g of f)i[l].add(g)}}return i});let n=Wt(()=>{let i=t.options,u=new Map;for(let c of i){let l=c._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(let f of l){if(u.has(f))throw new Error(`Duplicate discriminator value "${String(f)}"`);u.set(f,c)}}return u});e._zod.parse=(i,u)=>{let c=i.value;if(!_t(c))return i.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),i;let l=n.value.get(c?.[t.discriminator]);return l?l._zod.run(i,u):t.unionFallback?r(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),i)}});var ho=E("$ZodRecord",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Vn(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let u=[],c=t.keyType._zod.values;if(c){r.value={};let l=new Set;for(let g of c)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){l.add(typeof g=="number"?g.toString():g);let _=t.valueType._zod.run({value:i[g],issues:[]},n);_ instanceof Promise?u.push(_.then(I=>{I.issues.length&&r.issues.push(...Le(g,I.issues)),r.value[g]=I.value})):(_.issues.length&&r.issues.push(...Le(g,_.issues)),r.value[g]=_.value)}let f;for(let g in i)l.has(g)||(f=f??[],f.push(g));f&&f.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:f})}else{r.value={};for(let l of Reflect.ownKeys(i)){if(l==="__proto__")continue;let f=t.keyType._zod.run({value:l,issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&wr.test(l)&&f.issues.length){let I=t.keyType._zod.run({value:Number(l),issues:[]},n);if(I instanceof Promise)throw new Error("Async schemas not supported in object keys currently");I.issues.length===0&&(f=I)}if(f.issues.length){t.mode==="loose"?r.value[l]=i[l]:r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(I=>Fe(I,n,Oe())),input:l,path:[l],inst:e});continue}let _=t.valueType._zod.run({value:i[l],issues:[]},n);_ instanceof Promise?u.push(_.then(I=>{I.issues.length&&r.issues.push(...Le(l,I.issues)),r.value[f.value]=I.value})):(_.issues.length&&r.issues.push(...Le(l,_.issues)),r.value[f.value]=_.value)}}return u.length?Promise.all(u).then(()=>r):r}});var vo=E("$ZodEnum",(e,t)=>{te.init(e,t);let r=zr(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>Zn.has(typeof i)).map(i=>typeof i=="string"?tt(i):i.toString()).join("|")})$`),e._zod.parse=(i,u)=>{let c=i.value;return n.has(c)||i.issues.push({code:"invalid_value",values:r,input:c,inst:e}),i}}),xo=E("$ZodLiteral",(e,t)=>{if(te.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"?tt(n):n?tt(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 _o=E("$ZodTransform",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Zt(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(c=>(r.value=c,r));if(i instanceof Promise)throw new Ee;return r.value=i,r}});function oo(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(oo,"handleOptionalResult");var Po=E("$ZodOptional",(e,t)=>{te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${qt(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=>oo(u,r.value)):oo(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var bo=E("$ZodNullable",(e,t)=>{te.init(e,t),ae(e._zod,"optin",()=>t.innerType._zod.optin),ae(e._zod,"optout",()=>t.innerType._zod.optout),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${qt(r.source)}|null)$`):void 0}),ae(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 To=E("$ZodPipe",(e,t)=>{te.init(e,t),ae(e._zod,"values",()=>t.in._zod.values),ae(e._zod,"optin",()=>t.in._zod.optin),ae(e._zod,"optout",()=>t.out._zod.optout),ae(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(c=>Xt(c,t.in,n)):Xt(u,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(u=>Xt(u,t.out,n)):Xt(i,t.out,n)}});function Xt(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}o(Xt,"handlePipeResult");var Io=E("$ZodCustom",(e,t)=>{nt.init(e,t),te.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=>io(u,r,n,e));io(i,r,n,e)}});function io(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(Or(i))}}o(io,"handleRefineResult");var Eo,Du=Symbol("ZodOutput"),Nu=Symbol("ZodInput"),Ur=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 So(){return new Ur}o(So,"registry");(Eo=globalThis).__zod_globalRegistry??(Eo.__zod_globalRegistry=So());var Mr=globalThis.__zod_globalRegistry;function Ao(e,t){return new e({type:"string",...ee(t)})}o(Ao,"_string");function zo(e,t){return new e({type:"string",coerce:!0,...ee(t)})}o(zo,"_coercedString");function ko(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ee(t)})}o(ko,"_url");function Oo(e,t){return new e({type:"number",checks:[],...ee(t)})}o(Oo,"_number");function wo(e,t){return new e({type:"number",coerce:!0,checks:[],...ee(t)})}o(wo,"_coercedNumber");function Ro(e,t){return new e({type:"boolean",...ee(t)})}o(Ro,"_boolean");function Do(e,t){return new e({type:"boolean",coerce:!0,...ee(t)})}o(Do,"_coercedBoolean");function No(e,t){return new e({type:"bigint",coerce:!0,...ee(t)})}o(No,"_coercedBigint");function Co(e){return new e({type:"any"})}o(Co,"_any");function Uo(e){return new e({type:"unknown"})}o(Uo,"_unknown");function Mo(e,t){return new e({type:"void",...ee(t)})}o(Mo,"_void");function jo(e,t){return new e({type:"date",coerce:!0,...ee(t)})}o(jo,"_coercedDate");function Ie(e,t){return new Yn({check:"min_length",...ee(t),minimum:e})}o(Ie,"_minLength");function Be(e,t){return new Qn({check:"string_format",format:"regex",...ee(t),pattern:e})}o(Be,"_regex");function Lo(e,t,r){let n=ee(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}o(Lo,"_custom");var se=E("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");te.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>Kt(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>bt(e,r,n),e.parseAsync=async(r,n)=>Jt(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Tt(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)=>Gt(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.apply=r=>r(e)}),tr=E("ZodMiniString",(e,t)=>{Qt.init(e,t),se.init(e,t)});function a(e){return Ao(tr,e)}o(a,"string");var Fo=E("ZodMiniStringFormat",(e,t)=>{Dr.init(e,t),tr.init(e,t)});var Hu=E("ZodMiniURL",(e,t)=>{ao.init(e,t),Fo.init(e,t)});function Bo(e){return ko(Hu,e)}o(Bo,"url");var jr=E("ZodMiniNumber",(e,t)=>{so.init(e,t),se.init(e,t)});function me(e){return Oo(jr,e)}o(me,"number");var Lr=E("ZodMiniBoolean",(e,t)=>{Nr.init(e,t),se.init(e,t)});function X(e){return Ro(Lr,e)}o(X,"boolean");var Vo=E("ZodMiniBigInt",(e,t)=>{uo.init(e,t),se.init(e,t)});var Wu=E("ZodMiniAny",(e,t)=>{co.init(e,t),se.init(e,t)});function $t(){return Co(Wu)}o($t,"any");var qu=E("ZodMiniUnknown",(e,t)=>{lo.init(e,t),se.init(e,t)});function N(){return Uo(qu)}o(N,"unknown");var Gu=E("ZodMiniVoid",(e,t)=>{po.init(e,t),se.init(e,t)});function Zo(e){return Mo(Gu,e)}o(Zo,"_void");var Ho=E("ZodMiniDate",(e,t)=>{mo.init(e,t),se.init(e,t)});var Ku=E("ZodMiniArray",(e,t)=>{fo.init(e,t),se.init(e,t)});function j(e,t){return new Ku({type:"array",element:e,...ee(t)})}o(j,"array");var Ju=E("ZodMiniObject",(e,t)=>{go.init(e,t),se.init(e,t),ae(e,"shape",()=>t.shape)});function p(e,t){let r={type:"object",shape:e??{},...ee(t)};return new Ju(r)}o(p,"object");var Xu=E("ZodMiniUnion",(e,t)=>{Cr.init(e,t),se.init(e,t)});function L(e,t){return new Xu({type:"union",options:e,...ee(t)})}o(L,"union");var Yu=E("ZodMiniDiscriminatedUnion",(e,t)=>{yo.init(e,t),se.init(e,t)});function ot(e,t,r){return new Yu({type:"union",options:t,discriminator:e,...ee(r)})}o(ot,"discriminatedUnion");var Qu=E("ZodMiniRecord",(e,t)=>{ho.init(e,t),se.init(e,t)});function C(e,t,r){return new Qu({type:"record",keyType:e,valueType:t,...ee(r)})}o(C,"record");var ec=E("ZodMiniEnum",(e,t)=>{vo.init(e,t),se.init(e,t),e.options=Object.values(t.entries)});function H(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ec({type:"enum",entries:r,...ee(t)})}o(H,"_enum");var tc=E("ZodMiniLiteral",(e,t)=>{xo.init(e,t),se.init(e,t)});function k(e,t){return new tc({type:"literal",values:Array.isArray(e)?e:[e],...ee(t)})}o(k,"literal");var rc=E("ZodMiniTransform",(e,t)=>{_o.init(e,t),se.init(e,t)});function Ve(e){return new rc({type:"transform",transform:e})}o(Ve,"transform");var nc=E("ZodMiniOptional",(e,t)=>{Po.init(e,t),se.init(e,t)});function h(e){return new nc({type:"optional",innerType:e})}o(h,"optional");var oc=E("ZodMiniNullable",(e,t)=>{bo.init(e,t),se.init(e,t)});function Et(e){return new oc({type:"nullable",innerType:e})}o(Et,"nullable");var ic=E("ZodMiniPipe",(e,t)=>{To.init(e,t),se.init(e,t)});function Ze(e,t){return new ic({type:"pipe",in:e,out:t})}o(Ze,"pipe");var ac=E("ZodMiniCustom",(e,t)=>{Io.init(e,t),se.init(e,t)});function rr(e,t){return Lo(ac,e??(()=>!0),t)}o(rr,"custom");var St={};Mn(St,{bigint:()=>mc,boolean:()=>dc,date:()=>fc,number:()=>pc,string:()=>lc});function lc(e){return zo(tr,e)}o(lc,"string");function pc(e){return wo(jr,e)}o(pc,"number");function dc(e){return Do(Lr,e)}o(dc,"boolean");function mc(e){return No(Vo,e)}o(mc,"bigint");function fc(e){return jo(Ho,e)}o(fc,"date");var Br=p({retryOnFailure:p({defaultValue:h(X()),hide:h(X())}),continueOnFailure:p({defaultValue:h(X()),hide:h(X())})}),Fr=class{constructor(t,r,n,i,u,c,l,f,g,_,I){this.name=t;this.displayName=r;this.description=n;this.props=i;this.run=u;this.test=c;this.requireAuth=l;this.errorHandlingOptions=f;this.outputSchema=g;this.audience=_;this.aiMetadata=I}static{o(this,"IAction")}},be=o(e=>new Fr(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 G=p({displayName:a(),description:h(a())}),Z=o((e,t)=>p({type:k(t),required:X(),defaultValue:h($t())}),"TPropertyValue");var ve=p({...G.shape,...Z(a(),"SHORT_TEXT").shape}),we=p({...G.shape,...Z(a(),"LONG_TEXT").shape});var qo=p({label:a(),value:N()}),nr=p({disabled:h(X()),placeholder:h(a()),options:j(qo)});var xe=p({...G.shape,options:nr,...Z(N(),"STATIC_DROPDOWN").shape}),Re=p({...G.shape,options:nr,...Z(j(N()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Vr=p({...G.shape,...Z(N(),"DROPDOWN").shape,refreshers:j(a())}),At=p({...G.shape,...Z(j(N()),"MULTI_SELECT_DROPDOWN").shape,refreshers:j(a())});var De=p({...G.shape,...Z(X(),"CHECKBOX").shape});var Ne=p({...G.shape,...Z(me(),"NUMBER").shape});var zt=p({...G.shape,...Z(N(),"FILE").shape});var kt=p({...G.shape,...Z(a(),"DATE_TIME").shape});var Go=C(a(),L([ve,we,xe,At,Re,De,Ne,zt,kt])),Ot=p({...G.shape,properties:Go,...Z(j(N()),"ARRAY").shape});var wt=p({...G.shape,...Z(L([C(a(),N())]),"JSON").shape});var Ko=L([ve,xe,wt,Ot,Re]),yc=C(a(),Ko),Zr=p({refreshers:j(a()),...G.shape,...Z(N(),"DYNAMIC").shape});var or=p({...G.shape,...Z(Zo(),"MARKDOWN").shape});var Rt=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Rt||{}),it=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(it||{}),Dt=(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))(Dt||{});var Nt=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Nt||{}),Hr="both_client_credentials_and_authorization_code";var Ce=(i=>(i.POLLING="POLLING",i.WEBHOOK="WEBHOOK",i.APP_WEBHOOK="APP_WEBHOOK",i.MANUAL="MANUAL",i))(Ce||{}),Ct=(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))(Ct||{}),hc=p({strategy:H(Ct),paramName:h(a())}),Ut=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(Ut||{});var ir=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(ir||{}),Jo=p({status:h(me()),body:h(N()),headers:h(C(a(),a()))}),Xo=p({type:k("DELAY"),resumeDateTime:a(),requestIdToReply:h(a()),handlerId:h(a()),streamStepProgress:h(H(ir))}),Yo=p({type:k("WEBHOOK"),requestId:a(),requestIdToReply:h(a()),response:Jo,handlerId:h(a()),streamStepProgress:h(H(ir))}),vc=L([Xo,Yo]);var xc=p({body:N(),rawBody:h(N()),headers:C(a(),a()),queryParams:C(a(),a())});function pe(e){return e==null}o(pe,"isNil");function Ke(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}o(Ke,"isEmpty");function ar(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}o(ar,"assertNotNullOrUndefined");var Wr=je(require("crypto"),1);var _c=128,Je,at,Pc=o(e=>{!Je||Je.length<e?(Je=Buffer.allocUnsafe(e*_c),Wr.default.randomFillSync(Je),at=0):at+e>Je.length&&(Wr.default.randomFillSync(Je),at=0),at+=e},"fillPool"),bc=o(e=>(Pc(e|=0),Je.subarray(at-e,at)),"random"),Tc=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 c="";for(;;){let l=r(i),f=i;for(;f--;)if(c+=e[l[f]&n]||"",c.length===u)return c}}},"customRandom"),ei=o((e,t=21)=>Tc(e,t,bc),"customAlphabet");var Ic="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ti=21,Eb=a().check(Be(new RegExp(`^[0-9a-zA-Z]{${ti}}$`))),$c=ei(Ic,ti);var He=Ze(Ve(e=>e instanceof Date?e.toISOString():e),a()),Te={id:a(),created:He,updated:He},Q=o(e=>h(Et(e)),"Nullable");function qr(e){return h(Et(H(e)))}o(qr,"NullableEnum");var zb=Ze(Ve(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),h(X())),sr=o(e=>Ze(Ve(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),h(j(e))),"OptionalArrayFromQuery");var wb=C(a(),N());var Mt=(_=>(_.OPENAI="openai",_.OPENROUTER="openrouter",_.ANTHROPIC="anthropic",_.AZURE="azure",_.GOOGLE="google",_.ACTIVEPIECES="activepieces",_.CLOUDFLARE_GATEWAY="cloudflare-gateway",_.CUSTOM="custom",_.BEDROCK="bedrock",_.MISTRAL="mistral",_))(Mt||{});var Zb=a().check(Be(/^#[0-9A-Fa-f]{6}$/));var Wb=p({filename:a(),data:N(),type:k("file"),mimetype:h(a())});var Ec=je(ni());var Qb=p({...Te,name:a(),permissions:j(a()),platformId:Q(a()),type:a(),userCount:h(me())});var oi=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(oi||{}),Gr=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Gr||{}),Kr=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Kr||{});var Jr=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(Jr||{});var Xr=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Xr||{});var Sc=p({mode:H(oi),value:N()}),Ac=p({auth:h(a()),fields:C(a(),Sc)}),zc=p({pieceName:a(),pieceVersion:a(),actionName:a(),predefinedInput:h(Ac)}),kc=p({type:k("PIECE"),toolName:a().check(Ie(1)),pieceMetadata:zc}),Oc=p({type:k("none")}),wc=p({type:k("access_token"),accessToken:a()}),Rc=p({type:k("api_key"),apiKey:a(),apiKeyHeader:a()}),Dc=p({type:k("headers"),headers:C(a(),a())}),Nc=ot("type",[Oc,wc,Rc,Dc]),ii=p({type:k("FLOW"),toolName:a().check(Ie(1)),externalFlowId:a(),flowDisplayName:h(a())}),ai=p({type:k("MCP"),toolName:a().check(Ie(1)),serverUrl:Bo(),protocol:H(Kr),auth:Nc}),si=p({type:k("KNOWLEDGE_BASE"),toolName:a().check(Ie(1)),sourceType:H(Gr),sourceId:a(),sourceName:a()}),Cc=ot("type",[kc,ii,ai,si]),Uc=p({displayName:a(),description:h(a()),type:H(Jr)}),ui=p({type:k("MARKDOWN"),markdown:a()}),st={type:k("TOOL_CALL"),input:Q(C(a(),N())),output:h(N()),toolName:a(),status:H(Xr),toolCallId:a(),startTime:a(),endTime:h(a())},ET=p(st),ci=ot("toolCallType",[p({...st,toolCallType:k("PIECE"),pieceName:a(),pieceVersion:a(),actionName:a()}),p({...st,toolCallType:k("FLOW"),displayName:a(),externalFlowId:a()}),p({...st,toolCallType:k("MCP"),displayName:a(),serverUrl:a()}),p({...st,toolCallType:k("KNOWLEDGE_BASE"),displayName:a(),sourceType:a()}),p({...st,toolCallType:k("UNKNOWN"),displayName:a()})]),Mc=L([ui,ci]);var Yr=(r=>(r.IMAGE="image",r.TEXT="text",r))(Yr||{}),Ue=p({apiKey:a()}),jc=Ue,Lc=p({apiKey:a(),apiKeyHash:a()}),Fc=Ue,Bc=Ue,Vc=Ue,Zc=Ue,Hc=Ue,Wc=Ue,qc=Ue,li=p({accessKeyId:a().check(Ie(1)),secretAccessKey:a().check(Ie(1))}),Gc=p({}),Kc=p({}),Jc=p({}),Xc=p({}),Yc=p({}),Qc=p({}),pi=p({modelId:a(),modelName:a(),modelType:H(Yr)}),di=p({apiKeyHeader:a(),baseUrl:a(),models:j(pi),defaultHeaders:h(C(a(),a()))}),mi=p({accountId:a(),gatewayId:a(),models:j(pi),vertexProject:h(a()),vertexRegion:h(a())}),fi=p({resourceName:a(),apiVersion:Ze(Ve(e=>typeof e=="string"&&e.trim().length===0?void 0:e),h(a()))}),gi=p({region:a().check(Ie(1))}),el=L([jc,Vc,Zc,Hc,Wc,Bc,Fc,Lc,li,qc]),yi=L([di,mi,fi,gi,Gc,Jc,Xc,Yc,Kc,Qc]),tl=p({id:a(),name:a(),type:H(Yr)}),rl=p({id:a(),name:a(),provider:H(Mt),config:yi,enabledForChat:X()}),nl=p({provider:H(Mt),config:yi,auth:el,platformId:a()});var kT={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var ol=p({base64Url:a(),fileName:a(),extension:h(a())}),il=p({mimeType:a(),url:a(),fileName:h(a())}),Qr=L([ol,il]);var al=L([p({type:k("file"),value:Qr}),p({type:k("markdown"),value:a(),files:h(j(Qr))})]),sl=p({sessionId:a(),message:a(),files:h(j(a()))});var vi=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(vi||{}),xi=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(xi||{}),en=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(en||{});var ul=L([p({...Te,name:a(),externalId:a(),type:k("STATIC_DROPDOWN"),tableId:a(),projectId:a(),data:p({options:j(p({value:a()}))})}),p({...Te,name:a(),externalId:a(),type:L([k("TEXT"),k("NUMBER"),k("DATE")]),tableId:a(),projectId:a()})]),cl=p({...Te,name:a(),folderId:Q(a()),projectId:a(),externalId:a(),status:qr(xi),trigger:qr(vi)}),ll=p({...Te,tableId:a(),projectId:a(),cells:C(a(),p({updated:a(),created:a(),value:N(),fieldName:a()}))}),pl=p({events:j(H(en)),webhookUrl:a(),flowId:a()}),dl=p({fields:j(p({id:a(),name:a()})),rows:j(C(a(),a())),name:a()}),ml=p({projectId:a(),limit:h(St.number()),cursor:h(a()),name:h(a()),externalIds:sr(a()),folderId:h(a()),folderIds:sr(a())}),fl=p({records:j(j(p({fieldId:a(),value:Pi()}))),tableId:a()}),gl=p({cells:h(j(p({fieldId:a(),value:Pi()}))),tableId:a(),agentUpdate:h(X())}),_i=ot("operator",[Xe("eq"),Xe("neq"),Xe("gt"),Xe("gte"),Xe("lt"),Xe("lte"),Xe("co"),hi("exists"),hi("not_exists")]),yl=p({tableId:a(),limit:h(St.number()),cursor:h(a()),filters:sr(_i)});function Pi(){return Ze(Ve(e=>e==null?e:String(e)),Et(a()))}o(Pi,"coerceToString");function Xe(e){return p({fieldId:a(),operator:k(e),value:a()})}o(Xe,"valueFilter");function hi(e){return p({fieldId:a(),operator:k(e)})}o(hi,"existenceFilter");var hl=p({status:h(me()),body:h(N()),headers:h(C(a(),a()))}),vl=p({...Te,deleted:Q(He),ownerId:a(),displayName:a(),platformId:a(),externalId:Q(a())});var bi=p({name:a(),description:h(a()),type:a(),required:X()}),xl=p({pieceName:a(),triggerName:a(),input:p({toolName:a(),toolDescription:a(),inputSchema:j(bi),returnsResponse:X()})});var Ti="^[0-9]+\\.[0-9]+\\.[0-9]+$",KT=new RegExp(Ti),Pl="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",JT=a().check(Be(new RegExp(Ti))),XT=a().check(Be(new RegExp(Pl))),bl=p({packageType:k("ARCHIVE"),pieceType:H(it),pieceName:a(),pieceVersion:a(),archiveId:a(),platformId:a()}),Ii=p({packageType:k("REGISTRY"),pieceType:k("OFFICIAL"),pieceName:a(),pieceVersion:a()}),$i=p({packageType:k("REGISTRY"),pieceType:k("CUSTOM"),pieceName:a(),pieceVersion:a(),platformId:a()}),YT=L([Ii,$i]),QT=L([bl,Ii,$i]),Ei=(t=>(t.CRON_EXPRESSION="CRON_EXPRESSION",t))(Ei||{}),Tl=p({type:H(Ei),cronExpression:a(),timezone:a()}),eI=p({...Te,type:H(Ce),projectId:a(),flowId:a(),triggerName:a(),schedule:Q(Tl),flowVersionId:a(),pieceName:a(),pieceVersion:a(),deleted:Q(a()),simulate:X()}),Si=(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))(Si||{}),Ai=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(Ai||{}),zi=(r=>(r.S3="S3",r.DB="DB",r))(zi||{}),tI=p({...Te,projectId:Q(a()),platformId:Q(a()),type:H(Si),compression:H(Ai),data:h(N()),location:H(zi),size:Q(me()),fileName:Q(a()),s3Key:Q(a()),metadata:Q(C(a(),a()))}),ki=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(ki||{}),Oi=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(Oi||{}),rI=p({id:a(),email:a(),firstName:a(),status:H(Oi),externalId:Q(a()),platformId:Q(a()),platformRole:H(ki),lastName:a(),created:He,updated:He,lastActiveDate:Q(He),imageUrl:Q(a())});var tn=p({...G.shape,...Z(C(a(),N()),"OBJECT").shape});var Ni=p({...G.shape,...Z(a(),"COLOR").shape});var rn=L([ve,we,or,De,xe,Re,Vr,At,Zr,Ne,Ot,tn,wt,kt,zt,Ni]),M={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 Se=p({displayName:a(),description:h(a())});var Ci=p({username:a(),password:a()}),nn=p({...Se.shape,username:p({displayName:a(),description:h(a())}),password:p({displayName:a(),description:h(a())}),...Z(Ci,"BASIC_AUTH").shape});var Sl=C(a(),L([ve,we,Ne,De,xe])),on=p({...Se.shape,props:Sl,...Z(N(),"CUSTOM_AUTH").shape});var Ye=p({...Se.shape,...Z(p({auth:a()}),"SECRET_TEXT").shape});var Al=C(a(),L([ve,we,Ye,Ne,De,xe,Re,or])),Ui=p({...Se.shape,props:Al,...Z(N(),"OIDC").shape});var an=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(an||{}),Mi=L([ve,Ye,xe]),ji=C(a(),Mi),zl=p({props:h(C(a(),Mi)),authUrl:a(),tokenUrl:a(),scope:j(a()),prompt:h(L([k("none"),k("consent"),k("login"),k("omit")])),pkce:h(X()),pkceMethod:h(L([k("plain"),k("S256")])),authorizationMethod:h(H(an)),grantType:h(L([H(Nt),k(Hr)])),extra:h(C(a(),a()))}),Li=p({access_token:a(),props:h(ji),data:C(a(),$t())}),sn=p({...Se.shape,...zl.shape,...Z(Li,"OAUTH2").shape});var ut=L([nn,on,Ui,sn,Ye]),jt="Connection",un={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||jt}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||jt,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||jt}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||jt}},None(){}};var D$={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 kl=p({...G.shape,...Z(N(),"CUSTOM").shape,code:a()});var Ol=L([rn,ut]),cn=C(a(),Ol),eE=C(a(),rn);var Fi=L([p({strategy:k("CRON"),cronExpression:a()}),p({strategy:k("NONE")})]),ct=class{constructor(t,r,n,i,u,c,l,f,g,_,I,x,s,d,y,m,v,P,F){this.name=t;this.displayName=r;this.description=n;this.requireAuth=i;this.props=u;this.type=c;this.handshakeConfiguration=l;this.onHandshake=f;this.renewConfiguration=g;this.onRenew=_;this.onEnable=I;this.onDisable=x;this.onStart=s;this.run=d;this.test=y;this.sampleData=m;this.testStrategy=v;this.outputSchema=P;this.aiMetadata=F}static{o(this,"ITrigger")}},cr=o(e=>{switch(e.type){case"WEBHOOK":return new ct(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata);case"POLLING":return new ct(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"MANUAL":return new ct(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"APP_WEBHOOK":return new ct(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,pe(e.sampleData)&&pe(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var Bi="2",lr="0.82.0";var ln=class{constructor(t,r,n,i,u,c,l,f,g=lr,_,I=""){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=i;this.categories=l;this.auth=f;this.minimumSupportedRelease=g;this.maximumSupportedRelease=_;this.description=I;this._actions={};this._triggers={};this.getContextInfo=o(()=>({version:Bi}),"getContextInfo");(!wl(g)||Rl(g,lr))&&(this.minimumSupportedRelease=lr),u.forEach(x=>this._actions[x.name]=x),c.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}},Vi=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 ln(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function wl(e){return/^\d+\.\d+\.\d+$/.test(e)}o(wl,"isValidSimpleSemver");function Rl(e,t){let[r,n,i]=e.split(".").map(Number),[u,c,l]=t.split(".").map(Number);return r!==u?r<u:n!==c?n<c:i<l}o(Rl,"isSemverLessThan");var Dl=h(C(a(),C(a(),a()))),Zi=p({id:h(a()),name:a(),displayName:a(),logoUrl:a(),description:a(),authors:j(a()),platformId:h(a()),directoryPath:h(a()),auth:h(L([ut,j(ut)])),version:a(),categories:h(j(H(Dt))),minimumSupportedRelease:h(a()),maximumSupportedRelease:h(a()),i18n:Dl}),Nl=H(["human","ai","both"]),Hi=p({description:h(a()),idempotent:h(X())}),Wi=p({name:a(),displayName:a(),description:a(),props:cn,requireAuth:X(),errorHandlingOptions:h(Br),outputSchema:h(rr()),audience:h(Nl),aiMetadata:h(Hi)}),qi=p({name:a(),displayName:a(),description:a(),props:cn,errorHandlingOptions:h(Br),type:H(Ce),sampleData:N(),handshakeConfiguration:h(rr()),renewConfiguration:h(Fi),testStrategy:H(Ut),outputSchema:h(rr()),aiMetadata:h(Hi)}),Cl=p({...Zi.shape,actions:C(a(),Wi),triggers:C(a(),qi)}),Ul=p({...Zi.shape,actions:me(),triggers:me(),suggestedActions:h(j(qi)),suggestedTriggers:h(j(Wi))}),Gi=p({projectUsage:me(),tags:h(j(a())),pieceType:H(it),packageType:H(Rt),platformId:h(a()),archiveId:h(a())}),eS=p({...Cl.shape,...Gi.shape}),tS=p({...Ul.shape,...Gi.shape}),rS=p({name:a(),version:a()});var Ml=je(require("path")),jl=je(require("fs/promises"));var pr=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,c)=>{i.append(c,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 dr=class{static{o(this,"DelegatingAuthenticationConverter")}constructor(t=new pn,r=new dn){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},pn=class{static{o(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},dn=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 mr=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 fr=class extends pr{static{o(this,"FetchHttpClient")}constructor(t="",r=new dr){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),c=t.queryParams??{};for(let[F,oe]of Object.entries(c))i.append(F,oe);let l=i.toString(),f=l?`${n}?${l}`:n,g=t.responseType??"json",_=t.followRedirects??!0,I=t.retries??0,{body:x,extraHeaders:s,isStream:d}=Ll(t.body,u),y=Bl({...u,...s}),m=await Fl(async()=>{let F=new AbortController,oe=t.timeout&&t.timeout>0?setTimeout(()=>F.abort(),t.timeout):void 0;try{let fe={method:t.method.toString(),headers:y,body:x,redirect:_?"follow":"manual",signal:F.signal};return d&&(fe.duplex="half"),r?.dispatcher!==void 0&&(fe.dispatcher=r.dispatcher),await fetch(f,fe)}finally{oe!==void 0&&clearTimeout(oe)}},I),v=_?300:400;if(m.status<200||m.status>=v){let F=await Ki(m,g),oe=new mr(t.body,{status:m.status,responseBody:F});throw console.error("[HttpClient#(sanitized error message)] Request failed:",oe),oe}let P=await Ki(m,g);return{status:m.status,headers:Vl(m.headers),body:P}}};function Ll(e,t){return Hl(e)?{body:void 0,extraHeaders:{},isStream:!1}:Zl(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(Ll,"serializeBody");async function Ki(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(Ki,"parseResponseBody");async function Fl(e,t){let r;for(let n=0;n<=t;n++)try{let i=await e();if(i.status>=500&&n<t){await Ji(n);continue}return i}catch(i){if(r=i,n<t){await Ji(n);continue}throw i}throw r}o(Fl,"sendWithRetries");function Ji(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}o(Ji,"backoff");function Bl(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(Bl,"normalizeHeaders");function Vl(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}o(Vl,"toHttpHeaders");function Zl(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}o(Zl,"isNodeFormData");function Hl(e){return e==null}o(Hl,"isNil");var lt=new fr;var gr=(c=>(c.GET="GET",c.POST="POST",c.PATCH="PATCH",c.PUT="PUT",c.DELETE="DELETE",c.HEAD="HEAD",c))(gr||{});var wd=je(require("fs")),ru=je(tu());var Rd={"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 Dd(e){let t=e.split(";")[0].trim().toLowerCase();return Rd[t]??""}o(Dd,"contentTypeToExtension");var Nd=o(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),Cd=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 nu({auth:e,baseUrl:t,authMapping:r,description:n,displayName:i,name:u,props:c,extraProps:l,authLocation:f="headers"}){return be({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:M.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:o(async({auth:g})=>({url:M.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
|
|
3
|
+
i.e ${Cd(t,g)}/resource or /resource`,required:!0,defaultValue:g?t(g):"",...c?.url??{}})}),"props")}),method:M.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(gr).map(g=>({label:g,value:g}))},...c?.method??{}}),headers:M.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...c?.headers??{}}),queryParams:M.Object({displayName:"Query Parameters",required:!0,...c?.queryParams??{}}),body_type:M.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:M.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:o(async({body_type:g})=>{if(!g)return{};let _=g,I={};switch(_){case"none":break;case"json":I.data=M.Json({displayName:"JSON Body",required:!0,...c?.body??{}});break;case"raw":I.data=M.LongText({displayName:"Raw Body",required:!0});break;case"form_data":I.data=M.Array({displayName:"Form Data",required:!0,properties:{fieldName:M.ShortText({displayName:"Field Name",required:!0}),fieldType:M.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:M.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:M.File({displayName:"File Field Value",required:!1})}});break}return I},"props")}),response_is_binary:M.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:M.Checkbox({displayName:"No Error on Failure",required:!1,...c?.failsafe??{}}),timeout:M.Number({displayName:"Timeout (in seconds)",required:!1,...c?.timeout??{}}),followRedirects:M.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...l},run:o(async g=>{let{method:_,url:I,headers:x,queryParams:s,body:d,body_type:y,failsafe:m,timeout:v,response_is_binary:P,followRedirects:F}=g.propsValue;ar(_,"Method"),ar(I,"URL");let oe=pe(r)?{}:await r(g.auth,g.propsValue),fe=I.url,ze=fe.startsWith("http://")||fe.startsWith("https://")?fe:Nd({baseUrl:t(g.auth),relativePath:fe}),_e={method:_,url:ze,headers:{...x??{},...f==="headers"||!pe(f)?oe:{}},queryParams:{...f==="queryParams"?oe:{},...s??{}},timeout:v?v*1e3:0,followRedirects:F};if(P&&(_e.responseType="arraybuffer"),d)if(y&&y!=="none"){let J=d.data;if(y==="form_data"){let K=J,ke=new ru.default;for(let{fieldName:yt,fieldType:O,textFieldValue:T,fileFieldValue:b}of K)O==="text"&&!Ke(T)?ke.append(yt,T):O==="file"&&!Ke(b)&&ke.append(yt,b.data,{filename:b?.filename});_e.body=ke,_e.headers={..._e.headers,...ke.getHeaders()}}else _e.body=J}else y||(_e.body=d);try{let J=await lt.sendRequest(_e);return await Ud(g.files,J.body,J.status,J.headers,P)}catch(J){if(m)return J.errorMessage();throw J}},"run")})}o(nu,"createCustomApiCallAction");var Ud=o(async(e,t,r,n,i)=>{let u;if(i&&Md(t)){let c=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],l=Dd(c??"")||"txt",f;t instanceof ArrayBuffer?f=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?f=t:f=Buffer.from(t),u=await e.write({fileName:`output.${l}`,data:f})}else u=t;return{status:r,headers:n,body:u}},"handleBinaryResponse"),Md=o(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Ae={async poll(e,{store:t,auth:r,propsValue:n,maxItemsToPoll:i,files:u,server:c}){switch(e.strategy){case 0:{let l=await t.get("lastPoll");if(pe(l))throw new Error("lastPoll doesn't exist in the store.");let f=await e.items({store:t,auth:r,propsValue:n,lastFetchEpochMS:l,server:c}),g=f.reduce((_,I)=>Math.max(_,I.epochMilliSeconds),l);return await t.put("lastPoll",g),f.filter(_=>_.epochMilliSeconds>l).map(_=>_.data)}case 1:{let l=await t.get("lastItem"),f=await e.items({store:t,auth:r,propsValue:n,lastItemId:l,files:u,server:c}),g=f.findIndex(x=>x.id===l),_=[];pe(l)||g==-1?_=f??[]:_=f?.slice(0,g)??[],pe(i)||(_=_.slice(-i));let I=_?.[0]?.id;return pe(I)||await t.put("lastItem",I),_.map(x=>x.data)}}},async onEnable(e,{store:t,auth:r,propsValue:n,server:i}){switch(e.strategy){case 0:{await t.put("lastPoll",Date.now());break}case 1:{let c=(await e.items({store:t,auth:r,propsValue:n,lastItemId:null,server:i}))?.[0]?.id;pe(c)?await t.delete("lastItem"):await t.put("lastItem",c);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:r,store:n,files:i,server:u}){let c=[];switch(e.strategy){case 0:{c=await e.items({store:n,auth:t,propsValue:r,lastFetchEpochMS:0,server:u});break}case 1:{c=await e.items({store:n,auth:t,propsValue:r,lastItemId:null,files:i,server:u});break}}return jd(c.map(l=>l.data))}};function jd(e){return e.length<=5?e:e.slice(0,5)}o(jd,"getFirstFiveOrAll");var le=un.SecretText({displayName:"API Token",description:"You can obtain your API token by navigating to [Developer Settings](https://app.onfragment.com/settings/account/developers).",required:!0,validate:o(async({auth:e})=>{try{return await lt.sendRequest({method:"GET",url:"https://api.onfragment.com/api/v1/tasks",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},queryParams:{limit:"1"}}),{valid:!0}}catch{return{valid:!1,error:"Invalid API token. Please check your API token and try again."}}},"validate")});var Ld="https://api.onfragment.com/api/v1",he={async makeRequest(e,t,r,n,i){let u=`${Ld}${t}`;try{return(await lt.sendRequest({method:e,url:u,headers:{Authorization:`Bearer ${r.secret_text}`,"Content-Type":"application/json"},body:n,queryParams:i})).body}catch(c){let l=c.response?.body?.message||c.message||"Unknown error occurred";throw new Error(`Fragment API Error: ${l}`)}}};var ou=be({auth:le,name:"create_task",displayName:"Create Task",description:"Creates a new task in Fragment.",audience:"both",aiMetadata:{description:"Creates a new task in Fragment with a title and optional URL, due date, assignee email, tags, and custom fields. Use to add a work item to a Fragment queue. Not idempotent: each call creates a separate task even with identical input.",idempotent:!1},props:{title:M.ShortText({displayName:"Title",description:"The title of the task",required:!0}),url:M.ShortText({displayName:"URL",description:"A URL associated with the task (e.g., link to a ticket or resource)",required:!1}),due_at:M.DateTime({displayName:"Due Date",description:"When the task is due",required:!1}),assignee:M.ShortText({displayName:"Assignee",description:"Email of the person to assign this task to.",required:!1}),tags:M.Array({displayName:"Tags",description:"Tags to categorize the task",required:!1}),custom_fields:M.Object({displayName:"Custom Fields",description:"Additional custom fields for the task",required:!1})},async run(e){let t={title:e.propsValue.title,...e.propsValue.custom_fields??{}},r={fields:t};return e.propsValue.url&&(t.url=e.propsValue.url),e.propsValue.due_at&&(r.due_at=e.propsValue.due_at),e.propsValue.assignee&&(r.assignee_email=e.propsValue.assignee),e.propsValue.tags&&Array.isArray(e.propsValue.tags)&&(r.tags=e.propsValue.tags),await he.makeRequest("POST","/tasks",e.auth,r)}});var iu=be({auth:le,name:"update_task",displayName:"Update Task",description:"Updates an existing task.",audience:"both",aiMetadata:{description:"Updates an existing Fragment task identified by its task UID, changing any of title, URL, due date, status (TODO/STARTED/DONE), assignee email, tags, or custom fields. Only the fields you supply are modified. Idempotent: re-applying the same field values to the same task yields the same end state.",idempotent:!0},props:{task_uid:M.ShortText({displayName:"Task UID",description:"The unique identifier of the task to update",required:!0}),title:M.ShortText({displayName:"Title",description:"The updated title of the task",required:!1}),url:M.ShortText({displayName:"URL",description:"The updated URL for the task",required:!1}),due_at:M.DateTime({displayName:"Due Date",description:"The updated due date",required:!1}),status:M.StaticDropdown({displayName:"Status",description:"The status of the task",required:!1,options:{options:[{label:"TODO",value:"TODO"},{label:"STARTED",value:"STARTED"},{label:"DONE",value:"DONE"}]}}),assignee:M.ShortText({displayName:"Assignee",description:"Email of the person to assign this task to",required:!1}),tags:M.Array({displayName:"Tags",description:"Updated tags for the task",required:!1}),custom_fields:M.Object({displayName:"Custom Fields",description:"Updated custom fields",required:!1})},async run(e){let t={...e.propsValue.custom_fields??{}},r={};return e.propsValue.title&&(t.title=e.propsValue.title),e.propsValue.url&&(t.url=e.propsValue.url),e.propsValue.due_at&&(r.due_at=e.propsValue.due_at),e.propsValue.status&&(r.status=e.propsValue.status),e.propsValue.assignee&&(r.assignee_email=e.propsValue.assignee),e.propsValue.tags&&Array.isArray(e.propsValue.tags)&&(r.tags=e.propsValue.tags),Ke(t)||(r.fields=t),await he.makeRequest("PATCH",`/tasks/${e.propsValue.task_uid}`,e.auth,r)}});var au=be({auth:le,name:"get_task",displayName:"Get Task",description:"Retrieves details of a specific task.",audience:"both",aiMetadata:{description:"Fetches the full details of a single Fragment task by its unique task UID. Use when you already have a task identifier and need its current data. Read-only and idempotent.",idempotent:!0},props:{task_uid:M.ShortText({displayName:"Task UID",description:"The unique identifier of the task to retrieve",required:!0})},async run(e){return await he.makeRequest("GET",`/tasks/${e.propsValue.task_uid}`,e.auth)}});var su=be({auth:le,name:"list_tasks",displayName:"List Tasks",description:"Retrieves a list of tasks from.",audience:"both",aiMetadata:{description:"Lists tasks from Fragment, optionally filtered by status (TODO/STARTED/DONE) and assignee, and capped by a limit (default 50). Omit the filters to return recent tasks across all statuses. Use to discover task UIDs or survey tasks before acting on them. Read-only and idempotent.",idempotent:!0},props:{status:M.StaticDropdown({displayName:"Status",description:"Filter tasks by status",required:!1,options:{options:[{label:"TODO",value:"TODO"},{label:"STARTED",value:"STARTED"},{label:"DONE",value:"DONE"}]}}),assignee:M.ShortText({displayName:"Assignee",description:"Filter tasks by assignee email or ID",required:!1}),limit:M.Number({displayName:"Limit",description:"Maximum number of tasks to return (default: 50)",required:!1,defaultValue:50})},async run(e){let t={};return e.propsValue.status&&(t.status=e.propsValue.status),e.propsValue.assignee&&(t.assignee_uid=e.propsValue.assignee),e.propsValue.limit!==void 0&&(t.limit=e.propsValue.limit.toString()),await he.makeRequest("GET","/tasks",e.auth,void 0,t)}});var uu=be({auth:le,name:"delete_task",displayName:"Delete Task",description:"Deletes an existing task.",audience:"both",aiMetadata:{description:"Permanently deletes a Fragment task identified by its unique task UID. Use to remove a task; this is destructive and cannot be undone. Effectively idempotent: re-deleting an already-removed task has no further effect, though the API may return a not-found error.",idempotent:!0},props:{task_uid:M.ShortText({displayName:"Task UID",description:"The unique identifier of the task to delete",required:!0})},async run(e){return await he.makeRequest("DELETE",`/tasks/${e.propsValue.task_uid}`,e.auth)}});var cu=nu({auth:le,name:"custom_api_call",displayName:"Custom API Call",description:"Make a custom API call to any Fragment endpoint",baseUrl:o(()=>"https://api.onfragment.com/api/v1","baseUrl"),authMapping:o(async e=>({Authorization:`Bearer ${e}`,"Content-Type":"application/json"}),"authMapping")});var Cn=je(Nn());var $r={strategy:0,items:o(async({auth:e,lastFetchEpochMS:t})=>{let r=t>0,n={order_by:"created_at",limit:r?"10":"100"};return r||(n.created_at_after=(0,Cn.default)(t).toISOString()),(await he.makeRequest("GET","/tasks",e,void 0,n)).items.map(c=>({epochMilliSeconds:(0,Cn.default)(c.created_at).valueOf(),data:c}))},"items")},lu=cr({auth:le,name:"new_task",displayName:"New Task",description:"Triggers when a new task is created.",aiMetadata:{description:"Fires when a new task is created in Fragment, emitting the newly created task. Polls for tasks ordered by creation time, so each run yields tasks added since the last check."},props:{},type:"POLLING",async onEnable(e){await Ae.onEnable($r,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await Ae.onDisable($r,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await Ae.test($r,e)},async run(e){return await Ae.poll($r,e)},sampleData:{uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",archived:!0,status:"TODO",legacy_data:{},skills:["3c90c3cc-0d44-4b50-8888-8dd25736052a"],queue_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",assignee_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",participants:{},case_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",parent_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",due_at:"2023-11-07T05:31:56Z",snooze_expires_at:"2023-11-07T05:31:56Z",fields:{},metadata_form_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",form_data:{},form_type:"<string>",assigned_at:"2023-11-07T05:31:56Z",started_at:"2023-11-07T05:31:56Z",done_at:"2023-11-07T05:31:56Z",created_at:"2023-11-07T05:31:56Z",updated_at:"2023-11-07T05:31:56Z",assignee_updated_by:"3c90c3cc-0d44-4b50-8888-8dd25736052a",queue_updated_by:"3c90c3cc-0d44-4b50-8888-8dd25736052a",is_assigned_player:!0,internal_created_at:"2023-11-07T05:31:56Z",internal_updated_at:"2023-11-07T05:31:56Z",external_created_at:"2023-11-07T05:31:56Z",external_updated_at:"2023-11-07T05:31:56Z",external_status:"TODO",external_status_updated_at:"2023-11-07T05:31:56Z",external_assignee_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",queue_time:123,queue_time_business:123,work_time:123,work_time_business:123,incremental_work_time:123,incremental_work_time_business:123,resolution_time:123,resolution_time_business:123,num_children:123,num_children_done:123,sla_breach_at:"2023-11-07T05:31:56Z",sla_breach_business_at:"2023-11-07T05:31:56Z",wait_time:123,wait_time_business:123,review_status:"<string>",task_type:"<string>",played_at:"2023-11-07T05:31:56Z",assignee:{uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",archived:!0,role:"super_admin",email:"jsmith@example.com",first_name:"<string>",last_name:"<string>",skills:["3c90c3cc-0d44-4b50-8888-8dd25736052a"],legacy_data:{},created_at:"2023-11-07T05:31:56Z",updated_at:"2023-11-07T05:31:56Z",is_registered:!0},parent:{},children:[{}]}});var Un=je(Nn());var Er={strategy:0,items:o(async({auth:e,lastFetchEpochMS:t})=>{let r=t>0,n={order_by:"updated_at",limit:r?"10":"100"};return r||(n.updated_at_after=(0,Un.default)(t).toISOString()),(await he.makeRequest("GET","/tasks",e,void 0,n)).items.map(c=>({epochMilliSeconds:(0,Un.default)(c.updated_at).valueOf(),data:c}))},"items")},pu=cr({auth:le,name:"task_updated",displayName:"Task Updated",description:"Triggers when a task is updated.",aiMetadata:{description:"Fires when an existing Fragment task is modified, emitting the updated task. Polls for tasks ordered by update time, so each run yields tasks changed since the last check; it also fires for newly created tasks since creation counts as an update."},props:{},type:"POLLING",async onEnable(e){await Ae.onEnable(Er,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await Ae.onDisable(Er,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await Ae.test(Er,e)},async run(e){return await Ae.poll(Er,e)},sampleData:{uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",archived:!0,status:"TODO",legacy_data:{},skills:["3c90c3cc-0d44-4b50-8888-8dd25736052a"],queue_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",assignee_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",participants:{},case_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",parent_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",due_at:"2023-11-07T05:31:56Z",snooze_expires_at:"2023-11-07T05:31:56Z",fields:{},metadata_form_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",form_data:{},form_type:"<string>",assigned_at:"2023-11-07T05:31:56Z",started_at:"2023-11-07T05:31:56Z",done_at:"2023-11-07T05:31:56Z",created_at:"2023-11-07T05:31:56Z",updated_at:"2023-11-07T05:31:56Z",assignee_updated_by:"3c90c3cc-0d44-4b50-8888-8dd25736052a",queue_updated_by:"3c90c3cc-0d44-4b50-8888-8dd25736052a",is_assigned_player:!0,internal_created_at:"2023-11-07T05:31:56Z",internal_updated_at:"2023-11-07T05:31:56Z",external_created_at:"2023-11-07T05:31:56Z",external_updated_at:"2023-11-07T05:31:56Z",external_status:"TODO",external_status_updated_at:"2023-11-07T05:31:56Z",external_assignee_uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",queue_time:123,queue_time_business:123,work_time:123,work_time_business:123,incremental_work_time:123,incremental_work_time_business:123,resolution_time:123,resolution_time_business:123,num_children:123,num_children_done:123,sla_breach_at:"2023-11-07T05:31:56Z",sla_breach_business_at:"2023-11-07T05:31:56Z",wait_time:123,wait_time_business:123,review_status:"<string>",task_type:"<string>",played_at:"2023-11-07T05:31:56Z",assignee:{uid:"3c90c3cc-0d44-4b50-8888-8dd25736052a",archived:!0,role:"super_admin",email:"jsmith@example.com",first_name:"<string>",last_name:"<string>",skills:["3c90c3cc-0d44-4b50-8888-8dd25736052a"],legacy_data:{},created_at:"2023-11-07T05:31:56Z",updated_at:"2023-11-07T05:31:56Z",is_registered:!0},parent:{},children:[{}]}});var Bd=Vi({displayName:"Fragment",auth:le,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/fragment.png",authors:["meenulekha-premakumar"],actions:[ou,iu,au,su,uu,cu],triggers:[lu,pu]});0&&(module.exports={fragment});
|
|
4
|
+
/*! Bundled license information:
|
|
5
|
+
|
|
6
|
+
mime-types/index.js:
|
|
7
|
+
(*!
|
|
8
|
+
* mime-types
|
|
9
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
10
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
|
+
* MIT Licensed
|
|
12
|
+
*)
|
|
13
|
+
*/
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,QAAQ,mHAkBnB,CAAC"}
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6D;AAC7D,yCAA4C;AAC5C,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,yDAAqD;AACrD,2DAAuD;AACvD,mEAA8D;AAC9D,sDAAyD;AACzD,8DAAiE;AAEpD,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IAClC,WAAW,EAAE,UAAU;IACvB,IAAI,EAAE,qBAAY;IAClB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,kDAAkD;IAC3D,OAAO,EAAE,CAAC,uBAAuB,CAAC;IAClC,OAAO,EAAE;QACP,wBAAU;QACV,wBAAU;QACV,kBAAO;QACP,sBAAS;QACT,wBAAU;QACV,+BAAa;KACd;IACD,QAAQ,EAAE;QACR,yBAAc;QACd,iCAAkB;KACnB;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const createTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
due_at: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
5
|
-
assignee: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
|
-
custom_fields: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=create-task.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-task.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;EAmErB,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.createTask = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.fragmentAuth,
|
|
11
|
-
name: 'create_task',
|
|
12
|
-
displayName: 'Create Task',
|
|
13
|
-
description: 'Creates a new task in Fragment.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Creates a new task in Fragment with a title and optional URL, due date, assignee email, tags, and custom fields. Use to add a work item to a Fragment queue. Not idempotent: each call creates a separate task even with identical input.', idempotent: false },
|
|
16
|
-
props: {
|
|
17
|
-
title: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Title',
|
|
19
|
-
description: 'The title of the task',
|
|
20
|
-
required: true,
|
|
21
|
-
}),
|
|
22
|
-
url: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'URL',
|
|
24
|
-
description: 'A URL associated with the task (e.g., link to a ticket or resource)',
|
|
25
|
-
required: false,
|
|
26
|
-
}),
|
|
27
|
-
due_at: pieces_framework_1.Property.DateTime({
|
|
28
|
-
displayName: 'Due Date',
|
|
29
|
-
description: 'When the task is due',
|
|
30
|
-
required: false,
|
|
31
|
-
}),
|
|
32
|
-
assignee: pieces_framework_1.Property.ShortText({
|
|
33
|
-
displayName: 'Assignee',
|
|
34
|
-
description: 'Email of the person to assign this task to.',
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
tags: pieces_framework_1.Property.Array({
|
|
38
|
-
displayName: 'Tags',
|
|
39
|
-
description: 'Tags to categorize the task',
|
|
40
|
-
required: false,
|
|
41
|
-
}),
|
|
42
|
-
custom_fields: pieces_framework_1.Property.Object({
|
|
43
|
-
displayName: 'Custom Fields',
|
|
44
|
-
description: 'Additional custom fields for the task',
|
|
45
|
-
required: false,
|
|
46
|
-
}),
|
|
47
|
-
},
|
|
48
|
-
run(context) {
|
|
49
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
var _a;
|
|
51
|
-
const fields = Object.assign({ title: context.propsValue.title }, ((_a = context.propsValue.custom_fields) !== null && _a !== void 0 ? _a : {}));
|
|
52
|
-
const taskPayload = {
|
|
53
|
-
fields,
|
|
54
|
-
};
|
|
55
|
-
if (context.propsValue.url) {
|
|
56
|
-
fields['url'] = context.propsValue.url;
|
|
57
|
-
}
|
|
58
|
-
if (context.propsValue.due_at) {
|
|
59
|
-
taskPayload['due_at'] = context.propsValue.due_at;
|
|
60
|
-
}
|
|
61
|
-
if (context.propsValue.assignee) {
|
|
62
|
-
taskPayload['assignee_email'] = context.propsValue.assignee;
|
|
63
|
-
}
|
|
64
|
-
if (context.propsValue.tags && Array.isArray(context.propsValue.tags)) {
|
|
65
|
-
taskPayload['tags'] = context.propsValue.tags;
|
|
66
|
-
}
|
|
67
|
-
const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.POST, '/tasks', context.auth, taskPayload);
|
|
68
|
-
return response;
|
|
69
|
-
});
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=create-task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,6CAAkD;AAClD,+DAAyD;AAE5C,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,2OAA2O,EAAE,UAAU,EAAE,KAAK,EAAE;IAC3R,KAAK,EAAE;QACN,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,qEAAqE;YAClF,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACpB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,aAAa,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC9B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,KAAK;SACf,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;;YAChB,MAAM,MAAM,mBACX,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAC5B,CAAC,MAAA,OAAO,CAAC,UAAU,CAAC,aAAa,mCAAI,EAAE,CAAC,CAC3C,CAAC;YAEF,MAAM,WAAW,GAAwB;gBACxC,MAAM;aACN,CAAC;YAEF,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;gBAC5B,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;YACxC,CAAC;YACD,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;gBAC/B,WAAW,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YACnD,CAAC;YAED,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACjC,WAAW,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7D,CAAC;YACD,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YAC/C,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,WAAW,CAAC,0BAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAExG,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const customApiCall: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
url: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true> | undefined>;
|
|
3
|
-
method: import("@activepieces/pieces-framework").StaticDropdownProperty<import("@activepieces/pieces-common").HttpMethod, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<import("@activepieces/pieces-common").HttpMethod, true>;
|
|
4
|
-
headers: import("@activepieces/pieces-framework").ObjectProperty<false> | import("@activepieces/pieces-framework").ObjectProperty<true>;
|
|
5
|
-
queryParams: import("@activepieces/pieces-framework").ObjectProperty<false> | import("@activepieces/pieces-framework").ObjectProperty<true>;
|
|
6
|
-
body_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
-
body: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").SecretTextProperty<true> | undefined>;
|
|
8
|
-
response_is_binary: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
|
-
failsafe: import("@activepieces/pieces-framework").CheckboxProperty<false> | import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
10
|
-
timeout: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
11
|
-
followRedirects: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=custom-api-call.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-api-call.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/custom-api-call.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;oBAY46C,gCAAgC,iCAAiC,gCAAgC;wBAAgD,gCAAgC,iCAAiC,gCAAgC;;;+BAAiN,gCAAgC;qBAAgD,gCAAgC,mCAAmC,gCAAgC;oBAA8C,gCAAgC,iCAAiC,gCAAgC;4BAAoD,gCAAgC;EAF7xE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customApiCall = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
exports.customApiCall = (0, pieces_common_1.createCustomApiCallAction)({
|
|
8
|
-
auth: auth_1.fragmentAuth,
|
|
9
|
-
name: 'custom_api_call',
|
|
10
|
-
displayName: 'Custom API Call',
|
|
11
|
-
description: 'Make a custom API call to any Fragment endpoint',
|
|
12
|
-
baseUrl: () => 'https://api.onfragment.com/api/v1',
|
|
13
|
-
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
-
return ({
|
|
15
|
-
'Authorization': `Bearer ${auth}`,
|
|
16
|
-
'Content-Type': 'application/json',
|
|
17
|
-
});
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=custom-api-call.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-api-call.js","sourceRoot":"","sources":["../../../../src/lib/actions/custom-api-call.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,yCAA8C;AAEjC,QAAA,aAAa,GAAG,IAAA,yCAAyB,EAAC;IACrD,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,iDAAiD;IAC9D,OAAO,EAAE,GAAG,EAAE,CAAC,mCAAmC;IAClD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;QAAC,OAAA,CAAC;YAC5B,eAAe,EAAE,UAAU,IAAI,EAAE;YACjC,cAAc,EAAE,kBAAkB;SACnC,CAAC,CAAA;MAAA;CACH,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const deleteTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
task_uid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=delete-task.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-task.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;EAuBrB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteTask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.deleteTask = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.fragmentAuth,
|
|
11
|
-
name: 'delete_task',
|
|
12
|
-
displayName: 'Delete Task',
|
|
13
|
-
description: 'Deletes an existing task.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Permanently deletes a Fragment task identified by its unique task UID. Use to remove a task; this is destructive and cannot be undone. Effectively idempotent: re-deleting an already-removed task has no further effect, though the API may return a not-found error.', idempotent: true },
|
|
16
|
-
props: {
|
|
17
|
-
task_uid: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Task UID',
|
|
19
|
-
description: 'The unique identifier of the task to delete',
|
|
20
|
-
required: true,
|
|
21
|
-
}),
|
|
22
|
-
},
|
|
23
|
-
run(context) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.DELETE, `/tasks/${context.propsValue.task_uid}`, context.auth);
|
|
26
|
-
return response;
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=delete-task.js.map
|