@prismatic-io/components-google-analytics-ga4 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -215,4 +215,4 @@ e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=
215
215
  * @author Feross Aboukhadijeh <https://feross.org>
216
216
  * @license MIT
217
217
  */
218
- let t=Nm(),n=Pm(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(K(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||fe(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return le(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return de(e).length;default:if(i)return r?-1:le(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,fe(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(fe(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return G(le(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(W(t),e,n,r)}function D(e,t,n,r){return G(de(t),e,n,r)}function O(e,t,n,r){return G(ue(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}let j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=pe[e[r]];return i}function I(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function z(e,t,n,r,i){ie(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,i){ie(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=me(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=me(function(e,t=0){return B(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=me(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=me(function(e,t=0){return B(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function ee(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function V(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)};function H(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let U={};function te(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}te(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),te(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),te(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ne(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ne(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ne(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function re(e,t,n){ae(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&oe(t,e.length-(n+1))}function ie(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE(`value`,i,e)}re(r,i,a)}function ae(e,t){if(typeof e!=`number`)throw new U.ERR_INVALID_ARG_TYPE(t,`number`,e)}function oe(e,t,n){throw Math.floor(e)===e?t<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(ae(e,n),new U.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let se=/[^+/0-9A-Za-z-_]/g;function ce(e){if(e=e.split(`=`)[0],e=e.trim().replace(se,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function le(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function W(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ue(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function de(e){return t.toByteArray(ce(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function fe(e){return e!==e}let pe=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function me(e){return typeof BigInt>`u`?he:e}function he(){throw Error(`BigInt not supported`)}})),Im=a(((e,t)=>{let n=Mm(),r=typeof window<`u`?Fm().Buffer:global.Buffer;function i(e){return 12+4*Math.ceil(e.length/4)}function a(){return!(typeof window<`u`&&typeof document<`u`)}function o(e){return e.BYTES_PER_ELEMENT?e.length*e.BYTES_PER_ELEMENT:-1}function s(e){let t=0;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),ArrayBuffer.isView(e))return o(e);let i=JSON.stringify(n,(e,t)=>typeof t==`bigint`||typeof t==`function`?t.toString():t===void 0?`undefined`:typeof t==`symbol`||t instanceof RegExp?t.toString():t);t=r.byteLength(i,`utf8`)}catch{return Error(-1)}return t}function c(e){let t=[],o=[e],s=0;for(;o.length;){let c=o.pop();if(typeof c==`boolean`)s+=n.BYTES;else if(typeof c==`string`)a()?s+=i(c):s+=c.length*n.STRING;else if(typeof c==`number`)s+=n.NUMBER;else if(typeof c==`symbol`)Symbol.keyFor&&Symbol.keyFor(e)?s+=Symbol.keyFor(e).length*n.STRING:s+=(e.toString().length-8)*n.STRING;else if(typeof c==`bigint`)s+=r.from(c.toString()).byteLength;else if(typeof c==`function`)s+=c.toString().length;else if(typeof c==`object`&&t.indexOf(c)===-1){t.push(c);for(let e in c)o.push(c[e])}}return s}t.exports=function(e){let t=0;return t=typeof e==`object`&&e?s(e):c(e),t}})),Lm=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.debugRequest=e.fileDataFileNames=e.fileData=e.formData=e.retryAllErrors=e.useExponentialBackoff=e.retryDelayMS=e.maxRetries=e.queryParams=e.headers=e.responseType=e.method=e.timeout=e.data=e.url=void 0;let t=Om();e.url=(0,t.input)({label:`URL`,placeholder:`URL to call`,type:`string`,required:!0,comments:`This is the URL to call.`,example:`/sobjects/Account`,clean:e=>t.util.types.toString(e)}),e.data=(0,t.input)({label:`Data`,placeholder:`Data to send`,type:`string`,required:!1,comments:`The HTTP body payload to send to the URL.`,example:`{"exampleKey": "Example Data"}`}),e.timeout=(0,t.input)({label:`Timeout`,type:`string`,required:!1,comments:`The maximum time that a client will await a response to its request`,example:`2000`,clean:e=>t.util.types.toNumber(e)}),e.method=(0,t.input)({label:`Method`,type:`string`,required:!0,model:[`DELETE`,`GET`,`HEAD`,`LINK`,`OPTIONS`,`PATCH`,`POST`,`PURGE`,`PUT`,`UNLINK`].map(e=>({label:e,value:e})),comments:`The HTTP method to use.`,clean:e=>t.util.types.toString(e)}),e.responseType=(0,t.input)({label:`Response Type`,placeholder:`Response Type`,type:`string`,default:`json`,required:!0,comments:`The type of data you expect in the response. You can request json, text, or binary data.`,model:[`arraybuffer`,`document`,`json`,`text`].map(e=>({label:e,value:e})),clean:e=>t.util.types.toString(e)}),e.headers=(0,t.input)({label:`Header`,placeholder:`Header`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of headers to send with the request.`,example:`User-Agent: curl/7.64.1`}),e.queryParams=(0,t.input)({label:`Query Parameter`,placeholder:`Query Parameter`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.`}),e.maxRetries=(0,t.input)({label:`Max Retry Count`,placeholder:`Max Retries`,type:`string`,required:!1,comments:`The maximum number of retries to attempt. Specify 0 for no retries.`,default:`0`,clean:e=>t.util.types.toNumber(e)}),e.retryDelayMS=(0,t.input)({label:`Retry Delay (ms)`,placeholder:`Retry Delay`,type:`string`,required:!1,comments:`The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.`,default:`0`,clean:e=>t.util.types.toNumber(e,0)}),e.useExponentialBackoff=(0,t.input)({label:`Use Exponential Backoff`,type:`boolean`,default:`false`,required:!1,comments:`Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.`,clean:e=>t.util.types.toBool(e)}),e.retryAllErrors=(0,t.input)({label:`Retry On All Errors`,type:`boolean`,default:`false`,required:!1,comments:`If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.`,clean:e=>t.util.types.toBool(e)}),e.formData=(0,t.input)({label:`Form Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`The Form Data to be sent as a multipart form upload.`,example:`[{"key": "Example Key", "value": new Buffer("Hello World")}]`}),e.fileData=(0,t.input)({label:`File Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File Data to be sent as a multipart form upload.`,example:`[{key: "example.txt", value: "My File Contents"}]`}),e.fileDataFileNames=(0,t.input)({label:`File Data File Names`,placeholder:`The file name to apply to a file`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File names to apply to the file data inputs. Keys must match the file data keys above.`,clean:e=>e?t.util.types.keyValPairListToObject(e):void 0}),e.debugRequest=(0,t.input)({label:`Debug Request`,type:`boolean`,required:!1,comments:`Enabling this flag will log out the current request.`,clean:e=>t.util.types.toBool(e)}),e.inputs={url:e.url,method:e.method,data:e.data,formData:e.formData,fileData:e.fileData,fileDataFileNames:e.fileDataFileNames,queryParams:e.queryParams,headers:e.headers,responseType:e.responseType,timeout:e.timeout,debugRequest:e.debugRequest,retryDelayMS:e.retryDelayMS,retryAllErrors:e.retryAllErrors,maxRetries:e.maxRetries,useExponentialBackoff:e.useExponentialBackoff}})),Rm=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!=="default"&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.buildRawRequestAction=e.sendRawRequest=e.handleErrors=e.createClient=e.toAxiosRetryConfig=void 0;let s=o(Nu()),c=r(Am()),l=o(bu()),u=o(jm()),d=o(Im()),f=Om(),p=o(dl()),m=Lm();Object.defineProperty(e,"inputs",{enumerable:!0,get:function(){return m.inputs}});let h=/^(cookie|set-cookie)$|auth|token|secret|password|api[-_]?key/i,g=e=>typeof e==`object`&&!!e&&typeof e.toJSON==`function`,_=e=>{let t=g(e)?e.toJSON():Object.assign({},e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,h.test(e)?`[REDACTED]`:t]))},v=e=>{let t=p.default.types.toString(e.token?.access_token);if(t)return{Authorization:`Bearer ${t}`};let n=p.default.types.toString(e.fields?.apiKey);if(n)return{Authorization:`Bearer ${n}`};let r=p.default.types.toString(e.fields?.username),i=p.default.types.toString(e.fields?.password);if(r&&i)return{Authorization:`Basic ${Buffer.from(`${r}:${i}`).toString(`base64`)}`};throw Error(`Failed to guess at authorization parameters for Connection: ${e.key}`)},y=(e,t,n={})=>{let r=new l.default;return(e||[]).map(({key:e,value:t})=>r.append(e,t)),(t||[]).map(({key:e,value:t})=>r.append(e,p.default.types.toBufferDataPayload(t).data,{filename:n?.[e]||e})),r},b=(e,t)=>t?typeof e==`number`?t=>2**(t-1)*e:c.exponentialDelay:typeof e==`number`?()=>e:e;e.toAxiosRetryConfig=e=>{var{retryDelay:t,retryAllErrors:n,retryCondition:r,useExponentialBackoff:i}=e,o=a(e,[`retryDelay`,`retryAllErrors`,`retryCondition`,`useExponentialBackoff`]);return Object.assign(Object.assign({},o),{retryDelay:b(t,i),retryCondition:n?()=>!0:typeof r==`function`?r:c.isNetworkOrIdempotentRequestError})},e.createClient=({baseUrl:t,responseType:n,headers:r,timeout:i,params:a,debug:o=!1,retryConfig:l})=>{let u=s.default.create({baseURL:t,responseType:n,headers:r,timeout:i,params:a,maxContentLength:1/0,maxBodyLength:1/0});return o&&(u.interceptors.request.use(e=>{let{baseURL:t,headers:n,method:r,timeout:i,url:a,data:o,params:s}=e,c=(0,d.default)(o);return console.log(p.default.types.toJSON({type:`request`,baseURL:t,params:s,url:a,headers:_(n),method:r,timeout:i,data:c>1024*10||Buffer.isBuffer(o)?`<data (${c} bytes)>`:o},!0,!0)),e}),u.interceptors.response.use(e=>{let{headers:t,status:n,statusText:r,data:i}=e,a=(0,d.default)(i);return console.log(p.default.types.toJSON({type:`response`,headers:_(t),status:n,statusText:r,data:a>1024*10||Buffer.isBuffer(i)?`<data (${a} bytes)>`:i},!0,!0)),e})),l&&(0,c.default)(u,(0,e.toAxiosRetryConfig)(l)),u},e.handleErrors=e=>{if(s.default.isAxiosError(e)){let{message:t,response:n}=e;return{message:t,data:n?.data,status:n?.status,headers:n?.headers}}return e},e.sendRawRequest=(t,n,...r)=>i(void 0,[t,n,...r],void 0,function*(t,n,r={}){if(n.data&&(!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)))throw Error(`Cannot specify both Data and File/Form Data.`);let i=!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)?y(n.formData,n.fileData,n.fileDataFileNames):n.data;return yield(0,e.createClient)({baseUrl:t,debug:n.debugRequest,responseType:n.responseType,timeout:n.timeout,retryConfig:{retries:n.maxRetries,retryDelay:n.retryDelayMS,retryAllErrors:n.retryAllErrors,useExponentialBackoff:n.useExponentialBackoff}}).request({method:n.method,url:n.url,headers:Object.assign(Object.assign(Object.assign({},p.default.types.keyValPairListToObject(n.headers)),i instanceof l.default?i.getHeaders():{}),r),params:p.default.types.keyValPairListToObject(n.queryParams),data:i||void 0})}),e.buildRawRequestAction=(t,n=`Raw Request`,r=`Issue a raw HTTP request`)=>(0,f.action)({display:{label:n,description:r},inputs:Object.assign({connection:{label:`Connection`,type:`connection`,required:!0}},m.inputs),perform:(n,r)=>i(void 0,void 0,void 0,function*(){var{connection:n}=r,i=a(r,[`connection`]);let{data:o}=yield(0,e.sendRawRequest)(t,i,v(n));return{data:o}})})})),$=Om(),zm=Rm();const Bm=/^(\d{4})-(\d{2})-(\d{2})$/,Vm={adminv1beta:`https://analyticsadmin.googleapis.com/v1beta`,datav1beta:`https://analyticsdata.googleapis.com/v1beta`},Hm={accounts:{label:`Accounts`},properties:{label:`Properties`}},Um={ACCOUNTS:`accounts`,PROPERTIES:`properties`},Wm=({connection:e,endpointType:t,debug:n})=>{let r=e.token?.access_token;return(0,zm.createClient)({baseUrl:Vm[t],headers:{Authorization:`Bearer ${r}`},debug:n})},Gm={data:{accounts:[{name:`accounts/000000000`,createTime:`2012-11-20T15:12:07.864Z`,updateTime:`2015-08-11T21:08:55.416Z`,displayName:`Example Account`,regionCode:`US`}]}},Km={data:{properties:[{name:`properties/111111111`,parent:`accounts/000000000`,createTime:`2022-02-02T04:40:59.611Z`,updateTime:`2022-02-02T04:40:59.611Z`,displayName:`www.example.com`,industryCategory:`OTHER`,timeZone:`America/Chicago`,currencyCode:`USD`,serviceLevel:`GOOGLE_ANALYTICS_STANDARD`,account:`accounts/000000000`,propertyType:`PROPERTY_TYPE_ORDINARY`}]}},qm={data:{name:`properties/111111111`,parent:`accounts/000000000`,createTime:`2022-02-02T04:40:59.611Z`,updateTime:`2022-02-02T04:40:59.611Z`,displayName:`www.example.com`,industryCategory:`OTHER`,timeZone:`America/Chicago`,currencyCode:`USD`,serviceLevel:`GOOGLE_ANALYTICS_STANDARD`,account:`accounts/000000000`,propertyType:`PROPERTY_TYPE_ORDINARY`}},Jm={data:{dimensionHeaders:[{name:`pageTitle`}],metricHeaders:[{name:`sessions`,type:`TYPE_INTEGER`}],rows:[{dimensionValues:[{value:`My Example Page | My Website`}],metricValues:[{value:`9`}]},{dimensionValues:[{value:`A blog post | My Blog`}],metricValues:[{value:`3`}]}],rowCount:2,metadata:{currencyCode:`USD`,timeZone:`America/Chicago`},kind:`analyticsData#runReport`}},Ym={data:{message:`Event Sent Successfully`}},Xm={result:[{key:`accounts/000000000`,label:`My Account 1`},{key:`accounts/000000001`,label:`My Account 2`}]},Zm={payload:{headers:{},queryParameters:{},rawBody:{data:null},body:{data:{created:[{name:`accounts/000000001`,createTime:`2026-08-13T09:15:22.101Z`,updateTime:`2026-08-13T09:15:22.101Z`,displayName:`Newly Created Account`,regionCode:`US`}],updated:[{name:`accounts/000000000`,createTime:`2012-11-20T15:12:07.864Z`,updateTime:`2026-08-13T11:42:05.338Z`,displayName:`Example Account`,regionCode:`US`}]}},pathFragment:``,webhookUrls:{},webhookApiKeys:{},invokeUrl:``,executionId:`RXhhbXBsZUV4ZWN1dGlvblJlc3VsdElk`,customer:{id:`testCustomerId`,name:`Test Customer`,externalId:`testExternalId`},instance:{id:`testInstanceId`,name:`Test Instance`},user:{id:`testUserId`,email:`user@example.com`,name:`Test User`,externalId:`testUserExternalId`},integration:{id:`testIntegrationId`,name:`Test Integration`,versionSequenceId:`1`,externalVersion:``},flow:{id:`testFlowId`,name:`Test Flow`,stableId:`testFlowStableId`},startedAt:`2026-08-13T00:00:00.000Z`,globalDebug:!1}},Qm=e=>e?$.util.types.toString(e):void 0,$m=Object.entries(Hm).map(([e,{label:t}])=>({label:t,value:e})),eh=async(e,t,n,r,i)=>{let a={[i]:[]},o=n.pageSize?$.util.types.toNumber(n.pageSize):200,{data:s}=await e.get(t,{params:{...n,pageSize:o}});s[i]=s[i]??[],a[i]=s[i];let c=s.nextPageToken||``;if(r&&c){for(;c;){let r=await e.get(t,{params:{...n,pageSize:o,pageToken:c}});a[i]=a[i].concat(r.data[i]??[]),c=r.data.nextPageToken||``}return a}return s},th=e=>{let t=e??{};return[...(t.created??[]).map(e=>({changeType:`created`,record:e})),...(t.updated??[]).map(e=>({changeType:`updated`,record:e}))]},nh=(e,t,n,r,i)=>{let a=new Date(t),o=[],s=[];for(let t of e){let{createTime:e,updateTime:c}=t,l=typeof e==`string`?new Date(e):null,u=typeof c==`string`?new Date(c):null,d=l!==null&&l>a;d&&(n||r)?o.push(t):!d&&u!==null&&u>a&&(n||i)&&s.push(t)}return{created:o,updated:s}},rh=e=>{let t=$.util.types.toString(e).trim();if(!t)return``;if(!Bm.test(t))throw Error(`Look-back Date must be in YYYY-MM-DD format.`);let n=t.split(`-`),r=$.util.types.toNumber(n[0]),i=$.util.types.toNumber(n[1]),a=$.util.types.toNumber(n[2]),o=new Date(r,i-1,a);if(o.getFullYear()!==r||o.getMonth()!==i-1||o.getDate()!==a)throw Error(`Look-back Date "${t}" is not a valid calendar date.`);if(o>new Date)throw Error(`Look-back Date cannot be a future date.`);return t},ih=(e,t)=>t.startsWith(e)?t:`${e}/${t}`,ah=(0,$.input)({label:`Page Token`,type:`string`,required:!1,example:`CjwKCAjwpdqkBhB-EiwA4Kk0u3bXgYx5mXo3nZl6e7jYz1hA0r8D6Gq2b8g7fX9WlX1Jf4bJpQ8YhoCjvsQAvD_BwE`,placeholder:`Enter a page token`,comments:"If a previous response was truncated, the response includes a `nextPageToken`. To retrieve the next page of results, set this parameter to the value of `nextPageToken` from the previous response.",clean:Qm}),oh=(0,$.input)({label:`Page Size`,type:`string`,required:!1,example:`100`,placeholder:`Enter a page size`,comments:`The maximum number of resources contained in the underlying API response. The API may return fewer values in a page, even if there are additional values to return. If unspecified, 200 is requested, which is also the maximum.`,clean:Qm}),sh=(0,$.input)({label:`Connection`,type:`connection`,required:!0}),ch=(0,$.input)({label:`Property ID`,type:`string`,required:!0,example:`properties/111111111`,placeholder:`Enter a property ID`,comments:`The unique identifier for the GA4 property, in properties/NNNNNNNNN form. A bare numeric ID is accepted and normalized.`,dataSource:`listProperties`,clean:e=>ih(`properties`,$.util.types.toString(e))}),lh=(0,$.input)({label:`App Instance ID`,comments:`The unique identifier assigned to an app installation on a device. Sent as app_instance_id in the Measurement Protocol payload.`,type:`string`,required:!0,example:`12345678901234567890123456789012`,placeholder:`Enter an app instance ID`,clean:$.util.types.toString}),uh=(0,$.input)({label:`Events To Send`,comments:`The events to send to Google Analytics`,type:`code`,language:`json`,required:!0,example:JSON.stringify([{name:`campaign_details`,params:{campaign_id:`google_1234`,campaign:`Summer_fun`,source:`google`,medium:`cpc`,term:`summer+travel`,content:`logolink`,session_id:`123`,engagement_time_msec:`100`}}])}),dh=(0,$.input)({label:`API Secret`,type:`password`,required:!0,example:`Str5ahciR5SJtWClz1mkRA`,placeholder:`Enter an API secret`,comments:`The Measurement Protocol API secret. Generate one in the Google Analytics UI under Admin > Data Streams > Measurement Protocol API secrets.`,clean:$.util.types.toString}),fh=(0,$.input)({label:`Firebase App ID`,type:`string`,required:!0,example:`1:123456789012:web:1234567890123456789012`,placeholder:`1:123456789012:web:1234567890123456789012`,comments:`The Firebase App ID, found in the Firebase console under Project Settings > General > Your Apps > App ID`,clean:$.util.types.toString}),ph=(0,$.input)({label:`Account ID`,type:`string`,required:!0,example:`accounts/000000000`,placeholder:`Enter an account ID`,comments:`The unique identifier for the GA4 account that owns the properties, in accounts/NNNNNNNNN form.`,dataSource:`listAccounts`,clean:$.util.types.toString}),mh=(0,$.input)({label:`Fetch All`,type:`boolean`,required:!1,comments:`When true, retrieves all pages of results.`,clean:$.util.types.toBool}),{debugRequest:hh,...gh}=zm.inputs,_h={connection:sh,baseUrl:(0,$.input)({label:`Base URL`,type:`string`,required:!0,clean:$.util.types.toString,model:Object.values(Vm).map(e=>({label:e,value:e}))}),...gh,url:{...gh.url,comments:`Input the path only (/accounts), the base URL comes from the Base URL input. For example, to connect to the selected base URL followed by /accounts, only /accounts is entered in this field.`,example:`/accounts`}},vh=(0,$.structuredObjectInput)({label:`Pagination`,required:!1,comments:`Page and page-size controls.`,inputs:{pageSize:oh,pageToken:ah}}),yh={fetchAll:mh,pagination:vh,connection:sh},bh={accountId:ph,fetchAll:mh,pagination:vh,connection:sh},xh={accountId:{...ph,required:!1},propertyId:ch,connection:sh},Sh=(0,$.input)({label:`Resource Type`,type:`string`,required:!0,model:$m,comments:`The Google Analytics GA4 resource type to poll for new or updated records.`,clean:$.util.types.toString}),Ch=(0,$.input)({label:`Show New Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, newly created records are included in the trigger output.`,clean:$.util.types.toBool}),wh=(0,$.input)({label:`Show Updated Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, records that were modified after the last poll are included in the trigger output.`,clean:$.util.types.toBool}),Th=(0,$.input)({label:`Look-back Date`,placeholder:`Enter look-back date (YYYY-MM-DD)`,type:`string`,required:!1,comments:`The date the initial sync starts from, in YYYY-MM-DD format. Cannot be a future date. Leave empty to start from the first recurrence with no backfill. When set, the initial sync seeds each record modified on or after this date once, ignoring the visibility filters.`,example:`2026-01-01`,clean:rh}),Eh={connection:{...sh,comments:`The Google Analytics GA4 connection to use.`},pollResourceType:Sh,accountId:{...ph,required:!1,placeholder:`Enter the account ID (e.g., accounts/000000000)`,comments:`The unique identifier for the Google Analytics account. Required when the Resource Type is 'Properties'.`},showNewRecords:Ch,showUpdatedRecords:wh,lookBackDate:Th},Dh={type:`object`,properties:{accounts:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},displayName:{type:`string`},regionCode:{type:`string`},createTime:{type:`string`,format:`date-time`},updateTime:{type:`string`,format:`date-time`},deleted:{type:`boolean`},gmpOrganization:{type:`string`}},required:[]}},nextPageToken:{type:`string`}},required:[`accounts`]},Oh={type:`object`,properties:{name:{type:`string`},parent:{type:`string`},account:{type:`string`},displayName:{type:`string`},propertyType:{type:`string`,enum:[`PROPERTY_TYPE_UNSPECIFIED`,`PROPERTY_TYPE_ORDINARY`,`PROPERTY_TYPE_SUBPROPERTY`,`PROPERTY_TYPE_ROLLUP`]},industryCategory:{type:`string`,enum:`INDUSTRY_CATEGORY_UNSPECIFIED.AUTOMOTIVE.BUSINESS_AND_INDUSTRIAL_MARKETS.FINANCE.HEALTHCARE.TECHNOLOGY.TRAVEL.OTHER.ARTS_AND_ENTERTAINMENT.BEAUTY_AND_FITNESS.BOOKS_AND_LITERATURE.FOOD_AND_DRINK.GAMES.HOBBIES_AND_LEISURE.HOME_AND_GARDEN.INTERNET_AND_TELECOM.LAW_AND_GOVERNMENT.NEWS.ONLINE_COMMUNITIES.PEOPLE_AND_SOCIETY.PETS_AND_ANIMALS.REAL_ESTATE.REFERENCE.SCIENCE.SPORTS.JOBS_AND_EDUCATION.SHOPPING`.split(`.`)},serviceLevel:{type:`string`,enum:[`SERVICE_LEVEL_UNSPECIFIED`,`GOOGLE_ANALYTICS_STANDARD`,`GOOGLE_ANALYTICS_360`]},timeZone:{type:`string`},currencyCode:{type:`string`},createTime:{type:`string`,format:`date-time`},updateTime:{type:`string`,format:`date-time`},deleteTime:{type:`string`,format:`date-time`},expireTime:{type:`string`,format:`date-time`}},required:[]},kh={type:`object`,properties:{properties:{type:`array`,items:Oh},nextPageToken:{type:`string`}},required:[`properties`]},Ah=Oh,jh={type:`object`,properties:{dimensionValues:{type:`array`,items:{type:`object`,properties:{value:{type:`string`}},required:[],additionalProperties:!0}},metricValues:{type:`array`,items:{type:`object`,properties:{value:{type:`string`}},required:[],additionalProperties:!0}}},required:[]},Mh={type:`object`,properties:{consumed:{type:`integer`,format:`int32`},remaining:{type:`integer`,format:`int32`}},required:[]},Nh={type:`object`,properties:{kind:{type:`string`},dimensionHeaders:{type:`array`,items:{type:`object`,properties:{name:{type:`string`}},required:[]}},metricHeaders:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},type:{type:`string`,enum:[`METRIC_TYPE_UNSPECIFIED`,`TYPE_INTEGER`,`TYPE_FLOAT`,`TYPE_SECONDS`,`TYPE_MILLISECONDS`,`TYPE_MINUTES`,`TYPE_HOURS`,`TYPE_STANDARD`,`TYPE_CURRENCY`,`TYPE_FEET`,`TYPE_MILES`,`TYPE_METERS`,`TYPE_KILOMETERS`]}},required:[]}},rows:{type:`array`,items:jh},totals:{type:`array`,items:jh},maximums:{type:`array`,items:jh},minimums:{type:`array`,items:jh},rowCount:{type:`integer`,format:`int32`},metadata:{type:`object`,properties:{currencyCode:{type:`string`},timeZone:{type:`string`},emptyReason:{type:`string`},dataLossFromOtherRow:{type:`boolean`},subjectToThresholding:{type:`boolean`},samplingMetadatas:{type:`array`,items:{type:`object`,properties:{samplesReadCount:{type:`string`,format:`int64`},samplingSpaceSize:{type:`string`,format:`int64`}},required:[]}},schemaRestrictionResponse:{type:`object`,properties:{activeMetricRestrictions:{type:`array`,items:{type:`object`,properties:{metricName:{type:`string`},restrictedMetricTypes:{type:`array`,items:{type:`string`,enum:[`RESTRICTED_METRIC_TYPE_UNSPECIFIED`,`COST_DATA`,`REVENUE_DATA`]}}},required:[]}}},required:[]}},required:[]},propertyQuota:{type:`object`,properties:{tokensPerDay:Mh,tokensPerHour:Mh,concurrentRequests:Mh,serverErrorsPerProjectPerHour:Mh,potentiallyThresholdedRequestsPerHour:Mh,tokensPerProjectPerHour:Mh},required:[]}},required:[]},Ph={type:`object`,properties:{message:{type:`string`}},required:[`message`]};var Fh={listAccounts:(0,$.action)({display:{label:`List Accounts`,description:`Return a list of accounts accessible by the caller`},inputs:yh,outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Dh}),performSafety:`notAllowed`,perform:async(e,{connection:t,fetchAll:n,pagination:r})=>({data:await eh(Wm({connection:t,endpointType:`adminv1beta`,debug:e.debug.enabled}),`/accounts`,{pageSize:r.pageSize,pageToken:r.pageToken},n,`accounts`)}),examplePerform:async()=>({...Gm}),examplePayload:Gm})},Ih={sendMeasurementProtocolEvents:(0,$.action)({display:{label:`Send Measurement Protocol Events`,description:`Sends Measurement Protocol Events to the Google Analytics GA4 account.`},performSafety:`notAllowed`,perform:async(e,{firebaseAppId:t,events:n,appInstanceId:r,apiSecret:i})=>{let a={firebase_app_id:t,api_secret:i};return await(0,zm.createClient)({baseUrl:`https://www.google-analytics.com`}).post(`/mp/collect`,{app_instance_id:r,events:n},{params:a}),{data:{message:`Event Sent Successfully`}}},examplePerform:async()=>({...Ym}),inputs:{firebaseAppId:fh,appInstanceId:lh,apiSecret:dh,events:uh},outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Ph}),examplePayload:Ym})};const Lh=(0,$.action)({display:{label:`List Properties`,description:`List Google Analytics GA4 properties for an account`},inputs:bh,outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:kh}),performSafety:`notAllowed`,perform:async(e,{connection:t,accountId:n,pagination:r,fetchAll:i})=>({data:await eh(Wm({connection:t,endpointType:`adminv1beta`,debug:e.debug.enabled}),`/properties`,{filter:`parent:${n}`,pageSize:r.pageSize,pageToken:r.pageToken},i,`properties`)}),examplePerform:async(e,{accountId:t})=>{let n=Km.data.properties;return{data:{...Km.data,properties:n.map(e=>({...e,parent:t,account:t}))}}},examplePayload:Km});var Rh={getProperty:(0,$.action)({display:{label:`Get Property`,description:`Get property by ID`},inputs:xh,outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Ah}),performSafety:`safe`,perform:async(e,t)=>{let{data:n}=await Wm({connection:t.connection,endpointType:`adminv1beta`,debug:e.debug.enabled}).get(t.propertyId);return{data:n}},examplePayload:qm}),listProperties:Lh,runReport:(0,$.action)({display:{label:`Run Report`,description:`Run a customized report on Google Analytics event data.`},inputs:{connection:sh,accountId:{...ph,required:!1},propertyId:ch,requestBody:(0,$.input)({label:`Request Body`,type:`code`,language:`json`,required:!0,comments:`See [Google Analytics API documentation](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport) for details on what dimensions, metrics, etc., can be specified.`,default:JSON.stringify({dimensions:[{name:`pageTitle`}],metrics:[{name:`sessions`}],dateRanges:[{startDate:`7daysAgo`,endDate:`yesterday`}],dimensionFilter:{notExpression:{filter:{fieldName:`pageTitle`,stringFilter:{value:`My Homepage`}}}}},null,2),clean:$.util.types.toObject})},outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Nh}),performSafety:`notAllowed`,perform:async(e,t)=>{let{data:n}=await Wm({connection:t.connection,endpointType:`datav1beta`,debug:e.debug.enabled}).post(`${t.propertyId}:runReport`,t.requestBody);return{data:n}},examplePerform:async(e,{requestBody:t})=>{let{dimensions:n,metrics:r}=t,i=Jm.data,a=n?.length?n.map(({name:e})=>({name:e})):i.dimensionHeaders,o=r?.length?r.map(({name:e})=>({name:e})):i.metricHeaders;return{data:{...i,dimensionHeaders:a,metricHeaders:o,rows:i.rows.map(e=>({dimensionValues:a.map((t,n)=>e.dimensionValues[n]??e.dimensionValues[0]),metricValues:o.map((t,n)=>e.metricValues[n]??e.metricValues[0])}))}}},examplePayload:Jm})},zh={rawRequest:(0,$.action)({display:{label:`Raw Request`,description:`Send raw HTTP request to Google Analytics GA4`},inputs:_h,performSafety:`notAllowed`,perform:async(e,{connection:t,baseUrl:n,...r})=>{let{data:i}=await(0,zm.sendRawRequest)(n,{...r,debugRequest:e.debug.enabled},{Authorization:`Bearer ${t.token?.access_token}`});return{data:i}}})},Bh={...Fh,...Rh,...zh,...Ih},Vh=[(0,$.oauth2Connection)({oauth2Type:$.OAuth2Type.AuthorizationCode,key:`oauth2`,display:{label:`OAuth 2.0`,description:`OAuth 2.0 connection for Google Analytics GA4`,icons:{oauth2ConnectionIconPath:`oauth-button.png`}},inputs:{authorizeUrl:{label:`Authorize URL`,placeholder:`Authorize URL`,type:`string`,required:!0,shown:!1,comments:`The OAuth 2.0 Authorization URL for Google Calendar`,default:`https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent`},tokenUrl:{label:`Token URL`,placeholder:`Token URL`,type:`string`,required:!0,shown:!1,comments:`The OAuth 2.0 Token URL for Google Analytics`,default:`https://oauth2.googleapis.com/token`},scopes:{label:`Scopes`,placeholder:`Scopes`,type:`string`,required:!0,shown:!0,comments:`A space-delimited set of one or more scopes to get the user's permission to access.`,default:`https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/analytics.manage.users https://www.googleapis.com/auth/analytics.edit https://www.googleapis.com/auth/analytics.readonly`},clientId:{label:`Client ID`,placeholder:`Client ID`,type:`string`,required:!0,comments:`Provide a string value for the client Id of your OAuth 2.0 application.`,shown:!0},clientSecret:{label:`Client Secret`,placeholder:`Client Secret`,type:`password`,comments:`Provide a string value for the client secret of your OAuth 2.0 application.`,required:!0,shown:!0}}})],Hh={listAccounts:(0,$.dataSource)({display:{label:`List Accounts`,description:`Return a list of accounts accessible by the caller.`},dataSourceType:`picklist`,inputs:{connection:sh},perform:async(e,t)=>({result:((await eh(Wm({connection:t.connection,endpointType:`adminv1beta`}),`/accounts`,{},!0,`accounts`)).accounts||[]).map(e=>({key:e.name,label:e.displayName}))}),examplePayload:Xm})},Uh={listProperties:(0,$.dataSource)({display:{label:`List Properties`,description:`List Google Analytics GA4 properties for an account.`},inputs:{connection:sh,accountId:{...ph,dataSource:void 0}},dataSourceType:`picklist`,perform:async(e,t)=>({result:(await eh(Wm({connection:t.connection,endpointType:`adminv1beta`}),`/properties`,{filter:`parent:${t.accountId}`},!0,`properties`)).properties.map(e=>({key:e.name,label:`${e.displayName} - ${e.name}`}))})})},Wh={...Hh,...Uh},Gh={pollChangesTrigger:(0,$.pollingTrigger)({display:{label:`New and Updated Records`,description:`Retrieves existing and ongoing records in Google Analytics GA4. Load history once, check for changes on a schedule, or both.`},inputs:Eh,triggerResolverSupport:`valid`,batchConfig:{batchSize:50},triggerResolver:{resolveItems:(e,{payload:t})=>th(t.body.data)},perform:async(e,t,n)=>{let r=new Date().toISOString(),i=e.polling.getState(),a=!i?.lastPolledAt&&!!n.lookBackDate,o=i?.lastPolledAt??(n.lookBackDate||r),s=Wm({connection:n.connection,endpointType:`adminv1beta`,debug:e.debug.enabled}),c;if(n.pollResourceType===Um.ACCOUNTS)c=(await eh(s,`/accounts`,{pageSize:200},!0,`accounts`)).accounts;else if(n.pollResourceType===Um.PROPERTIES){if(!n.accountId)throw Error(`Account ID is required when polling Properties. Select an account in the trigger configuration.`);c=(await eh(s,`/properties`,{pageSize:200,filter:`parent:${n.accountId}`},!0,`properties`)).properties}else throw Error(`Unsupported resource type: ${n.pollResourceType}`);let{created:l,updated:u}=nh(c,o,a,n.showNewRecords,n.showUpdatedRecords),d=l.length+u.length;return e.debug.enabled&&e.logger.debug(`Polled ${c.length} ${n.pollResourceType} records, ${l.length} created, ${u.length} updated since last poll.`),e.polling.setState({lastPolledAt:r}),{payload:{...t,body:{data:{created:l,updated:u}}},polledNoChanges:d===0}},examplePayload:Zm})},Kh=(0,$.component)({key:`google-analytics-ga4`,documentationUrl:`https://prismatic.io/docs/components/google-analytics-ga4/`,public:!0,display:{label:`Google Analytics - GA4`,category:`Application Connectors`,description:`Manage Google Analytics GA4 accounts and data`,iconPath:`icon.png`},actions:Bh,triggers:Gh,dataSources:Wh,connections:Vh,hooks:{error:zm.handleErrors}});exports.default=Kh;
218
+ let t=Nm(),n=Pm(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(K(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||fe(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return le(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return de(e).length;default:if(i)return r?-1:le(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,fe(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(fe(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return G(le(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(W(t),e,n,r)}function D(e,t,n,r){return G(de(t),e,n,r)}function O(e,t,n,r){return G(ue(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}let j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=pe[e[r]];return i}function I(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=me(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function z(e,t,n,r,i){ie(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,i){ie(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=me(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=me(function(e,t=0){return B(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=me(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=me(function(e,t=0){return B(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function ee(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function V(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)};function H(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let U={};function te(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}te(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),te(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),te(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ne(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ne(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ne(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function re(e,t,n){ae(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&oe(t,e.length-(n+1))}function ie(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE(`value`,i,e)}re(r,i,a)}function ae(e,t){if(typeof e!=`number`)throw new U.ERR_INVALID_ARG_TYPE(t,`number`,e)}function oe(e,t,n){throw Math.floor(e)===e?t<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(ae(e,n),new U.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let se=/[^+/0-9A-Za-z-_]/g;function ce(e){if(e=e.split(`=`)[0],e=e.trim().replace(se,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function le(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function W(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ue(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function de(e){return t.toByteArray(ce(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function fe(e){return e!==e}let pe=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function me(e){return typeof BigInt>`u`?he:e}function he(){throw Error(`BigInt not supported`)}})),Im=a(((e,t)=>{let n=Mm(),r=typeof window<`u`?Fm().Buffer:global.Buffer;function i(e){return 12+4*Math.ceil(e.length/4)}function a(){return!(typeof window<`u`&&typeof document<`u`)}function o(e){return e.BYTES_PER_ELEMENT?e.length*e.BYTES_PER_ELEMENT:-1}function s(e){let t=0;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),ArrayBuffer.isView(e))return o(e);let i=JSON.stringify(n,(e,t)=>typeof t==`bigint`||typeof t==`function`?t.toString():t===void 0?`undefined`:typeof t==`symbol`||t instanceof RegExp?t.toString():t);t=r.byteLength(i,`utf8`)}catch{return Error(-1)}return t}function c(e){let t=[],o=[e],s=0;for(;o.length;){let c=o.pop();if(typeof c==`boolean`)s+=n.BYTES;else if(typeof c==`string`)a()?s+=i(c):s+=c.length*n.STRING;else if(typeof c==`number`)s+=n.NUMBER;else if(typeof c==`symbol`)Symbol.keyFor&&Symbol.keyFor(e)?s+=Symbol.keyFor(e).length*n.STRING:s+=(e.toString().length-8)*n.STRING;else if(typeof c==`bigint`)s+=r.from(c.toString()).byteLength;else if(typeof c==`function`)s+=c.toString().length;else if(typeof c==`object`&&t.indexOf(c)===-1){t.push(c);for(let e in c)o.push(c[e])}}return s}t.exports=function(e){let t=0;return t=typeof e==`object`&&e?s(e):c(e),t}})),Lm=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.debugRequest=e.fileDataFileNames=e.fileData=e.formData=e.retryAllErrors=e.useExponentialBackoff=e.retryDelayMS=e.maxRetries=e.queryParams=e.headers=e.responseType=e.method=e.timeout=e.data=e.url=void 0;let t=Om();e.url=(0,t.input)({label:`URL`,placeholder:`URL to call`,type:`string`,required:!0,comments:`This is the URL to call.`,example:`/sobjects/Account`,clean:e=>t.util.types.toString(e)}),e.data=(0,t.input)({label:`Data`,placeholder:`Data to send`,type:`string`,required:!1,comments:`The HTTP body payload to send to the URL.`,example:`{"exampleKey": "Example Data"}`}),e.timeout=(0,t.input)({label:`Timeout`,type:`string`,required:!1,comments:`The maximum time that a client will await a response to its request`,example:`2000`,clean:e=>t.util.types.toNumber(e)}),e.method=(0,t.input)({label:`Method`,type:`string`,required:!0,model:[`DELETE`,`GET`,`HEAD`,`LINK`,`OPTIONS`,`PATCH`,`POST`,`PURGE`,`PUT`,`UNLINK`].map(e=>({label:e,value:e})),comments:`The HTTP method to use.`,clean:e=>t.util.types.toString(e)}),e.responseType=(0,t.input)({label:`Response Type`,placeholder:`Response Type`,type:`string`,default:`json`,required:!0,comments:`The type of data you expect in the response. You can request json, text, or binary data.`,model:[`arraybuffer`,`document`,`json`,`text`].map(e=>({label:e,value:e})),clean:e=>t.util.types.toString(e)}),e.headers=(0,t.input)({label:`Header`,placeholder:`Header`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of headers to send with the request.`,example:`User-Agent: curl/7.64.1`}),e.queryParams=(0,t.input)({label:`Query Parameter`,placeholder:`Query Parameter`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.`}),e.maxRetries=(0,t.input)({label:`Max Retry Count`,placeholder:`Max Retries`,type:`string`,required:!1,comments:`The maximum number of retries to attempt. Specify 0 for no retries.`,default:`0`,clean:e=>t.util.types.toNumber(e)}),e.retryDelayMS=(0,t.input)({label:`Retry Delay (ms)`,placeholder:`Retry Delay`,type:`string`,required:!1,comments:`The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.`,default:`0`,clean:e=>t.util.types.toNumber(e,0)}),e.useExponentialBackoff=(0,t.input)({label:`Use Exponential Backoff`,type:`boolean`,default:`false`,required:!1,comments:`Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.`,clean:e=>t.util.types.toBool(e)}),e.retryAllErrors=(0,t.input)({label:`Retry On All Errors`,type:`boolean`,default:`false`,required:!1,comments:`If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.`,clean:e=>t.util.types.toBool(e)}),e.formData=(0,t.input)({label:`Form Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`The Form Data to be sent as a multipart form upload.`,example:`[{"key": "Example Key", "value": new Buffer("Hello World")}]`}),e.fileData=(0,t.input)({label:`File Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File Data to be sent as a multipart form upload.`,example:`[{key: "example.txt", value: "My File Contents"}]`}),e.fileDataFileNames=(0,t.input)({label:`File Data File Names`,placeholder:`The file name to apply to a file`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File names to apply to the file data inputs. Keys must match the file data keys above.`,clean:e=>e?t.util.types.keyValPairListToObject(e):void 0}),e.debugRequest=(0,t.input)({label:`Debug Request`,type:`boolean`,required:!1,comments:`Enabling this flag will log out the current request.`,clean:e=>t.util.types.toBool(e)}),e.inputs={url:e.url,method:e.method,data:e.data,formData:e.formData,fileData:e.fileData,fileDataFileNames:e.fileDataFileNames,queryParams:e.queryParams,headers:e.headers,responseType:e.responseType,timeout:e.timeout,debugRequest:e.debugRequest,retryDelayMS:e.retryDelayMS,retryAllErrors:e.retryAllErrors,maxRetries:e.maxRetries,useExponentialBackoff:e.useExponentialBackoff}})),Rm=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!=="default"&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.buildRawRequestAction=e.sendRawRequest=e.handleErrors=e.createClient=e.toAxiosRetryConfig=void 0;let s=o(Nu()),c=r(Am()),l=o(bu()),u=o(jm()),d=o(Im()),f=Om(),p=o(dl()),m=Lm();Object.defineProperty(e,"inputs",{enumerable:!0,get:function(){return m.inputs}});let h=/^(cookie|set-cookie)$|auth|token|secret|password|api[-_]?key/i,g=e=>typeof e==`object`&&!!e&&typeof e.toJSON==`function`,_=e=>{let t=g(e)?e.toJSON():Object.assign({},e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,h.test(e)?`[REDACTED]`:t]))},v=e=>{let t=p.default.types.toString(e.token?.access_token);if(t)return{Authorization:`Bearer ${t}`};let n=p.default.types.toString(e.fields?.apiKey);if(n)return{Authorization:`Bearer ${n}`};let r=p.default.types.toString(e.fields?.username),i=p.default.types.toString(e.fields?.password);if(r&&i)return{Authorization:`Basic ${Buffer.from(`${r}:${i}`).toString(`base64`)}`};throw Error(`Failed to guess at authorization parameters for Connection: ${e.key}`)},y=(e,t,n={})=>{let r=new l.default;return(e||[]).map(({key:e,value:t})=>r.append(e,t)),(t||[]).map(({key:e,value:t})=>r.append(e,p.default.types.toBufferDataPayload(t).data,{filename:n?.[e]||e})),r},b=(e,t)=>t?typeof e==`number`?t=>2**(t-1)*e:c.exponentialDelay:typeof e==`number`?()=>e:e;e.toAxiosRetryConfig=e=>{var{retryDelay:t,retryAllErrors:n,retryCondition:r,useExponentialBackoff:i}=e,o=a(e,[`retryDelay`,`retryAllErrors`,`retryCondition`,`useExponentialBackoff`]);return Object.assign(Object.assign({},o),{retryDelay:b(t,i),retryCondition:n?()=>!0:typeof r==`function`?r:c.isNetworkOrIdempotentRequestError})},e.createClient=({baseUrl:t,responseType:n,headers:r,timeout:i,params:a,debug:o=!1,retryConfig:l})=>{let u=s.default.create({baseURL:t,responseType:n,headers:r,timeout:i,params:a,maxContentLength:1/0,maxBodyLength:1/0});return o&&(u.interceptors.request.use(e=>{let{baseURL:t,headers:n,method:r,timeout:i,url:a,data:o,params:s}=e,c=(0,d.default)(o);return console.log(p.default.types.toJSON({type:`request`,baseURL:t,params:s,url:a,headers:_(n),method:r,timeout:i,data:c>1024*10||Buffer.isBuffer(o)?`<data (${c} bytes)>`:o},!0,!0)),e}),u.interceptors.response.use(e=>{let{headers:t,status:n,statusText:r,data:i}=e,a=(0,d.default)(i);return console.log(p.default.types.toJSON({type:`response`,headers:_(t),status:n,statusText:r,data:a>1024*10||Buffer.isBuffer(i)?`<data (${a} bytes)>`:i},!0,!0)),e})),l&&(0,c.default)(u,(0,e.toAxiosRetryConfig)(l)),u},e.handleErrors=e=>{if(s.default.isAxiosError(e)){let{message:t,response:n}=e;return{message:t,data:n?.data,status:n?.status,headers:n?.headers}}return e},e.sendRawRequest=(t,n,...r)=>i(void 0,[t,n,...r],void 0,function*(t,n,r={}){if(n.data&&(!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)))throw Error(`Cannot specify both Data and File/Form Data.`);let i=!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)?y(n.formData,n.fileData,n.fileDataFileNames):n.data;return yield(0,e.createClient)({baseUrl:t,debug:n.debugRequest,responseType:n.responseType,timeout:n.timeout,retryConfig:{retries:n.maxRetries,retryDelay:n.retryDelayMS,retryAllErrors:n.retryAllErrors,useExponentialBackoff:n.useExponentialBackoff}}).request({method:n.method,url:n.url,headers:Object.assign(Object.assign(Object.assign({},p.default.types.keyValPairListToObject(n.headers)),i instanceof l.default?i.getHeaders():{}),r),params:p.default.types.keyValPairListToObject(n.queryParams),data:i||void 0})}),e.buildRawRequestAction=(t,n=`Raw Request`,r=`Issue a raw HTTP request`)=>(0,f.action)({display:{label:n,description:r},inputs:Object.assign({connection:{label:`Connection`,type:`connection`,required:!0}},m.inputs),perform:(n,r)=>i(void 0,void 0,void 0,function*(){var{connection:n}=r,i=a(r,[`connection`]);let{data:o}=yield(0,e.sendRawRequest)(t,i,v(n));return{data:o}})})})),$=Om(),zm=Rm();const Bm=/^(\d{4})-(\d{2})-(\d{2})$/,Vm={adminv1beta:`https://analyticsadmin.googleapis.com/v1beta`,datav1beta:`https://analyticsdata.googleapis.com/v1beta`},Hm={accounts:{label:`Accounts`},properties:{label:`Properties`}},Um={ACCOUNTS:`accounts`,PROPERTIES:`properties`},Wm=({connection:e,endpointType:t,debug:n})=>{let r=e.token?.access_token;return(0,zm.createClient)({baseUrl:Vm[t],headers:{Authorization:`Bearer ${r}`},debug:n})},Gm={data:{accounts:[{name:`accounts/000000000`,createTime:`2012-11-20T15:12:07.864Z`,updateTime:`2015-08-11T21:08:55.416Z`,displayName:`Example Account`,regionCode:`US`}]}},Km={data:{properties:[{name:`properties/111111111`,parent:`accounts/000000000`,createTime:`2022-02-02T04:40:59.611Z`,updateTime:`2022-02-02T04:40:59.611Z`,displayName:`www.example.com`,industryCategory:`OTHER`,timeZone:`America/Chicago`,currencyCode:`USD`,serviceLevel:`GOOGLE_ANALYTICS_STANDARD`,account:`accounts/000000000`,propertyType:`PROPERTY_TYPE_ORDINARY`}]}},qm={data:{name:`properties/111111111`,parent:`accounts/000000000`,createTime:`2022-02-02T04:40:59.611Z`,updateTime:`2022-02-02T04:40:59.611Z`,displayName:`www.example.com`,industryCategory:`OTHER`,timeZone:`America/Chicago`,currencyCode:`USD`,serviceLevel:`GOOGLE_ANALYTICS_STANDARD`,account:`accounts/000000000`,propertyType:`PROPERTY_TYPE_ORDINARY`}},Jm={data:{dimensionHeaders:[{name:`pageTitle`}],metricHeaders:[{name:`sessions`,type:`TYPE_INTEGER`}],rows:[{dimensionValues:[{value:`My Example Page | My Website`}],metricValues:[{value:`9`}]},{dimensionValues:[{value:`A blog post | My Blog`}],metricValues:[{value:`3`}]}],rowCount:2,metadata:{currencyCode:`USD`,timeZone:`America/Chicago`},kind:`analyticsData#runReport`}},Ym={data:{message:`Event Sent Successfully`}},Xm={result:[{key:`accounts/000000000`,label:`My Account 1`},{key:`accounts/000000001`,label:`My Account 2`}]},Zm={payload:{headers:{},queryParameters:{},rawBody:{data:null},body:{data:{created:[{name:`accounts/000000001`,createTime:`2026-08-13T09:15:22.101Z`,updateTime:`2026-08-13T09:15:22.101Z`,displayName:`Newly Created Account`,regionCode:`US`}],updated:[{name:`accounts/000000000`,createTime:`2012-11-20T15:12:07.864Z`,updateTime:`2026-08-13T11:42:05.338Z`,displayName:`Example Account`,regionCode:`US`}]}},pathFragment:``,webhookUrls:{},webhookApiKeys:{},invokeUrl:``,executionId:`RXhhbXBsZUV4ZWN1dGlvblJlc3VsdElk`,customer:{id:`testCustomerId`,name:`Test Customer`,externalId:`testExternalId`},instance:{id:`testInstanceId`,name:`Test Instance`},user:{id:`testUserId`,email:`user@example.com`,name:`Test User`,externalId:`testUserExternalId`},integration:{id:`testIntegrationId`,name:`Test Integration`,versionSequenceId:`1`,externalVersion:``},flow:{id:`testFlowId`,name:`Test Flow`,stableId:`testFlowStableId`},startedAt:`2026-08-13T00:00:00.000Z`,globalDebug:!1}},Qm=e=>e?$.util.types.toString(e):void 0,$m=Object.entries(Hm).map(([e,{label:t}])=>({label:t,value:e})),eh=async(e,t,n,r,i)=>{let a={[i]:[]},o=n.pageSize?$.util.types.toNumber(n.pageSize):200,{data:s}=await e.get(t,{params:{...n,pageSize:o}});s[i]=s[i]??[],a[i]=s[i];let c=s.nextPageToken||``;if(r&&c){for(;c;){let r=await e.get(t,{params:{...n,pageSize:o,pageToken:c}});a[i]=a[i].concat(r.data[i]??[]),c=r.data.nextPageToken||``}return a}return s},th=e=>{let t=e??{};return[...(t.created??[]).map(e=>({changeType:`created`,record:e})),...(t.updated??[]).map(e=>({changeType:`updated`,record:e}))]},nh=(e,t,n,r,i)=>{let a=new Date(t),o=[],s=[];for(let t of e){let{createTime:e,updateTime:c}=t,l=typeof e==`string`?new Date(e):null,u=typeof c==`string`?new Date(c):null,d=l!==null&&l>a;d&&(n||r)?o.push(t):!d&&u!==null&&u>a&&(n||i)&&s.push(t)}return{created:o,updated:s}},rh=e=>{let t=$.util.types.toString(e).trim();if(!t)return``;if(!Bm.test(t))throw Error(`Look-back Date must be in YYYY-MM-DD format.`);let n=t.split(`-`),r=$.util.types.toNumber(n[0]),i=$.util.types.toNumber(n[1]),a=$.util.types.toNumber(n[2]),o=new Date(r,i-1,a);if(o.getFullYear()!==r||o.getMonth()!==i-1||o.getDate()!==a)throw Error(`Look-back Date "${t}" is not a valid calendar date.`);if(o>new Date)throw Error(`Look-back Date cannot be a future date.`);return t},ih=(e,t)=>t.startsWith(e)?t:`${e}/${t}`,ah=(0,$.input)({label:`Page Token`,type:`string`,required:!1,example:`CjwKCAjwpdqkBhB-EiwA4Kk0u3bXgYx5mXo3nZl6e7jYz1hA0r8D6Gq2b8g7fX9WlX1Jf4bJpQ8YhoCjvsQAvD_BwE`,placeholder:`Enter a page token`,comments:"If a previous response was truncated, the response includes a `nextPageToken`. To retrieve the next page of results, set this parameter to the value of `nextPageToken` from the previous response.",clean:Qm}),oh=(0,$.input)({label:`Page Size`,type:`string`,required:!1,example:`100`,placeholder:`Enter a page size`,comments:`The maximum number of resources contained in the underlying API response. The API may return fewer values in a page, even if there are additional values to return. If unspecified, 200 is requested, which is also the maximum.`,clean:Qm}),sh=(0,$.input)({label:`Connection`,type:`connection`,required:!0}),ch=(0,$.input)({label:`Property ID`,type:`string`,required:!0,example:`properties/111111111`,placeholder:`Enter a property ID`,comments:`The unique identifier for the GA4 property, in properties/NNNNNNNNN form. A bare numeric ID is accepted and normalized.`,dataSource:`listProperties`,clean:e=>ih(`properties`,$.util.types.toString(e))}),lh=(0,$.input)({label:`App Instance ID`,comments:`The unique identifier assigned to an app installation on a device. Sent as app_instance_id in the Measurement Protocol payload.`,type:`string`,required:!0,example:`12345678901234567890123456789012`,placeholder:`Enter an app instance ID`,clean:$.util.types.toString}),uh=(0,$.input)({label:`Events To Send`,comments:`The events to send to Google Analytics`,type:`code`,language:`json`,required:!0,example:JSON.stringify([{name:`campaign_details`,params:{campaign_id:`google_1234`,campaign:`Summer_fun`,source:`google`,medium:`cpc`,term:`summer+travel`,content:`logolink`,session_id:`123`,engagement_time_msec:`100`}}])}),dh=(0,$.input)({label:`API Secret`,type:`password`,required:!0,example:`Str5ahciR5SJtWClz1mkRA`,placeholder:`Enter an API secret`,comments:`The Measurement Protocol API secret. Generate one in the Google Analytics UI under Admin > Data Streams > Measurement Protocol API secrets.`,clean:$.util.types.toString}),fh=(0,$.input)({label:`Firebase App ID`,type:`string`,required:!0,example:`1:123456789012:web:1234567890123456789012`,placeholder:`1:123456789012:web:1234567890123456789012`,comments:`The Firebase App ID, found in the Firebase console under Project Settings > General > Your Apps > App ID`,clean:$.util.types.toString}),ph=(0,$.input)({label:`Account ID`,type:`string`,required:!0,example:`accounts/000000000`,placeholder:`Enter an account ID`,comments:`The unique identifier for the GA4 account that owns the properties, in accounts/NNNNNNNNN form.`,dataSource:`listAccounts`,clean:$.util.types.toString}),mh=(0,$.input)({label:`Fetch All`,type:`boolean`,required:!1,comments:`When true, retrieves all pages of results.`,clean:$.util.types.toBool}),{debugRequest:hh,...gh}=zm.inputs,_h={connection:sh,baseUrl:(0,$.input)({label:`Base URL`,type:`string`,required:!0,clean:$.util.types.toString,model:Object.values(Vm).map(e=>({label:e,value:e}))}),...gh,url:{...gh.url,comments:`Input the path only (/accounts), the base URL comes from the Base URL input. For example, to connect to the selected base URL followed by /accounts, only /accounts is entered in this field.`,example:`/accounts`}},vh=(0,$.structuredObjectInput)({label:`Pagination`,required:!1,comments:`Page and page-size controls.`,inputs:{pageSize:oh,pageToken:ah}}),yh={fetchAll:mh,pagination:vh,connection:sh},bh={accountId:ph,fetchAll:mh,pagination:vh,connection:sh},xh={accountId:{...ph,required:!1},propertyId:ch,connection:sh},Sh=(0,$.input)({label:`Resource Type`,type:`string`,required:!0,model:$m,comments:`The Google Analytics GA4 resource type to poll for new or updated records.`,clean:$.util.types.toString}),Ch=(0,$.input)({label:`Show New Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, newly created records are included in the trigger output.`,clean:$.util.types.toBool}),wh=(0,$.input)({label:`Show Updated Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, records that were modified after the last poll are included in the trigger output.`,clean:$.util.types.toBool}),Th=(0,$.input)({label:`Look-back Date`,placeholder:`Enter look-back date (YYYY-MM-DD)`,type:`string`,required:!1,comments:`The date the initial sync starts from, in YYYY-MM-DD format. Cannot be a future date. Leave empty to start from the first recurrence with no backfill. When set, the initial sync seeds each record modified on or after this date once, ignoring the visibility filters.`,example:`2026-01-01`,clean:rh}),Eh={connection:{...sh,comments:`The Google Analytics GA4 connection to use.`},pollResourceType:Sh,accountId:{...ph,required:!1,placeholder:`Enter the account ID (e.g., accounts/000000000)`,comments:`The unique identifier for the Google Analytics account. Required when the Resource Type is 'Properties'.`},showNewRecords:Ch,showUpdatedRecords:wh,lookBackDate:Th},Dh={type:`object`,properties:{accounts:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},displayName:{type:`string`},regionCode:{type:`string`},createTime:{type:`string`,format:`date-time`},updateTime:{type:`string`,format:`date-time`},deleted:{type:`boolean`},gmpOrganization:{type:`string`}},required:[]}},nextPageToken:{type:`string`}},required:[`accounts`]},Oh={type:`object`,properties:{name:{type:`string`},parent:{type:`string`},account:{type:`string`},displayName:{type:`string`},propertyType:{type:`string`,enum:[`PROPERTY_TYPE_UNSPECIFIED`,`PROPERTY_TYPE_ORDINARY`,`PROPERTY_TYPE_SUBPROPERTY`,`PROPERTY_TYPE_ROLLUP`]},industryCategory:{type:`string`,enum:`INDUSTRY_CATEGORY_UNSPECIFIED.AUTOMOTIVE.BUSINESS_AND_INDUSTRIAL_MARKETS.FINANCE.HEALTHCARE.TECHNOLOGY.TRAVEL.OTHER.ARTS_AND_ENTERTAINMENT.BEAUTY_AND_FITNESS.BOOKS_AND_LITERATURE.FOOD_AND_DRINK.GAMES.HOBBIES_AND_LEISURE.HOME_AND_GARDEN.INTERNET_AND_TELECOM.LAW_AND_GOVERNMENT.NEWS.ONLINE_COMMUNITIES.PEOPLE_AND_SOCIETY.PETS_AND_ANIMALS.REAL_ESTATE.REFERENCE.SCIENCE.SPORTS.JOBS_AND_EDUCATION.SHOPPING`.split(`.`)},serviceLevel:{type:`string`,enum:[`SERVICE_LEVEL_UNSPECIFIED`,`GOOGLE_ANALYTICS_STANDARD`,`GOOGLE_ANALYTICS_360`]},timeZone:{type:`string`},currencyCode:{type:`string`},createTime:{type:`string`,format:`date-time`},updateTime:{type:`string`,format:`date-time`},deleteTime:{type:`string`,format:`date-time`},expireTime:{type:`string`,format:`date-time`}},required:[]},kh={type:`object`,properties:{properties:{type:`array`,items:Oh},nextPageToken:{type:`string`}},required:[`properties`]},Ah=Oh,jh={type:`object`,properties:{dimensionValues:{type:`array`,items:{type:`object`,properties:{value:{type:`string`}},required:[],additionalProperties:!0}},metricValues:{type:`array`,items:{type:`object`,properties:{value:{type:`string`}},required:[],additionalProperties:!0}}},required:[]},Mh={type:`object`,properties:{consumed:{type:`integer`,format:`int32`},remaining:{type:`integer`,format:`int32`}},required:[]},Nh={type:`object`,properties:{kind:{type:`string`},dimensionHeaders:{type:`array`,items:{type:`object`,properties:{name:{type:`string`}},required:[]}},metricHeaders:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},type:{type:`string`,enum:[`METRIC_TYPE_UNSPECIFIED`,`TYPE_INTEGER`,`TYPE_FLOAT`,`TYPE_SECONDS`,`TYPE_MILLISECONDS`,`TYPE_MINUTES`,`TYPE_HOURS`,`TYPE_STANDARD`,`TYPE_CURRENCY`,`TYPE_FEET`,`TYPE_MILES`,`TYPE_METERS`,`TYPE_KILOMETERS`]}},required:[]}},rows:{type:`array`,items:jh},totals:{type:`array`,items:jh},maximums:{type:`array`,items:jh},minimums:{type:`array`,items:jh},rowCount:{type:`integer`,format:`int32`},metadata:{type:`object`,properties:{currencyCode:{type:`string`},timeZone:{type:`string`},emptyReason:{type:`string`},dataLossFromOtherRow:{type:`boolean`},subjectToThresholding:{type:`boolean`},samplingMetadatas:{type:`array`,items:{type:`object`,properties:{samplesReadCount:{type:`string`,format:`int64`},samplingSpaceSize:{type:`string`,format:`int64`}},required:[]}},schemaRestrictionResponse:{type:`object`,properties:{activeMetricRestrictions:{type:`array`,items:{type:`object`,properties:{metricName:{type:`string`},restrictedMetricTypes:{type:`array`,items:{type:`string`,enum:[`RESTRICTED_METRIC_TYPE_UNSPECIFIED`,`COST_DATA`,`REVENUE_DATA`]}}},required:[]}}},required:[]}},required:[]},propertyQuota:{type:`object`,properties:{tokensPerDay:Mh,tokensPerHour:Mh,concurrentRequests:Mh,serverErrorsPerProjectPerHour:Mh,potentiallyThresholdedRequestsPerHour:Mh,tokensPerProjectPerHour:Mh},required:[]}},required:[]},Ph={type:`object`,properties:{message:{type:`string`}},required:[`message`]};var Fh={listAccounts:(0,$.action)({display:{label:`List Accounts`,description:`Return a list of accounts accessible by the caller`},inputs:yh,outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Dh}),performSafety:`notAllowed`,perform:async(e,{connection:t,fetchAll:n,pagination:r})=>({data:await eh(Wm({connection:t,endpointType:`adminv1beta`,debug:e.debug.enabled}),`/accounts`,{pageSize:r.pageSize,pageToken:r.pageToken},n,`accounts`)}),examplePerform:async()=>({...Gm}),examplePayload:Gm})},Ih={sendMeasurementProtocolEvents:(0,$.action)({display:{label:`Send Measurement Protocol Events`,description:`Sends Measurement Protocol Events to the Google Analytics GA4 account.`},performSafety:`notAllowed`,perform:async(e,{firebaseAppId:t,events:n,appInstanceId:r,apiSecret:i})=>{let a={firebase_app_id:t,api_secret:i};return await(0,zm.createClient)({baseUrl:`https://www.google-analytics.com`}).post(`/mp/collect`,{app_instance_id:r,events:n},{params:a}),{data:{message:`Event Sent Successfully`}}},examplePerform:async()=>({...Ym}),inputs:{firebaseAppId:fh,appInstanceId:lh,apiSecret:dh,events:uh},outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Ph}),examplePayload:Ym})};const Lh=(0,$.action)({display:{label:`List Properties`,description:`List Google Analytics GA4 properties for an account`},inputs:bh,outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:kh}),performSafety:`notAllowed`,perform:async(e,{connection:t,accountId:n,pagination:r,fetchAll:i})=>({data:await eh(Wm({connection:t,endpointType:`adminv1beta`,debug:e.debug.enabled}),`/properties`,{filter:`parent:${n}`,pageSize:r.pageSize,pageToken:r.pageToken},i,`properties`)}),examplePerform:async(e,{accountId:t})=>{let n=Km.data.properties;return{data:{...Km.data,properties:n.map(e=>({...e,parent:t,account:t}))}}},examplePayload:Km});var Rh={getProperty:(0,$.action)({display:{label:`Get Property`,description:`Get property by ID`},inputs:xh,outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Ah}),performSafety:`safe`,perform:async(e,t)=>{let{data:n}=await Wm({connection:t.connection,endpointType:`adminv1beta`,debug:e.debug.enabled}).get(t.propertyId);return{data:n}},examplePayload:qm}),listProperties:Lh,runReport:(0,$.action)({display:{label:`Run Report`,description:`Run a customized report on Google Analytics event data.`},inputs:{connection:sh,accountId:{...ph,required:!1},propertyId:ch,requestBody:(0,$.input)({label:`Request Body`,type:`code`,language:`json`,required:!0,comments:`See [Google Analytics API documentation](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport) for details on what dimensions, metrics, etc., can be specified.`,default:JSON.stringify({dimensions:[{name:`pageTitle`}],metrics:[{name:`sessions`}],dateRanges:[{startDate:`7daysAgo`,endDate:`yesterday`}],dimensionFilter:{notExpression:{filter:{fieldName:`pageTitle`,stringFilter:{value:`My Homepage`}}}}},null,2),clean:$.util.types.toObject})},outputSchema:(0,$.outputSchema)({type:`actionOutput`,schema:Nh}),performSafety:`notAllowed`,perform:async(e,t)=>{let{data:n}=await Wm({connection:t.connection,endpointType:`datav1beta`,debug:e.debug.enabled}).post(`${t.propertyId}:runReport`,t.requestBody);return{data:n}},examplePerform:async(e,{requestBody:t})=>{let{dimensions:n,metrics:r}=t,i=Jm.data,a=n?.length?n.map(({name:e})=>({name:e})):i.dimensionHeaders,o=r?.length?r.map(({name:e})=>({name:e})):i.metricHeaders;return{data:{...i,dimensionHeaders:a,metricHeaders:o,rows:i.rows.map(e=>({dimensionValues:a.map((t,n)=>e.dimensionValues[n]??e.dimensionValues[0]),metricValues:o.map((t,n)=>e.metricValues[n]??e.metricValues[0])}))}}},examplePayload:Jm})},zh={rawRequest:(0,$.action)({display:{label:`Raw Request`,description:`Send raw HTTP request to Google Analytics GA4`},inputs:_h,performSafety:`notAllowed`,perform:async(e,{connection:t,baseUrl:n,...r})=>{let{data:i}=await(0,zm.sendRawRequest)(n,{...r,debugRequest:e.debug.enabled},{Authorization:`Bearer ${t.token?.access_token}`});return{data:i}}})},Bh={...Fh,...Rh,...zh,...Ih},Vh=[(0,$.oauth2Connection)({oauth2Type:$.OAuth2Type.AuthorizationCode,key:`oauth2`,display:{label:`OAuth 2.0`,description:`OAuth 2.0 connection for Google Analytics GA4`,icons:{oauth2ConnectionIconPath:`oauth-button.png`}},inputs:{authorizeUrl:{label:`Authorize URL`,placeholder:`Authorize URL`,type:`string`,required:!0,shown:!1,comments:`The OAuth 2.0 Authorization URL for Google Calendar`,default:`https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent`},tokenUrl:{label:`Token URL`,placeholder:`Token URL`,type:`string`,required:!0,shown:!1,comments:`The OAuth 2.0 Token URL for Google Analytics`,default:`https://oauth2.googleapis.com/token`},scopes:{label:`Scopes`,placeholder:`Scopes`,type:`string`,required:!0,shown:!0,comments:`A space-delimited set of one or more scopes to get the user's permission to access.`,default:`https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/analytics.manage.users https://www.googleapis.com/auth/analytics.edit https://www.googleapis.com/auth/analytics.readonly`},clientId:{label:`Client ID`,placeholder:`Client ID`,type:`string`,required:!0,comments:`Provide a string value for the client Id of your OAuth 2.0 application.`,shown:!0},clientSecret:{label:`Client Secret`,placeholder:`Client Secret`,type:`password`,comments:`Provide a string value for the client secret of your OAuth 2.0 application.`,required:!0,shown:!0}}})],Hh={listAccounts:(0,$.dataSource)({display:{label:`List Accounts`,description:`Return a list of accounts accessible by the caller.`},dataSourceType:`picklist`,inputs:{connection:sh},perform:async(e,t)=>({result:((await eh(Wm({connection:t.connection,endpointType:`adminv1beta`}),`/accounts`,{},!0,`accounts`)).accounts||[]).map(e=>({key:e.name,label:e.displayName}))}),examplePayload:Xm})},Uh={listProperties:(0,$.dataSource)({display:{label:`List Properties`,description:`List Google Analytics GA4 properties for an account.`},inputs:{connection:sh,accountId:{...ph,dataSource:void 0}},dataSourceType:`picklist`,perform:async(e,t)=>({result:(await eh(Wm({connection:t.connection,endpointType:`adminv1beta`}),`/properties`,{filter:`parent:${t.accountId}`},!0,`properties`)).properties.map(e=>({key:e.name,label:`${e.displayName} - ${e.name}`}))})})},Wh={...Hh,...Uh},Gh={pollChangesTrigger:(0,$.pollingTrigger)({display:{label:`New and Updated Records`,description:`Retrieves existing and ongoing records in Google Analytics GA4. Load history once, check for changes on a schedule, or both.`},inputs:Eh,triggerResolverSupport:`valid`,batchConfig:{batchSize:50},triggerResolver:{resolveItems:(e,{payload:t})=>th(t.body.data)},perform:async(e,t,n)=>{let r=new Date().toISOString(),i=e.polling.getState(),a=!i?.lastPolledAt&&!!n.lookBackDate,o=i?.lastPolledAt??(n.lookBackDate||r),s=Wm({connection:n.connection,endpointType:`adminv1beta`,debug:e.debug.enabled}),c;if(n.pollResourceType===Um.ACCOUNTS)c=(await eh(s,`/accounts`,{pageSize:200},!0,`accounts`)).accounts;else if(n.pollResourceType===Um.PROPERTIES){if(!n.accountId)throw Error(`Account ID is required when polling Properties. Select an account in the trigger configuration.`);c=(await eh(s,`/properties`,{pageSize:200,filter:`parent:${n.accountId}`},!0,`properties`)).properties}else throw Error(`Unsupported resource type: ${n.pollResourceType}`);let{created:l,updated:u}=nh(c,o,a,n.showNewRecords,n.showUpdatedRecords),d=l.length+u.length;return e.debug.enabled&&e.logger.debug(`Polled ${c.length} ${n.pollResourceType} records, ${l.length} created, ${u.length} updated since last poll.`),e.polling.setState({lastPolledAt:r}),{payload:{...t,body:{data:{created:l,updated:u}}},polledNoChanges:d===0}},examplePayload:Zm})},Kh=(0,$.component)({key:`google-analytics-ga4`,documentationUrl:`https://prismatic.io/docs/components/google-analytics-ga4/`,public:!0,display:{label:`Google Analytics - GA4`,category:`Application Connectors`,description:`Run Google Analytics 4 (GA4) Data API reports, list accounts and properties, and send Measurement Protocol events.`,iconPath:`icon.png`},actions:Bh,triggers:Gh,dataSources:Wh,connections:Vh,hooks:{error:zm.handleErrors}});exports.default=Kh;
@@ -1065,7 +1065,7 @@ var src_default = (0, _prismatic_io_spectral.component)({
1065
1065
  display: {
1066
1066
  label: "Google Analytics - GA4",
1067
1067
  category: "Application Connectors",
1068
- description: "Manage Google Analytics GA4 accounts and data",
1068
+ description: "Run Google Analytics 4 (GA4) Data API reports, list accounts and properties, and send Measurement Protocol events.",
1069
1069
  iconPath: "icon.png"
1070
1070
  },
1071
1071
  actions: actions_default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-google-analytics-ga4",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "main": "./npm-dist/index.cjs",
5
5
  "types": "./npm-dist/index.d.cts",
6
6
  "exports": {
@@ -46,6 +46,7 @@
46
46
  "tsdown": "0.22.3",
47
47
  "typescript": "6.0.3",
48
48
  "vitest": "^5.0.3",
49
- "@prismatic-io/spectral": "^10.39.1"
49
+ "@prismatic-io/spectral": "^10.39.1",
50
+ "build-config": "file:../../packages/build-config"
50
51
  }
51
52
  }