@activepieces/piece-ibm-cognose 0.1.4 → 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.
Files changed (38) hide show
  1. package/package.json +7 -22
  2. package/src/index.js +14 -105
  3. package/README.md +0 -7
  4. package/src/index.d.ts +0 -12
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/copy-content-object.d.ts +0 -38
  7. package/src/lib/actions/copy-content-object.js +0 -69
  8. package/src/lib/actions/copy-content-object.js.map +0 -1
  9. package/src/lib/actions/create-data-source.d.ts +0 -13
  10. package/src/lib/actions/create-data-source.js +0 -100
  11. package/src/lib/actions/create-data-source.js.map +0 -1
  12. package/src/lib/actions/delete-data-source.d.ts +0 -13
  13. package/src/lib/actions/delete-data-source.js +0 -46
  14. package/src/lib/actions/delete-data-source.js.map +0 -1
  15. package/src/lib/actions/get-content-object.d.ts +0 -14
  16. package/src/lib/actions/get-content-object.js +0 -53
  17. package/src/lib/actions/get-content-object.js.map +0 -1
  18. package/src/lib/actions/get-data-source.d.ts +0 -14
  19. package/src/lib/actions/get-data-source.js +0 -53
  20. package/src/lib/actions/get-data-source.js.map +0 -1
  21. package/src/lib/actions/move-content-object.d.ts +0 -37
  22. package/src/lib/actions/move-content-object.js +0 -61
  23. package/src/lib/actions/move-content-object.js.map +0 -1
  24. package/src/lib/actions/update-content-object.d.ts +0 -17
  25. package/src/lib/actions/update-content-object.js +0 -79
  26. package/src/lib/actions/update-content-object.js.map +0 -1
  27. package/src/lib/actions/update-data-source.d.ts +0 -16
  28. package/src/lib/actions/update-data-source.js +0 -77
  29. package/src/lib/actions/update-data-source.js.map +0 -1
  30. package/src/lib/common/cognos-client.d.ts +0 -14
  31. package/src/lib/common/cognos-client.js +0 -71
  32. package/src/lib/common/cognos-client.js.map +0 -1
  33. package/src/lib/common/content-object-dropdown.d.ts +0 -6
  34. package/src/lib/common/content-object-dropdown.js +0 -61
  35. package/src/lib/common/content-object-dropdown.js.map +0 -1
  36. package/src/lib/common/data-source-dropdown.d.ts +0 -6
  37. package/src/lib/common/data-source-dropdown.js +0 -61
  38. package/src/lib/common/data-source-dropdown.js.map +0 -1
package/package.json CHANGED
@@ -1,27 +1,12 @@
1
1
  {
2
2
  "name": "@activepieces/piece-ibm-cognose",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
- "types": "./src/index.d.ts",
7
- "dependencies": {
8
- "@sinclair/typebox": "0.34.11",
9
- "ai": "^6.0.0",
10
- "axios": "1.13.5",
11
- "axios-retry": "4.4.1",
12
- "deepmerge-ts": "7.1.0",
13
- "form-data": "4.0.4",
14
- "mime-types": "2.1.35",
15
- "nanoid": "3.3.8",
16
- "semver": "7.6.0",
17
- "socket.io-client": "4.8.1",
18
- "tslib": "^2.3.0",
19
- "zod": "4.1.13",
20
- "@activepieces/pieces-common": "0.11.6",
21
- "@activepieces/pieces-framework": "0.25.4",
22
- "@activepieces/shared": "0.37.0"
23
- },
24
- "resolutions": {
25
- "rollup": "npm:@rollup/wasm-node"
26
- }
6
+ "dependencies": {},
7
+ "files": [
8
+ "src/index.js",
9
+ "package.json",
10
+ "src/i18n"
11
+ ]
27
12
  }
