@botpress/client 0.41.0 → 0.41.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.mjs CHANGED
@@ -1,5 +1,5 @@
1
- var Sc=Object.create;var Xe=Object.defineProperty;var Ec=Object.getOwnPropertyDescriptor;var _c=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Qc=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hc=(e,t)=>{for(var s in t)Xe(e,s,{get:t[s],enumerable:!0})},Mc=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _c(t))!Qc.call(e,n)&&n!==s&&Xe(e,n,{get:()=>t[n],enumerable:!(a=Ec(t,n))||a.enumerable});return e};var Be=(e,t,s)=>(s=e!=null?Sc(Dc(e)):{},Mc(t||!e||!e.__esModule?Xe(s,"default",{value:e,enumerable:!0}):s,e));var Rr=g((ey,mr)=>{"use strict";var Oc=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);mr.exports=e=>!Oc.has(e&&e.code)});var Pr=g(()=>{});var Ar=g(()=>{});var Bt=g((uy,Cr)=>{"use strict";Cr.exports=Error});var Ct=g((cy,wr)=>{"use strict";wr.exports=EvalError});var wt=g((dy,Ur)=>{"use strict";Ur.exports=RangeError});var Ut=g((ly,Gr)=>{"use strict";Gr.exports=ReferenceError});var Ge=g((gy,Lr)=>{"use strict";Lr.exports=SyntaxError});var K=g((yy,Wr)=>{"use strict";Wr.exports=TypeError});var Gt=g((my,Sr)=>{"use strict";Sr.exports=URIError});var _r=g((Ry,Er)=>{"use strict";Er.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var p=Object.getOwnPropertySymbols(t);if(p.length!==1||p[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,s);if(i.value!==n||i.enumerable!==!0)return!1}return!0}});var Lt=g((qy,Qr)=>{"use strict";var Dr=typeof Symbol<"u"&&Symbol,yd=_r();Qr.exports=function(){return typeof Dr!="function"||typeof Symbol!="function"||typeof Dr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:yd()}});var Mr=g((fy,Hr)=>{"use strict";var Wt={__proto__:null,foo:{}},md=Object;Hr.exports=function(){return{__proto__:Wt}.foo===Wt.foo&&!(Wt instanceof md)}});var Nr=g((hy,Fr)=>{"use strict";var Rd="Function.prototype.bind called on incompatible ",qd=Object.prototype.toString,fd=Math.max,hd="[object Function]",Or=function(t,s){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var o=0;o<s.length;o+=1)a[o+t.length]=s[o];return a},bd=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},xd=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Fr.exports=function(t){var s=this;if(typeof s!="function"||qd.apply(s)!==hd)throw new TypeError(Rd+s);for(var a=bd(arguments,1),n,o=function(){if(this instanceof n){var y=s.apply(this,Or(a,arguments));return Object(y)===y?y:this}return s.apply(t,Or(a,arguments))},p=fd(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+xd(i,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var j=g((by,Vr)=>{"use strict";var Id=Nr();Vr.exports=Function.prototype.bind||Id});var St=g((xy,$r)=>{"use strict";var kd=Function.prototype.call,vd=Object.prototype.hasOwnProperty,Pd=j();$r.exports=Pd.call(kd,vd)});var Xr=g((Iy,Yr)=>{"use strict";var q,Ad=Bt(),Td=Ct(),Bd=wt(),Cd=Ut(),ne=Ge(),ae=K(),wd=Gt(),Jr=Function,Et=function(e){try{return Jr('"use strict"; return ('+e+").constructor;")()}catch{}},z=Object.getOwnPropertyDescriptor;if(z)try{z({},"")}catch{z=null}var _t=function(){throw new ae},Ud=z?function(){try{return arguments.callee,_t}catch{try{return z(arguments,"callee").get}catch{return _t}}}():_t,re=Lt()(),Gd=Mr()(),v=Object.getPrototypeOf||(Gd?function(e){return e.__proto__}:null),se={},Ld=typeof Uint8Array>"u"||!v?q:v(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q:ArrayBuffer,"%ArrayIteratorPrototype%":re&&v?v([][Symbol.iterator]()):q,"%AsyncFromSyncIteratorPrototype%":q,"%AsyncFunction%":se,"%AsyncGenerator%":se,"%AsyncGeneratorFunction%":se,"%AsyncIteratorPrototype%":se,"%Atomics%":typeof Atomics>"u"?q:Atomics,"%BigInt%":typeof BigInt>"u"?q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ad,"%eval%":eval,"%EvalError%":Td,"%Float32Array%":typeof Float32Array>"u"?q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q:FinalizationRegistry,"%Function%":Jr,"%GeneratorFunction%":se,"%Int8Array%":typeof Int8Array>"u"?q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&v?v(v([][Symbol.iterator]())):q,"%JSON%":typeof JSON=="object"?JSON:q,"%Map%":typeof Map>"u"?q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!re||!v?q:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?q:Promise,"%Proxy%":typeof Proxy>"u"?q:Proxy,"%RangeError%":Bd,"%ReferenceError%":Cd,"%Reflect%":typeof Reflect>"u"?q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!re||!v?q:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&v?v(""[Symbol.iterator]()):q,"%Symbol%":re?Symbol:q,"%SyntaxError%":ne,"%ThrowTypeError%":Ud,"%TypedArray%":Ld,"%TypeError%":ae,"%Uint8Array%":typeof Uint8Array>"u"?q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?q:Uint32Array,"%URIError%":wd,"%WeakMap%":typeof WeakMap>"u"?q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q:WeakSet};if(v)try{null.error}catch(e){Kr=v(v(e)),J["%Error.prototype%"]=Kr}var Kr,Wd=function e(t){var s;if(t==="%AsyncFunction%")s=Et("async function () {}");else if(t==="%GeneratorFunction%")s=Et("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Et("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&v&&(s=v(n.prototype))}return J[t]=s,s},jr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fe=j(),Le=St(),Sd=fe.call(Function.call,Array.prototype.concat),Ed=fe.call(Function.apply,Array.prototype.splice),zr=fe.call(Function.call,String.prototype.replace),We=fe.call(Function.call,String.prototype.slice),_d=fe.call(Function.call,RegExp.prototype.exec),Dd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qd=/\\(\\)?/g,Hd=function(t){var s=We(t,0,1),a=We(t,-1);if(s==="%"&&a!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var n=[];return zr(t,Dd,function(o,p,i,r){n[n.length]=i?zr(r,Qd,"$1"):p||o}),n},Md=function(t,s){var a=t,n;if(Le(jr,a)&&(n=jr[a],a="%"+n[0]+"%"),Le(J,a)){var o=J[a];if(o===se&&(o=Wd(a)),typeof o>"u"&&!s)throw new ae("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new ne("intrinsic "+t+" does not exist!")};Yr.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ae("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ae('"allowMissing" argument must be a boolean');if(_d(/^%?[^%]*%?$/,t)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Hd(t),n=a.length>0?a[0]:"",o=Md("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],Ed(a,Sd([0,1],d)));for(var y=1,m=!0;y<a.length;y+=1){var l=a[y],h=We(l,0,1),R=We(l,-1);if((h==='"'||h==="'"||h==="`"||R==='"'||R==="'"||R==="`")&&h!==R)throw new ne("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),n+="."+l,p="%"+n+"%",Le(J,p))i=J[p];else if(i!=null){if(!(l in i)){if(!s)throw new ae("base intrinsic for "+t+" exists, but the property is not available.");return}if(z&&y+1>=a.length){var b=z(i,l);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[l]}else m=Le(i,l),i=i[l];m&&!r&&(J[p]=i)}}return i}});var Dt=g((ky,Zr)=>{"use strict";Zr.exports=Object});var ts=g((vy,es)=>{"use strict";es.exports=Math.abs});var ss=g((Py,rs)=>{"use strict";rs.exports=Math.floor});var ns=g((Ay,as)=>{"use strict";as.exports=Math.max});var is=g((Ty,os)=>{"use strict";os.exports=Math.min});var us=g((By,ps)=>{"use strict";ps.exports=Math.pow});var ds=g((Cy,cs)=>{"use strict";cs.exports=Math.round});var gs=g((wy,ls)=>{"use strict";ls.exports=Number.isNaN||function(t){return t!==t}});var ms=g((Uy,ys)=>{"use strict";var Od=gs();ys.exports=function(t){return Od(t)||t===0?t:t<0?-1:1}});var qs=g((Gy,Rs)=>{"use strict";Rs.exports=Object.getOwnPropertyDescriptor});var he=g((Ly,fs)=>{"use strict";var Se=qs();if(Se)try{Se([],"length")}catch{Se=null}fs.exports=Se});var be=g((Wy,hs)=>{"use strict";var Ee=Object.defineProperty||!1;if(Ee)try{Ee({},"a",{value:1})}catch{Ee=!1}hs.exports=Ee});var Qt=g((Sy,bs)=>{"use strict";bs.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ht=g((Ey,xs)=>{"use strict";var Fd=Dt();xs.exports=Fd.getPrototypeOf||null});var _e=g((_y,Is)=>{"use strict";Is.exports=Function.prototype.call});var Mt=g((Dy,ks)=>{"use strict";ks.exports=Function.prototype.apply});var Ps=g((Qy,vs)=>{"use strict";vs.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ts=g((Hy,As)=>{"use strict";var Nd=j(),Vd=Mt(),$d=_e(),Kd=Ps();As.exports=Kd||Nd.call($d,Vd)});var Cs=g((My,Bs)=>{"use strict";var jd=j(),zd=K(),Jd=_e(),Yd=Ts();Bs.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new zd("a function is required");return Yd(jd,Jd,t)}});var Ss=g((Oy,Ws)=>{"use strict";var Xd=Cs(),ws=he(),Gs;try{Gs=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ot=!!Gs&&ws&&ws(Object.prototype,"__proto__"),Ls=Object,Us=Ls.getPrototypeOf;Ws.exports=Ot&&typeof Ot.get=="function"?Xd([Ot.get]):typeof Us=="function"?function(t){return Us(t==null?t:Ls(t))}:!1});var Hs=g((Fy,Qs)=>{"use strict";var Es=Qt(),_s=Ht(),Ds=Ss();Qs.exports=Es?function(t){return Es(t)}:_s?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return _s(t)}:Ds?function(t){return Ds(t)}:null});var He=g((Ny,$s)=>{"use strict";var f,Zd=Dt(),el=Bt(),tl=Ct(),rl=wt(),sl=Ut(),ue=Ge(),pe=K(),al=Gt(),nl=ts(),ol=ss(),il=ns(),pl=is(),ul=us(),cl=ds(),dl=ms(),Ns=Function,Ft=function(e){try{return Ns('"use strict"; return ('+e+").constructor;")()}catch{}},xe=he(),ll=be(),Nt=function(){throw new pe},gl=xe?function(){try{return arguments.callee,Nt}catch{try{return xe(arguments,"callee").get}catch{return Nt}}}():Nt,oe=Lt()(),P=Hs(),yl=Ht(),ml=Qt(),Vs=Mt(),Ie=_e(),ie={},Rl=typeof Uint8Array>"u"||!P?f:P(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":oe&&P?P([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":ie,"%AsyncGenerator%":ie,"%AsyncGeneratorFunction%":ie,"%AsyncIteratorPrototype%":ie,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":el,"%eval%":eval,"%EvalError%":tl,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":Ns,"%GeneratorFunction%":ie,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":oe&&P?P(P([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!oe||!P?f:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Zd,"%Object.getOwnPropertyDescriptor%":xe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":rl,"%ReferenceError%":sl,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!oe||!P?f:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":oe&&P?P(""[Symbol.iterator]()):f,"%Symbol%":oe?Symbol:f,"%SyntaxError%":ue,"%ThrowTypeError%":gl,"%TypedArray%":Rl,"%TypeError%":pe,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":al,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":Ie,"%Function.prototype.apply%":Vs,"%Object.defineProperty%":ll,"%Object.getPrototypeOf%":yl,"%Math.abs%":nl,"%Math.floor%":ol,"%Math.max%":il,"%Math.min%":pl,"%Math.pow%":ul,"%Math.round%":cl,"%Math.sign%":dl,"%Reflect.getPrototypeOf%":ml};if(P)try{null.error}catch(e){Ms=P(P(e)),Y["%Error.prototype%"]=Ms}var Ms,ql=function e(t){var s;if(t==="%AsyncFunction%")s=Ft("async function () {}");else if(t==="%GeneratorFunction%")s=Ft("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Ft("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&P&&(s=P(n.prototype))}return Y[t]=s,s},Os={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ke=j(),De=St(),fl=ke.call(Ie,Array.prototype.concat),hl=ke.call(Vs,Array.prototype.splice),Fs=ke.call(Ie,String.prototype.replace),Qe=ke.call(Ie,String.prototype.slice),bl=ke.call(Ie,RegExp.prototype.exec),xl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Il=/\\(\\)?/g,kl=function(t){var s=Qe(t,0,1),a=Qe(t,-1);if(s==="%"&&a!=="%")throw new ue("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ue("invalid intrinsic syntax, expected opening `%`");var n=[];return Fs(t,xl,function(o,p,i,r){n[n.length]=i?Fs(r,Il,"$1"):p||o}),n},vl=function(t,s){var a=t,n;if(De(Os,a)&&(n=Os[a],a="%"+n[0]+"%"),De(Y,a)){var o=Y[a];if(o===ie&&(o=ql(a)),typeof o>"u"&&!s)throw new pe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new ue("intrinsic "+t+" does not exist!")};$s.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new pe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new pe('"allowMissing" argument must be a boolean');if(bl(/^%?[^%]*%?$/,t)===null)throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=kl(t),n=a.length>0?a[0]:"",o=vl("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],hl(a,fl([0,1],d)));for(var y=1,m=!0;y<a.length;y+=1){var l=a[y],h=Qe(l,0,1),R=Qe(l,-1);if((h==='"'||h==="'"||h==="`"||R==='"'||R==="'"||R==="`")&&h!==R)throw new ue("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),n+="."+l,p="%"+n+"%",De(Y,p))i=Y[p];else if(i!=null){if(!(l in i)){if(!s)throw new pe("base intrinsic for "+t+" exists, but the property is not available.");return}if(xe&&y+1>=a.length){var b=xe(i,l);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[l]}else m=De(i,l),i=i[l];m&&!r&&(Y[p]=i)}}return i}});var Js=g((Vy,zs)=>{"use strict";var Ks=be(),Pl=Ge(),ce=K(),js=he();zs.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new ce("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new ce("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ce("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ce("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ce("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ce("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,r=!!js&&js(t,s);if(Ks)Ks(t,s,{configurable:p===null&&r?r.configurable:!p,enumerable:n===null&&r?r.enumerable:!n,value:a,writable:o===null&&r?r.writable:!o});else if(i||!n&&!o&&!p)t[s]=a;else throw new Pl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Zs=g(($y,Xs)=>{"use strict";var Vt=be(),Ys=function(){return!!Vt};Ys.hasArrayLengthDefineBug=function(){if(!Vt)return null;try{return Vt([],"length",{value:1}).length!==1}catch{return!0}};Xs.exports=Ys});var aa=g((Ky,sa)=>{"use strict";var Al=He(),ea=Js(),Tl=Zs()(),ta=he(),ra=K(),Bl=Al("%Math.floor%");sa.exports=function(t,s){if(typeof t!="function")throw new ra("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Bl(s)!==s)throw new ra("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&ta){var p=ta(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(Tl?ea(t,"length",s,!0,!0):ea(t,"length",s)),t}});var ca=g((jy,Me)=>{"use strict";var $t=j(),Oe=He(),Cl=aa(),wl=K(),ia=Oe("%Function.prototype.apply%"),pa=Oe("%Function.prototype.call%"),ua=Oe("%Reflect.apply%",!0)||$t.call(pa,ia),na=be(),Ul=Oe("%Math.max%");Me.exports=function(t){if(typeof t!="function")throw new wl("a function is required");var s=ua($t,pa,arguments);return Cl(s,1+Ul(0,t.length-(arguments.length-1)),!0)};var oa=function(){return ua($t,ia,arguments)};na?na(Me.exports,"apply",{value:oa}):Me.exports.apply=oa});var ya=g((zy,ga)=>{"use strict";var da=He(),la=ca(),Gl=la(da("String.prototype.indexOf"));ga.exports=function(t,s){var a=da(t,!!s);return typeof a=="function"&&Gl(t,".prototype.")>-1?la(a):a}});var ma=g(()=>{});var Sa=g((Xy,Wa)=>{var rr=typeof Map=="function"&&Map.prototype,Kt=Object.getOwnPropertyDescriptor&&rr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ne=rr&&Kt&&typeof Kt.get=="function"?Kt.get:null,Ra=rr&&Map.prototype.forEach,sr=typeof Set=="function"&&Set.prototype,jt=Object.getOwnPropertyDescriptor&&sr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ve=sr&&jt&&typeof jt.get=="function"?jt.get:null,qa=sr&&Set.prototype.forEach,Ll=typeof WeakMap=="function"&&WeakMap.prototype,Pe=Ll?WeakMap.prototype.has:null,Wl=typeof WeakSet=="function"&&WeakSet.prototype,Ae=Wl?WeakSet.prototype.has:null,Sl=typeof WeakRef=="function"&&WeakRef.prototype,fa=Sl?WeakRef.prototype.deref:null,El=Boolean.prototype.valueOf,_l=Object.prototype.toString,Dl=Function.prototype.toString,Ql=String.prototype.match,ar=String.prototype.slice,O=String.prototype.replace,Hl=String.prototype.toUpperCase,ha=String.prototype.toLowerCase,Ba=RegExp.prototype.test,ba=Array.prototype.concat,U=Array.prototype.join,Ml=Array.prototype.slice,xa=Math.floor,Yt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,zt=Object.getOwnPropertySymbols,Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,de=typeof Symbol=="function"&&typeof Symbol.iterator=="object",B=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===de||"symbol")?Symbol.toStringTag:null,Ca=Object.prototype.propertyIsEnumerable,Ia=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ka(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ba.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-xa(-e):xa(e);if(a!==e){var n=String(a),o=ar.call(t,n.length+1);return O.call(n,s,"$&_")+"."+O.call(O.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(t,s,"$&_")}var Zt=ma(),va=Zt.custom,Pa=Ua(va)?va:null;Wa.exports=function e(t,s,a,n){var o=s||{};if(M(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=M(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(M(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(M(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return La(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?ka(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?ka(t,d):d}var y=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=y&&y>0&&typeof t=="object")return er(t)?"[Array]":"[Object]";var m=ng(o,a);if(typeof n>"u")n=[];else if(Ga(n,t)>=0)return"[Circular]";function l(w,D,W){if(D&&(n=Ml.call(n),n.push(D)),W){var qe={depth:o.depth};return M(o,"quoteStyle")&&(qe.quoteStyle=o.quoteStyle),e(w,qe,a+1,n)}return e(w,o,a+1,n)}if(typeof t=="function"&&!Aa(t)){var h=Jl(t),R=Fe(t,l);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(R.length>0?" { "+U.call(R,", ")+" }":"")}if(Ua(t)){var b=de?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Xt.call(t);return typeof t=="object"&&!de?ve(b):b}if(rg(t)){for(var C="<"+ha.call(String(t.nodeName)),x=t.attributes||[],L=0;L<x.length;L++)C+=" "+x[L].name+"="+wa(Ol(x[L].value),"double",o);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+ha.call(String(t.nodeName))+">",C}if(er(t)){if(t.length===0)return"[]";var E=Fe(t,l);return m&&!ag(E)?"["+tr(E,m)+"]":"[ "+U.call(E,", ")+" ]"}if(Nl(t)){var Z=Fe(t,l);return!("cause"in Error.prototype)&&"cause"in t&&!Ca.call(t,"cause")?"{ ["+String(t)+"] "+U.call(ba.call("[cause]: "+l(t.cause),Z),", ")+" }":Z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+U.call(Z,", ")+" }"}if(typeof t=="object"&&p){if(Pa&&typeof t[Pa]=="function"&&Zt)return Zt(t,{depth:y-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Yl(t)){var ye=[];return Ra&&Ra.call(t,function(w,D){ye.push(l(D,t,!0)+" => "+l(w,t))}),Ta("Map",Ne.call(t),ye,m)}if(eg(t)){var me=[];return qa&&qa.call(t,function(w){me.push(l(w,t))}),Ta("Set",Ve.call(t),me,m)}if(Xl(t))return Jt("WeakMap");if(tg(t))return Jt("WeakSet");if(Zl(t))return Jt("WeakRef");if($l(t))return ve(l(Number(t)));if(jl(t))return ve(l(Yt.call(t)));if(Kl(t))return ve(El.call(t));if(Vl(t))return ve(l(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!Fl(t)&&!Aa(t)){var N=Fe(t,l),Re=Ia?Ia(t)===Object.prototype:t instanceof Object||t.constructor===Object,_=t instanceof Object?"":"null prototype",ee=!Re&&B&&Object(t)===t&&B in t?ar.call(F(t),8,-1):_?"Object":"",V=Re||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",te=V+(ee||_?"["+U.call(ba.call([],ee||[],_||[]),": ")+"] ":"");return N.length===0?te+"{}":m?te+"{"+tr(N,m)+"}":te+"{ "+U.call(N,", ")+" }"}return String(t)};function wa(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Ol(e){return O.call(String(e),/"/g,"&quot;")}function er(e){return F(e)==="[object Array]"&&(!B||!(typeof e=="object"&&B in e))}function Fl(e){return F(e)==="[object Date]"&&(!B||!(typeof e=="object"&&B in e))}function Aa(e){return F(e)==="[object RegExp]"&&(!B||!(typeof e=="object"&&B in e))}function Nl(e){return F(e)==="[object Error]"&&(!B||!(typeof e=="object"&&B in e))}function Vl(e){return F(e)==="[object String]"&&(!B||!(typeof e=="object"&&B in e))}function $l(e){return F(e)==="[object Number]"&&(!B||!(typeof e=="object"&&B in e))}function Kl(e){return F(e)==="[object Boolean]"&&(!B||!(typeof e=="object"&&B in e))}function Ua(e){if(de)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Xt)return!1;try{return Xt.call(e),!0}catch{}return!1}function jl(e){if(!e||typeof e!="object"||!Yt)return!1;try{return Yt.call(e),!0}catch{}return!1}var zl=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return zl.call(e,t)}function F(e){return _l.call(e)}function Jl(e){if(e.name)return e.name;var t=Ql.call(Dl.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ga(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function Yl(e){if(!Ne||!e||typeof e!="object")return!1;try{Ne.call(e);try{Ve.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Xl(e){if(!Pe||!e||typeof e!="object")return!1;try{Pe.call(e,Pe);try{Ae.call(e,Ae)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Zl(e){if(!fa||!e||typeof e!="object")return!1;try{return fa.call(e),!0}catch{}return!1}function eg(e){if(!Ve||!e||typeof e!="object")return!1;try{Ve.call(e);try{Ne.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function tg(e){if(!Ae||!e||typeof e!="object")return!1;try{Ae.call(e,Ae);try{Pe.call(e,Pe)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function rg(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function La(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return La(ar.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,sg);return wa(n,"single",t)}function sg(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Hl.call(t.toString(16))}function ve(e){return"Object("+e+")"}function Jt(e){return e+" { ? }"}function Ta(e,t,s,a){var n=a?tr(s,a):U.call(s,", ");return e+" ("+t+") {"+n+"}"}function ag(e){for(var t=0;t<e.length;t++)if(Ga(e[t],`
2
- `)>=0)return!1;return!0}function ng(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=U.call(Array(e.indent+1)," ");else return null;return{base:s,prev:U.call(Array(t+1),s)}}function tr(e,t){if(e.length===0)return"";var s=`
1
+ var $c=Object.create;var Xe=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var jc=Object.getOwnPropertyNames;var zc=Object.getPrototypeOf,Jc=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yc=(e,t)=>{for(var s in t)Xe(e,s,{get:t[s],enumerable:!0})},Xc=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jc(t))!Jc.call(e,n)&&n!==s&&Xe(e,n,{get:()=>t[n],enumerable:!(a=Kc(t,n))||a.enumerable});return e};var Be=(e,t,s)=>(s=e!=null?$c(zc(e)):{},Xc(t||!e||!e.__esModule?Xe(s,"default",{value:e,enumerable:!0}):s,e));var Rr=g((ly,mr)=>{"use strict";var Zc=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);mr.exports=e=>!Zc.has(e&&e.code)});var Pr=g(()=>{});var Ar=g(()=>{});var Bt=g((xy,Cr)=>{"use strict";Cr.exports=Error});var Ct=g((Iy,wr)=>{"use strict";wr.exports=EvalError});var wt=g((ky,Ur)=>{"use strict";Ur.exports=RangeError});var Ut=g((vy,Gr)=>{"use strict";Gr.exports=ReferenceError});var Ge=g((Py,Lr)=>{"use strict";Lr.exports=SyntaxError});var K=g((Ay,Wr)=>{"use strict";Wr.exports=TypeError});var Gt=g((Ty,Sr)=>{"use strict";Sr.exports=URIError});var _r=g((By,Er)=>{"use strict";Er.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var p=Object.getOwnPropertySymbols(t);if(p.length!==1||p[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,s);if(i.value!==n||i.enumerable!==!0)return!1}return!0}});var Lt=g((Cy,Qr)=>{"use strict";var Dr=typeof Symbol<"u"&&Symbol,Pd=_r();Qr.exports=function(){return typeof Dr!="function"||typeof Symbol!="function"||typeof Dr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Pd()}});var Fr=g((wy,Hr)=>{"use strict";var Wt={__proto__:null,foo:{}},Ad=Object;Hr.exports=function(){return{__proto__:Wt}.foo===Wt.foo&&!(Wt instanceof Ad)}});var Nr=g((Uy,Or)=>{"use strict";var Td="Function.prototype.bind called on incompatible ",Bd=Object.prototype.toString,Cd=Math.max,wd="[object Function]",Mr=function(t,s){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var o=0;o<s.length;o+=1)a[o+t.length]=s[o];return a},Ud=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},Gd=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Or.exports=function(t){var s=this;if(typeof s!="function"||Bd.apply(s)!==wd)throw new TypeError(Td+s);for(var a=Ud(arguments,1),n,o=function(){if(this instanceof n){var y=s.apply(this,Mr(a,arguments));return Object(y)===y?y:this}return s.apply(t,Mr(a,arguments))},p=Cd(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+Gd(i,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var j=g((Gy,Vr)=>{"use strict";var Ld=Nr();Vr.exports=Function.prototype.bind||Ld});var St=g((Ly,$r)=>{"use strict";var Wd=Function.prototype.call,Sd=Object.prototype.hasOwnProperty,Ed=j();$r.exports=Ed.call(Wd,Sd)});var Xr=g((Wy,Yr)=>{"use strict";var q,_d=Bt(),Dd=Ct(),Qd=wt(),Hd=Ut(),ne=Ge(),ae=K(),Fd=Gt(),Jr=Function,Et=function(e){try{return Jr('"use strict"; return ('+e+").constructor;")()}catch{}},z=Object.getOwnPropertyDescriptor;if(z)try{z({},"")}catch{z=null}var _t=function(){throw new ae},Md=z?function(){try{return arguments.callee,_t}catch{try{return z(arguments,"callee").get}catch{return _t}}}():_t,re=Lt()(),Od=Fr()(),v=Object.getPrototypeOf||(Od?function(e){return e.__proto__}:null),se={},Nd=typeof Uint8Array>"u"||!v?q:v(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q:ArrayBuffer,"%ArrayIteratorPrototype%":re&&v?v([][Symbol.iterator]()):q,"%AsyncFromSyncIteratorPrototype%":q,"%AsyncFunction%":se,"%AsyncGenerator%":se,"%AsyncGeneratorFunction%":se,"%AsyncIteratorPrototype%":se,"%Atomics%":typeof Atomics>"u"?q:Atomics,"%BigInt%":typeof BigInt>"u"?q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_d,"%eval%":eval,"%EvalError%":Dd,"%Float32Array%":typeof Float32Array>"u"?q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q:FinalizationRegistry,"%Function%":Jr,"%GeneratorFunction%":se,"%Int8Array%":typeof Int8Array>"u"?q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&v?v(v([][Symbol.iterator]())):q,"%JSON%":typeof JSON=="object"?JSON:q,"%Map%":typeof Map>"u"?q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!re||!v?q:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?q:Promise,"%Proxy%":typeof Proxy>"u"?q:Proxy,"%RangeError%":Qd,"%ReferenceError%":Hd,"%Reflect%":typeof Reflect>"u"?q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!re||!v?q:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&v?v(""[Symbol.iterator]()):q,"%Symbol%":re?Symbol:q,"%SyntaxError%":ne,"%ThrowTypeError%":Md,"%TypedArray%":Nd,"%TypeError%":ae,"%Uint8Array%":typeof Uint8Array>"u"?q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?q:Uint32Array,"%URIError%":Fd,"%WeakMap%":typeof WeakMap>"u"?q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q:WeakSet};if(v)try{null.error}catch(e){Kr=v(v(e)),J["%Error.prototype%"]=Kr}var Kr,Vd=function e(t){var s;if(t==="%AsyncFunction%")s=Et("async function () {}");else if(t==="%GeneratorFunction%")s=Et("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Et("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&v&&(s=v(n.prototype))}return J[t]=s,s},jr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fe=j(),Le=St(),$d=fe.call(Function.call,Array.prototype.concat),Kd=fe.call(Function.apply,Array.prototype.splice),zr=fe.call(Function.call,String.prototype.replace),We=fe.call(Function.call,String.prototype.slice),jd=fe.call(Function.call,RegExp.prototype.exec),zd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jd=/\\(\\)?/g,Yd=function(t){var s=We(t,0,1),a=We(t,-1);if(s==="%"&&a!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var n=[];return zr(t,zd,function(o,p,i,r){n[n.length]=i?zr(r,Jd,"$1"):p||o}),n},Xd=function(t,s){var a=t,n;if(Le(jr,a)&&(n=jr[a],a="%"+n[0]+"%"),Le(J,a)){var o=J[a];if(o===se&&(o=Vd(a)),typeof o>"u"&&!s)throw new ae("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new ne("intrinsic "+t+" does not exist!")};Yr.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ae("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ae('"allowMissing" argument must be a boolean');if(jd(/^%?[^%]*%?$/,t)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Yd(t),n=a.length>0?a[0]:"",o=Xd("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],Kd(a,$d([0,1],d)));for(var y=1,m=!0;y<a.length;y+=1){var l=a[y],h=We(l,0,1),R=We(l,-1);if((h==='"'||h==="'"||h==="`"||R==='"'||R==="'"||R==="`")&&h!==R)throw new ne("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),n+="."+l,p="%"+n+"%",Le(J,p))i=J[p];else if(i!=null){if(!(l in i)){if(!s)throw new ae("base intrinsic for "+t+" exists, but the property is not available.");return}if(z&&y+1>=a.length){var b=z(i,l);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[l]}else m=Le(i,l),i=i[l];m&&!r&&(J[p]=i)}}return i}});var Dt=g((Sy,Zr)=>{"use strict";Zr.exports=Object});var ts=g((Ey,es)=>{"use strict";es.exports=Math.abs});var ss=g((_y,rs)=>{"use strict";rs.exports=Math.floor});var ns=g((Dy,as)=>{"use strict";as.exports=Math.max});var is=g((Qy,os)=>{"use strict";os.exports=Math.min});var us=g((Hy,ps)=>{"use strict";ps.exports=Math.pow});var ds=g((Fy,cs)=>{"use strict";cs.exports=Math.round});var gs=g((My,ls)=>{"use strict";ls.exports=Number.isNaN||function(t){return t!==t}});var ms=g((Oy,ys)=>{"use strict";var Zd=gs();ys.exports=function(t){return Zd(t)||t===0?t:t<0?-1:1}});var qs=g((Ny,Rs)=>{"use strict";Rs.exports=Object.getOwnPropertyDescriptor});var he=g((Vy,fs)=>{"use strict";var Se=qs();if(Se)try{Se([],"length")}catch{Se=null}fs.exports=Se});var be=g(($y,hs)=>{"use strict";var Ee=Object.defineProperty||!1;if(Ee)try{Ee({},"a",{value:1})}catch{Ee=!1}hs.exports=Ee});var Qt=g((Ky,bs)=>{"use strict";bs.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ht=g((jy,xs)=>{"use strict";var el=Dt();xs.exports=el.getPrototypeOf||null});var _e=g((zy,Is)=>{"use strict";Is.exports=Function.prototype.call});var Ft=g((Jy,ks)=>{"use strict";ks.exports=Function.prototype.apply});var Ps=g((Yy,vs)=>{"use strict";vs.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ts=g((Xy,As)=>{"use strict";var tl=j(),rl=Ft(),sl=_e(),al=Ps();As.exports=al||tl.call(sl,rl)});var Cs=g((Zy,Bs)=>{"use strict";var nl=j(),ol=K(),il=_e(),pl=Ts();Bs.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ol("a function is required");return pl(nl,il,t)}});var Ss=g((em,Ws)=>{"use strict";var ul=Cs(),ws=he(),Gs;try{Gs=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Mt=!!Gs&&ws&&ws(Object.prototype,"__proto__"),Ls=Object,Us=Ls.getPrototypeOf;Ws.exports=Mt&&typeof Mt.get=="function"?ul([Mt.get]):typeof Us=="function"?function(t){return Us(t==null?t:Ls(t))}:!1});var Hs=g((tm,Qs)=>{"use strict";var Es=Qt(),_s=Ht(),Ds=Ss();Qs.exports=Es?function(t){return Es(t)}:_s?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return _s(t)}:Ds?function(t){return Ds(t)}:null});var He=g((rm,$s)=>{"use strict";var f,cl=Dt(),dl=Bt(),ll=Ct(),gl=wt(),yl=Ut(),ue=Ge(),pe=K(),ml=Gt(),Rl=ts(),ql=ss(),fl=ns(),hl=is(),bl=us(),xl=ds(),Il=ms(),Ns=Function,Ot=function(e){try{return Ns('"use strict"; return ('+e+").constructor;")()}catch{}},xe=he(),kl=be(),Nt=function(){throw new pe},vl=xe?function(){try{return arguments.callee,Nt}catch{try{return xe(arguments,"callee").get}catch{return Nt}}}():Nt,oe=Lt()(),P=Hs(),Pl=Ht(),Al=Qt(),Vs=Ft(),Ie=_e(),ie={},Tl=typeof Uint8Array>"u"||!P?f:P(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":oe&&P?P([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":ie,"%AsyncGenerator%":ie,"%AsyncGeneratorFunction%":ie,"%AsyncIteratorPrototype%":ie,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dl,"%eval%":eval,"%EvalError%":ll,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":Ns,"%GeneratorFunction%":ie,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":oe&&P?P(P([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!oe||!P?f:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cl,"%Object.getOwnPropertyDescriptor%":xe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":gl,"%ReferenceError%":yl,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!oe||!P?f:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":oe&&P?P(""[Symbol.iterator]()):f,"%Symbol%":oe?Symbol:f,"%SyntaxError%":ue,"%ThrowTypeError%":vl,"%TypedArray%":Tl,"%TypeError%":pe,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":ml,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":Ie,"%Function.prototype.apply%":Vs,"%Object.defineProperty%":kl,"%Object.getPrototypeOf%":Pl,"%Math.abs%":Rl,"%Math.floor%":ql,"%Math.max%":fl,"%Math.min%":hl,"%Math.pow%":bl,"%Math.round%":xl,"%Math.sign%":Il,"%Reflect.getPrototypeOf%":Al};if(P)try{null.error}catch(e){Fs=P(P(e)),Y["%Error.prototype%"]=Fs}var Fs,Bl=function e(t){var s;if(t==="%AsyncFunction%")s=Ot("async function () {}");else if(t==="%GeneratorFunction%")s=Ot("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Ot("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&P&&(s=P(n.prototype))}return Y[t]=s,s},Ms={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ke=j(),De=St(),Cl=ke.call(Ie,Array.prototype.concat),wl=ke.call(Vs,Array.prototype.splice),Os=ke.call(Ie,String.prototype.replace),Qe=ke.call(Ie,String.prototype.slice),Ul=ke.call(Ie,RegExp.prototype.exec),Gl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ll=/\\(\\)?/g,Wl=function(t){var s=Qe(t,0,1),a=Qe(t,-1);if(s==="%"&&a!=="%")throw new ue("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ue("invalid intrinsic syntax, expected opening `%`");var n=[];return Os(t,Gl,function(o,p,i,r){n[n.length]=i?Os(r,Ll,"$1"):p||o}),n},Sl=function(t,s){var a=t,n;if(De(Ms,a)&&(n=Ms[a],a="%"+n[0]+"%"),De(Y,a)){var o=Y[a];if(o===ie&&(o=Bl(a)),typeof o>"u"&&!s)throw new pe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new ue("intrinsic "+t+" does not exist!")};$s.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new pe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new pe('"allowMissing" argument must be a boolean');if(Ul(/^%?[^%]*%?$/,t)===null)throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Wl(t),n=a.length>0?a[0]:"",o=Sl("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],wl(a,Cl([0,1],d)));for(var y=1,m=!0;y<a.length;y+=1){var l=a[y],h=Qe(l,0,1),R=Qe(l,-1);if((h==='"'||h==="'"||h==="`"||R==='"'||R==="'"||R==="`")&&h!==R)throw new ue("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),n+="."+l,p="%"+n+"%",De(Y,p))i=Y[p];else if(i!=null){if(!(l in i)){if(!s)throw new pe("base intrinsic for "+t+" exists, but the property is not available.");return}if(xe&&y+1>=a.length){var b=xe(i,l);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[l]}else m=De(i,l),i=i[l];m&&!r&&(Y[p]=i)}}return i}});var Js=g((sm,zs)=>{"use strict";var Ks=be(),El=Ge(),ce=K(),js=he();zs.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new ce("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new ce("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ce("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ce("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ce("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ce("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,r=!!js&&js(t,s);if(Ks)Ks(t,s,{configurable:p===null&&r?r.configurable:!p,enumerable:n===null&&r?r.enumerable:!n,value:a,writable:o===null&&r?r.writable:!o});else if(i||!n&&!o&&!p)t[s]=a;else throw new El("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Zs=g((am,Xs)=>{"use strict";var Vt=be(),Ys=function(){return!!Vt};Ys.hasArrayLengthDefineBug=function(){if(!Vt)return null;try{return Vt([],"length",{value:1}).length!==1}catch{return!0}};Xs.exports=Ys});var aa=g((nm,sa)=>{"use strict";var _l=He(),ea=Js(),Dl=Zs()(),ta=he(),ra=K(),Ql=_l("%Math.floor%");sa.exports=function(t,s){if(typeof t!="function")throw new ra("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Ql(s)!==s)throw new ra("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&ta){var p=ta(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(Dl?ea(t,"length",s,!0,!0):ea(t,"length",s)),t}});var ca=g((om,Fe)=>{"use strict";var $t=j(),Me=He(),Hl=aa(),Fl=K(),ia=Me("%Function.prototype.apply%"),pa=Me("%Function.prototype.call%"),ua=Me("%Reflect.apply%",!0)||$t.call(pa,ia),na=be(),Ml=Me("%Math.max%");Fe.exports=function(t){if(typeof t!="function")throw new Fl("a function is required");var s=ua($t,pa,arguments);return Hl(s,1+Ml(0,t.length-(arguments.length-1)),!0)};var oa=function(){return ua($t,ia,arguments)};na?na(Fe.exports,"apply",{value:oa}):Fe.exports.apply=oa});var ya=g((im,ga)=>{"use strict";var da=He(),la=ca(),Ol=la(da("String.prototype.indexOf"));ga.exports=function(t,s){var a=da(t,!!s);return typeof a=="function"&&Ol(t,".prototype.")>-1?la(a):a}});var ma=g(()=>{});var Ea=g((cm,Sa)=>{var rr=typeof Map=="function"&&Map.prototype,Kt=Object.getOwnPropertyDescriptor&&rr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ne=rr&&Kt&&typeof Kt.get=="function"?Kt.get:null,Ra=rr&&Map.prototype.forEach,sr=typeof Set=="function"&&Set.prototype,jt=Object.getOwnPropertyDescriptor&&sr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ve=sr&&jt&&typeof jt.get=="function"?jt.get:null,qa=sr&&Set.prototype.forEach,Nl=typeof WeakMap=="function"&&WeakMap.prototype,Pe=Nl?WeakMap.prototype.has:null,Vl=typeof WeakSet=="function"&&WeakSet.prototype,Ae=Vl?WeakSet.prototype.has:null,$l=typeof WeakRef=="function"&&WeakRef.prototype,fa=$l?WeakRef.prototype.deref:null,Kl=Boolean.prototype.valueOf,jl=Object.prototype.toString,zl=Function.prototype.toString,Jl=String.prototype.match,ar=String.prototype.slice,M=String.prototype.replace,Yl=String.prototype.toUpperCase,ha=String.prototype.toLowerCase,Ba=RegExp.prototype.test,ba=Array.prototype.concat,U=Array.prototype.join,Xl=Array.prototype.slice,xa=Math.floor,Yt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,zt=Object.getOwnPropertySymbols,Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,de=typeof Symbol=="function"&&typeof Symbol.iterator=="object",B=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===de||"symbol")?Symbol.toStringTag:null,Ca=Object.prototype.propertyIsEnumerable,Ia=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ka(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ba.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-xa(-e):xa(e);if(a!==e){var n=String(a),o=ar.call(t,n.length+1);return M.call(n,s,"$&_")+"."+M.call(M.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(t,s,"$&_")}var Zt=ma(),va=Zt.custom,Pa=Ga(va)?va:null,wa={__proto__:null,double:'"',single:"'"},Zl={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Sa.exports=function e(t,s,a,n){var o=s||{};if(S(o,"quoteStyle")&&!S(wa,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(S(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=S(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(S(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(S(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Wa(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?ka(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?ka(t,d):d}var y=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=y&&y>0&&typeof t=="object")return er(t)?"[Array]":"[Object]";var m=qg(o,a);if(typeof n>"u")n=[];else if(La(n,t)>=0)return"[Circular]";function l(w,Q,W){if(Q&&(n=Xl.call(n),n.push(Q)),W){var qe={depth:o.depth};return S(o,"quoteStyle")&&(qe.quoteStyle=o.quoteStyle),e(w,qe,a+1,n)}return e(w,o,a+1,n)}if(typeof t=="function"&&!Aa(t)){var h=pg(t),R=Oe(t,l);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(R.length>0?" { "+U.call(R,", ")+" }":"")}if(Ga(t)){var b=de?M.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Xt.call(t);return typeof t=="object"&&!de?ve(b):b}if(yg(t)){for(var C="<"+ha.call(String(t.nodeName)),x=t.attributes||[],L=0;L<x.length;L++)C+=" "+x[L].name+"="+Ua(eg(x[L].value),"double",o);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+ha.call(String(t.nodeName))+">",C}if(er(t)){if(t.length===0)return"[]";var _=Oe(t,l);return m&&!Rg(_)?"["+tr(_,m)+"]":"[ "+U.call(_,", ")+" ]"}if(rg(t)){var Z=Oe(t,l);return!("cause"in Error.prototype)&&"cause"in t&&!Ca.call(t,"cause")?"{ ["+String(t)+"] "+U.call(ba.call("[cause]: "+l(t.cause),Z),", ")+" }":Z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+U.call(Z,", ")+" }"}if(typeof t=="object"&&p){if(Pa&&typeof t[Pa]=="function"&&Zt)return Zt(t,{depth:y-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ug(t)){var ye=[];return Ra&&Ra.call(t,function(w,Q){ye.push(l(Q,t,!0)+" => "+l(w,t))}),Ta("Map",Ne.call(t),ye,m)}if(lg(t)){var me=[];return qa&&qa.call(t,function(w){me.push(l(w,t))}),Ta("Set",Ve.call(t),me,m)}if(cg(t))return Jt("WeakMap");if(gg(t))return Jt("WeakSet");if(dg(t))return Jt("WeakRef");if(ag(t))return ve(l(Number(t)));if(og(t))return ve(l(Yt.call(t)));if(ng(t))return ve(Kl.call(t));if(sg(t))return ve(l(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!tg(t)&&!Aa(t)){var N=Oe(t,l),Re=Ia?Ia(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",ee=!Re&&B&&Object(t)===t&&B in t?ar.call(O(t),8,-1):D?"Object":"",V=Re||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",te=V+(ee||D?"["+U.call(ba.call([],ee||[],D||[]),": ")+"] ":"");return N.length===0?te+"{}":m?te+"{"+tr(N,m)+"}":te+"{ "+U.call(N,", ")+" }"}return String(t)};function Ua(e,t,s){var a=s.quoteStyle||t,n=wa[a];return n+e+n}function eg(e){return M.call(String(e),/"/g,"&quot;")}function er(e){return O(e)==="[object Array]"&&(!B||!(typeof e=="object"&&B in e))}function tg(e){return O(e)==="[object Date]"&&(!B||!(typeof e=="object"&&B in e))}function Aa(e){return O(e)==="[object RegExp]"&&(!B||!(typeof e=="object"&&B in e))}function rg(e){return O(e)==="[object Error]"&&(!B||!(typeof e=="object"&&B in e))}function sg(e){return O(e)==="[object String]"&&(!B||!(typeof e=="object"&&B in e))}function ag(e){return O(e)==="[object Number]"&&(!B||!(typeof e=="object"&&B in e))}function ng(e){return O(e)==="[object Boolean]"&&(!B||!(typeof e=="object"&&B in e))}function Ga(e){if(de)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Xt)return!1;try{return Xt.call(e),!0}catch{}return!1}function og(e){if(!e||typeof e!="object"||!Yt)return!1;try{return Yt.call(e),!0}catch{}return!1}var ig=Object.prototype.hasOwnProperty||function(e){return e in this};function S(e,t){return ig.call(e,t)}function O(e){return jl.call(e)}function pg(e){if(e.name)return e.name;var t=Jl.call(zl.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function La(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function ug(e){if(!Ne||!e||typeof e!="object")return!1;try{Ne.call(e);try{Ve.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cg(e){if(!Pe||!e||typeof e!="object")return!1;try{Pe.call(e,Pe);try{Ae.call(e,Ae)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function dg(e){if(!fa||!e||typeof e!="object")return!1;try{return fa.call(e),!0}catch{}return!1}function lg(e){if(!Ve||!e||typeof e!="object")return!1;try{Ve.call(e);try{Ne.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function gg(e){if(!Ae||!e||typeof e!="object")return!1;try{Ae.call(e,Ae);try{Pe.call(e,Pe)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function yg(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Wa(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Wa(ar.call(e,0,t.maxStringLength),t)+a}var n=Zl[t.quoteStyle||"single"];n.lastIndex=0;var o=M.call(M.call(e,n,"\\$1"),/[\x00-\x1f]/g,mg);return Ua(o,"single",t)}function mg(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Yl.call(t.toString(16))}function ve(e){return"Object("+e+")"}function Jt(e){return e+" { ? }"}function Ta(e,t,s,a){var n=a?tr(s,a):U.call(s,", ");return e+" ("+t+") {"+n+"}"}function Rg(e){for(var t=0;t<e.length;t++)if(La(e[t],`
2
+ `)>=0)return!1;return!0}function qg(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=U.call(Array(e.indent+1)," ");else return null;return{base:s,prev:U.call(Array(t+1),s)}}function tr(e,t){if(e.length===0)return"";var s=`
3
3
  `+t.prev+t.base;return s+U.call(e,","+s)+`
4
- `+t.prev}function Fe(e,t){var s=er(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=M(e,n)?t(e[n],e):""}var o=typeof zt=="function"?zt(e):[],p;if(de){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)M(e,r)&&(s&&String(Number(r))===r&&r<e.length||de&&p["$"+r]instanceof Symbol||(Ba.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof zt=="function")for(var d=0;d<o.length;d++)Ca.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var _a=g((Zy,Ea)=>{"use strict";var nr=Xr(),le=ya(),og=Sa(),ig=nr("%TypeError%"),$e=nr("%WeakMap%",!0),Ke=nr("%Map%",!0),pg=le("WeakMap.prototype.get",!0),ug=le("WeakMap.prototype.set",!0),cg=le("WeakMap.prototype.has",!0),dg=le("Map.prototype.get",!0),lg=le("Map.prototype.set",!0),gg=le("Map.prototype.has",!0),or=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},yg=function(e,t){var s=or(e,t);return s&&s.value},mg=function(e,t,s){var a=or(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Rg=function(e,t){return!!or(e,t)};Ea.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new ig("Side channel does not contain "+og(o))},get:function(o){if($e&&o&&(typeof o=="object"||typeof o=="function")){if(t)return pg(t,o)}else if(Ke){if(s)return dg(s,o)}else if(a)return yg(a,o)},has:function(o){if($e&&o&&(typeof o=="object"||typeof o=="function")){if(t)return cg(t,o)}else if(Ke){if(s)return gg(s,o)}else if(a)return Rg(a,o);return!1},set:function(o,p){$e&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new $e),ug(t,o,p)):Ke?(s||(s=new Ke),lg(s,o,p)):(a||(a={key:{},next:null}),mg(a,o,p))}};return n}});var je=g((em,Da)=>{"use strict";var qg=String.prototype.replace,fg=/%20/g,ir={RFC1738:"RFC1738",RFC3986:"RFC3986"};Da.exports={default:ir.RFC3986,formatters:{RFC1738:function(e){return qg.call(e,fg,"+")},RFC3986:function(e){return String(e)}},RFC1738:ir.RFC1738,RFC3986:ir.RFC3986}});var ur=g((tm,Ha)=>{"use strict";var hg=je(),pr=Object.prototype.hasOwnProperty,X=Array.isArray,G=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),bg=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(X(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},Qa=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},xg=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(X(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!pr.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return X(t)&&!X(s)&&(n=Qa(t,a)),X(t)&&X(s)?(s.forEach(function(o,p){if(pr.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return pr.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Ig=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},kg=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},vg=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===hg.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+G[d];continue}if(d<2048){i=i+(G[192|d>>6]+G[128|d&63]);continue}if(d<55296||d>=57344){i=i+(G[224|d>>12]+G[128|d>>6&63]+G[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=G[240|d>>18]+G[128|d>>12&63]+G[128|d>>6&63]+G[128|d&63]}return i},Pg=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],y=p[d];typeof y=="object"&&y!==null&&a.indexOf(y)===-1&&(s.push({obj:p,prop:d}),a.push(y))}return bg(s),t},Ag=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Tg=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Bg=function(t,s){return[].concat(t,s)},Cg=function(t,s){if(X(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Ha.exports={arrayToObject:Qa,assign:Ig,combine:Bg,compact:Pg,decode:kg,encode:vg,isBuffer:Tg,isRegExp:Ag,maybeMap:Cg,merge:xg}});var $a=g((rm,Va)=>{"use strict";var Fa=_a(),dr=ur(),Te=je(),wg=Object.prototype.hasOwnProperty,Ma={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},S=Array.isArray,Ug=String.prototype.split,Gg=Array.prototype.push,Na=function(e,t){Gg.apply(e,S(t)?t:[t])},Lg=Date.prototype.toISOString,Oa=Te.default,T={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:dr.encode,encodeValuesOnly:!1,format:Oa,formatter:Te.formatters[Oa],indices:!1,serializeDate:function(t){return Lg.call(t)},skipNulls:!1,strictNullHandling:!1},Wg=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},cr={},Sg=function e(t,s,a,n,o,p,i,r,d,y,m,l,h,R,b,C){for(var x=t,L=C,E=0,Z=!1;(L=L.get(cr))!==void 0&&!Z;){var ye=L.get(t);if(E+=1,typeof ye<"u"){if(ye===E)throw new RangeError("Cyclic object value");Z=!0}typeof L.get(cr)>"u"&&(E=0)}if(typeof r=="function"?x=r(s,x):x instanceof Date?x=m(x):a==="comma"&&S(x)&&(x=dr.maybeMap(x,function(Ye){return Ye instanceof Date?m(Ye):Ye})),x===null){if(o)return i&&!R?i(s,T.encoder,b,"key",l):s;x=""}if(Wg(x)||dr.isBuffer(x)){if(i){var me=R?s:i(s,T.encoder,b,"key",l);if(a==="comma"&&R){for(var N=Ug.call(String(x),","),Re="",_=0;_<N.length;++_)Re+=(_===0?"":",")+h(i(N[_],T.encoder,b,"value",l));return[h(me)+(n&&S(x)&&N.length===1?"[]":"")+"="+Re]}return[h(me)+"="+h(i(x,T.encoder,b,"value",l))]}return[h(s)+"="+h(String(x))]}var ee=[];if(typeof x>"u")return ee;var V;if(a==="comma"&&S(x))V=[{value:x.length>0?x.join(",")||null:void 0}];else if(S(r))V=r;else{var te=Object.keys(x);V=d?te.sort(d):te}for(var w=n&&S(x)&&x.length===1?s+"[]":s,D=0;D<V.length;++D){var W=V[D],qe=typeof W=="object"&&typeof W.value<"u"?W.value:x[W];if(!(p&&qe===null)){var Wc=S(x)?typeof a=="function"?a(w,W):w:w+(y?"."+W:"["+W+"]");C.set(t,E);var yr=Fa();yr.set(cr,C),Na(ee,e(qe,Wc,a,n,o,p,i,r,d,y,m,l,h,R,b,yr))}}return ee},Eg=function(t){if(!t)return T;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||T.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=Te.default;if(typeof t.format<"u"){if(!wg.call(Te.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=Te.formatters[a],o=T.filter;return(typeof t.filter=="function"||S(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:T.addQueryPrefix,allowDots:typeof t.allowDots>"u"?T.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:T.charsetSentinel,delimiter:typeof t.delimiter>"u"?T.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:T.encode,encoder:typeof t.encoder=="function"?t.encoder:T.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:T.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:T.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:T.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:T.strictNullHandling}};Va.exports=function(e,t){var s=e,a=Eg(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):S(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Ma?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Ma[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var y=Fa(),m=0;m<n.length;++m){var l=n[m];a.skipNulls&&s[l]===null||Na(p,Sg(s[l],l,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var h=p.join(a.delimiter),R=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),h.length>0?R+h:""}});var za=g((sm,ja)=>{"use strict";var ge=ur(),lr=Object.prototype.hasOwnProperty,_g=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ge.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Dg=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Ka=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Qg="utf8=%26%2310003%3B",Hg="utf8=%E2%9C%93",Mg=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Hg?d="utf-8":p[r]===Qg&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var y=p[r],m=y.indexOf("]="),l=m===-1?y.indexOf("="):m+1,h,R;l===-1?(h=s.decoder(y,A.decoder,d,"key"),R=s.strictNullHandling?null:""):(h=s.decoder(y.slice(0,l),A.decoder,d,"key"),R=ge.maybeMap(Ka(y.slice(l+1),s),function(b){return s.decoder(b,A.decoder,d,"value")})),R&&s.interpretNumericEntities&&d==="iso-8859-1"&&(R=Dg(R)),y.indexOf("[]=")>-1&&(R=_g(R)?[R]:R),lr.call(a,h)?a[h]=ge.combine(a[h],R):a[h]=R}return a},Og=function(e,t,s,a){for(var n=a?t:Ka(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},Fg=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,y=[];if(d){if(!a.plainObjects&&lr.call(Object.prototype,d)&&!a.allowPrototypes)return;y.push(d)}for(var m=0;a.depth>0&&(r=i.exec(o))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&lr.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;y.push(r[1])}return r&&y.push("["+o.slice(r.index)+"]"),Og(y,s,a,n)}},Ng=function(t){if(!t)return A;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?A.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?A.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:A.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:A.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:A.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:A.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:A.comma,decoder:typeof t.decoder=="function"?t.decoder:A.decoder,delimiter:typeof t.delimiter=="string"||ge.isRegExp(t.delimiter)?t.delimiter:A.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:A.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:A.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:A.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:A.strictNullHandling}};ja.exports=function(e,t){var s=Ng(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Mg(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Fg(i,a[i],s,typeof e=="string");n=ge.merge(n,r,s)}return s.allowSparse===!0?n:ge.compact(n)}});var Ya=g((am,Ja)=>{"use strict";var Vg=$a(),$g=za(),Kg=je();Ja.exports={formats:Kg,parse:$g,stringify:Vg}});import*as hm from"axios";var vr={};Hc(vr,{DEFAULT_OPTIONS:()=>kr,default:()=>rt,exponentialDelay:()=>xr,isIdempotentRequestError:()=>et,isNetworkError:()=>Ze,isNetworkOrIdempotentRequestError:()=>tt,isRetryableError:()=>we,isSafeRequestError:()=>br,linearDelay:()=>Ir,namespace:()=>Ce,retryAfter:()=>Ue});var fr=Be(Rr(),1),Ce="axios-retry";function Ze(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,fr.default)(e)}var hr=["get","head","options"],Fc=hr.concat(["put","delete"]);function we(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function br(e){return e.config?.method?we(e)&&hr.indexOf(e.config.method)!==-1:!1}function et(e){return e.config?.method?we(e)&&Fc.indexOf(e.config.method)!==-1:!1}function tt(e){return Ze(e)||et(e)}function Ue(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function Nc(e=0,t=void 0){return Math.max(0,Ue(t))}function xr(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,Ue(t)),o=n*.2*Math.random();return n+o}function Ir(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,Ue(s))}}var kr={retries:3,retryCondition:tt,retryDelay:Nc,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Vc(e,t){return{...kr,...t,...e[Ce]}}function qr(e,t,s=!1){let a=Vc(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[Ce]=a,a}function $c(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function Kc(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function jc(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if($c(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(y),r(e(a))},y=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function zc(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var Q=(e,t)=>{let s=e.interceptors.request.use(n=>(qr(n,t,!0),n[Ce]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=qr(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await Kc(p,n)?jc(e,p,n,o):(await zc(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};Q.isNetworkError=Ze;Q.isSafeRequestError=br;Q.isIdempotentRequestError=et;Q.isNetworkOrIdempotentRequestError=tt;Q.exponentialDelay=xr;Q.linearDelay=Ir;Q.isRetryableError=we;var rt=Q;import Jc from"crypto";var Yc={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},st=typeof window<"u"&&typeof window.document<"u"?window.crypto:Jc;st.getRandomValues||(st=Yc);var I=class extends Error{constructor(s,a,n,o,p,i,r){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.metadata=r;this.id||(this.id=I.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(st.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Xc=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Zc=e=>e instanceof I||Xc(e)&&e.isApiError===!0,$=class extends I{constructor(t,s,a,n){super(500,"An unknown error occurred","Unknown",t,s,a,n)}},at=class extends I{constructor(t,s,a,n){super(500,"An internal error occurred","Internal",t,s,a,n)}},nt=class extends I{constructor(t,s,a,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a,n)}},ot=class extends I{constructor(t,s,a,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a,n)}},it=class extends I{constructor(t,s,a,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a,n)}},pt=class extends I{constructor(t,s,a,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,a,n)}},ut=class extends I{constructor(t,s,a,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a,n)}},ct=class extends I{constructor(t,s,a,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,a,n)}},dt=class extends I{constructor(t,s,a,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a,n)}},lt=class extends I{constructor(t,s,a,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a,n)}},gt=class extends I{constructor(t,s,a,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a,n)}},yt=class extends I{constructor(t,s,a,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a,n)}},mt=class extends I{constructor(t,s,a,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a,n)}},Rt=class extends I{constructor(t,s,a,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a,n)}},qt=class extends I{constructor(t,s,a,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a,n)}},ft=class extends I{constructor(t,s,a,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a,n)}},ht=class extends I{constructor(t,s,a,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a,n)}},bt=class extends I{constructor(t,s,a,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a,n)}},xt=class extends I{constructor(t,s,a,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a,n)}},It=class extends I{constructor(t,s,a,n){super(429,"The request has been rate limited.","RateLimited",t,s,a,n)}},kt=class extends I{constructor(t,s,a,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a,n)}},vt=class extends I{constructor(t,s,a,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a,n)}},Pt=class extends I{constructor(t,s,a,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a,n)}},At=class extends I{constructor(t,s,a,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a,n)}},ed={Unknown:$,Internal:at,Unauthorized:nt,Forbidden:ot,PayloadTooLarge:it,InvalidPayload:pt,UnsupportedMediaType:ut,MethodNotFound:ct,ResourceNotFound:dt,InvalidJsonSchema:lt,InvalidDataFormat:gt,InvalidIdentifier:yt,RelationConflict:mt,ReferenceConstraint:Rt,ResourceLockedConflict:qt,ReferenceNotFound:ft,InvalidQuery:ht,Runtime:bt,AlreadyExists:xt,RateLimited:It,PaymentRequired:kt,QuotaExceeded:vt,LimitExceeded:Pt,BreakingChanges:At},Tt=e=>Zc(e)?e:e instanceof Error?new $(e.message,e):typeof e=="string"?new $(e):td(e);function td(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=ed[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new $(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new $("An invalid error occurred: "+JSON.stringify(e))}var H=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};import gr from"axios";var Uc=Be(Pr()),Gc=Be(Ar());import{isNode as Cc}from"browser-or-node";import{isBrowser as Tr,isNode as sd}from"browser-or-node";var ad="https://api.botpress.cloud",nd=6e4,od="BP_API_URL",id="BP_BOT_ID",pd="BP_INTEGRATION_ID",ud="BP_WORKSPACE_ID",cd="BP_TOKEN";function Br(e){let t=dd(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??ad,n=t.timeout??nd;return{apiUrl:a,timeout:n,withCredentials:Tr,headers:s}}function dd(e){return Tr?e:sd?ld(e):e}function ld(e){let t={...e,apiUrl:e.apiUrl??process.env[od],botId:e.botId??process.env[id],integrationId:e.integrationId??process.env[pd],workspaceId:e.workspaceId??process.env[ud]},s=t.token??process.env[cd];return s&&(t.token=s),t}import zg from"axios";var Xa=Be(Ya()),jg=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(jg),i=Object.fromEntries(p),r=Xa.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var Za=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var tn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sn=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var nn=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var pn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var cn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ln=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var yn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Rn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var fn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var bn=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var In=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vn=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var An=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var Bn=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var wn=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gn=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Wn=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var En=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dn=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Hn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var On=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Nn=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var $n=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var jn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jn=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Xn=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var eo=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var ro=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var ao=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var oo=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var po=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall}});var co=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var go=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var mo=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var qo=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ho=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var xo=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var ko=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Po=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var To=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Co=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Uo=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Lo=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var So=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var _o=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Qo=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mo=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Fo=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vo=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ko=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zo=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Yo=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Zo=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ti=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var si=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ni=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var ii=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var ui=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var di=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var gi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,nextToken:e.nextToken},params:{id:e.id},body:{}});var hi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var xi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var ki=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Pi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ti=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ci=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ui=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Li=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Si=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var _i=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Qi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Mi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Fi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vi=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Ki=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var zi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var tp=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var sp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var np=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var ip=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var up=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var dp=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var gp=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var mp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hp=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var xp=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var kp=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pp=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Tp=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Cp=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Up=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Lp=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sp=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var _p=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var Qp=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Mp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,nextToken:e.nextToken},params:{id:e.id},body:{}});var Vp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Kp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zp=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Yp=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var Zp=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tu=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var su=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var nu=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iu=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var uu=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,code:e.code,dependencies:e.dependencies}});var du=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var mu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,code:e.code,dependencies:e.dependencies}});var qu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var xu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ku=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Pu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Tu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var Cu=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Uu=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Lu=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Su=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var _u=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qu=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var Mu=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fu=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Vu=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var Ku=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var zu=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Yu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Zu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var tc=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var sc=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var nc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var ic=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var uc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var dc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var gc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var mc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var qc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var hc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var xc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var kc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Pc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Tc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ze=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Za(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=tn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=sn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=nn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=pn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=cn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=ln(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=yn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=Rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=bn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=In(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=vn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=An(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Bn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=wn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Gn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=Wn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=En(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Dn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=On(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Nn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=$n(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=jn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setStateExpiry=async t=>{let{path:s,headers:a,query:n,body:o}=Jn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=Xn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=eo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=ro(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=ao(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=oo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=po(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=go(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=mo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=qo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=xo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Po(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=To(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkflows=async t=>{let{path:s,headers:a,query:n,body:o}=Co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Uo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTagValues=async t=>{let{path:s,headers:a,query:n,body:o}=Lo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=So(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=_o(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Mo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Vo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Ko(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=zo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Yo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Zo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=ti(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=si(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=ni(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=ii(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=ui(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=di(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=gi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=mi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=qi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=xi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=ki(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=Pi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=Ti(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Ci(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Ui(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Li(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Si(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=_i(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Mi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Fi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Vi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Ki(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=zi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Yi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Zi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=tp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=sp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=np(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ip(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=up(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=dp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=gp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=mp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=qp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=hp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=xp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=kp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Pp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Tp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=Cp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Up(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Lp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Sp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=_p(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Qp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Mp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Fp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=Vp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Kp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=zp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Yp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Zp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=tu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=su(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=nu(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=iu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=uu(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=du(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPluginByName=async t=>{let{path:s,headers:a,query:n,body:o}=gu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updatePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=mu(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=qu(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPlugins=async t=>{let{path:s,headers:a,query:n,body:o}=hu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=xu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=ku(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=Pu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivity=async t=>{let{path:s,headers:a,query:n,body:o}=Tu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=Cu(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=Uu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=Lu(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=Su(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=_u(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Qu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=Mu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Fu(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Vu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=Ku(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=zu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Yu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Zu(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=tc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=sc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};exportTable=async t=>{let{path:s,headers:a,query:n,body:o}=nc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableJobs=async t=>{let{path:s,headers:a,query:n,body:o}=ic(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};importTable=async t=>{let{path:s,headers:a,query:n,body:o}=uc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=dc(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=gc(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=mc(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=qc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=hc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=xc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=kc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Pc(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Tc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return zg.isAxiosError(e)&&e.response?.data?Tt(e.response.data):Tt(e)}var k=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},Je=class{constructor(t){this._client=t}conversations=t=>new k(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new k(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new k(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new k(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new k(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new k(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new k(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new k(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new k(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new k(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new k(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new k(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new k(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new k(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new k(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new k(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new k(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var Lc=100*1024*1024,Yg=Lc,Xg=Lc,wc=class extends ze{config;constructor(t={}){let s=Br(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=gr.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:Yg,maxContentLength:Xg,httpAgent:Cc?new Uc.default.Agent({keepAlive:!0}):void 0,httpsAgent:Cc?new Gc.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&rt(i,t.retry),this.config=s}get list(){return new Je(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,indexing:r,expiresAt:d,publicContentImmediatelyAccessible:y})=>{if(i&&p)throw new H("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await gr.get(i,{responseType:"arraybuffer"}).then(b=>b.data).catch(b=>{throw new H(`Failed to download file from provided URL: ${b.message}`,b)})),!p)throw new H("No content was provided for the file");let m,l;if(typeof p=="string"){let C=new TextEncoder().encode(p);m=C,l=C.byteLength}else if(p instanceof Uint8Array)m=p,l=m.byteLength;else if(p instanceof ArrayBuffer)m=p,l=m.byteLength;else if(p instanceof Blob)m=p,l=p.size;else throw new H("The provided content is not supported");let{file:h}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:l,expiresAt:d,indexing:r,publicContentImmediatelyAccessible:y}),R={"Content-Type":h.contentType};y&&(R["x-amz-tagging"]="public=true");try{await gr.put(h.uploadUrl,m,{maxBodyLength:1/0,headers:R})}catch(b){throw new H(`Failed to upload file: ${b.message}`,b,h)}return{file:{...h,size:l}}}};export{xt as AlreadyExistsError,At as BreakingChangesError,wc as Client,ot as ForbiddenError,at as InternalError,gt as InvalidDataFormatError,yt as InvalidIdentifierError,lt as InvalidJsonSchemaError,pt as InvalidPayloadError,ht as InvalidQueryError,Pt as LimitExceededError,ct as MethodNotFoundError,it as PayloadTooLargeError,kt as PaymentRequiredError,vt as QuotaExceededError,It as RateLimitedError,Rt as ReferenceConstraintError,ft as ReferenceNotFoundError,mt as RelationConflictError,qt as ResourceLockedConflictError,dt as ResourceNotFoundError,bt as RuntimeError,nt as UnauthorizedError,$ as UnknownError,ut as UnsupportedMediaTypeError,H as UploadFileError,hm as axios,vr as axiosRetry,Tt as errorFrom,Zc as isApiError};
4
+ `+t.prev}function Oe(e,t){var s=er(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=S(e,n)?t(e[n],e):""}var o=typeof zt=="function"?zt(e):[],p;if(de){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)S(e,r)&&(s&&String(Number(r))===r&&r<e.length||de&&p["$"+r]instanceof Symbol||(Ba.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof zt=="function")for(var d=0;d<o.length;d++)Ca.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Da=g((dm,_a)=>{"use strict";var nr=Xr(),le=ya(),fg=Ea(),hg=nr("%TypeError%"),$e=nr("%WeakMap%",!0),Ke=nr("%Map%",!0),bg=le("WeakMap.prototype.get",!0),xg=le("WeakMap.prototype.set",!0),Ig=le("WeakMap.prototype.has",!0),kg=le("Map.prototype.get",!0),vg=le("Map.prototype.set",!0),Pg=le("Map.prototype.has",!0),or=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},Ag=function(e,t){var s=or(e,t);return s&&s.value},Tg=function(e,t,s){var a=or(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Bg=function(e,t){return!!or(e,t)};_a.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new hg("Side channel does not contain "+fg(o))},get:function(o){if($e&&o&&(typeof o=="object"||typeof o=="function")){if(t)return bg(t,o)}else if(Ke){if(s)return kg(s,o)}else if(a)return Ag(a,o)},has:function(o){if($e&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Ig(t,o)}else if(Ke){if(s)return Pg(s,o)}else if(a)return Bg(a,o);return!1},set:function(o,p){$e&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new $e),xg(t,o,p)):Ke?(s||(s=new Ke),vg(s,o,p)):(a||(a={key:{},next:null}),Tg(a,o,p))}};return n}});var je=g((lm,Qa)=>{"use strict";var Cg=String.prototype.replace,wg=/%20/g,ir={RFC1738:"RFC1738",RFC3986:"RFC3986"};Qa.exports={default:ir.RFC3986,formatters:{RFC1738:function(e){return Cg.call(e,wg,"+")},RFC3986:function(e){return String(e)}},RFC1738:ir.RFC1738,RFC3986:ir.RFC3986}});var ur=g((gm,Fa)=>{"use strict";var Ug=je(),pr=Object.prototype.hasOwnProperty,X=Array.isArray,G=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Gg=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(X(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},Ha=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},Lg=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(X(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!pr.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return X(t)&&!X(s)&&(n=Ha(t,a)),X(t)&&X(s)?(s.forEach(function(o,p){if(pr.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return pr.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Wg=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},Sg=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},Eg=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===Ug.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+G[d];continue}if(d<2048){i=i+(G[192|d>>6]+G[128|d&63]);continue}if(d<55296||d>=57344){i=i+(G[224|d>>12]+G[128|d>>6&63]+G[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=G[240|d>>18]+G[128|d>>12&63]+G[128|d>>6&63]+G[128|d&63]}return i},_g=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],y=p[d];typeof y=="object"&&y!==null&&a.indexOf(y)===-1&&(s.push({obj:p,prop:d}),a.push(y))}return Gg(s),t},Dg=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Qg=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Hg=function(t,s){return[].concat(t,s)},Fg=function(t,s){if(X(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Fa.exports={arrayToObject:Ha,assign:Wg,combine:Hg,compact:_g,decode:Sg,encode:Eg,isBuffer:Qg,isRegExp:Dg,maybeMap:Fg,merge:Lg}});var Ka=g((ym,$a)=>{"use strict";var Na=Da(),dr=ur(),Te=je(),Mg=Object.prototype.hasOwnProperty,Ma={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},E=Array.isArray,Og=String.prototype.split,Ng=Array.prototype.push,Va=function(e,t){Ng.apply(e,E(t)?t:[t])},Vg=Date.prototype.toISOString,Oa=Te.default,T={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:dr.encode,encodeValuesOnly:!1,format:Oa,formatter:Te.formatters[Oa],indices:!1,serializeDate:function(t){return Vg.call(t)},skipNulls:!1,strictNullHandling:!1},$g=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},cr={},Kg=function e(t,s,a,n,o,p,i,r,d,y,m,l,h,R,b,C){for(var x=t,L=C,_=0,Z=!1;(L=L.get(cr))!==void 0&&!Z;){var ye=L.get(t);if(_+=1,typeof ye<"u"){if(ye===_)throw new RangeError("Cyclic object value");Z=!0}typeof L.get(cr)>"u"&&(_=0)}if(typeof r=="function"?x=r(s,x):x instanceof Date?x=m(x):a==="comma"&&E(x)&&(x=dr.maybeMap(x,function(Ye){return Ye instanceof Date?m(Ye):Ye})),x===null){if(o)return i&&!R?i(s,T.encoder,b,"key",l):s;x=""}if($g(x)||dr.isBuffer(x)){if(i){var me=R?s:i(s,T.encoder,b,"key",l);if(a==="comma"&&R){for(var N=Og.call(String(x),","),Re="",D=0;D<N.length;++D)Re+=(D===0?"":",")+h(i(N[D],T.encoder,b,"value",l));return[h(me)+(n&&E(x)&&N.length===1?"[]":"")+"="+Re]}return[h(me)+"="+h(i(x,T.encoder,b,"value",l))]}return[h(s)+"="+h(String(x))]}var ee=[];if(typeof x>"u")return ee;var V;if(a==="comma"&&E(x))V=[{value:x.length>0?x.join(",")||null:void 0}];else if(E(r))V=r;else{var te=Object.keys(x);V=d?te.sort(d):te}for(var w=n&&E(x)&&x.length===1?s+"[]":s,Q=0;Q<V.length;++Q){var W=V[Q],qe=typeof W=="object"&&typeof W.value<"u"?W.value:x[W];if(!(p&&qe===null)){var Vc=E(x)?typeof a=="function"?a(w,W):w:w+(y?"."+W:"["+W+"]");C.set(t,_);var yr=Na();yr.set(cr,C),Va(ee,e(qe,Vc,a,n,o,p,i,r,d,y,m,l,h,R,b,yr))}}return ee},jg=function(t){if(!t)return T;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||T.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=Te.default;if(typeof t.format<"u"){if(!Mg.call(Te.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=Te.formatters[a],o=T.filter;return(typeof t.filter=="function"||E(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:T.addQueryPrefix,allowDots:typeof t.allowDots>"u"?T.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:T.charsetSentinel,delimiter:typeof t.delimiter>"u"?T.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:T.encode,encoder:typeof t.encoder=="function"?t.encoder:T.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:T.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:T.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:T.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:T.strictNullHandling}};$a.exports=function(e,t){var s=e,a=jg(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):E(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Ma?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Ma[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var y=Na(),m=0;m<n.length;++m){var l=n[m];a.skipNulls&&s[l]===null||Va(p,Kg(s[l],l,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var h=p.join(a.delimiter),R=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),h.length>0?R+h:""}});var Ja=g((mm,za)=>{"use strict";var ge=ur(),lr=Object.prototype.hasOwnProperty,zg=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ge.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Jg=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},ja=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Yg="utf8=%26%2310003%3B",Xg="utf8=%E2%9C%93",Zg=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Xg?d="utf-8":p[r]===Yg&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var y=p[r],m=y.indexOf("]="),l=m===-1?y.indexOf("="):m+1,h,R;l===-1?(h=s.decoder(y,A.decoder,d,"key"),R=s.strictNullHandling?null:""):(h=s.decoder(y.slice(0,l),A.decoder,d,"key"),R=ge.maybeMap(ja(y.slice(l+1),s),function(b){return s.decoder(b,A.decoder,d,"value")})),R&&s.interpretNumericEntities&&d==="iso-8859-1"&&(R=Jg(R)),y.indexOf("[]=")>-1&&(R=zg(R)?[R]:R),lr.call(a,h)?a[h]=ge.combine(a[h],R):a[h]=R}return a},ey=function(e,t,s,a){for(var n=a?t:ja(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},ty=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,y=[];if(d){if(!a.plainObjects&&lr.call(Object.prototype,d)&&!a.allowPrototypes)return;y.push(d)}for(var m=0;a.depth>0&&(r=i.exec(o))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&lr.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;y.push(r[1])}return r&&y.push("["+o.slice(r.index)+"]"),ey(y,s,a,n)}},ry=function(t){if(!t)return A;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?A.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?A.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:A.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:A.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:A.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:A.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:A.comma,decoder:typeof t.decoder=="function"?t.decoder:A.decoder,delimiter:typeof t.delimiter=="string"||ge.isRegExp(t.delimiter)?t.delimiter:A.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:A.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:A.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:A.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:A.strictNullHandling}};za.exports=function(e,t){var s=ry(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Zg(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=ty(i,a[i],s,typeof e=="string");n=ge.merge(n,r,s)}return s.allowSparse===!0?n:ge.compact(n)}});var Xa=g((Rm,Ya)=>{"use strict";var sy=Ka(),ay=Ja(),ny=je();Ya.exports={formats:ny,parse:ay,stringify:sy}});import*as Um from"axios";var vr={};Yc(vr,{DEFAULT_OPTIONS:()=>kr,default:()=>rt,exponentialDelay:()=>xr,isIdempotentRequestError:()=>et,isNetworkError:()=>Ze,isNetworkOrIdempotentRequestError:()=>tt,isRetryableError:()=>we,isSafeRequestError:()=>br,linearDelay:()=>Ir,namespace:()=>Ce,retryAfter:()=>Ue});var fr=Be(Rr(),1),Ce="axios-retry";function Ze(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,fr.default)(e)}var hr=["get","head","options"],ed=hr.concat(["put","delete"]);function we(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function br(e){return e.config?.method?we(e)&&hr.indexOf(e.config.method)!==-1:!1}function et(e){return e.config?.method?we(e)&&ed.indexOf(e.config.method)!==-1:!1}function tt(e){return Ze(e)||et(e)}function Ue(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function td(e=0,t=void 0){return Math.max(0,Ue(t))}function xr(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,Ue(t)),o=n*.2*Math.random();return n+o}function Ir(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,Ue(s))}}var kr={retries:3,retryCondition:tt,retryDelay:td,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function rd(e,t){return{...kr,...t,...e[Ce]}}function qr(e,t,s=!1){let a=rd(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[Ce]=a,a}function sd(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function ad(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function nd(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(sd(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(y),r(e(a))},y=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function od(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var H=(e,t)=>{let s=e.interceptors.request.use(n=>(qr(n,t,!0),n[Ce]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=qr(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await ad(p,n)?nd(e,p,n,o):(await od(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};H.isNetworkError=Ze;H.isSafeRequestError=br;H.isIdempotentRequestError=et;H.isNetworkOrIdempotentRequestError=tt;H.exponentialDelay=xr;H.linearDelay=Ir;H.isRetryableError=we;var rt=H;import id from"crypto";var pd={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},st=typeof window<"u"&&typeof window.document<"u"?window.crypto:id;st.getRandomValues||(st=pd);var I=class extends Error{constructor(s,a,n,o,p,i,r){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.metadata=r;this.id||(this.id=I.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(st.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},ud=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,cd=e=>e instanceof I||ud(e)&&e.isApiError===!0,$=class extends I{constructor(t,s,a,n){super(500,"An unknown error occurred","Unknown",t,s,a,n)}},at=class extends I{constructor(t,s,a,n){super(500,"An internal error occurred","Internal",t,s,a,n)}},nt=class extends I{constructor(t,s,a,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a,n)}},ot=class extends I{constructor(t,s,a,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a,n)}},it=class extends I{constructor(t,s,a,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a,n)}},pt=class extends I{constructor(t,s,a,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,a,n)}},ut=class extends I{constructor(t,s,a,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a,n)}},ct=class extends I{constructor(t,s,a,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,a,n)}},dt=class extends I{constructor(t,s,a,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a,n)}},lt=class extends I{constructor(t,s,a,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a,n)}},gt=class extends I{constructor(t,s,a,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a,n)}},yt=class extends I{constructor(t,s,a,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a,n)}},mt=class extends I{constructor(t,s,a,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a,n)}},Rt=class extends I{constructor(t,s,a,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a,n)}},qt=class extends I{constructor(t,s,a,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a,n)}},ft=class extends I{constructor(t,s,a,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a,n)}},ht=class extends I{constructor(t,s,a,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a,n)}},bt=class extends I{constructor(t,s,a,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a,n)}},xt=class extends I{constructor(t,s,a,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a,n)}},It=class extends I{constructor(t,s,a,n){super(429,"The request has been rate limited.","RateLimited",t,s,a,n)}},kt=class extends I{constructor(t,s,a,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a,n)}},vt=class extends I{constructor(t,s,a,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a,n)}},Pt=class extends I{constructor(t,s,a,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a,n)}},At=class extends I{constructor(t,s,a,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a,n)}},dd={Unknown:$,Internal:at,Unauthorized:nt,Forbidden:ot,PayloadTooLarge:it,InvalidPayload:pt,UnsupportedMediaType:ut,MethodNotFound:ct,ResourceNotFound:dt,InvalidJsonSchema:lt,InvalidDataFormat:gt,InvalidIdentifier:yt,RelationConflict:mt,ReferenceConstraint:Rt,ResourceLockedConflict:qt,ReferenceNotFound:ft,InvalidQuery:ht,Runtime:bt,AlreadyExists:xt,RateLimited:It,PaymentRequired:kt,QuotaExceeded:vt,LimitExceeded:Pt,BreakingChanges:At},Tt=e=>cd(e)?e:e instanceof Error?new $(e.message,e):typeof e=="string"?new $(e):ld(e);function ld(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=dd[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new $(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new $("An invalid error occurred: "+JSON.stringify(e))}var F=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};import gr from"axios";var Mc=Be(Pr()),Oc=Be(Ar());import{isNode as Hc}from"browser-or-node";import{isBrowser as Tr,isNode as yd}from"browser-or-node";var md="https://api.botpress.cloud",Rd=6e4,qd="BP_API_URL",fd="BP_BOT_ID",hd="BP_INTEGRATION_ID",bd="BP_WORKSPACE_ID",xd="BP_TOKEN";function Br(e){let t=Id(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??md,n=t.timeout??Rd;return{apiUrl:a,timeout:n,withCredentials:Tr,headers:s}}function Id(e){return Tr?e:yd?kd(e):e}function kd(e){let t={...e,apiUrl:e.apiUrl??process.env[qd],botId:e.botId??process.env[fd],integrationId:e.integrationId??process.env[hd],workspaceId:e.workspaceId??process.env[bd]},s=t.token??process.env[xd];return s&&(t.token=s),t}import iy from"axios";var Za=Be(Xa()),oy=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(oy),i=Object.fromEntries(p),r=Za.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:d,headers:i,data:y}};var en=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var rn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var an=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var on=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var un=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var dn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var mn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var qn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var hn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var xn=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var kn=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pn=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var Tn=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var Cn=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var Un=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ln=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Sn=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var _n=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qn=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Fn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var On=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Vn=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Kn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var zn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yn=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Zn=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var to=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var so=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var no=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var io=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var uo=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall}});var lo=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yo=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var Ro=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var fo=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bo=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var Io=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var vo=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ao=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Bo=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wo=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Go=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Wo=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Eo=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Do=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Ho=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mo=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var No=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var $o=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var jo=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jo=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Xo=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ei=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ri=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ai=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var oi=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var pi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var ci=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var li=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var yi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ri=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,nextToken:e.nextToken},params:{id:e.id},body:{}});var bi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ii=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var vi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ai=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Bi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var wi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Gi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Wi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Ei=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Di=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Hi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Mi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Ni=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var $i=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var ji=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Ji=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ep=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var rp=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var ap=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var op=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var pp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var cp=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var lp=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var yp=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Rp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var bp=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ip=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var vp=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ap=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Bp=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var wp=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Gp=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Wp=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ep=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var Dp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var Hp=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Mp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Np=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,nextToken:e.nextToken},params:{id:e.id},body:{}});var $p=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var jp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jp=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Xp=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var eu=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ru=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var au=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var ou=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pu=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var cu=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,code:e.code}});var lu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ru=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,code:e.code}});var fu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bu=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var Iu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var vu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Au=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Bu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var wu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Gu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Wu=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Eu=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Du=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Hu=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Mu=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nu=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var $u=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ju=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Ju=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{i:e.i}});var Xu=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var ec=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var rc=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ac=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var oc=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var pc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var cc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var lc=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var yc=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var Rc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var fc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var bc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Ic=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var vc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ac=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Bc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var wc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Gc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Wc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Ec=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Dc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ze=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=en(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=an(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=on(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=un(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=dn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=gn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=mn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=qn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=hn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=xn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Pn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Tn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Cn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=_n(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Qn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Fn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=On(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Vn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Kn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=zn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setStateExpiry=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=Zn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=to(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=so(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=no(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=io(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=uo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=lo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=yo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=Ro(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=fo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=bo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Io(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=vo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Bo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkflows=async t=>{let{path:s,headers:a,query:n,body:o}=wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Go(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTagValues=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=Eo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=Do(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Mo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=No(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=$o(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=jo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Xo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=ei(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=ri(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=oi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=pi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=ci(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=li(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=yi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=Ri(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=fi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=bi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=Ii(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=vi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=Bi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=wi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Gi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Ei(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Di(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Hi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Mi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Ni(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=$i(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ji(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Ji(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Xi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=ep(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=rp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=ap(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=op(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=pp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=cp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=lp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=yp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Rp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=fp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=bp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Ip(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=vp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Ap(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Bp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=wp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Gp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Wp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ep(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Dp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Hp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Mp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Np(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=$p(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=jp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=Jp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Xp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=eu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=ru(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=au(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ou(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=pu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=cu(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=lu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPluginByName=async t=>{let{path:s,headers:a,query:n,body:o}=yu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updatePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=Ru(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=fu(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPlugins=async t=>{let{path:s,headers:a,query:n,body:o}=bu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPluginCode=async t=>{let{path:s,headers:a,query:n,body:o}=Iu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=vu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Au(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=Bu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivity=async t=>{let{path:s,headers:a,query:n,body:o}=wu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivityDaily=async t=>{let{path:s,headers:a,query:n,body:o}=Gu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=Wu(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=Eu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=Du(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=Hu(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=Mu(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Nu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=$u(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=ju(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};copyFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ju(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Xu(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=ec(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFileTags=async t=>{let{path:s,headers:a,query:n,body:o}=rc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFileTagValues=async t=>{let{path:s,headers:a,query:n,body:o}=ac(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=oc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=pc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=cc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=lc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=yc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};exportTable=async t=>{let{path:s,headers:a,query:n,body:o}=Rc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableJobs=async t=>{let{path:s,headers:a,query:n,body:o}=fc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};importTable=async t=>{let{path:s,headers:a,query:n,body:o}=bc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ic(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=vc(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ac(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Bc(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=wc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Gc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Wc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Ec(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Dc(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return iy.isAxiosError(e)&&e.response?.data?Tt(e.response.data):Tt(e)}var k=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},Je=class{constructor(t){this._client=t}conversations=t=>new k(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new k(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new k(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new k(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new k(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new k(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new k(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new k(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new k(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new k(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new k(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new k(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new k(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new k(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new k(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new k(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new k(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var Nc=100*1024*1024,uy=Nc,cy=Nc,Fc=class extends ze{config;constructor(t={}){let s=Br(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=gr.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:uy,maxContentLength:cy,httpAgent:Hc?new Mc.default.Agent({keepAlive:!0}):void 0,httpsAgent:Hc?new Oc.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&rt(i,t.retry),this.config=s}get list(){return new Je(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,indexing:r,expiresAt:d,publicContentImmediatelyAccessible:y})=>{if(i&&p)throw new F("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await gr.get(i,{responseType:"arraybuffer"}).then(b=>b.data).catch(b=>{throw new F(`Failed to download file from provided URL: ${b.message}`,b)})),!p)throw new F("No content was provided for the file");let m,l;if(typeof p=="string"){let C=new TextEncoder().encode(p);m=C,l=C.byteLength}else if(p instanceof Uint8Array)m=p,l=m.byteLength;else if(p instanceof ArrayBuffer)m=p,l=m.byteLength;else if(p instanceof Blob)m=p,l=p.size;else throw new F("The provided content is not supported");let{file:h}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:l,expiresAt:d,indexing:r,publicContentImmediatelyAccessible:y}),R={"Content-Type":h.contentType};y&&(R["x-amz-tagging"]="public=true");try{await gr.put(h.uploadUrl,m,{maxBodyLength:1/0,headers:R})}catch(b){throw new F(`Failed to upload file: ${b.message}`,b,h)}return{file:{...h,size:l}}}};export{xt as AlreadyExistsError,At as BreakingChangesError,Fc as Client,ot as ForbiddenError,at as InternalError,gt as InvalidDataFormatError,yt as InvalidIdentifierError,lt as InvalidJsonSchemaError,pt as InvalidPayloadError,ht as InvalidQueryError,Pt as LimitExceededError,ct as MethodNotFoundError,it as PayloadTooLargeError,kt as PaymentRequiredError,vt as QuotaExceededError,It as RateLimitedError,Rt as ReferenceConstraintError,ft as ReferenceNotFoundError,mt as RelationConflictError,qt as ResourceLockedConflictError,dt as ResourceNotFoundError,bt as RuntimeError,nt as UnauthorizedError,$ as UnknownError,ut as UnsupportedMediaTypeError,F as UploadFileError,Um as axios,vr as axiosRetry,Tt as errorFrom,cd as isApiError};
5
5
  //# sourceMappingURL=index.mjs.map