package/src/index.js CHANGED
@@ -1,110 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ibmCognose = exports.ibmCognoseAuth = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const shared_1 = require("@activepieces/shared");
8
- const cognos_client_1 = require("./lib/common/cognos-client");
9
- const create_data_source_1 = require("./lib/actions/create-data-source");
10
- const update_data_source_1 = require("./lib/actions/update-data-source");
11
- const delete_data_source_1 = require("./lib/actions/delete-data-source");
12
- const get_data_source_1 = require("./lib/actions/get-data-source");
13
- const update_content_object_1 = require("./lib/actions/update-content-object");
14
- const get_content_object_1 = require("./lib/actions/get-content-object");
15
- const move_content_object_1 = require("./lib/actions/move-content-object");
16
- const copy_content_object_1 = require("./lib/actions/copy-content-object");
17
- exports.ibmCognoseAuth = pieces_framework_1.PieceAuth.CustomAuth({
18
- required: true,
19
- description: `
1
+ "use strict";var Fs=Object.create;var Je=Object.defineProperty;var Bs=Object.getOwnPropertyDescriptor;var Zs=Object.getOwnPropertyNames;var Vs=Object.getPrototypeOf,Hs=Object.prototype.hasOwnProperty;var i=(e,t)=>Je(e,"name",{value:t,configurable:!0});var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dn=(e,t)=>{for(var r in t)Je(e,r,{get:t[r],enumerable:!0})},mn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Zs(t))!Hs.call(e,o)&&o!==r&&Je(e,o,{get:()=>t[o],enumerable:!(n=Bs(t,o))||n.enumerable});return e};var Re=(e,t,r)=>(r=e!=null?Fs(Vs(e)):{},mn(t||!e||!e.__esModule?Je(r,"default",{value:e,enumerable:!0}):r,e)),qs=e=>mn(Je({},"__esModule",{value:!0}),e);var ko=T((wo,Lt)=>{(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"),o=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",c="(?:[0-9a-f]+::?)+",p={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${c})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${c})|(?:::)(?:${c})?)${t}\\.${t}\\.${t}\\.${t}(${s})?$`,"i")};function f(u,d){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let y=0,m=-1,v=(u.match(p.zoneIndex)||[])[0],P,j;for(v&&(v=v.substring(1),u=u.replace(/%.+$/,""));(m=u.indexOf(":",m+1))>=0;)y++;if(u.substr(0,2)==="::"&&y--,u.substr(-2,2)==="::"&&y--,y>d)return null;for(j=d-y,P=":";j--;)P+="0:";return u=u.replace("::",P),u[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),d=function(){let re=u.split(":"),ae=[];for(let Ke=0;Ke<re.length;Ke++)ae.push(parseInt(re[Ke],16));return ae}(),{parts:d,zoneId:v}}i(f,"expandIPv6");function g(u,d,y,m){if(u.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),u[v]>>P!==d[v]>>P)return!1;m-=y,v+=1}return!0}i(g,"matchCIDR");function x(u){if(o.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(n.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}i(x,"parseIntAuto");function E(u,d){for(;u.length<d;)u=`0${u}`;return u}i(E,"padPart");let _={};_.IPv4=function(){function u(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 i(u,"IPv4"),u.prototype.SpecialRanges={unspecified:[[new u([0,0,0,0]),8]],broadcast:[[new u([255,255,255,255]),32]],multicast:[[new u([224,0,0,0]),4]],linkLocal:[[new u([169,254,0,0]),16]],loopback:[[new u([127,0,0,0]),8]],carrierGradeNat:[[new u([100,64,0,0]),10]],private:[[new u([10,0,0,0]),8],[new u([172,16,0,0]),12],[new u([192,168,0,0]),16]],reserved:[[new u([192,0,0,0]),24],[new u([192,0,2,0]),24],[new u([192,88,99,0]),24],[new u([198,18,0,0]),15],[new u([198,51,100,0]),24],[new u([203,0,113,0]),24],[new u([240,0,0,0]),4]],as112:[[new u([192,175,48,0]),24],[new u([192,31,196,0]),24]],amt:[[new u([192,52,193,0]),24]]},u.prototype.kind=function(){return"ipv4"},u.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)},u.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,j;for(v=3;v>=0;v-=1)if(P=this.octets[v],P in m){if(j=m[P],y&&j!==0)return null;j!==8&&(y=!0),d+=j}else return null;return 32-d},u.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){return this.octets.slice(0)},u.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},u.prototype.toNormalizedString=function(){return this.toString()},u.prototype.toString=function(){return this.octets.join(".")},u}(),_.IPv4.broadcastAddressFromCIDR=function(u){try{let d=this.parseCIDR(u),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")}},_.IPv4.isIPv4=function(u){return this.parser(u)!==null},_.IPv4.isValid=function(u){try{return new this(this.parser(u)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(u){try{return this.parseCIDR(u),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(u){return!!(_.IPv4.isValid(u)&&u.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.isValidCIDRFourPartDecimal=function(u){let d=u.match(/^(.+)\/(\d+)$/);return!_.IPv4.isValidCIDR(u)||!d?!1:_.IPv4.isValidFourPartDecimal(d[1])},_.IPv4.networkAddressFromCIDR=function(u){let d,y,m,v,P;try{for(d=this.parseCIDR(u),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")}},_.IPv4.parse=function(u){let d=this.parser(u);if(d===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(d)},_.IPv4.parseCIDR=function(u){let d;if(d=u.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:i(function(){return this.join("/")},"value")}),m}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(u){let d,y,m;if(d=u.match(r.fourOctet))return function(){let v=d.slice(1,6),P=[];for(let j=0;j<v.length;j++)y=v[j],P.push(x(y));return P}();if(d=u.match(r.longValue)){if(m=x(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=u.match(r.twoOctet))?function(){let v=d.slice(1,4),P=[];if(m=x(v[1]),m>16777215||m<0)throw new Error("ipaddr: address outside defined range");return P.push(x(v[0])),P.push(m>>16&255),P.push(m>>8&255),P.push(m&255),P}():(d=u.match(r.threeOctet))?function(){let v=d.slice(1,5),P=[];if(m=x(v[2]),m>65535||m<0)throw new Error("ipaddr: address outside defined range");return P.push(x(v[0])),P.push(x(v[1])),P.push(m>>8&255),P.push(m&255),P}():null},_.IPv4.subnetMaskFromPrefixLength=function(u){if(u=parseInt(u),u<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");let d=[0,0,0,0],y=0,m=Math.floor(u/8);for(;y<m;)d[y]=255,y++;return m<4&&(d[m]=Math.pow(2,u%8)-1<<8-u%8),new this(d)},_.IPv6=function(){function u(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 i(u,"IPv6"),u.prototype.SpecialRanges={unspecified:[new u([0,0,0,0,0,0,0,0]),128],linkLocal:[new u([65152,0,0,0,0,0,0,0]),10],multicast:[new u([65280,0,0,0,0,0,0,0]),8],loopback:[new u([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new u([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new u([0,0,0,0,0,65535,0,0]),96],discard:[new u([256,0,0,0,0,0,0,0]),64],rfc6145:[new u([0,0,0,0,65535,0,0,0]),96],rfc6052:[new u([100,65435,0,0,0,0,0,0]),96],"6to4":[new u([8194,0,0,0,0,0,0,0]),16],teredo:[new u([8193,0,0,0,0,0,0,0]),32],benchmarking:[new u([8193,2,0,0,0,0,0,0]),48],amt:[new u([8193,3,0,0,0,0,0,0]),32],as112v6:[[new u([8193,4,274,0,0,0,0,0]),48],[new u([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new u([8193,16,0,0,0,0,0,0]),28],orchid2:[new u([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new u([8193,48,0,0,0,0,0,0]),28],reserved:[[new u([8193,0,0,0,0,0,0,0]),23],[new u([8193,3512,0,0,0,0,0,0]),32]]},u.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},u.prototype.kind=function(){return"ipv6"},u.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)},u.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 j=7;j>=0;j-=1)if(v=this.parts[j],v in m){if(P=m[v],y&&P!==0)return null;P!==16&&(y=!0),d+=P}else return null;return 128-d},u.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},u.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},u.prototype.toFixedLengthString=function(){let d=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(E(this.parts[v].toString(16),4));return m}.call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),d+y},u.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 _.IPv4([y>>8,y&255,m>>8,m&255])},u.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},u.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)}`},u.prototype.toString=function(){return this.toRFC5952String()},u}(),_.IPv6.broadcastAddressFromCIDR=function(u){try{let d=this.parseCIDR(u),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})`)}},_.IPv6.isIPv6=function(u){return this.parser(u)!==null},_.IPv6.isValid=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{let d=this.parser(u);return new this(d.parts,d.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{return this.parseCIDR(u),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(u){let d,y,m,v,P;try{for(d=this.parseCIDR(u),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(j){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${j})`)}},_.IPv6.parse=function(u){let d=this.parser(u);if(d.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(d.parts,d.zoneId)},_.IPv6.parseCIDR=function(u){let d,y,m;if((y=u.match(/^(.+)\/(\d+)$/))&&(d=parseInt(y[2]),d>=0&&d<=128))return m=[this.parse(y[1]),d],Object.defineProperty(m,"toString",{value:i(function(){return this.join("/")},"value")}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(u){let d,y,m,v,P,j;if(m=u.match(p.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(p.native.test(u))return f(u,8);if((m=u.match(p.transitional))&&(j=m[6]||"",d=m[1],m[1].endsWith("::")||(d=d.slice(0,-1)),d=f(d+j,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},_.IPv6.subnetMaskFromPrefixLength=function(u){if(u=parseInt(u),u<0||u>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(u/8);for(;y<m;)d[y]=255,y++;return m<16&&(d[m]=Math.pow(2,u%8)-1<<8-u%8),new this(d)},_.fromByteArray=function(u){let d=u.length;if(d===4)return new _.IPv4(u);if(d===16)return new _.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(u){return _.IPv6.isValid(u)||_.IPv4.isValid(u)},_.isValidCIDR=function(u){return _.IPv6.isValidCIDR(u)||_.IPv4.isValidCIDR(u)},_.parse=function(u){if(_.IPv6.isValid(u))return _.IPv6.parse(u);if(_.IPv4.isValid(u))return _.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(u){try{return _.IPv6.parseCIDR(u)}catch{try{return _.IPv4.parseCIDR(u)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(u){let d=this.parse(u);return d.kind()==="ipv6"&&d.isIPv4MappedAddress()?d.toIPv4Address():d},_.subnetMatch=function(u,d,y){let m,v,P,j;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(j=P[m],u.kind()===j[0].kind()&&u.match.apply(u,j))return v}return y},typeof Lt<"u"&&Lt.exports?Lt.exports=_:e.ipaddr=_})(wo)});var Si=T((qS,$i)=>{var Ei=require("stream").Stream,Pp=require("util");$i.exports=ue;function ue(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i(ue,"DelayedStream");Pp.inherits(ue,Ei);ue.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(ue.prototype,"readable",{configurable:!0,enumerable:!0,get:i(function(){return this.source.readable},"get")});ue.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ue.prototype.resume=function(){this._released||this.release(),this.source.resume()};ue.prototype.pause=function(){this.source.pause()};ue.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};ue.prototype.pipe=function(){var e=Ei.prototype.pipe.apply(this,arguments);return this.resume(),e};ue.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)};ue.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var ki=T((GS,wi)=>{var bp=require("util"),zi=require("stream").Stream,Ai=Si();wi.exports=K;function K(){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}i(K,"CombinedStream");bp.inherits(K,zi);K.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};K.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};K.prototype.append=function(e){var t=K.isStreamLike(e);if(t){if(!(e instanceof Ai)){var r=Ai.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};K.prototype.pipe=function(e,t){return zi.prototype.pipe.call(this,e,t),this.resume(),e};K.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}};K.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=K.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};K.prototype._pipeNext=function(e){this._currentStream=e;var t=K.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()};K.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};K.prototype.write=function(e){this.emit("data",e)};K.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};K.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")};K.prototype.end=function(){this._reset(),this.emit("end")};K.prototype.destroy=function(){this._reset(),this.emit("close")};K.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};K.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};K.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)};K.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Ri=T((JS,Oi)=>{"use strict";Oi.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var Ci=T(te=>{"use strict";var Gt=Ri(),Ip=require("path").extname,Ni=/^\s*([^;\s]*)(?:;|\s|$)/,Tp=/^text\//i;te.charset=Di;te.charsets={lookup:Di};te.contentType=Ep;te.extension=$p;te.extensions=Object.create(null);te.lookup=Sp;te.types=Object.create(null);Ap(te.extensions,te.types);function Di(e){if(!e||typeof e!="string")return!1;var t=Ni.exec(e),r=t&&Gt[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Tp.test(t[1])?"UTF-8":!1}i(Di,"charset");function Ep(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?te.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=te.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}i(Ep,"contentType");function $p(e){if(!e||typeof e!="string")return!1;var t=Ni.exec(e),r=t&&te.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}i($p,"extension");function Sp(e){if(!e||typeof e!="string")return!1;var t=Ip("x."+e).toLowerCase().substr(1);return t&&te.types[t]||!1}i(Sp,"lookup");function Ap(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Gt).forEach(i(function(o){var s=Gt[o],c=s.extensions;if(!(!c||!c.length)){e[o]=c;for(var p=0;p<c.length;p++){var f=c[p];if(t[f]){var g=r.indexOf(Gt[t[f]].source),x=r.indexOf(s.source);if(t[f]!=="application/octet-stream"&&(g>x||g===x&&t[f].substr(0,12)==="application/"))continue}t[f]=o}}},"forEachMimeType"))}i(Ap,"populateMaps")});var Mi=T((QS,Ui)=>{Ui.exports=zp;function zp(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}i(zp,"defer")});var Br=T((tA,Li)=>{var ji=Mi();Li.exports=wp;function wp(e){var t=!1;return ji(function(){t=!0}),i(function(n,o){t?e(n,o):ji(i(function(){e(n,o)},"nextTick_callback"))},"async_callback")}i(wp,"async")});var Zr=T((nA,Fi)=>{Fi.exports=kp;function kp(e){Object.keys(e.jobs).forEach(Op.bind(e)),e.jobs={}}i(kp,"abort");function Op(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}i(Op,"clean")});var Vr=T((iA,Zi)=>{var Bi=Br(),Rp=Zr();Zi.exports=Np;function Np(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=Dp(t,o,e[o],function(s,c){o in r.jobs&&(delete r.jobs[o],s?Rp(r):r.results[o]=c,n(s,r.results))})}i(Np,"iterate");function Dp(e,t,r,n){var o;return e.length==2?o=e(r,Bi(n)):o=e(r,t,Bi(n)),o}i(Dp,"runJob")});var Hr=T((sA,Vi)=>{Vi.exports=Cp;function Cp(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(o,s){return t(e[o],e[s])}),n}i(Cp,"state")});var qr=T((cA,Hi)=>{var Up=Zr(),Mp=Br();Hi.exports=jp;function jp(e){Object.keys(this.jobs).length&&(this.index=this.size,Up(this),Mp(e)(null,this.results))}i(jp,"terminator")});var Wi=T((lA,qi)=>{var Lp=Vr(),Fp=Hr(),Bp=qr();qi.exports=Zp;function Zp(e,t,r){for(var n=Fp(e);n.index<(n.keyedList||e).length;)Lp(e,t,n,function(o,s){if(o){r(o,s);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return Bp.bind(n,r)}i(Zp,"parallel")});var Wr=T((mA,Kt)=>{var Gi=Vr(),Vp=Hr(),Hp=qr();Kt.exports=qp;Kt.exports.ascending=Ki;Kt.exports.descending=Wp;function qp(e,t,r,n){var o=Vp(e,r);return Gi(e,t,o,i(function s(c,p){if(c){n(c,p);return}if(o.index++,o.index<(o.keyedList||e).length){Gi(e,t,o,s);return}n(null,o.results)},"iteratorHandler")),Hp.bind(o,n)}i(qp,"serialOrdered");function Ki(e,t){return e<t?-1:e>t?1:0}i(Ki,"ascending");function Wp(e,t){return-1*Ki(e,t)}i(Wp,"descending")});var Xi=T((gA,Ji)=>{var Gp=Wr();Ji.exports=Kp;function Kp(e,t,r){return Gp(e,t,null,r)}i(Kp,"serial")});var Qi=T((hA,Yi)=>{Yi.exports={parallel:Wi(),serial:Xi(),serialOrdered:Wr()}});var Gr=T((vA,ea)=>{"use strict";ea.exports=Object});var ra=T((xA,ta)=>{"use strict";ta.exports=Error});var oa=T((_A,na)=>{"use strict";na.exports=EvalError});var aa=T((PA,ia)=>{"use strict";ia.exports=RangeError});var ua=T((bA,sa)=>{"use strict";sa.exports=ReferenceError});var pa=T((IA,ca)=>{"use strict";ca.exports=SyntaxError});var Jt=T((TA,la)=>{"use strict";la.exports=TypeError});var ma=T((EA,da)=>{"use strict";da.exports=URIError});var ga=T(($A,fa)=>{"use strict";fa.exports=Math.abs});var ha=T((SA,ya)=>{"use strict";ya.exports=Math.floor});var xa=T((AA,va)=>{"use strict";va.exports=Math.max});var Pa=T((zA,_a)=>{"use strict";_a.exports=Math.min});var Ia=T((wA,ba)=>{"use strict";ba.exports=Math.pow});var Ea=T((kA,Ta)=>{"use strict";Ta.exports=Math.round});var Sa=T((OA,$a)=>{"use strict";$a.exports=Number.isNaN||i(function(t){return t!==t},"isNaN")});var za=T((NA,Aa)=>{"use strict";var Jp=Sa();Aa.exports=i(function(t){return Jp(t)||t===0?t:t<0?-1:1},"sign")});var ka=T((CA,wa)=>{"use strict";wa.exports=Object.getOwnPropertyDescriptor});var Kr=T((UA,Oa)=>{"use strict";var Xt=ka();if(Xt)try{Xt([],"length")}catch{Xt=null}Oa.exports=Xt});var Na=T((MA,Ra)=>{"use strict";var Yt=Object.defineProperty||!1;if(Yt)try{Yt({},"a",{value:1})}catch{Yt=!1}Ra.exports=Yt});var Jr=T((jA,Da)=>{"use strict";Da.exports=i(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 o=42;t[r]=o;for(var s 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 p=Object.getOwnPropertyDescriptor(t,r);if(p.value!==o||p.enumerable!==!0)return!1}return!0},"hasSymbols")});var Ma=T((FA,Ua)=>{"use strict";var Ca=typeof Symbol<"u"&&Symbol,Xp=Jr();Ua.exports=i(function(){return typeof Ca!="function"||typeof Symbol!="function"||typeof Ca("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Xp()},"hasNativeSymbols")});var Xr=T((ZA,ja)=>{"use strict";ja.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Yr=T((VA,La)=>{"use strict";var Yp=Gr();La.exports=Yp.getPrototypeOf||null});var Za=T((HA,Ba)=>{"use strict";var Qp="Function.prototype.bind called on incompatible ",el=Object.prototype.toString,tl=Math.max,rl="[object Function]",Fa=i(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},"concatty"),nl=i(function(t,r){for(var n=[],o=r||0,s=0;o<t.length;o+=1,s+=1)n[s]=t[o];return n},"slicy"),ol=i(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");Ba.exports=i(function(t){var r=this;if(typeof r!="function"||el.apply(r)!==rl)throw new TypeError(Qp+r);for(var n=nl(arguments,1),o,s=i(function(){if(this instanceof o){var x=r.apply(this,Fa(n,arguments));return Object(x)===x?x:this}return r.apply(t,Fa(n,arguments))},"binder"),c=tl(0,r.length-n.length),p=[],f=0;f<c;f++)p[f]="$"+f;if(o=Function("binder","return function ("+ol(p,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var g=i(function(){},"Empty");g.prototype=r.prototype,o.prototype=new g,g.prototype=null}return o},"bind")});var Ze=T((WA,Va)=>{"use strict";var il=Za();Va.exports=Function.prototype.bind||il});var Qt=T((GA,Ha)=>{"use strict";Ha.exports=Function.prototype.call});var Qr=T((KA,qa)=>{"use strict";qa.exports=Function.prototype.apply});var Ga=T((JA,Wa)=>{"use strict";Wa.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ja=T((XA,Ka)=>{"use strict";var al=Ze(),sl=Qr(),ul=Qt(),cl=Ga();Ka.exports=cl||al.call(ul,sl)});var Ya=T((YA,Xa)=>{"use strict";var pl=Ze(),ll=Jt(),dl=Qt(),ml=Ja();Xa.exports=i(function(t){if(t.length<1||typeof t[0]!="function")throw new ll("a function is required");return ml(pl,dl,t)},"callBindBasic")});var os=T((ez,ns)=>{"use strict";var fl=Ya(),Qa=Kr(),ts;try{ts=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var en=!!ts&&Qa&&Qa(Object.prototype,"__proto__"),rs=Object,es=rs.getPrototypeOf;ns.exports=en&&typeof en.get=="function"?fl([en.get]):typeof es=="function"?i(function(t){return es(t==null?t:rs(t))},"getDunder"):!1});var cs=T((rz,us)=>{"use strict";var is=Xr(),as=Yr(),ss=os();us.exports=is?i(function(t){return is(t)},"getProto"):as?i(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return as(t)},"getProto"):ss?i(function(t){return ss(t)},"getProto"):null});var tn=T((oz,ps)=>{"use strict";var gl=Function.prototype.call,yl=Object.prototype.hasOwnProperty,hl=Ze();ps.exports=hl.call(gl,yl)});var hs=T((iz,ys)=>{"use strict";var M,vl=Gr(),xl=ra(),_l=oa(),Pl=aa(),bl=ua(),We=pa(),qe=Jt(),Il=ma(),Tl=ga(),El=ha(),$l=xa(),Sl=Pa(),Al=Ia(),zl=Ea(),wl=za(),fs=Function,rn=i(function(e){try{return fs('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),vt=Kr(),kl=Na(),nn=i(function(){throw new qe},"throwTypeError"),Ol=vt?function(){try{return arguments.callee,nn}catch{try{return vt(arguments,"callee").get}catch{return nn}}}():nn,Ve=Ma()(),Q=cs(),Rl=Yr(),Nl=Xr(),gs=Qr(),xt=Qt(),He={},Dl=typeof Uint8Array>"u"||!Q?M:Q(Uint8Array),Oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?M:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?M:ArrayBuffer,"%ArrayIteratorPrototype%":Ve&&Q?Q([][Symbol.iterator]()):M,"%AsyncFromSyncIteratorPrototype%":M,"%AsyncFunction%":He,"%AsyncGenerator%":He,"%AsyncGeneratorFunction%":He,"%AsyncIteratorPrototype%":He,"%Atomics%":typeof Atomics>"u"?M:Atomics,"%BigInt%":typeof BigInt>"u"?M:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?M:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?M:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?M:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":xl,"%eval%":eval,"%EvalError%":_l,"%Float16Array%":typeof Float16Array>"u"?M:Float16Array,"%Float32Array%":typeof Float32Array>"u"?M:Float32Array,"%Float64Array%":typeof Float64Array>"u"?M:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?M:FinalizationRegistry,"%Function%":fs,"%GeneratorFunction%":He,"%Int8Array%":typeof Int8Array>"u"?M:Int8Array,"%Int16Array%":typeof Int16Array>"u"?M:Int16Array,"%Int32Array%":typeof Int32Array>"u"?M:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ve&&Q?Q(Q([][Symbol.iterator]())):M,"%JSON%":typeof JSON=="object"?JSON:M,"%Map%":typeof Map>"u"?M:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ve||!Q?M:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":vl,"%Object.getOwnPropertyDescriptor%":vt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?M:Promise,"%Proxy%":typeof Proxy>"u"?M:Proxy,"%RangeError%":Pl,"%ReferenceError%":bl,"%Reflect%":typeof Reflect>"u"?M:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?M:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ve||!Q?M:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?M:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ve&&Q?Q(""[Symbol.iterator]()):M,"%Symbol%":Ve?Symbol:M,"%SyntaxError%":We,"%ThrowTypeError%":Ol,"%TypedArray%":Dl,"%TypeError%":qe,"%Uint8Array%":typeof Uint8Array>"u"?M:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?M:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?M:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?M:Uint32Array,"%URIError%":Il,"%WeakMap%":typeof WeakMap>"u"?M:WeakMap,"%WeakRef%":typeof WeakRef>"u"?M:WeakRef,"%WeakSet%":typeof WeakSet>"u"?M:WeakSet,"%Function.prototype.call%":xt,"%Function.prototype.apply%":gs,"%Object.defineProperty%":kl,"%Object.getPrototypeOf%":Rl,"%Math.abs%":Tl,"%Math.floor%":El,"%Math.max%":$l,"%Math.min%":Sl,"%Math.pow%":Al,"%Math.round%":zl,"%Math.sign%":wl,"%Reflect.getPrototypeOf%":Nl};if(Q)try{null.error}catch(e){ls=Q(Q(e)),Oe["%Error.prototype%"]=ls}var ls,Cl=i(function e(t){var r;if(t==="%AsyncFunction%")r=rn("async function () {}");else if(t==="%GeneratorFunction%")r=rn("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=rn("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Q&&(r=Q(o.prototype))}return Oe[t]=r,r},"doEval"),ds={__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"]},_t=Ze(),er=tn(),Ul=_t.call(xt,Array.prototype.concat),Ml=_t.call(gs,Array.prototype.splice),ms=_t.call(xt,String.prototype.replace),tr=_t.call(xt,String.prototype.slice),jl=_t.call(xt,RegExp.prototype.exec),Ll=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fl=/\\(\\)?/g,Bl=i(function(t){var r=tr(t,0,1),n=tr(t,-1);if(r==="%"&&n!=="%")throw new We("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new We("invalid intrinsic syntax, expected opening `%`");var o=[];return ms(t,Ll,function(s,c,p,f){o[o.length]=p?ms(f,Fl,"$1"):c||s}),o},"stringToPath"),Zl=i(function(t,r){var n=t,o;if(er(ds,n)&&(o=ds[n],n="%"+o[0]+"%"),er(Oe,n)){var s=Oe[n];if(s===He&&(s=Cl(n)),typeof s>"u"&&!r)throw new qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new We("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");ys.exports=i(function(t,r){if(typeof t!="string"||t.length===0)throw new qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new qe('"allowMissing" argument must be a boolean');if(jl(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Bl(t),o=n.length>0?n[0]:"",s=Zl("%"+o+"%",r),c=s.name,p=s.value,f=!1,g=s.alias;g&&(o=g[0],Ml(n,Ul([0,1],g)));for(var x=1,E=!0;x<n.length;x+=1){var _=n[x],u=tr(_,0,1),d=tr(_,-1);if((u==='"'||u==="'"||u==="`"||d==='"'||d==="'"||d==="`")&&u!==d)throw new We("property names with quotes must have matching quotes");if((_==="constructor"||!E)&&(f=!0),o+="."+_,c="%"+o+"%",er(Oe,c))p=Oe[c];else if(p!=null){if(!(_ in p)){if(!r)throw new qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(vt&&x+1>=n.length){var y=vt(p,_);E=!!y,E&&"get"in y&&!("originalValue"in y.get)?p=y.get:p=p[_]}else E=er(p,_),p=p[_];E&&!f&&(Oe[c]=p)}}return p},"GetIntrinsic")});var xs=T((sz,vs)=>{"use strict";var Vl=Jr();vs.exports=i(function(){return Vl()&&!!Symbol.toStringTag},"hasToStringTagShams")});var bs=T((cz,Ps)=>{"use strict";var Hl=hs(),_s=Hl("%Object.defineProperty%",!0),ql=xs()(),Wl=tn(),Gl=Jt(),rr=ql?Symbol.toStringTag:null;Ps.exports=i(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new Gl("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");rr&&(n||!Wl(t,rr))&&(_s?_s(t,rr,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[rr]=r)},"setToStringTag")});var Ts=T((lz,Is)=>{"use strict";var Kl=Function.prototype.call,Jl=Object.prototype.hasOwnProperty,Xl=Ze();Is.exports=Xl.call(Kl,Jl)});var $s=T((dz,Es)=>{"use strict";Es.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var zs=T((mz,As)=>{"use strict";var un=ki(),Yl=require("util"),on=require("path"),Ql=require("http"),ed=require("https"),td=require("url").parse,rd=require("fs"),nd=require("stream").Stream,od=require("crypto"),an=Ci(),id=Qi(),ad=bs(),$e=Ts(),sn=$s();function Ss(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}i(Ss,"escapeHeaderParam");function L(e){if(!(this instanceof L))return new L(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],un.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(L,"FormData");Yl.inherits(L,un);L.LINE_BREAK=`\r
2
+ `;L.DEFAULT_CONTENT_TYPE="application/octet-stream";L.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=un.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 o=this._multiPartHeader(e,t,r),s=this._multiPartFooter();n(o),n(t),n(s),this._trackLength(o,t,r)};L.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+L.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&$e(t,"httpVersion"))&&!(t instanceof nd))&&(r.knownLength||this._valuesToMeasure.push(t))};L.prototype._lengthRetriever=function(e,t){$e(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):rd.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):$e(e,"httpVersion")?t(null,Number(e.headers["content-length"])):$e(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};L.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),s="",c={"Content-Disposition":["form-data",'name="'+Ss(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&sn(c,r.header);var p;for(var f in c)if($e(c,f)){if(p=c[f],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(s+=f+": "+p.join("; ")+L.LINE_BREAK)}return"--"+this.getBoundary()+L.LINE_BREAK+s+L.LINE_BREAK};L.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=on.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=on.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&$e(e,"httpVersion")&&(r=on.basename(e.client._httpMessage.path||"")),r)return'filename="'+Ss(r)+'"'};L.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=an.lookup(e.name)),!r&&e&&e.path&&(r=an.lookup(e.path)),!r&&e&&e.readable&&$e(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=an.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=L.DEFAULT_CONTENT_TYPE),r};L.prototype._multiPartFooter=function(){return function(e){var t=L.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};L.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+L.LINE_BREAK};L.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)$e(e,t)&&(r[t.toLowerCase()]=e[t]);return r};L.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};L.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};L.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(L.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};L.prototype._generateBoundary=function(){this._boundary="--------------------------"+od.randomBytes(12).toString("hex")};L.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};L.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};L.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}id.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};L.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=td(e),n=sn({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=sn(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=ed.request(n):r=Ql.request(n),this.getLength(function(s,c){if(s&&s!=="Unknown stream"){this._error(s);return}if(c&&r.setHeader("Content-Length",c),this.pipe(r),t){var p,f=i(function(g,x){return r.removeListener("error",f),r.removeListener("response",p),t.call(this,g,x)},"callback");p=f.bind(this,null),r.on("error",f),r.on("response",p)}}.bind(this)),r};L.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};L.prototype.toString=function(){return"[object FormData]"};ad(L.prototype,"FormData");As.exports=L});var gd={};dn(gd,{ibmCognose:()=>fd});module.exports=qs(gd);var Ws=Object.freeze({status:"aborted"});function b(e,t,r){function n(p,f){if(p._zod||Object.defineProperty(p,"_zod",{value:{def:f,constr:c,traits:new Set},enumerable:!1}),p._zod.traits.has(e))return;p._zod.traits.add(e),t(p,f);let g=c.prototype,x=Object.keys(g);for(let E=0;E<x.length;E++){let _=x[E];_ in p||(p[_]=g[_].bind(p))}}i(n,"init");let o=r?.Parent??Object;class s extends o{static{i(this,"Definition")}}Object.defineProperty(s,"name",{value:e});function c(p){var f;let g=r?.Parent?new s:this;n(g,p),(f=g._zod).deferred??(f.deferred=[]);for(let x of g._zod.deferred)x();return g}return i(c,"_"),Object.defineProperty(c,"init",{value:n}),Object.defineProperty(c,Symbol.hasInstance,{value:i(p=>r?.Parent&&p instanceof r.Parent?!0:p?._zod?.traits?.has(e),"value")}),Object.defineProperty(c,"name",{value:e}),c}i(b,"$constructor");var Gs=Symbol("zod_brand"),ce=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},bt=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},or={};function me(e){return e&&Object.assign(or,e),or}i(me,"config");function ar(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}i(ar,"getEnumValues");function gn(e,t){return typeof t=="bigint"?t.toString():t}i(gn,"jsonStringifyReplacer");function Tt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(Tt,"cached");function yn(e){return e==null}i(yn,"nullish");function Et(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(Et,"cleanRegex");var fn=Symbol("evaluating");function J(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==fn)return n===void 0&&(n=fn,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}i(J,"defineLazy");var sr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Xe,"isObject");var Ks=Tt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function hn(e){if(Xe(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Xe(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(hn,"isPlainObject");var vn=new Set(["string","number","symbol"]);function Ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(Ne,"escapeRegex");function $t(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}i($t,"clone");function q(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>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:i(()=>t.error,"error")}:t}i(q,"normalizeParams");function xn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(xn,"optionalKeys");var Js={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function De(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(De,"aborted");function _e(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}i(_e,"prefixIssues");function It(e){return typeof e=="string"?e:e?.message}i(It,"unwrapMessage");function Pe(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=It(e.inst?._zod.def?.error?.(e))??It(t?.error?.(e))??It(r.customError?.(e))??It(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}i(Pe,"finalizeIssue");function _n(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(_n,"getLengthableOrigin");function ur(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}i(ur,"issue");var Pn=i((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,gn,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),bn=b("$ZodError",Pn),Ye=b("$ZodError",Pn,{Parent:Error});var Ys=i(e=>(t,r,n,o)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new ce;if(c.issues.length){let p=new(o?.Err??e)(c.issues.map(f=>Pe(f,s,me())));throw sr(p,o?.callee),p}return c.value},"_parse"),St=Ys(Ye),Qs=i(e=>async(t,r,n,o)=>{let s=n?Object.assign(n,{async:!0}):{async:!0},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){let p=new(o?.Err??e)(c.issues.map(f=>Pe(f,s,me())));throw sr(p,o?.callee),p}return c.value},"_parseAsync"),At=Qs(Ye),eu=i(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ce;return s.issues.length?{success:!1,error:new(e??bn)(s.issues.map(c=>Pe(c,o,me())))}:{success:!0,data:s.value}},"_safeParse"),Qe=eu(Ye),tu=i(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>Pe(c,o,me())))}:{success:!0,data:s.value}},"_safeParseAsync"),et=tu(Ye);var ru="(?:(?:\\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])))",nu=new RegExp(`^${ru}$`);var In=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Tn=/^-?\d+n?$/;var cr=/^-?\d+(?:\.\d+)?$/,En=/^(?:true|false)$/i;var Ce=b("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var $n=b("$ZodCheckMinLength",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!yn(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let c=_n(o);n.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var pr=b("$ZodCheckStringFormat",(e,t)=>{var r,n;Ce.init(e,t),e._zod.onattach.push(o=>{let s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Sn=b("$ZodCheckRegex",(e,t)=>{pr.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var zn={major:4,minor:3,patch:6};var W=b("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zn;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let s of o._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=i((c,p,f)=>{let g=De(c),x;for(let E of p){if(E._zod.def.when){if(!E._zod.def.when(c))continue}else if(g)continue;let _=c.issues.length,u=E._zod.check(c);if(u instanceof Promise&&f?.async===!1)throw new ce;if(x||u instanceof Promise)x=(x??Promise.resolve()).then(async()=>{await u,c.issues.length!==_&&(g||(g=De(c,_)))});else{if(c.issues.length===_)continue;g||(g=De(c,_))}}return x?x.then(()=>c):c},"runChecks"),s=i((c,p,f)=>{if(De(c))return c.aborted=!0,c;let g=o(p,n,f);if(g instanceof Promise){if(f.async===!1)throw new ce;return g.then(x=>e._zod.parse(x,f))}return e._zod.parse(g,f)},"handleCanaryResult");e._zod.run=(c,p)=>{if(p.skipChecks)return e._zod.parse(c,p);if(p.direction==="backward"){let g=e._zod.parse({value:c.value,issues:[]},{...p,skipChecks:!0});return g instanceof Promise?g.then(x=>s(x,c,p)):s(g,c,p)}let f=e._zod.parse(c,p);if(f instanceof Promise){if(p.async===!1)throw new ce;return f.then(g=>o(g,n,p))}return o(f,n,p)}}J(e,"~standard",()=>({validate:i(o=>{try{let s=Qe(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return et(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},"validate"),vendor:"zod",version:1}))}),kt=b("$ZodString",(e,t)=>{W.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??In(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}}),lr=b("$ZodStringFormat",(e,t)=>{pr.init(e,t),kt.init(e,t)});var Nn=b("$ZodURL",(e,t)=>{lr.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.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(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.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=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var Dn=b("$ZodNumber",(e,t)=>{W.init(e,t),e._zod.pattern=e._zod.bag.pattern??cr,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),r}});var dr=b("$ZodBoolean",(e,t)=>{W.init(e,t),e._zod.pattern=En,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),Cn=b("$ZodBigInt",(e,t)=>{W.init(e,t),e._zod.pattern=Tn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var Un=b("$ZodAny",(e,t)=>{W.init(e,t),e._zod.parse=r=>r}),Mn=b("$ZodUnknown",(e,t)=>{W.init(e,t),e._zod.parse=r=>r});var jn=b("$ZodVoid",(e,t)=>{W.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),Ln=b("$ZodDate",(e,t)=>{W.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,s=o instanceof Date;return s&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...s?{received:"Invalid Date"}:{},inst:e}),r}});function wn(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}i(wn,"handleArrayResult");var Fn=b("$ZodArray",(e,t)=>{W.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let s=[];for(let c=0;c<o.length;c++){let p=o[c],f=t.element._zod.run({value:p,issues:[]},n);f instanceof Promise?s.push(f.then(g=>wn(g,r,c))):wn(f,r,c)}return s.length?Promise.all(s).then(()=>r):r}});function wt(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(..._e(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}i(wt,"handlePropertyResult");function ou(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=xn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(ou,"normalizeDef");function iu(e,t,r,n,o,s){let c=[],p=o.keySet,f=o.catchall._zod,g=f.def.type,x=f.optout==="optional";for(let E in t){if(p.has(E))continue;if(g==="never"){c.push(E);continue}let _=f.run({value:t[E],issues:[]},n);_ instanceof Promise?e.push(_.then(u=>wt(u,r,E,t,x))):wt(_,r,E,t,x)}return c.length&&r.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}i(iu,"handleCatchall");var Bn=b("$ZodObject",(e,t)=>{if(W.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let p=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let f={...p};return Object.defineProperty(t,"shape",{value:f}),f},"get")})}let n=Tt(()=>ou(t));J(e._zod,"propValues",()=>{let p=t.shape,f={};for(let g in p){let x=p[g]._zod;if(x.values){f[g]??(f[g]=new Set);for(let E of x.values)f[g].add(E)}}return f});let o=Xe,s=t.catchall,c;e._zod.parse=(p,f)=>{c??(c=n.value);let g=p.value;if(!o(g))return p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p;p.value={};let x=[],E=c.shape;for(let _ of c.keys){let u=E[_],d=u._zod.optout==="optional",y=u._zod.run({value:g[_],issues:[]},f);y instanceof Promise?x.push(y.then(m=>wt(m,p,_,g,d))):wt(y,p,_,g,d)}return s?iu(x,g,p,f,n.value,e):x.length?Promise.all(x).then(()=>p):p}});function kn(e,t,r,n){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let o=e.filter(s=>!De(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(c=>Pe(c,n,me())))}),t)}i(kn,"handleUnionResults");var mr=b("$ZodUnion",(e,t)=>{W.init(e,t),J(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),J(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),J(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),J(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Et(s.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(r)return n(o,s);let c=!1,p=[];for(let f of t.options){let g=f._zod.run({value:o.value,issues:[]},s);if(g instanceof Promise)p.push(g),c=!0;else{if(g.issues.length===0)return g;p.push(g)}}return c?Promise.all(p).then(f=>kn(f,o,e,s)):kn(p,o,e,s)}});var Zn=b("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,mr.init(e,t);let r=e._zod.parse;J(e._zod,"propValues",()=>{let o={};for(let s of t.options){let c=s._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let[p,f]of Object.entries(c)){o[p]||(o[p]=new Set);for(let g of f)o[p].add(g)}}return o});let n=Tt(()=>{let o=t.options,s=new Map;for(let c of o){let p=c._zod.propValues?.[t.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(let f of p){if(s.has(f))throw new Error(`Duplicate discriminator value "${String(f)}"`);s.set(f,c)}}return s});e._zod.parse=(o,s)=>{let c=o.value;if(!Xe(c))return o.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),o;let p=n.value.get(c?.[t.discriminator]);return p?p._zod.run(o,s):t.unionFallback?r(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),o)}});var Vn=b("$ZodRecord",(e,t)=>{W.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!hn(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let s=[],c=t.keyType._zod.values;if(c){r.value={};let p=new Set;for(let g of c)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){p.add(typeof g=="number"?g.toString():g);let x=t.valueType._zod.run({value:o[g],issues:[]},n);x instanceof Promise?s.push(x.then(E=>{E.issues.length&&r.issues.push(..._e(g,E.issues)),r.value[g]=E.value})):(x.issues.length&&r.issues.push(..._e(g,x.issues)),r.value[g]=x.value)}let f;for(let g in o)p.has(g)||(f=f??[],f.push(g));f&&f.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:f})}else{r.value={};for(let p of Reflect.ownKeys(o)){if(p==="__proto__")continue;let f=t.keyType._zod.run({value:p,issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof p=="string"&&cr.test(p)&&f.issues.length){let E=t.keyType._zod.run({value:Number(p),issues:[]},n);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");E.issues.length===0&&(f=E)}if(f.issues.length){t.mode==="loose"?r.value[p]=o[p]:r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(E=>Pe(E,n,me())),input:p,path:[p],inst:e});continue}let x=t.valueType._zod.run({value:o[p],issues:[]},n);x instanceof Promise?s.push(x.then(E=>{E.issues.length&&r.issues.push(..._e(p,E.issues)),r.value[f.value]=E.value})):(x.issues.length&&r.issues.push(..._e(p,x.issues)),r.value[f.value]=x.value)}}return s.length?Promise.all(s).then(()=>r):r}});var Hn=b("$ZodEnum",(e,t)=>{W.init(e,t);let r=ar(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>vn.has(typeof o)).map(o=>typeof o=="string"?Ne(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{let c=o.value;return n.has(c)||o.issues.push({code:"invalid_value",values:r,input:c,inst:e}),o}}),qn=b("$ZodLiteral",(e,t)=>{if(W.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ne(n):n?Ne(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let s=n.value;return r.has(s)||n.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),n}});var Wn=b("$ZodTransform",(e,t)=>{W.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new bt(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(r.value=c,r));if(o instanceof Promise)throw new ce;return r.value=o,r}});function On(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(On,"handleOptionalResult");var Gn=b("$ZodOptional",(e,t)=>{W.init(e,t),e._zod.optin="optional",e._zod.optout="optional",J(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),J(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Et(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>On(s,r.value)):On(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var Kn=b("$ZodNullable",(e,t)=>{W.init(e,t),J(e._zod,"optin",()=>t.innerType._zod.optin),J(e._zod,"optout",()=>t.innerType._zod.optout),J(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Et(r.source)}|null)$`):void 0}),J(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 Jn=b("$ZodPipe",(e,t)=>{W.init(e,t),J(e._zod,"values",()=>t.in._zod.values),J(e._zod,"optin",()=>t.in._zod.optin),J(e._zod,"optout",()=>t.out._zod.optout),J(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let s=t.out._zod.run(r,n);return s instanceof Promise?s.then(c=>zt(c,t.in,n)):zt(s,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(s=>zt(s,t.out,n)):zt(o,t.out,n)}});function zt(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(zt,"handlePipeResult");var Xn=b("$ZodCustom",(e,t)=>{Ce.init(e,t),W.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(s=>Rn(s,r,n,e));Rn(o,r,n,e)}});function Rn(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(ur(o))}}i(Rn,"handleRefineResult");var Qn,cu=Symbol("ZodOutput"),pu=Symbol("ZodInput"),fr=class{static{i(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 o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function eo(){return new fr}i(eo,"registry");(Qn=globalThis).__zod_globalRegistry??(Qn.__zod_globalRegistry=eo());var gr=globalThis.__zod_globalRegistry;function to(e,t){return new e({type:"string",...q(t)})}i(to,"_string");function ro(e,t){return new e({type:"string",coerce:!0,...q(t)})}i(ro,"_coercedString");function no(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...q(t)})}i(no,"_url");function oo(e,t){return new e({type:"number",checks:[],...q(t)})}i(oo,"_number");function io(e,t){return new e({type:"number",coerce:!0,checks:[],...q(t)})}i(io,"_coercedNumber");function ao(e,t){return new e({type:"boolean",...q(t)})}i(ao,"_boolean");function so(e,t){return new e({type:"boolean",coerce:!0,...q(t)})}i(so,"_coercedBoolean");function uo(e,t){return new e({type:"bigint",coerce:!0,...q(t)})}i(uo,"_coercedBigint");function co(e){return new e({type:"any"})}i(co,"_any");function po(e){return new e({type:"unknown"})}i(po,"_unknown");function lo(e,t){return new e({type:"void",...q(t)})}i(lo,"_void");function mo(e,t){return new e({type:"date",coerce:!0,...q(t)})}i(mo,"_coercedDate");function se(e,t){return new $n({check:"min_length",...q(t),minimum:e})}i(se,"_minLength");function be(e,t){return new Sn({check:"string_format",format:"regex",...q(t),pattern:e})}i(be,"_regex");function fo(e,t,r){let n=q(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}i(fo,"_custom");var X=b("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");W.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>St(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Qe(e,r,n),e.parseAsync=async(r,n)=>At(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>et(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)=>$t(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.apply=r=>r(e)}),Rt=b("ZodMiniString",(e,t)=>{kt.init(e,t),X.init(e,t)});function a(e){return to(Rt,e)}i(a,"string");var go=b("ZodMiniStringFormat",(e,t)=>{lr.init(e,t),Rt.init(e,t)});var _u=b("ZodMiniURL",(e,t)=>{Nn.init(e,t),go.init(e,t)});function yo(e){return no(_u,e)}i(yo,"url");var yr=b("ZodMiniNumber",(e,t)=>{Dn.init(e,t),X.init(e,t)});function ee(e){return oo(yr,e)}i(ee,"number");var hr=b("ZodMiniBoolean",(e,t)=>{dr.init(e,t),X.init(e,t)});function B(e){return ao(hr,e)}i(B,"boolean");var ho=b("ZodMiniBigInt",(e,t)=>{Cn.init(e,t),X.init(e,t)});var Pu=b("ZodMiniAny",(e,t)=>{Un.init(e,t),X.init(e,t)});function rt(){return co(Pu)}i(rt,"any");var bu=b("ZodMiniUnknown",(e,t)=>{Mn.init(e,t),X.init(e,t)});function k(){return po(bu)}i(k,"unknown");var Iu=b("ZodMiniVoid",(e,t)=>{jn.init(e,t),X.init(e,t)});function vo(e){return lo(Iu,e)}i(vo,"_void");var xo=b("ZodMiniDate",(e,t)=>{Ln.init(e,t),X.init(e,t)});var Tu=b("ZodMiniArray",(e,t)=>{Fn.init(e,t),X.init(e,t)});function N(e,t){return new Tu({type:"array",element:e,...q(t)})}i(N,"array");var Eu=b("ZodMiniObject",(e,t)=>{Bn.init(e,t),X.init(e,t),J(e,"shape",()=>t.shape)});function l(e,t){let r={type:"object",shape:e??{},...q(t)};return new Eu(r)}i(l,"object");var $u=b("ZodMiniUnion",(e,t)=>{mr.init(e,t),X.init(e,t)});function D(e,t){return new $u({type:"union",options:e,...q(t)})}i(D,"union");var Su=b("ZodMiniDiscriminatedUnion",(e,t)=>{Zn.init(e,t),X.init(e,t)});function Ue(e,t,r){return new Su({type:"union",options:t,discriminator:e,...q(r)})}i(Ue,"discriminatedUnion");var Au=b("ZodMiniRecord",(e,t)=>{Vn.init(e,t),X.init(e,t)});function O(e,t,r){return new Au({type:"record",keyType:e,valueType:t,...q(r)})}i(O,"record");var zu=b("ZodMiniEnum",(e,t)=>{Hn.init(e,t),X.init(e,t),e.options=Object.values(t.entries)});function U(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new zu({type:"enum",entries:r,...q(t)})}i(U,"_enum");var wu=b("ZodMiniLiteral",(e,t)=>{qn.init(e,t),X.init(e,t)});function $(e,t){return new wu({type:"literal",values:Array.isArray(e)?e:[e],...q(t)})}i($,"literal");var ku=b("ZodMiniTransform",(e,t)=>{Wn.init(e,t),X.init(e,t)});function Ie(e){return new ku({type:"transform",transform:e})}i(Ie,"transform");var Ou=b("ZodMiniOptional",(e,t)=>{Gn.init(e,t),X.init(e,t)});function h(e){return new Ou({type:"optional",innerType:e})}i(h,"optional");var Ru=b("ZodMiniNullable",(e,t)=>{Kn.init(e,t),X.init(e,t)});function nt(e){return new Ru({type:"nullable",innerType:e})}i(nt,"nullable");var Nu=b("ZodMiniPipe",(e,t)=>{Jn.init(e,t),X.init(e,t)});function Te(e,t){return new Nu({type:"pipe",in:e,out:t})}i(Te,"pipe");var Du=b("ZodMiniCustom",(e,t)=>{Xn.init(e,t),X.init(e,t)});function Nt(e,t){return fo(Du,e??(()=>!0),t)}i(Nt,"custom");var ot={};dn(ot,{bigint:()=>Bu,boolean:()=>Fu,date:()=>Zu,number:()=>Lu,string:()=>ju});function ju(e){return ro(Rt,e)}i(ju,"string");function Lu(e){return io(yr,e)}i(Lu,"number");function Fu(e){return so(hr,e)}i(Fu,"boolean");function Bu(e){return uo(ho,e)}i(Bu,"bigint");function Zu(e){return mo(xo,e)}i(Zu,"date");var xr=l({retryOnFailure:l({defaultValue:h(B()),hide:h(B())}),continueOnFailure:l({defaultValue:h(B()),hide:h(B())})}),vr=class{constructor(t,r,n,o,s,c,p,f,g,x,E){this.name=t;this.displayName=r;this.description=n;this.props=o;this.run=s;this.test=c;this.requireAuth=p;this.errorHandlingOptions=f;this.outputSchema=g;this.audience=x;this.aiMetadata=E}static{i(this,"IAction")}},Y=i(e=>new vr(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var F=l({displayName:a(),description:h(a())}),C=i((e,t)=>l({type:$(t),required:B(),defaultValue:h(rt())}),"TPropertyValue");var ne=l({...F.shape,...C(a(),"SHORT_TEXT").shape}),fe=l({...F.shape,...C(a(),"LONG_TEXT").shape});var Po=l({label:a(),value:k()}),Dt=l({disabled:h(B()),placeholder:h(a()),options:N(Po)});var oe=l({...F.shape,options:Dt,...C(k(),"STATIC_DROPDOWN").shape}),ge=l({...F.shape,options:Dt,...C(N(k()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var _r=l({...F.shape,...C(k(),"DROPDOWN").shape,refreshers:N(a())}),it=l({...F.shape,...C(N(k()),"MULTI_SELECT_DROPDOWN").shape,refreshers:N(a())});var ye=l({...F.shape,...C(B(),"CHECKBOX").shape});var he=l({...F.shape,...C(ee(),"NUMBER").shape});var at=l({...F.shape,...C(k(),"FILE").shape});var st=l({...F.shape,...C(a(),"DATE_TIME").shape});var bo=O(a(),D([ne,fe,oe,it,ge,ye,he,at,st])),ut=l({...F.shape,properties:bo,...C(N(k()),"ARRAY").shape});var ct=l({...F.shape,...C(D([O(a(),k())]),"JSON").shape});var Io=D([ne,oe,ct,ut,ge]),Hu=O(a(),Io),Pr=l({refreshers:N(a()),...F.shape,...C(k(),"DYNAMIC").shape});var Ct=l({...F.shape,...C(vo(),"MARKDOWN").shape});var pt=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(pt||{}),Me=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(Me||{}),je=(v=>(v.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",v.COMMUNICATION="COMMUNICATION",v.COMMERCE="COMMERCE",v.CORE="CORE",v.UNIVERSAL_AI="UNIVERSAL_AI",v.FLOW_CONTROL="FLOW_CONTROL",v.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",v.ACCOUNTING="ACCOUNTING",v.PRODUCTIVITY="PRODUCTIVITY",v.CONTENT_AND_FILES="CONTENT_AND_FILES",v.DEVELOPER_TOOLS="DEVELOPER_TOOLS",v.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",v.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",v.HUMAN_RESOURCES="HUMAN_RESOURCES",v.PAYMENT_PROCESSING="PAYMENT_PROCESSING",v.MARKETING="MARKETING",v.SALES_AND_CRM="SALES_AND_CRM",v))(je||{});var lt=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(lt||{}),br="both_client_credentials_and_authorization_code";var Ae=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Ae||{}),dt=(s=>(s.NONE="NONE",s.HEADER_PRESENT="HEADER_PRESENT",s.QUERY_PRESENT="QUERY_PRESENT",s.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",s.HEAD_REQUEST="HEAD_REQUEST",s))(dt||{}),qu=l({strategy:U(dt),paramName:h(a())}),mt=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(mt||{});var Ut=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Ut||{}),To=l({status:h(ee()),body:h(k()),headers:h(O(a(),a()))}),Eo=l({type:$("DELAY"),resumeDateTime:a(),requestIdToReply:h(a()),handlerId:h(a()),streamStepProgress:h(U(Ut))}),$o=l({type:$("WEBHOOK"),requestId:a(),requestIdToReply:h(a()),response:To,handlerId:h(a()),streamStepProgress:h(U(Ut))}),Wu=D([Eo,$o]);var Gu=l({body:k(),rawBody:h(k()),headers:O(a(),a()),queryParams:O(a(),a())});function ve(e){return e==null}i(ve,"isNil");function ft(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}i(ft,"isEmpty");function Mt(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}i(Mt,"assertNotNullOrUndefined");var Ir=Re(require("crypto"),1);var Ku=128,ze,Le,Ju=i(e=>{!ze||ze.length<e?(ze=Buffer.allocUnsafe(e*Ku),Ir.default.randomFillSync(ze),Le=0):Le+e>ze.length&&(Ir.default.randomFillSync(ze),Le=0),Le+=e},"fillPool"),Xu=i(e=>(Ju(e|=0),ze.subarray(Le-e,Le)),"random"),Yu=i((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(s=t)=>{let c="";for(;;){let p=r(o),f=o;for(;f--;)if(c+=e[p[f]&n]||"",c.length===s)return c}}},"customRandom"),Ao=i((e,t=21)=>Yu(e,t,Xu),"customAlphabet");var Qu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",zo=21,YP=a().check(be(new RegExp(`^[0-9a-zA-Z]{${zo}}$`))),ec=Ao(Qu,zo);var Ee=Te(Ie(e=>e instanceof Date?e.toISOString():e),a()),ie={id:a(),created:Ee,updated:Ee},V=i(e=>h(nt(e)),"Nullable");function Tr(e){return h(nt(U(e)))}i(Tr,"NullableEnum");var tb=Te(Ie(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),h(B())),jt=i(e=>Te(Ie(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),h(N(e))),"OptionalArrayFromQuery");var ob=O(a(),k());var gt=(x=>(x.OPENAI="openai",x.OPENROUTER="openrouter",x.ANTHROPIC="anthropic",x.AZURE="azure",x.GOOGLE="google",x.ACTIVEPIECES="activepieces",x.CLOUDFLARE_GATEWAY="cloudflare-gateway",x.CUSTOM="custom",x.BEDROCK="bedrock",x.MISTRAL="mistral",x))(gt||{});var yb=a().check(be(/^#[0-9A-Fa-f]{6}$/));var vb=l({filename:a(),data:k(),type:$("file"),mimetype:h(a())});var tc=Re(ko());var Eb=l({...ie,name:a(),permissions:N(a()),platformId:V(a()),type:a(),userCount:h(ee())});var Oo=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Oo||{}),Er=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Er||{}),$r=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))($r||{});var Sr=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(Sr||{});var Ar=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Ar||{});var rc=l({mode:U(Oo),value:k()}),nc=l({auth:h(a()),fields:O(a(),rc)}),oc=l({pieceName:a(),pieceVersion:a(),actionName:a(),predefinedInput:h(nc)}),ic=l({type:$("PIECE"),toolName:a().check(se(1)),pieceMetadata:oc}),ac=l({type:$("none")}),sc=l({type:$("access_token"),accessToken:a()}),uc=l({type:$("api_key"),apiKey:a(),apiKeyHeader:a()}),cc=l({type:$("headers"),headers:O(a(),a())}),pc=Ue("type",[ac,sc,uc,cc]),Ro=l({type:$("FLOW"),toolName:a().check(se(1)),externalFlowId:a(),flowDisplayName:h(a())}),No=l({type:$("MCP"),toolName:a().check(se(1)),serverUrl:yo(),protocol:U($r),auth:pc}),Do=l({type:$("KNOWLEDGE_BASE"),toolName:a().check(se(1)),sourceType:U(Er),sourceId:a(),sourceName:a()}),lc=Ue("type",[ic,Ro,No,Do]),dc=l({displayName:a(),description:h(a()),type:U(Sr)}),Co=l({type:$("MARKDOWN"),markdown:a()}),Fe={type:$("TOOL_CALL"),input:V(O(a(),k())),output:h(k()),toolName:a(),status:U(Ar),toolCallId:a(),startTime:a(),endTime:h(a())},Yb=l(Fe),Uo=Ue("toolCallType",[l({...Fe,toolCallType:$("PIECE"),pieceName:a(),pieceVersion:a(),actionName:a()}),l({...Fe,toolCallType:$("FLOW"),displayName:a(),externalFlowId:a()}),l({...Fe,toolCallType:$("MCP"),displayName:a(),serverUrl:a()}),l({...Fe,toolCallType:$("KNOWLEDGE_BASE"),displayName:a(),sourceType:a()}),l({...Fe,toolCallType:$("UNKNOWN"),displayName:a()})]),mc=D([Co,Uo]);var zr=(r=>(r.IMAGE="image",r.TEXT="text",r))(zr||{}),xe=l({apiKey:a()}),fc=xe,gc=l({apiKey:a(),apiKeyHash:a()}),yc=xe,hc=xe,vc=xe,xc=xe,_c=xe,Pc=xe,bc=xe,Mo=l({accessKeyId:a().check(se(1)),secretAccessKey:a().check(se(1))}),Ic=l({}),Tc=l({}),Ec=l({}),$c=l({}),Sc=l({}),Ac=l({}),jo=l({modelId:a(),modelName:a(),modelType:U(zr)}),Lo=l({apiKeyHeader:a(),baseUrl:a(),models:N(jo),defaultHeaders:h(O(a(),a()))}),Fo=l({accountId:a(),gatewayId:a(),models:N(jo),vertexProject:h(a()),vertexRegion:h(a())}),Bo=l({resourceName:a(),apiVersion:Te(Ie(e=>typeof e=="string"&&e.trim().length===0?void 0:e),h(a()))}),Zo=l({region:a().check(se(1))}),zc=D([fc,vc,xc,_c,Pc,hc,yc,gc,Mo,bc]),Vo=D([Lo,Fo,Bo,Zo,Ic,Ec,$c,Sc,Tc,Ac]),wc=l({id:a(),name:a(),type:U(zr)}),kc=l({id:a(),name:a(),provider:U(gt),config:Vo,enabledForChat:B()}),Oc=l({provider:U(gt),config:Vo,auth:zc,platformId:a()});var rI={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var Rc=l({base64Url:a(),fileName:a(),extension:h(a())}),Nc=l({mimeType:a(),url:a(),fileName:h(a())}),wr=D([Rc,Nc]);var Dc=D([l({type:$("file"),value:wr}),l({type:$("markdown"),value:a(),files:h(N(wr))})]),Cc=l({sessionId:a(),message:a(),files:h(N(a()))});var qo=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(qo||{}),Wo=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(Wo||{}),kr=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(kr||{});var Uc=D([l({...ie,name:a(),externalId:a(),type:$("STATIC_DROPDOWN"),tableId:a(),projectId:a(),data:l({options:N(l({value:a()}))})}),l({...ie,name:a(),externalId:a(),type:D([$("TEXT"),$("NUMBER"),$("DATE")]),tableId:a(),projectId:a()})]),Mc=l({...ie,name:a(),folderId:V(a()),projectId:a(),externalId:a(),status:Tr(Wo),trigger:Tr(qo)}),jc=l({...ie,tableId:a(),projectId:a(),cells:O(a(),l({updated:a(),created:a(),value:k(),fieldName:a()}))}),Lc=l({events:N(U(kr)),webhookUrl:a(),flowId:a()}),Fc=l({fields:N(l({id:a(),name:a()})),rows:N(O(a(),a())),name:a()}),Bc=l({projectId:a(),limit:h(ot.number()),cursor:h(a()),name:h(a()),externalIds:jt(a()),folderId:h(a()),folderIds:jt(a())}),Zc=l({records:N(N(l({fieldId:a(),value:Ko()}))),tableId:a()}),Vc=l({cells:h(N(l({fieldId:a(),value:Ko()}))),tableId:a(),agentUpdate:h(B())}),Go=Ue("operator",[we("eq"),we("neq"),we("gt"),we("gte"),we("lt"),we("lte"),we("co"),Ho("exists"),Ho("not_exists")]),Hc=l({tableId:a(),limit:h(ot.number()),cursor:h(a()),filters:jt(Go)});function Ko(){return Te(Ie(e=>e==null?e:String(e)),nt(a()))}i(Ko,"coerceToString");function we(e){return l({fieldId:a(),operator:$(e),value:a()})}i(we,"valueFilter");function Ho(e){return l({fieldId:a(),operator:$(e)})}i(Ho,"existenceFilter");var qc=l({status:h(ee()),body:h(k()),headers:h(O(a(),a()))}),Wc=l({...ie,deleted:V(Ee),ownerId:a(),displayName:a(),platformId:a(),externalId:V(a())});var Jo=l({name:a(),description:h(a()),type:a(),required:B()}),Gc=l({pieceName:a(),triggerName:a(),input:l({toolName:a(),toolDescription:a(),inputSchema:N(Jo),returnsResponse:B()})});var Xo="^[0-9]+\\.[0-9]+\\.[0-9]+$",PI=new RegExp(Xo),Jc="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",bI=a().check(be(new RegExp(Xo))),II=a().check(be(new RegExp(Jc))),Xc=l({packageType:$("ARCHIVE"),pieceType:U(Me),pieceName:a(),pieceVersion:a(),archiveId:a(),platformId:a()}),Yo=l({packageType:$("REGISTRY"),pieceType:$("OFFICIAL"),pieceName:a(),pieceVersion:a()}),Qo=l({packageType:$("REGISTRY"),pieceType:$("CUSTOM"),pieceName:a(),pieceVersion:a(),platformId:a()}),TI=D([Yo,Qo]),EI=D([Xc,Yo,Qo]),ei=(t=>(t.CRON_EXPRESSION="CRON_EXPRESSION",t))(ei||{}),Yc=l({type:U(ei),cronExpression:a(),timezone:a()}),$I=l({...ie,type:U(Ae),projectId:a(),flowId:a(),triggerName:a(),schedule:V(Yc),flowVersionId:a(),pieceName:a(),pieceVersion:a(),deleted:V(a()),simulate:B()}),ti=(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))(ti||{}),ri=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(ri||{}),ni=(r=>(r.S3="S3",r.DB="DB",r))(ni||{}),SI=l({...ie,projectId:V(a()),platformId:V(a()),type:U(ti),compression:U(ri),data:h(k()),location:U(ni),size:V(ee()),fileName:V(a()),s3Key:V(a()),metadata:V(O(a(),a()))}),oi=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(oi||{}),ii=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(ii||{}),AI=l({id:a(),email:a(),firstName:a(),status:U(ii),externalId:V(a()),platformId:V(a()),platformRole:U(oi),lastName:a(),created:Ee,updated:Ee,lastActiveDate:V(Ee),imageUrl:V(a())});var Or=l({...F.shape,...C(O(a(),k()),"OBJECT").shape});var ci=l({...F.shape,...C(a(),"COLOR").shape});var Rr=D([ne,fe,Ct,ye,oe,ge,_r,it,Pr,he,ut,Or,ct,st,at,ci]),S={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var pe=l({displayName:a(),description:h(a())});var pi=l({username:a(),password:a()}),Nr=l({...pe.shape,username:l({displayName:a(),description:h(a())}),password:l({displayName:a(),description:h(a())}),...C(pi,"BASIC_AUTH").shape});var rp=O(a(),D([ne,fe,he,ye,oe])),Dr=l({...pe.shape,props:rp,...C(k(),"CUSTOM_AUTH").shape});var ke=l({...pe.shape,...C(l({auth:a()}),"SECRET_TEXT").shape});var np=O(a(),D([ne,fe,ke,he,ye,oe,ge,Ct])),li=l({...pe.shape,props:np,...C(k(),"OIDC").shape});var Cr=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Cr||{}),di=D([ne,ke,oe]),mi=O(a(),di),op=l({props:h(O(a(),di)),authUrl:a(),tokenUrl:a(),scope:N(a()),prompt:h(D([$("none"),$("consent"),$("login"),$("omit")])),pkce:h(B()),pkceMethod:h(D([$("plain"),$("S256")])),authorizationMethod:h(U(Cr)),grantType:h(D([U(lt),$(br)])),extra:h(O(a(),a()))}),fi=l({access_token:a(),props:h(mi),data:O(a(),rt())}),Ur=l({...pe.shape,...op.shape,...C(fi,"OAUTH2").shape});var Be=D([Nr,Dr,li,Ur,ke]),yt="Connection",Ft={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||yt}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||yt,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||yt}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||yt}},None(){}};var aE={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 ip=l({...F.shape,...C(k(),"CUSTOM").shape,code:a()});var ap=D([Rr,Be]),Mr=O(a(),ap),$E=O(a(),Rr);var gi=D([l({strategy:$("CRON"),cronExpression:a()}),l({strategy:$("NONE")})]);var yi="2",Bt="0.82.0";var jr=class{constructor(t,r,n,o,s,c,p,f,g=Bt,x,E=""){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=p;this.auth=f;this.minimumSupportedRelease=g;this.maximumSupportedRelease=x;this.description=E;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:yi}),"getContextInfo");(!sp(g)||up(g,Bt))&&(this.minimumSupportedRelease=Bt),s.forEach(_=>this._actions[_.name]=_),c.forEach(_=>this._triggers[_.name]=_)}static{i(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}},hi=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(s=>s.type===r.type)))throw new Error("Auth properties must be unique by type");return new jr(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function sp(e){return/^\d+\.\d+\.\d+$/.test(e)}i(sp,"isValidSimpleSemver");function up(e,t){let[r,n,o]=e.split(".").map(Number),[s,c,p]=t.split(".").map(Number);return r!==s?r<s:n!==c?n<c:o<p}i(up,"isSemverLessThan");var cp=h(O(a(),O(a(),a()))),vi=l({id:h(a()),name:a(),displayName:a(),logoUrl:a(),description:a(),authors:N(a()),platformId:h(a()),directoryPath:h(a()),auth:h(D([Be,N(Be)])),version:a(),categories:h(N(U(je))),minimumSupportedRelease:h(a()),maximumSupportedRelease:h(a()),i18n:cp}),pp=U(["human","ai","both"]),xi=l({description:h(a()),idempotent:h(B())}),_i=l({name:a(),displayName:a(),description:a(),props:Mr,requireAuth:B(),errorHandlingOptions:h(xr),outputSchema:h(Nt()),audience:h(pp),aiMetadata:h(xi)}),Pi=l({name:a(),displayName:a(),description:a(),props:Mr,errorHandlingOptions:h(xr),type:U(Ae),sampleData:k(),handshakeConfiguration:h(Nt()),renewConfiguration:h(gi),testStrategy:U(mt),outputSchema:h(Nt()),aiMetadata:h(xi)}),lp=l({...vi.shape,actions:O(a(),_i),triggers:O(a(),Pi)}),dp=l({...vi.shape,actions:ee(),triggers:ee(),suggestedActions:h(N(Pi)),suggestedTriggers:h(N(_i))}),bi=l({projectUsage:ee(),tags:h(N(a())),pieceType:U(Me),packageType:U(pt),platformId:h(a()),archiveId:h(a())}),$$=l({...lp.shape,...bi.shape}),S$=l({...dp.shape,...bi.shape}),A$=l({name:a(),version:a()});var mp=Re(require("path")),fp=Re(require("fs/promises"));var Zt=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((s,c)=>{o.append(c,s)}),{urlWithoutQueryParams:n,queryParams:o}}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 Vt=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new Lr,r=new Fr){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Lr=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},Fr=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var Ht=class extends Error{constructor(r,n){let o=n.status||500,s=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:s},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=s}static{i(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 qt=class extends Zt{static{i(this,"FetchHttpClient")}constructor(t="",r=new Vt){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),s=this.getHeaders(t),c=t.queryParams??{};for(let[j,re]of Object.entries(c))o.append(j,re);let p=o.toString(),f=p?`${n}?${p}`:n,g=t.responseType??"json",x=t.followRedirects??!0,E=t.retries??0,{body:_,extraHeaders:u,isStream:d}=gp(t.body,s),y=hp({...s,...u}),m=await yp(async()=>{let j=new AbortController,re=t.timeout&&t.timeout>0?setTimeout(()=>j.abort(),t.timeout):void 0;try{let ae={method:t.method.toString(),headers:y,body:_,redirect:x?"follow":"manual",signal:j.signal};return d&&(ae.duplex="half"),r?.dispatcher!==void 0&&(ae.dispatcher=r.dispatcher),await fetch(f,ae)}finally{re!==void 0&&clearTimeout(re)}},E),v=x?300:400;if(m.status<200||m.status>=v){let j=await Ii(m,g),re=new Ht(t.body,{status:m.status,responseBody:j});throw console.error("[HttpClient#(sanitized error message)] Request failed:",re),re}let P=await Ii(m,g);return{status:m.status,headers:vp(m.headers),body:P}}};function gp(e,t){return _p(e)?{body:void 0,extraHeaders:{},isStream:!1}:xp(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}}i(gp,"serializeBody");async function Ii(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}}}}i(Ii,"parseResponseBody");async function yp(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await Ti(n);continue}return o}catch(o){if(r=o,n<t){await Ti(n);continue}throw o}throw r}i(yp,"sendWithRetries");function Ti(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(Ti,"backoff");function hp(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=Array.isArray(n)?n.join(", "):n);return t}i(hp,"normalizeHeaders");function vp(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(vp,"toHttpHeaders");function xp(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}i(xp,"isNodeFormData");function _p(e){return e==null}i(_p,"isNil");var ht=new qt;var Wt=(c=>(c.GET="GET",c.POST="POST",c.PATCH="PATCH",c.PUT="PUT",c.DELETE="DELETE",c.HEAD="HEAD",c))(Wt||{});var sd=Re(require("fs")),ws=Re(zs());var ud={"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 cd(e){let t=e.split(";")[0].trim().toLowerCase();return ud[t]??""}i(cd,"contentTypeToExtension");var pd=i(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),ld=i((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function ks({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:s,props:c,extraProps:p,authLocation:f="headers"}){return Y({audience:"human",name:s||"custom_api_call",displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:S.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:i(async({auth:g})=>({url:S.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
3
+ i.e ${ld(t,g)}/resource or /resource`,required:!0,defaultValue:g?t(g):"",...c?.url??{}})}),"props")}),method:S.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Wt).map(g=>({label:g,value:g}))},...c?.method??{}}),headers:S.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...c?.headers??{}}),queryParams:S.Object({displayName:"Query Parameters",required:!0,...c?.queryParams??{}}),body_type:S.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:S.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:i(async({body_type:g})=>{if(!g)return{};let x=g,E={};switch(x){case"none":break;case"json":E.data=S.Json({displayName:"JSON Body",required:!0,...c?.body??{}});break;case"raw":E.data=S.LongText({displayName:"Raw Body",required:!0});break;case"form_data":E.data=S.Array({displayName:"Form Data",required:!0,properties:{fieldName:S.ShortText({displayName:"Field Name",required:!0}),fieldType:S.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:S.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:S.File({displayName:"File Field Value",required:!1})}});break}return E},"props")}),response_is_binary:S.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:S.Checkbox({displayName:"No Error on Failure",required:!1,...c?.failsafe??{}}),timeout:S.Number({displayName:"Timeout (in seconds)",required:!1,...c?.timeout??{}}),followRedirects:S.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...p},run:i(async g=>{let{method:x,url:E,headers:_,queryParams:u,body:d,body_type:y,failsafe:m,timeout:v,response_is_binary:P,followRedirects:j}=g.propsValue;Mt(x,"Method"),Mt(E,"URL");let re=ve(r)?{}:await r(g.auth,g.propsValue),ae=E.url,Ke=ae.startsWith("http://")||ae.startsWith("https://")?ae:pd({baseUrl:t(g.auth),relativePath:ae}),Se={method:x,url:Ke,headers:{..._??{},...f==="headers"||!ve(f)?re:{}},queryParams:{...f==="queryParams"?re:{},...u??{}},timeout:v?v*1e3:0,followRedirects:j};if(P&&(Se.responseType="arraybuffer"),d)if(y&&y!=="none"){let de=d.data;if(y==="form_data"){let Ls=de,Pt=new ws.default;for(let{fieldName:cn,fieldType:pn,textFieldValue:ln,fileFieldValue:nr}of Ls)pn==="text"&&!ft(ln)?Pt.append(cn,ln):pn==="file"&&!ft(nr)&&Pt.append(cn,nr.data,{filename:nr?.filename});Se.body=Pt,Se.headers={...Se.headers,...Pt.getHeaders()}}else Se.body=de}else y||(Se.body=d);try{let de=await ht.sendRequest(Se);return await dd(g.files,de.body,de.status,de.headers,P)}catch(de){if(m)return de.errorMessage();throw de}},"run")})}i(ks,"createCustomApiCallAction");var dd=i(async(e,t,r,n,o)=>{let s;if(o&&md(t)){let c=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],p=cd(c??"")||"txt",f;t instanceof ArrayBuffer?f=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?f=t:f=Buffer.from(t),s=await e.write({fileName:`output.${p}`,data:f})}else s=t;return{status:r,headers:n,body:s}},"handleBinaryResponse"),md=i(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Z=class{static{i(this,"CognosClient")}constructor(t){this.auth=t}async createSession(){let t=[{name:"CAMNamespace",value:this.auth.CAMNamespace},{name:"CAMUsername",value:this.auth.username},{name:"CAMPassword",value:this.auth.password}];try{let r=await ht.sendRequest({method:"PUT",url:`${this.auth.baseurl}/api/v1/session`,headers:{"Content-Type":"application/json"},body:{parameters:t}});if(r.status>=200&&r.status<300){let n=r.headers?.["set-cookie"];return this.sessionCookies=n?Array.isArray(n)?n.join("; "):n:"",this.sessionCookies}else throw new Error(`Authentication failed: ${r.status} ${r.body}`)}catch(r){throw new Error(`Failed to create session: ${r instanceof Error?r.message:"Unknown error"}`)}}async makeAuthenticatedRequest(t,r="GET",n){try{return this.sessionCookies||await this.createSession(),await ht.sendRequest({method:r,url:`${this.auth.baseurl}/api/v1${t}`,headers:{"Content-Type":"application/json",Cookie:this.sessionCookies||""},body:n})}catch(o){throw new Error(`Request failed: ${o instanceof Error?o.message:"Unknown error"}`)}}};var H=Ft.CustomAuth({required:!0,description:`
20
4
  ## IBM Cognos Analytics Authentication
21
5
 
22
6
  Enter your Cognos Analytics credentials:
23
7
  - **Username**: Your Cognos username
24
8
  - **Password**: Your Cognos password
25
- `,
26
- props: {
27
- baseurl: pieces_framework_1.Property.ShortText({
28
- displayName: 'Base URL',
29
- description: 'Cognos server URL (e.g., https://your-cognos-server.com)',
30
- required: true
31
- }),
32
- CAMNamespace: pieces_framework_1.Property.ShortText({
33
- displayName: 'CAM Namespace',
34
- description: 'CAM namespace for authentication (e.g., LDAP)',
35
- required: true
36
- }),
37
- username: pieces_framework_1.Property.ShortText({
38
- displayName: 'Username',
39
- description: 'Cognos username',
40
- required: true
41
- }),
42
- password: pieces_framework_1.PieceAuth.SecretText({
43
- displayName: 'Password',
44
- description: 'Cognos password',
45
- required: true
46
- })
47
- },
48
- validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
49
- const { username, password, CAMNamespace, baseurl } = auth;
50
- if (!username || !password || !CAMNamespace || !baseurl) {
51
- return {
52
- valid: false,
53
- error: 'All fields are required'
54
- };
55
- }
56
- try {
57
- const client = new cognos_client_1.CognosClient(auth);
58
- yield client.createSession();
59
- return {
60
- valid: true
61
- };
62
- }
63
- catch (error) {
64
- return {
65
- valid: false,
66
- error: `Authentication failed: ${error instanceof Error ? error.message : 'Unknown error'}`
67
- };
68
- }
69
- })
70
- });
71
- exports.ibmCognose = (0, pieces_framework_1.createPiece)({
72
- displayName: 'IBM Cognos Analytics',
73
- description: 'Business intelligence and performance management suite for data analysis and reporting',
74
- auth: exports.ibmCognoseAuth,
75
- minimumSupportedRelease: '0.36.1',
76
- logoUrl: 'https://cdn.activepieces.com/pieces/ibm-cognose.png',
77
- categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
78
- authors: ['fortunamide', 'onyedikachi-david'],
79
- actions: [
80
- create_data_source_1.createDataSourceAction,
81
- get_data_source_1.getDataSourceAction,
82
- update_data_source_1.updateDataSourceAction,
83
- delete_data_source_1.deleteDataSourceAction,
84
- get_content_object_1.getContentObjectAction,
85
- update_content_object_1.updateContentObjectAction,
86
- move_content_object_1.moveContentObjectAction,
87
- copy_content_object_1.copyContentObjectAction,
88
- (0, pieces_common_1.createCustomApiCallAction)({
89
- baseUrl: (auth) => `${auth.baseurl}/api/v1`,
90
- auth: exports.ibmCognoseAuth,
91
- authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
92
- try {
93
- const client = new cognos_client_1.CognosClient(auth.props);
94
- yield client.createSession();
95
- if (client['sessionCookies']) {
96
- return {
97
- Cookie: client['sessionCookies']
98
- };
99
- }
100
- return {};
101
- }
102
- catch (error) {
103
- throw new Error(`Failed to authenticate: ${error instanceof Error ? error.message : 'Unknown error'}`);
104
- }
105
- })
106
- })
107
- ],
108
- triggers: []
109
- });
110
- //# sourceMappingURL=index.js.map
9
+ `,props:{baseurl:S.ShortText({displayName:"Base URL",description:"Cognos server URL (e.g., https://your-cognos-server.com)",required:!0}),CAMNamespace:S.ShortText({displayName:"CAM Namespace",description:"CAM namespace for authentication (e.g., LDAP)",required:!0}),username:S.ShortText({displayName:"Username",description:"Cognos username",required:!0}),password:Ft.SecretText({displayName:"Password",description:"Cognos password",required:!0})},validate:i(async({auth:e})=>{let{username:t,password:r,CAMNamespace:n,baseurl:o}=e;if(!t||!r||!n||!o)return{valid:!1,error:"All fields are required"};try{return await new Z(e).createSession(),{valid:!0}}catch(s){return{valid:!1,error:`Authentication failed: ${s instanceof Error?s.message:"Unknown error"}`}}},"validate")});var Os=Y({auth:H,name:"create_data_source",displayName:"Create Data Source",description:"Create a new data source",audience:"both",aiMetadata:{description:"Create a new data source in IBM Cognos Analytics from a JDBC connection string, optionally attaching a database driver and a signon (username/password) credential. Use when provisioning a database connection for reporting. Not idempotent: each call creates a new data source and fails if one with the same name already exists.",idempotent:!1},props:{defaultName:S.ShortText({displayName:"Data Source Name",description:"Name for the new data source",required:!0}),connectionString:S.LongText({displayName:"Connection String",description:"JDBC URL or database connection string",required:!0,defaultValue:"jdbc:db2://localhost:50000/SAMPLE"}),driverName:S.ShortText({displayName:"Driver Name",description:"Database driver class name",required:!1,defaultValue:"com.ibm.db2.jcc.DB2Driver"}),username:S.ShortText({displayName:"Database Username",description:"Username for database connection",required:!1}),password:S.ShortText({displayName:"Database Password",description:"Password for database connection",required:!1}),signonDefaultName:S.ShortText({displayName:"Signon Name",description:"Name for the database credentials",required:!1})},async run({auth:e,propsValue:t}){let{defaultName:r,connectionString:n,driverName:o,username:s,password:c,signonDefaultName:p}=t;try{let f=new Z(e.props),g={defaultName:r,connections:[{connectionString:n,defaultName:r+"_connection"}]};o&&(g.connections[0].connectionString+=`;DRIVER_NAME=${o}`),s&&c&&(g.connections[0].signons=[{defaultName:p||r+"_signon",credentialsEx:{username:s,password:c}}]);let x=await f.makeAuthenticatedRequest("/dataSources","POST",g);if(x.status===201)return{success:!0,message:`Data source '${r}' created successfully`,dataSource:x.body};throw x.status===400?new Error(`Data source '${r}' already exists or invalid parameters`):x.status===401?new Error("Authentication failed. Check your credentials."):new Error(`Failed to create data source: ${x.status} ${x.body}`)}catch(f){throw new Error(`Failed to create data source: ${f instanceof Error?f.message:"Unknown error"}`)}}});var Ge=S.Dropdown({auth:H,displayName:"Data Source",description:"Select a data source",required:!0,refreshers:[],options:i(async({auth:e})=>{if(!e)return{disabled:!0,options:[],placeholder:"Connect your account first"};try{let r=await new Z(e.props).makeAuthenticatedRequest("/dataSources","GET");if(r.status===200){let o=r.body.dataSources||[];return o.length===0?{disabled:!0,options:[],placeholder:"No data sources found"}:{disabled:!1,options:o.map(s=>({label:s.defaultName||s.id,value:s.id}))}}else return{disabled:!0,options:[],placeholder:"Failed to load data sources"}}catch{return{disabled:!0,options:[],placeholder:"Error loading data sources"}}},"options")});var Rs=Y({auth:H,name:"update_data_source",displayName:"Update Data Source",description:"Update an existing data source",audience:"both",aiMetadata:{description:"Update an existing IBM Cognos data source identified by its id, changing its name and/or its disabled/hidden flags. At least one field must be supplied. Idempotent: re-applying the same values leaves the data source in the same state.",idempotent:!0},props:{datasourceId:Ge,defaultName:S.ShortText({displayName:"Data Source Name",description:"New name for the data source",required:!1}),disabled:S.Checkbox({displayName:"Disabled",description:"Disable the data source",required:!1,defaultValue:!1}),hidden:S.Checkbox({displayName:"Hidden",description:"Hide the data source",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){let{datasourceId:r,defaultName:n,disabled:o,hidden:s}=t;try{let c=new Z(e.props),p={};if(n&&(p.defaultName=n),o!==void 0&&(p.disabled=o),s!==void 0&&(p.hidden=s),Object.keys(p).length===0)throw new Error("At least one field must be provided to update");let f=await c.makeAuthenticatedRequest(`/dataSources/${r}`,"PUT",p);if(f.status===204||f.status===200)return{success:!0,message:"Data source updated successfully",updatedFields:p};throw f.status===401?new Error("Authentication failed. Check your credentials."):f.status===404?new Error("Data source not found"):new Error(`Failed to update: ${f.status} ${f.body}`)}catch(c){throw new Error(`Failed to update data source: ${c instanceof Error?c.message:"Unknown error"}`)}}});var Ns=Y({auth:H,name:"delete_data_source",displayName:"Delete Data Source",description:"Delete a data source",audience:"both",aiMetadata:{description:"Permanently delete an IBM Cognos data source by its id. Use to remove a database connection that is no longer needed. Destructive and not idempotent: a repeat call on an already-deleted data source returns not-found.",idempotent:!1},props:{datasourceId:Ge},async run({auth:e,propsValue:t}){let{datasourceId:r}=t;try{let o=await new Z(e.props).makeAuthenticatedRequest(`/dataSources/${r}`,"DELETE");if(o.status===204)return{success:!0,message:"Data source deleted successfully"};throw o.status===401?new Error("Authentication failed. Check your credentials."):o.status===404?new Error("Data source not found"):new Error(`Failed to delete: ${o.status} ${o.body}`)}catch(n){throw new Error(`Failed to delete data source: ${n instanceof Error?n.message:"Unknown error"}`)}}});var Ds=Y({auth:H,name:"get_data_source",displayName:"Get Data Source",description:"Retrieve data source details",audience:"both",aiMetadata:{description:"Fetch the details of a single IBM Cognos data source by its id. Use to read or verify a data source's configuration before acting on it; optionally request extra fields such as connections or signons. Idempotent read-only lookup.",idempotent:!0},props:{datasourceId:Ge,fields:S.ShortText({displayName:"Extra Fields",description:"Comma-separated list of extra fields (e.g., connections,signons)",required:!1})},async run({auth:e,propsValue:t}){let{datasourceId:r,fields:n}=t;try{let o=new Z(e.props),s=[];n&&n.trim()&&s.push(`fields=${encodeURIComponent(n.trim())}`);let c=s.length>0?`?${s.join("&")}`:"",p=await o.makeAuthenticatedRequest(`/dataSources/${r}${c}`,"GET");if(p.status===200)return p.body;throw p.status===401?new Error("Authentication failed. Check your credentials."):p.status===404?new Error("Data source not found"):new Error(`Failed to retrieve: ${p.status} ${p.body}`)}catch(o){throw new Error(`Failed to retrieve data source: ${o instanceof Error?o.message:"Unknown error"}`)}}});var le=S.Dropdown({auth:H,displayName:"Content Object",description:"Select a content object",required:!0,refreshers:[],options:i(async({auth:e})=>{if(!e)return{disabled:!0,options:[],placeholder:"Connect your account first"};try{let r=await new Z(e.props).makeAuthenticatedRequest("/content","GET");if(r.status===200){let o=r.body.content||[];return o.length===0?{disabled:!0,options:[],placeholder:"No content objects found"}:{disabled:!1,options:o.map(s=>({label:`${s.defaultName||"Unnamed"} (${s.type||"Unknown"})`,value:s.id}))}}else return{disabled:!0,options:[],placeholder:"Failed to load content objects"}}catch{return{disabled:!0,options:[],placeholder:"Error loading content objects"}}},"options")});var Cs=Y({auth:H,name:"update_content_object",displayName:"Update Content Object",description:"Update an existing content object",audience:"both",aiMetadata:{description:"Update an existing content-store object (report, dashboard, folder, etc.) identified by its id, changing its name and/or description. The object type is required, and an optional version enables optimistic-concurrency checking that rejects the update if the object changed since it was fetched. Idempotent: re-applying the same values leaves the object in the same state.",idempotent:!0},props:{objectId:le,type:S.ShortText({displayName:"Type",description:"Object type (e.g., report, dashboard, folder)",required:!0}),defaultName:S.ShortText({displayName:"Name",description:"New name for the object",required:!1}),defaultDescriptions:S.LongText({displayName:"Description",description:"New description for the object",required:!1}),version:S.Number({displayName:"Version",description:"Current version for optimistic concurrency",required:!1})},async run({auth:e,propsValue:t}){let{objectId:r,defaultName:n,defaultDescriptions:o,type:s,version:c}=t;try{let p=new Z(e.props),f={type:s};n&&(f.defaultName=n),o&&(f.defaultDescriptions=o),c!=null&&(f.version=c);let g=await p.makeAuthenticatedRequest(`/content/${r}`,"PUT",f);if(g.status===204||g.status===200)return{success:!0,message:"Content object updated successfully"};throw g.status===401?new Error("Authentication failed. Check your credentials."):g.status===404?new Error("Content object not found"):g.status===409?new Error("Object has changed since you fetched it. Refresh and try again."):new Error(`Failed to update: ${g.status} ${g.body}`)}catch(p){throw new Error(`Failed to update content object: ${p instanceof Error?p.message:"Unknown error"}`)}}});var Us=Y({auth:H,name:"get_content_object",displayName:"Get Content Object",description:"Get content object details",audience:"both",aiMetadata:{description:"Fetch the details of a single content-store object (report, dashboard, folder, etc.) by its id from the IBM Cognos content tree. Use to inspect an object before moving, copying, or updating it; optionally request extra fields such as owner, permissions, or children. Idempotent read-only lookup.",idempotent:!0},props:{objectId:le,fields:S.ShortText({displayName:"Extra Fields",description:"Comma-separated list of extra fields (e.g., owner,permissions,children)",required:!1})},async run({auth:e,propsValue:t}){let{objectId:r,fields:n}=t;try{let o=new Z(e.props),s=[];n&&n.trim()&&s.push(`fields=${encodeURIComponent(n.trim())}`);let c=s.length>0?`?${s.join("&")}`:"",p=await o.makeAuthenticatedRequest(`/content/${r}${c}`,"GET");if(p.status===200)return p.body;throw p.status===401?new Error("Authentication failed. Check your credentials."):p.status===404?new Error("Content object not found"):new Error(`Failed to retrieve: ${p.status} ${p.body}`)}catch(o){throw new Error(`Failed to retrieve content object: ${o instanceof Error?o.message:"Unknown error"}`)}}});var Ms=Y({auth:H,name:"move_content_object",displayName:"Move Content Object",description:"Move an object with all its descendants",audience:"both",aiMetadata:{description:"Move a content-store object, together with all of its descendants, from its current location into a destination container within the IBM Cognos content tree. Use to reorganize reports, dashboards, or folders. Source and destination must differ. Not idempotent: a repeat call after the object has moved fails because the source no longer exists at its original location.",idempotent:!1},props:{sourceId:le,destinationId:{...le,displayName:"Destination Container",description:"Destination container where the object will be moved"}},async run({auth:e,propsValue:t}){let{sourceId:r,destinationId:n}=t;if(r===n)throw new Error("Source and destination cannot be the same object");try{let o=new Z(e.props),s={source_id:r,destination_id:n},c=await o.makeAuthenticatedRequest("/content/move","PUT",s);if(c.status===204)return{success:!0,message:"Content object moved successfully"};throw c.status===400?new Error(`Bad request: ${c.body?.message||"Invalid move operation"}`):c.status===401?new Error("Authentication failed. Check your credentials."):c.status===403?new Error("Permission denied. Insufficient permissions to move this object."):c.status===404?new Error("Object or parent object not found."):new Error(`Failed to move: ${c.status} ${c.body}`)}catch(o){throw new Error(`Failed to move content object: ${o instanceof Error?o.message:"Unknown error"}`)}}});var js=Y({auth:H,name:"copy_content_object",displayName:"Copy Content Object",description:"Copy an object optionally with all its descendants",audience:"both",aiMetadata:{description:"Copy a content-store object into a destination container within the IBM Cognos content tree, optionally including all of its descendants (recursive, on by default). Use to duplicate reports, dashboards, or folders. Source and destination must differ. Not idempotent: each call creates a new copy.",idempotent:!1},props:{sourceId:le,destinationId:{...le,displayName:"Destination Container",description:"Destination container where the object will be copied"},recursive:S.Checkbox({displayName:"Recursive Copy",description:"Copy all descendants (child objects)",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let{sourceId:r,destinationId:n,recursive:o}=t;if(r===n)throw new Error("Source and destination cannot be the same object");try{let s=new Z(e.props),c={source_id:r,destination_id:n,recursive:o!==void 0?o:!0},p=await s.makeAuthenticatedRequest("/content/copy","POST",c);if(p.status===201)return{success:!0,message:`Content object copied successfully${o?" (including descendants)":""}`,copiedObject:p.body};throw p.status===400?new Error(`Bad request: ${p.body?.message||"Invalid copy operation"}`):p.status===401?new Error("Authentication failed. Check your credentials."):p.status===403?new Error("Permission denied. Insufficient permissions to copy this object."):p.status===404?new Error("Object or parent object not found."):new Error(`Failed to copy: ${p.status} ${p.body}`)}catch(s){throw new Error(`Failed to copy content object: ${s instanceof Error?s.message:"Unknown error"}`)}}});var fd=hi({displayName:"IBM Cognos Analytics",description:"Business intelligence and performance management suite for data analysis and reporting",auth:H,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/ibm-cognose.png",categories:["BUSINESS_INTELLIGENCE"],authors:["fortunamide","onyedikachi-david"],actions:[Os,Ds,Rs,Ns,Us,Cs,Ms,js,ks({baseUrl:i(e=>`${e.baseurl}/api/v1`,"baseUrl"),auth:H,authMapping:i(async e=>{try{let t=new Z(e.props);return await t.createSession(),t.sessionCookies?{Cookie:t.sessionCookies}:{}}catch(t){throw new Error(`Failed to authenticate: ${t instanceof Error?t.message:"Unknown error"}`)}},"authMapping")})],triggers:[]});0&&(module.exports={ibmCognose});
10
+ /*! Bundled license information:
11
+
12
+ mime-types/index.js:
13
+ (*!
14
+ * mime-types
15
+ * Copyright(c) 2014 Jonathan Ong
16
+ * Copyright(c) 2015 Douglas Christopher Wilson
17
+ * MIT Licensed
18
+ *)
19
+ */
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # pieces-ibm-cognose
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Running lint
6
-
7
- Run `nx lint pieces-ibm-cognose` to execute the lint via [ESLint](https://eslint.org/).
package/src/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export declare const ibmCognoseAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- baseurl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- CAMNamespace: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- password: import("@activepieces/pieces-framework").SecretTextProperty<true>;
6
- }>;
7
- export declare const ibmCognose: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
8
- baseurl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- CAMNamespace: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- password: import("@activepieces/pieces-framework").SecretTextProperty<true>;
12
- }>>;
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/ibm-cognose/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,+DAIqC;AACrC,iDAAqD;AACrD,8DAA0D;AAC1D,yEAA0E;AAC1E,yEAA0E;AAC1E,yEAA0E;AAC1E,mEAAoE;AACpE,+EAAgF;AAChF,yEAA0E;AAC1E,2EAA4E;AAC5E,2EAA4E;AAE/D,QAAA,cAAc,GAAG,4BAAS,CAAC,UAAU,CAAC;IACjD,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;;;;;;GAMZ;IACD,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAE3D,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,CAAC,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC;YACxD,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,yBAAyB;aACjC,CAAC;QACJ,CAAC;QAED,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;YAC7B,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,0BAA0B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE;aAC5F,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,IAAA,8BAAW,EAAC;IACpC,WAAW,EAAE,sBAAsB;IACnC,WAAW,EACT,wFAAwF;IAC1F,IAAI,EAAE,sBAAc;IACpB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,qDAAqD;IAC9D,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,OAAO,EAAE,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC7C,OAAO,EAAE;QACP,2CAAsB;QACtB,qCAAmB;QACnB,2CAAsB;QACtB,2CAAsB;QACtB,2CAAsB;QACtB,iDAAyB;QACzB,6CAAuB;QACvB,6CAAuB;QACvB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAI,IAAY,CAAC,OAAO,SAAS;YACpD,IAAI,EAAE,sBAAc;YACpB,WAAW,EAAE,CAAO,IAAS,EAAE,EAAE;gBAC/B,IAAI,CAAC;oBACH,MAAM,MAAM,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;oBAE7B,IAAI,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;wBAC7B,OAAO;4BACL,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;yBACjC,CAAC;oBACJ,CAAC;oBAED,OAAO,EAAE,CAAC;gBACZ,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,IAAI,KAAK,CACb,2BAA2B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CACtF,CAAC;gBACJ,CAAC;YACH,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -1,38 +0,0 @@
1
- export declare const copyContentObjectAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- baseurl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- CAMNamespace: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- password: import("@activepieces/pieces-framework").SecretTextProperty<true>;
6
- }>, {
7
- sourceId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
8
- baseurl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- CAMNamespace: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- password: import("@activepieces/pieces-framework").SecretTextProperty<true>;
12
- }>>;
13
- destinationId: {
14
- displayName: string;
15
- description: string;
16
- auth: import("@activepieces/pieces-framework").CustomAuthProperty<{
17
- baseurl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
18
- CAMNamespace: import("@activepieces/pieces-framework").ShortTextProperty<true>;
19
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
20
- password: import("@activepieces/pieces-framework").SecretTextProperty<true>;
21
- }>;
22
- refreshers: string[];
23
- refreshOnSearch?: boolean;
24
- options: (propsValue: Record<string, unknown> & {
25
- auth?: import("dist/packages/shared/src").CustomAuthConnectionValue<import("@activepieces/pieces-framework").StaticPropsValue<{
26
- baseurl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
27
- CAMNamespace: import("@activepieces/pieces-framework").ShortTextProperty<true>;
28
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
29
- password: import("@activepieces/pieces-framework").SecretTextProperty<true>;
30
- }>> | undefined;
31
- }, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<unknown>>;
32
- valueSchema: unknown;
33
- type: import("@activepieces/pieces-framework").PropertyType.DROPDOWN;
34
- required: true;
35
- defaultValue?: unknown;
36
- };
37
- recursive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
38
- }>;
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.copyContentObjectAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const index_1 = require("../../index");
8
- const cognos_client_1 = require("../common/cognos-client");
9
- const content_object_dropdown_1 = require("../common/content-object-dropdown");
10
- exports.copyContentObjectAction = (0, pieces_framework_1.createAction)({
11
- auth: index_1.ibmCognoseAuth,
12
- name: 'copy_content_object',
13
- displayName: 'Copy Content Object',
14
- description: 'Copy an object optionally with all its descendants',
15
- props: {
16
- sourceId: content_object_dropdown_1.contentObjectDropdown,
17
- destinationId: Object.assign(Object.assign({}, content_object_dropdown_1.contentObjectDropdown), { displayName: 'Destination Container', description: 'Destination container where the object will be copied' }),
18
- recursive: pieces_framework_1.Property.Checkbox({
19
- displayName: 'Recursive Copy',
20
- description: 'Copy all descendants (child objects)',
21
- required: false,
22
- defaultValue: true,
23
- }),
24
- },
25
- run(_a) {
26
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
27
- var _b;
28
- const { sourceId, destinationId, recursive } = propsValue;
29
- if (sourceId === destinationId) {
30
- throw new Error('Source and destination cannot be the same object');
31
- }
32
- try {
33
- const client = new cognos_client_1.CognosClient(auth.props);
34
- const copyRequest = {
35
- source_id: sourceId,
36
- destination_id: destinationId,
37
- recursive: recursive !== undefined ? recursive : true,
38
- };
39
- const response = yield client.makeAuthenticatedRequest('/content/copy', pieces_common_1.HttpMethod.POST, copyRequest);
40
- if (response.status === 201) {
41
- return {
42
- success: true,
43
- message: `Content object copied successfully${recursive ? ' (including descendants)' : ''}`,
44
- copiedObject: response.body,
45
- };
46
- }
47
- else if (response.status === 400) {
48
- throw new Error(`Bad request: ${((_b = response.body) === null || _b === void 0 ? void 0 : _b.message) || 'Invalid copy operation'}`);
49
- }
50
- else if (response.status === 401) {
51
- throw new Error('Authentication failed. Check your credentials.');
52
- }
53
- else if (response.status === 403) {
54
- throw new Error('Permission denied. Insufficient permissions to copy this object.');
55
- }
56
- else if (response.status === 404) {
57
- throw new Error('Object or parent object not found.');
58
- }
59
- else {
60
- throw new Error(`Failed to copy: ${response.status} ${response.body}`);
61
- }
62
- }
63
- catch (error) {
64
- throw new Error(`Failed to copy content object: ${error instanceof Error ? error.message : 'Unknown error'}`);
65
- }
66
- });
67
- },
68
- });
69
- //# sourceMappingURL=copy-content-object.js.map