@botpress/client 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var Ii=Object.create;var me=Object.defineProperty;var ki=Object.getOwnPropertyDescriptor;var vi=Object.getOwnPropertyNames;var Pi=Object.getPrototypeOf,Ai=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ti=(e,t)=>{for(var s in t)me(e,s,{get:t[s],enumerable:!0})},Ct=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vi(t))!Ai.call(e,o)&&o!==s&&me(e,o,{get:()=>t[o],enumerable:!(a=ki(t,o))||a.enumerable});return e};var F=(e,t,s)=>(s=e!=null?Ii(Pi(e)):{},Ct(t||!e||!e.__esModule?me(s,"default",{value:e,enumerable:!0}):s,e)),Ci=e=>Ct(me({},"__esModule",{value:!0}),e);var Wt=I((Lu,wt)=>{"use strict";wt.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 o=42;t[s]=o;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var Qt=I((Su,St)=>{"use strict";var Lt=typeof Symbol<"u"&&Symbol,Ni=Wt();St.exports=function(){return typeof Lt!="function"||typeof Symbol!="function"||typeof Lt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ni()}});var Dt=I((Qu,Ht)=>{"use strict";var Mt={foo:{}},$i=Object;Ht.exports=function(){return{__proto__:Mt}.foo===Mt.foo&&!({__proto__:null}instanceof $i)}});var _t=I((Mu,Et)=>{"use strict";var Ki="Function.prototype.bind called on incompatible ",tt=Array.prototype.slice,Vi=Object.prototype.toString,zi="[object Function]";Et.exports=function(t){var s=this;if(typeof s!="function"||Vi.call(s)!==zi)throw new TypeError(Ki+s);for(var a=tt.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(tt.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(tt.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var Ee=I((Hu,Ot)=>{"use strict";var ji=_t();Ot.exports=Function.prototype.bind||ji});var Nt=I((Du,Ft)=>{"use strict";var Ji=Ee();Ft.exports=Ji.call(Function.call,Object.prototype.hasOwnProperty)});var Fe=I((Eu,jt)=>{"use strict";var g,ee=SyntaxError,zt=Function,X=TypeError,rt=function(e){try{return zt('"use strict"; return ('+e+").constructor;")()}catch{}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch{N=null}var st=function(){throw new X},Yi=N?function(){try{return arguments.callee,st}catch{try{return N(arguments,"callee").get}catch{return st}}}():st,Y=Qt()(),Zi=Dt()(),b=Object.getPrototypeOf||(Zi?function(e){return e.__proto__}:null),Z={},Xi=typeof Uint8Array>"u"||!b?g:b(Uint8Array),$={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&b?b([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":zt,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&b?b(b([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!b?g:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!b?g:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&b?b(""[Symbol.iterator]()):g,"%Symbol%":Y?Symbol:g,"%SyntaxError%":ee,"%ThrowTypeError%":Yi,"%TypedArray%":Xi,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(b)try{null.error}catch(e){$t=b(b(e)),$["%Error.prototype%"]=$t}var $t,ep=function e(t){var s;if(t==="%AsyncFunction%")s=rt("async function () {}");else if(t==="%GeneratorFunction%")s=rt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=rt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&b&&(s=b(o.prototype))}return $[t]=s,s},Kt={"%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"]},ce=Ee(),_e=Nt(),tp=ce.call(Function.call,Array.prototype.concat),rp=ce.call(Function.apply,Array.prototype.splice),Vt=ce.call(Function.call,String.prototype.replace),Oe=ce.call(Function.call,String.prototype.slice),sp=ce.call(Function.call,RegExp.prototype.exec),ap=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,np=/\\(\\)?/g,op=function(t){var s=Oe(t,0,1),a=Oe(t,-1);if(s==="%"&&a!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Vt(t,ap,function(n,p,i,r){o[o.length]=i?Vt(r,np,"$1"):p||n}),o},ip=function(t,s){var a=t,o;if(_e(Kt,a)&&(o=Kt[a],a="%"+o[0]+"%"),_e($,a)){var n=$[a];if(n===Z&&(n=ep(a)),typeof n>"u"&&!s)throw new X("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new ee("intrinsic "+t+" does not exist!")};jt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new X('"allowMissing" argument must be a boolean');if(sp(/^%?[^%]*%?$/,t)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=op(t),o=a.length>0?a[0]:"",n=ip("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],rp(a,tp([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var y=a[l],f=Oe(y,0,1),q=Oe(y,-1);if((f==='"'||f==="'"||f==="`"||q==='"'||q==="'"||q==="`")&&f!==q)throw new ee("property names with quotes must have matching quotes");if((y==="constructor"||!h)&&(r=!0),o+="."+y,p="%"+o+"%",_e($,p))i=$[p];else if(i!=null){if(!(y in i)){if(!s)throw new X("base intrinsic for "+t+" exists, but the property is not available.");return}if(N&&l+1>=a.length){var P=N(i,y);h=!!P,h&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[y]}else h=_e(i,y),i=i[y];h&&!r&&($[p]=i)}}return i}});var tr=I((_u,Ne)=>{"use strict";var at=Ee(),te=Fe(),Zt=te("%Function.prototype.apply%"),Xt=te("%Function.prototype.call%"),er=te("%Reflect.apply%",!0)||at.call(Xt,Zt),Jt=te("%Object.getOwnPropertyDescriptor%",!0),K=te("%Object.defineProperty%",!0),pp=te("%Math.max%");if(K)try{K({},"a",{value:1})}catch{K=null}Ne.exports=function(t){var s=er(at,Xt,arguments);if(Jt&&K){var a=Jt(s,"length");a.configurable&&K(s,"length",{value:1+pp(0,t.length-(arguments.length-1))})}return s};var Yt=function(){return er(at,Zt,arguments)};K?K(Ne.exports,"apply",{value:Yt}):Ne.exports.apply=Yt});var nr=I((Ou,ar)=>{"use strict";var rr=Fe(),sr=tr(),up=sr(rr("String.prototype.indexOf"));ar.exports=function(t,s){var a=rr(t,!!s);return typeof a=="function"&&up(t,".prototype.")>-1?sr(a):a}});var ir=I((Fu,or)=>{or.exports=require("util").inspect});var Tr=I((Nu,Ar)=>{var yt=typeof Map=="function"&&Map.prototype,nt=Object.getOwnPropertyDescriptor&&yt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=yt&&nt&&typeof nt.get=="function"?nt.get:null,pr=yt&&Map.prototype.forEach,mt=typeof Set=="function"&&Set.prototype,ot=Object.getOwnPropertyDescriptor&&mt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ve=mt&&ot&&typeof ot.get=="function"?ot.get:null,ur=mt&&Set.prototype.forEach,cp=typeof WeakMap=="function"&&WeakMap.prototype,le=cp?WeakMap.prototype.has:null,dp=typeof WeakSet=="function"&&WeakSet.prototype,ge=dp?WeakSet.prototype.has:null,lp=typeof WeakRef=="function"&&WeakRef.prototype,cr=lp?WeakRef.prototype.deref:null,gp=Boolean.prototype.valueOf,yp=Object.prototype.toString,mp=Function.prototype.toString,Rp=String.prototype.match,Rt=String.prototype.slice,D=String.prototype.replace,qp=String.prototype.toUpperCase,dr=String.prototype.toLowerCase,br=RegExp.prototype.test,lr=Array.prototype.concat,T=Array.prototype.join,hp=Array.prototype.slice,gr=Math.floor,ut=typeof BigInt=="function"?BigInt.prototype.valueOf:null,it=Object.getOwnPropertySymbols,ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||"symbol")?Symbol.toStringTag:null,xr=Object.prototype.propertyIsEnumerable,yr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||br.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-gr(-e):gr(e);if(a!==e){var o=String(a),n=Rt.call(t,o.length+1);return D.call(o,s,"$&_")+"."+D.call(D.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(t,s,"$&_")}var dt=ir(),Rr=dt.custom,qr=kr(Rr)?Rr:null;Ar.exports=function e(t,s,a,o){var n=s||{};if(H(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=H(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.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 Pr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?mr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?mr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return lt(t)?"[Array]":"[Object]";var h=Qp(n,a);if(typeof o>"u")o=[];else if(vr(o,t)>=0)return"[Circular]";function y(A,S,G){if(S&&(o=hp.call(o),o.push(S)),G){var pe={depth:n.depth};return H(n,"quoteStyle")&&(pe.quoteStyle=n.quoteStyle),e(A,pe,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!hr(t)){var f=Tp(t),q=$e(t,y);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(q.length>0?" { "+T.call(q,", ")+" }":"")}if(kr(t)){var P=re?D.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ct.call(t);return typeof t=="object"&&!re?de(P):P}if(Wp(t)){for(var B="<"+dr.call(String(t.nodeName)),m=t.attributes||[],U=0;U<m.length;U++)B+=" "+m[U].name+"="+Ir(fp(m[U].value),"double",n);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+dr.call(String(t.nodeName))+">",B}if(lt(t)){if(t.length===0)return"[]";var W=$e(t,y);return h&&!Sp(W)?"["+gt(W,h)+"]":"[ "+T.call(W,", ")+" ]"}if(xp(t)){var z=$e(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!xr.call(t,"cause")?"{ ["+String(t)+"] "+T.call(lr.call("[cause]: "+y(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(z,", ")+" }"}if(typeof t=="object"&&p){if(qr&&typeof t[qr]=="function"&&dt)return dt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Cp(t)){var ne=[];return pr&&pr.call(t,function(A,S){ne.push(y(S,t,!0)+" => "+y(A,t))}),fr("Map",Ke.call(t),ne,h)}if(Gp(t)){var oe=[];return ur&&ur.call(t,function(A){oe.push(y(A,t))}),fr("Set",Ve.call(t),oe,h)}if(Bp(t))return pt("WeakMap");if(wp(t))return pt("WeakSet");if(Up(t))return pt("WeakRef");if(kp(t))return de(y(Number(t)));if(Pp(t))return de(y(ut.call(t)));if(vp(t))return de(gp.call(t));if(Ip(t))return de(y(String(t)));if(!bp(t)&&!hr(t)){var _=$e(t,y),ie=yr?yr(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",j=!ie&&v&&Object(t)===t&&v in t?Rt.call(E(t),8,-1):L?"Object":"",O=ie||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",J=O+(j||L?"["+T.call(lr.call([],j||[],L||[]),": ")+"] ":"");return _.length===0?J+"{}":h?J+"{"+gt(_,h)+"}":J+"{ "+T.call(_,", ")+" }"}return String(t)};function Ir(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function fp(e){return D.call(String(e),/"/g,"&quot;")}function lt(e){return E(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function bp(e){return E(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function hr(e){return E(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function xp(e){return E(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function Ip(e){return E(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function kp(e){return E(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function vp(e){return E(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function kr(e){if(re)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ct)return!1;try{return ct.call(e),!0}catch{}return!1}function Pp(e){if(!e||typeof e!="object"||!ut)return!1;try{return ut.call(e),!0}catch{}return!1}var Ap=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return Ap.call(e,t)}function E(e){return yp.call(e)}function Tp(e){if(e.name)return e.name;var t=Rp.call(mp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vr(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 Cp(e){if(!Ke||!e||typeof e!="object")return!1;try{Ke.call(e);try{Ve.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Bp(e){if(!le||!e||typeof e!="object")return!1;try{le.call(e,le);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Up(e){if(!cr||!e||typeof e!="object")return!1;try{return cr.call(e),!0}catch{}return!1}function Gp(e){if(!Ve||!e||typeof e!="object")return!1;try{Ve.call(e);try{Ke.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function wp(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{le.call(e,le)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Wp(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Pr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Pr(Rt.call(e,0,t.maxStringLength),t)+a}var o=D.call(D.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lp);return Ir(o,"single",t)}function Lp(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":"")+qp.call(t.toString(16))}function de(e){return"Object("+e+")"}function pt(e){return e+" { ? }"}function fr(e,t,s,a){var o=a?gt(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function Sp(e){for(var t=0;t<e.length;t++)if(vr(e[t],`
2
- `)>=0)return!1;return!0}function Qp(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=T.call(Array(e.indent+1)," ");else return null;return{base:s,prev:T.call(Array(t+1),s)}}function gt(e,t){if(e.length===0)return"";var s=`
1
+ "use strict";var Wi=Object.create;var me=Object.defineProperty;var Si=Object.getOwnPropertyDescriptor;var Qi=Object.getOwnPropertyNames;var Hi=Object.getPrototypeOf,Mi=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Di=(e,t)=>{for(var s in t)me(e,s,{get:t[s],enumerable:!0})},Bt=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qi(t))!Mi.call(e,o)&&o!==s&&me(e,o,{get:()=>t[o],enumerable:!(a=Si(t,o))||a.enumerable});return e};var F=(e,t,s)=>(s=e!=null?Wi(Hi(e)):{},Bt(t||!e||!e.__esModule?me(s,"default",{value:e,enumerable:!0}):s,e)),Ei=e=>Bt(me({},"__esModule",{value:!0}),e);var Lt=I((Kc,wt)=>{"use strict";wt.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 o=42;t[s]=o;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var Qt=I((Vc,St)=>{"use strict";var Wt=typeof Symbol<"u"&&Symbol,rp=Lt();St.exports=function(){return typeof Wt!="function"||typeof Symbol!="function"||typeof Wt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:rp()}});var Dt=I((zc,Mt)=>{"use strict";var Ht={foo:{}},sp=Object;Mt.exports=function(){return{__proto__:Ht}.foo===Ht.foo&&!({__proto__:null}instanceof sp)}});var _t=I((jc,Et)=>{"use strict";var ap="Function.prototype.bind called on incompatible ",tt=Array.prototype.slice,np=Object.prototype.toString,op="[object Function]";Et.exports=function(t){var s=this;if(typeof s!="function"||np.call(s)!==op)throw new TypeError(ap+s);for(var a=tt.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(tt.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(tt.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var Ee=I((Jc,Ot)=>{"use strict";var ip=_t();Ot.exports=Function.prototype.bind||ip});var Nt=I((Yc,Ft)=>{"use strict";var pp=Ee();Ft.exports=pp.call(Function.call,Object.prototype.hasOwnProperty)});var Fe=I((Zc,jt)=>{"use strict";var g,ee=SyntaxError,zt=Function,X=TypeError,rt=function(e){try{return zt('"use strict"; return ('+e+").constructor;")()}catch{}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch{N=null}var st=function(){throw new X},cp=N?function(){try{return arguments.callee,st}catch{try{return N(arguments,"callee").get}catch{return st}}}():st,Y=Qt()(),up=Dt()(),b=Object.getPrototypeOf||(up?function(e){return e.__proto__}:null),Z={},dp=typeof Uint8Array>"u"||!b?g:b(Uint8Array),$={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&b?b([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":zt,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&b?b(b([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!b?g:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!b?g:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&b?b(""[Symbol.iterator]()):g,"%Symbol%":Y?Symbol:g,"%SyntaxError%":ee,"%ThrowTypeError%":cp,"%TypedArray%":dp,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(b)try{null.error}catch(e){$t=b(b(e)),$["%Error.prototype%"]=$t}var $t,lp=function e(t){var s;if(t==="%AsyncFunction%")s=rt("async function () {}");else if(t==="%GeneratorFunction%")s=rt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=rt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&b&&(s=b(o.prototype))}return $[t]=s,s},Kt={"%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"]},ue=Ee(),_e=Nt(),gp=ue.call(Function.call,Array.prototype.concat),yp=ue.call(Function.apply,Array.prototype.splice),Vt=ue.call(Function.call,String.prototype.replace),Oe=ue.call(Function.call,String.prototype.slice),mp=ue.call(Function.call,RegExp.prototype.exec),Rp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qp=/\\(\\)?/g,hp=function(t){var s=Oe(t,0,1),a=Oe(t,-1);if(s==="%"&&a!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Vt(t,Rp,function(n,p,i,r){o[o.length]=i?Vt(r,qp,"$1"):p||n}),o},fp=function(t,s){var a=t,o;if(_e(Kt,a)&&(o=Kt[a],a="%"+o[0]+"%"),_e($,a)){var n=$[a];if(n===Z&&(n=lp(a)),typeof n>"u"&&!s)throw new X("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new ee("intrinsic "+t+" does not exist!")};jt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new X('"allowMissing" argument must be a boolean');if(mp(/^%?[^%]*%?$/,t)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=hp(t),o=a.length>0?a[0]:"",n=fp("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],yp(a,gp([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var y=a[l],f=Oe(y,0,1),q=Oe(y,-1);if((f==='"'||f==="'"||f==="`"||q==='"'||q==="'"||q==="`")&&f!==q)throw new ee("property names with quotes must have matching quotes");if((y==="constructor"||!h)&&(r=!0),o+="."+y,p="%"+o+"%",_e($,p))i=$[p];else if(i!=null){if(!(y in i)){if(!s)throw new X("base intrinsic for "+t+" exists, but the property is not available.");return}if(N&&l+1>=a.length){var P=N(i,y);h=!!P,h&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[y]}else h=_e(i,y),i=i[y];h&&!r&&($[p]=i)}}return i}});var tr=I((Xc,Ne)=>{"use strict";var at=Ee(),te=Fe(),Zt=te("%Function.prototype.apply%"),Xt=te("%Function.prototype.call%"),er=te("%Reflect.apply%",!0)||at.call(Xt,Zt),Jt=te("%Object.getOwnPropertyDescriptor%",!0),K=te("%Object.defineProperty%",!0),bp=te("%Math.max%");if(K)try{K({},"a",{value:1})}catch{K=null}Ne.exports=function(t){var s=er(at,Xt,arguments);if(Jt&&K){var a=Jt(s,"length");a.configurable&&K(s,"length",{value:1+bp(0,t.length-(arguments.length-1))})}return s};var Yt=function(){return er(at,Zt,arguments)};K?K(Ne.exports,"apply",{value:Yt}):Ne.exports.apply=Yt});var nr=I((eu,ar)=>{"use strict";var rr=Fe(),sr=tr(),xp=sr(rr("String.prototype.indexOf"));ar.exports=function(t,s){var a=rr(t,!!s);return typeof a=="function"&&xp(t,".prototype.")>-1?sr(a):a}});var ir=I((tu,or)=>{or.exports=require("util").inspect});var Tr=I((ru,Ar)=>{var yt=typeof Map=="function"&&Map.prototype,nt=Object.getOwnPropertyDescriptor&&yt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=yt&&nt&&typeof nt.get=="function"?nt.get:null,pr=yt&&Map.prototype.forEach,mt=typeof Set=="function"&&Set.prototype,ot=Object.getOwnPropertyDescriptor&&mt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ve=mt&&ot&&typeof ot.get=="function"?ot.get:null,cr=mt&&Set.prototype.forEach,Ip=typeof WeakMap=="function"&&WeakMap.prototype,le=Ip?WeakMap.prototype.has:null,kp=typeof WeakSet=="function"&&WeakSet.prototype,ge=kp?WeakSet.prototype.has:null,vp=typeof WeakRef=="function"&&WeakRef.prototype,ur=vp?WeakRef.prototype.deref:null,Pp=Boolean.prototype.valueOf,Ap=Object.prototype.toString,Tp=Function.prototype.toString,Bp=String.prototype.match,Rt=String.prototype.slice,D=String.prototype.replace,Cp=String.prototype.toUpperCase,dr=String.prototype.toLowerCase,br=RegExp.prototype.test,lr=Array.prototype.concat,T=Array.prototype.join,Up=Array.prototype.slice,gr=Math.floor,ct=typeof BigInt=="function"?BigInt.prototype.valueOf:null,it=Object.getOwnPropertySymbols,ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||"symbol")?Symbol.toStringTag:null,xr=Object.prototype.propertyIsEnumerable,yr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||br.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-gr(-e):gr(e);if(a!==e){var o=String(a),n=Rt.call(t,o.length+1);return D.call(o,s,"$&_")+"."+D.call(D.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(t,s,"$&_")}var dt=ir(),Rr=dt.custom,qr=kr(Rr)?Rr:null;Ar.exports=function e(t,s,a,o){var n=s||{};if(M(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=M(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(M(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(M(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.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 Pr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?mr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?mr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return lt(t)?"[Array]":"[Object]";var h=zp(n,a);if(typeof o>"u")o=[];else if(vr(o,t)>=0)return"[Circular]";function y(A,S,G){if(S&&(o=Up.call(o),o.push(S)),G){var pe={depth:n.depth};return M(n,"quoteStyle")&&(pe.quoteStyle=n.quoteStyle),e(A,pe,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!hr(t)){var f=Dp(t),q=$e(t,y);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(q.length>0?" { "+T.call(q,", ")+" }":"")}if(kr(t)){var P=re?D.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ut.call(t);return typeof t=="object"&&!re?de(P):P}if($p(t)){for(var C="<"+dr.call(String(t.nodeName)),m=t.attributes||[],U=0;U<m.length;U++)C+=" "+m[U].name+"="+Ir(Gp(m[U].value),"double",n);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+dr.call(String(t.nodeName))+">",C}if(lt(t)){if(t.length===0)return"[]";var L=$e(t,y);return h&&!Vp(L)?"["+gt(L,h)+"]":"[ "+T.call(L,", ")+" ]"}if(Lp(t)){var z=$e(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!xr.call(t,"cause")?"{ ["+String(t)+"] "+T.call(lr.call("[cause]: "+y(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(z,", ")+" }"}if(typeof t=="object"&&p){if(qr&&typeof t[qr]=="function"&&dt)return dt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ep(t)){var ne=[];return pr&&pr.call(t,function(A,S){ne.push(y(S,t,!0)+" => "+y(A,t))}),fr("Map",Ke.call(t),ne,h)}if(Fp(t)){var oe=[];return cr&&cr.call(t,function(A){oe.push(y(A,t))}),fr("Set",Ve.call(t),oe,h)}if(_p(t))return pt("WeakMap");if(Np(t))return pt("WeakSet");if(Op(t))return pt("WeakRef");if(Sp(t))return de(y(Number(t)));if(Hp(t))return de(y(ct.call(t)));if(Qp(t))return de(Pp.call(t));if(Wp(t))return de(y(String(t)));if(!wp(t)&&!hr(t)){var _=$e(t,y),ie=yr?yr(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",j=!ie&&v&&Object(t)===t&&v in t?Rt.call(E(t),8,-1):W?"Object":"",O=ie||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",J=O+(j||W?"["+T.call(lr.call([],j||[],W||[]),": ")+"] ":"");return _.length===0?J+"{}":h?J+"{"+gt(_,h)+"}":J+"{ "+T.call(_,", ")+" }"}return String(t)};function Ir(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Gp(e){return D.call(String(e),/"/g,"&quot;")}function lt(e){return E(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function wp(e){return E(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function hr(e){return E(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function Lp(e){return E(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function Wp(e){return E(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function Sp(e){return E(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function Qp(e){return E(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function kr(e){if(re)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ut)return!1;try{return ut.call(e),!0}catch{}return!1}function Hp(e){if(!e||typeof e!="object"||!ct)return!1;try{return ct.call(e),!0}catch{}return!1}var Mp=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return Mp.call(e,t)}function E(e){return Ap.call(e)}function Dp(e){if(e.name)return e.name;var t=Bp.call(Tp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vr(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 Ep(e){if(!Ke||!e||typeof e!="object")return!1;try{Ke.call(e);try{Ve.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _p(e){if(!le||!e||typeof e!="object")return!1;try{le.call(e,le);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Op(e){if(!ur||!e||typeof e!="object")return!1;try{return ur.call(e),!0}catch{}return!1}function Fp(e){if(!Ve||!e||typeof e!="object")return!1;try{Ve.call(e);try{Ke.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Np(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{le.call(e,le)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function $p(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Pr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Pr(Rt.call(e,0,t.maxStringLength),t)+a}var o=D.call(D.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Kp);return Ir(o,"single",t)}function Kp(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":"")+Cp.call(t.toString(16))}function de(e){return"Object("+e+")"}function pt(e){return e+" { ? }"}function fr(e,t,s,a){var o=a?gt(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function Vp(e){for(var t=0;t<e.length;t++)if(vr(e[t],`
2
+ `)>=0)return!1;return!0}function zp(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=T.call(Array(e.indent+1)," ");else return null;return{base:s,prev:T.call(Array(t+1),s)}}function gt(e,t){if(e.length===0)return"";var s=`
3
3
  `+t.prev+t.base;return s+T.call(e,","+s)+`
4
- `+t.prev}function $e(e,t){var s=lt(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=H(e,o)?t(e[o],e):""}var n=typeof it=="function"?it(e):[],p;if(re){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)H(e,r)&&(s&&String(Number(r))===r&&r<e.length||re&&p["$"+r]instanceof Symbol||(br.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof it=="function")for(var d=0;d<n.length;d++)xr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Br=I(($u,Cr)=>{"use strict";var qt=Fe(),se=nr(),Mp=Tr(),Hp=qt("%TypeError%"),ze=qt("%WeakMap%",!0),je=qt("%Map%",!0),Dp=se("WeakMap.prototype.get",!0),Ep=se("WeakMap.prototype.set",!0),_p=se("WeakMap.prototype.has",!0),Op=se("Map.prototype.get",!0),Fp=se("Map.prototype.set",!0),Np=se("Map.prototype.has",!0),ht=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},$p=function(e,t){var s=ht(e,t);return s&&s.value},Kp=function(e,t,s){var a=ht(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Vp=function(e,t){return!!ht(e,t)};Cr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new Hp("Side channel does not contain "+Mp(n))},get:function(n){if(ze&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Dp(t,n)}else if(je){if(s)return Op(s,n)}else if(a)return $p(a,n)},has:function(n){if(ze&&n&&(typeof n=="object"||typeof n=="function")){if(t)return _p(t,n)}else if(je){if(s)return Np(s,n)}else if(a)return Vp(a,n);return!1},set:function(n,p){ze&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new ze),Ep(t,n,p)):je?(s||(s=new je),Fp(s,n,p)):(a||(a={key:{},next:null}),Kp(a,n,p))}};return o}});var Je=I((Ku,Ur)=>{"use strict";var zp=String.prototype.replace,jp=/%20/g,ft={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ur.exports={default:ft.RFC3986,formatters:{RFC1738:function(e){return zp.call(e,jp,"+")},RFC3986:function(e){return String(e)}},RFC1738:ft.RFC1738,RFC3986:ft.RFC3986}});var xt=I((Vu,wr)=>{"use strict";var Jp=Je(),bt=Object.prototype.hasOwnProperty,V=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Yp=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(V(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Gr=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},Zp=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(V(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!bt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return V(t)&&!V(s)&&(o=Gr(t,a)),V(t)&&V(s)?(s.forEach(function(n,p){if(bt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return bt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},Xp=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},eu=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}},tu=function(t,s,a,o,n){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(l){return"%26%23"+parseInt(l.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||n===Jp.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+C[d];continue}if(d<2048){i=i+(C[192|d>>6]+C[128|d&63]);continue}if(d<55296||d>=57344){i=i+(C[224|d>>12]+C[128|d>>6&63]+C[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=C[240|d>>18]+C[128|d>>12&63]+C[128|d>>6&63]+C[128|d&63]}return i},ru=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return Yp(s),t},su=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},au=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},nu=function(t,s){return[].concat(t,s)},ou=function(t,s){if(V(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};wr.exports={arrayToObject:Gr,assign:Xp,combine:nu,compact:ru,decode:eu,encode:tu,isBuffer:au,isRegExp:su,maybeMap:ou,merge:Zp}});var Hr=I((zu,Mr)=>{"use strict";var Sr=Br(),kt=xt(),ye=Je(),iu=Object.prototype.hasOwnProperty,Wr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,pu=String.prototype.split,uu=Array.prototype.push,Qr=function(e,t){uu.apply(e,w(t)?t:[t])},cu=Date.prototype.toISOString,Lr=ye.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:kt.encode,encodeValuesOnly:!1,format:Lr,formatter:ye.formatters[Lr],indices:!1,serializeDate:function(t){return cu.call(t)},skipNulls:!1,strictNullHandling:!1},du=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},It={},lu=function e(t,s,a,o,n,p,i,r,d,l,h,y,f,q,P,B){for(var m=t,U=B,W=0,z=!1;(U=U.get(It))!==void 0&&!z;){var ne=U.get(t);if(W+=1,typeof ne<"u"){if(ne===W)throw new RangeError("Cyclic object value");z=!0}typeof U.get(It)>"u"&&(W=0)}if(typeof r=="function"?m=r(s,m):m instanceof Date?m=h(m):a==="comma"&&w(m)&&(m=kt.maybeMap(m,function(Xe){return Xe instanceof Date?h(Xe):Xe})),m===null){if(n)return i&&!q?i(s,k.encoder,P,"key",y):s;m=""}if(du(m)||kt.isBuffer(m)){if(i){var oe=q?s:i(s,k.encoder,P,"key",y);if(a==="comma"&&q){for(var _=pu.call(String(m),","),ie="",L=0;L<_.length;++L)ie+=(L===0?"":",")+f(i(_[L],k.encoder,P,"value",y));return[f(oe)+(o&&w(m)&&_.length===1?"[]":"")+"="+ie]}return[f(oe)+"="+f(i(m,k.encoder,P,"value",y))]}return[f(s)+"="+f(String(m))]}var j=[];if(typeof m>"u")return j;var O;if(a==="comma"&&w(m))O=[{value:m.length>0?m.join(",")||null:void 0}];else if(w(r))O=r;else{var J=Object.keys(m);O=d?J.sort(d):J}for(var A=o&&w(m)&&m.length===1?s+"[]":s,S=0;S<O.length;++S){var G=O[S],pe=typeof G=="object"&&typeof G.value<"u"?G.value:m[G];if(!(p&&pe===null)){var xi=w(m)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");B.set(t,W);var Tt=Sr();Tt.set(It,B),Qr(j,e(pe,xi,a,o,n,p,i,r,d,l,h,y,f,q,P,Tt))}}return j},gu=function(t){if(!t)return k;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||k.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=ye.default;if(typeof t.format<"u"){if(!iu.call(ye.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=ye.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Mr.exports=function(e,t){var s=e,a=gu(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Wr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Wr[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;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Sr(),h=0;h<o.length;++h){var y=o[h];a.skipNulls&&s[y]===null||Qr(p,lu(s[y],y,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,l))}var f=p.join(a.delimiter),q=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?q+="utf8=%26%2310003%3B&":q+="utf8=%E2%9C%93&"),f.length>0?q+f:""}});var _r=I((ju,Er)=>{"use strict";var ae=xt(),vt=Object.prototype.hasOwnProperty,yu=Array.isArray,x={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ae.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},mu=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Dr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ru="utf8=%26%2310003%3B",qu="utf8=%E2%9C%93",hu=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===qu?d="utf-8":p[r]===Ru&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],h=l.indexOf("]="),y=h===-1?l.indexOf("="):h+1,f,q;y===-1?(f=s.decoder(l,x.decoder,d,"key"),q=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,y),x.decoder,d,"key"),q=ae.maybeMap(Dr(l.slice(y+1),s),function(P){return s.decoder(P,x.decoder,d,"value")})),q&&s.interpretNumericEntities&&d==="iso-8859-1"&&(q=mu(q)),l.indexOf("[]=")>-1&&(q=yu(q)?[q]:q),vt.call(a,f)?a[f]=ae.combine(a[f],q):a[f]=q}return a},fu=function(e,t,s,a){for(var o=a?t:Dr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);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:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},bu=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&vt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var h=0;a.depth>0&&(r=i.exec(n))!==null&&h<a.depth;){if(h+=1,!a.plainObjects&&vt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),fu(l,s,a,o)}},xu=function(t){if(!t)return x;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"?x.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?x.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:x.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:x.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:x.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:x.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:x.comma,decoder:typeof t.decoder=="function"?t.decoder:x.decoder,delimiter:typeof t.delimiter=="string"||ae.isRegExp(t.delimiter)?t.delimiter:x.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:x.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:x.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:x.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:x.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:x.strictNullHandling}};Er.exports=function(e,t){var s=xu(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?hu(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=bu(i,a[i],s,typeof e=="string");o=ae.merge(o,r,s)}return s.allowSparse===!0?o:ae.compact(o)}});var Fr=I((Ju,Or)=>{"use strict";var Iu=Hr(),ku=_r(),vu=Je();Or.exports={formats:vu,parse:ku,stringify:Iu}});var Bu={};Ti(Bu,{AlreadyExistsError:()=>We,BreakingChangesError:()=>He,Client:()=>At,ForbiddenError:()=>he,InternalError:()=>Re,InvalidDataFormatError:()=>Pe,InvalidIdentifierError:()=>Ae,InvalidJsonSchemaError:()=>ve,InvalidPayloadError:()=>be,InvalidQueryError:()=>Ge,LimitExceededError:()=>Me,MethodNotFoundError:()=>Ie,PayloadTooLargeError:()=>fe,PaymentRequiredError:()=>Se,QuotaExceededError:()=>Qe,RateLimitedError:()=>Le,ReferenceConstraintError:()=>Ce,ReferenceNotFoundError:()=>Ue,RelationConflictError:()=>Te,ResourceLockedConflictError:()=>Be,ResourceNotFoundError:()=>ke,RuntimeError:()=>we,UnauthorizedError:()=>qe,UnknownError:()=>Q,UnsupportedMediaTypeError:()=>xe,UploadFileError:()=>M,axios:()=>Uu,errorFrom:()=>De,isApiError:()=>Ut});module.exports=Ci(Bu);var Uu=F(require("axios"));var Bt=F(require("crypto"));var Bi={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},et=typeof window<"u"&&typeof window.document<"u"?window.crypto:Bt.default;et.getRandomValues||(et=Bi);var R=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=R.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}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,n=Array.from(et.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Ui=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ut=e=>e instanceof R||Ui(e)&&e.isApiError===!0,Q=class extends R{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Re=class extends R{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},qe=class extends R{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},he=class extends R{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},fe=class extends R{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},be=class extends R{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},xe=class extends R{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Ie=class extends R{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},ke=class extends R{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},ve=class extends R{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Pe=class extends R{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ae=class extends R{constructor(t,s,a){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)}},Te=class extends R{constructor(t,s,a){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)}},Ce=class extends R{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Be=class extends R{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Ue=class extends R{constructor(t,s,a){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)}},Ge=class extends R{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},we=class extends R{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},We=class extends R{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},Le=class extends R{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Se=class extends R{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Qe=class extends R{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},Me=class extends R{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},He=class extends R{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Gi={Unknown:Q,Internal:Re,Unauthorized:qe,Forbidden:he,PayloadTooLarge:fe,InvalidPayload:be,UnsupportedMediaType:xe,MethodNotFound:Ie,ResourceNotFound:ke,InvalidJsonSchema:ve,InvalidDataFormat:Pe,InvalidIdentifier:Ae,RelationConflict:Te,ReferenceConstraint:Ce,ResourceLockedConflict:Be,ReferenceNotFound:Ue,InvalidQuery:Ge,Runtime:we,AlreadyExists:We,RateLimited:Le,PaymentRequired:Se,QuotaExceeded:Qe,LimitExceeded:Me,BreakingChanges:He},De=e=>Ut(e)?e:e instanceof Error?new Q(e.message,e):typeof e=="string"?new Q(e):wi(e);function wi(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=Gi[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Q(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Q("An invalid error occurred: "+JSON.stringify(e))}var M=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var Ze=F(require("axios")),Pt=require("browser-or-node"),hi=F(require("http")),fi=F(require("https"));var ue=require("browser-or-node"),Li="https://api.botpress.cloud",Si=6e4,Qi="BP_API_URL",Mi="BP_BOT_ID",Hi="BP_INTEGRATION_ID",Di="BP_WORKSPACE_ID",Ei="BP_TOKEN";function Gt(e){let t=_i(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??Li,o=t.timeout??Si;return{apiUrl:a,timeout:o,withCredentials:ue.isBrowser,headers:s}}function _i(e){return ue.isBrowser?e:ue.isNode?Oi(e):e}function Oi(e){let t={...e,apiUrl:e.apiUrl??process.env[Qi],botId:e.botId??process.env[Mi],integrationId:e.integrationId??process.env[Hi],workspaceId:e.workspaceId??process.env[Di]},s=t.token??process.env[Ei];return s&&(t.token=s),t}var qi=F(require("axios"));var Nr=F(Fr()),Pu=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(Pu),i=Object.fromEntries(p),r=Nr.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var $r=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Vr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jr=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Yr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Xr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var is=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var us=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ds=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 gs=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ms=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 qs=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 fs=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 xs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Ps=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ts=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bs=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Gs=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ws=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ss=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 Ms=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 Ds=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _s=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 Fs=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 $s=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 Vs=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 js=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Ys=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var Xs=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ta=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 sa=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 na=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ia=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 ua=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var da=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ga=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ma=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var qa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var fa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var xa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ka=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Pa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ta=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ba=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ga=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Wa=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,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Sa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,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 Ma=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Da=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken},params:{},body:{}});var _a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Va=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var nn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var pn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var cn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var yn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var In=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 vn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var An=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Cn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Un=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 wn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Ln=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Qn=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var En=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var On=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nn=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Kn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Jn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Zn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var eo=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var ro=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ao=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,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 oo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,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 po=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var co=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var go=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var mo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var qo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fo=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xo=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var ko=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Po=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var To=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Bo=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Go=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}});var Wo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var So=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Mo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Do=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}});var _o=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var Fo=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var $o=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Vo=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 jo=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 Yo=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 Xo=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 ti=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var si=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ni=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ii=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 ui=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var di=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 gi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var mi=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 Ye=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=$r(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Vr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=jr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Yr(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Xr(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=ts(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=ss(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ns(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=is(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=us(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=ds(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=gs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ms(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=qs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=xs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ks(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=Ps(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=Ts(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Bs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Gs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=Ws(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ss(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ms(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ds(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=_s(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Fs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=$s(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Vs(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=js(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ys(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=ta(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=sa(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=na(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=ia(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=ua(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=da(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ga(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ma(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=qa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=fa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=xa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=ka(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=Pa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=Ta(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Ba(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ga(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=Wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=Sa(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ma(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Da(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=_a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Fa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=$a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Va(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=ja(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=Xa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=tn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=sn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=nn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=pn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=cn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=ln(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=yn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=In(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=vn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=An(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=Cn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Un(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=wn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Qn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=En(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=On(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Nn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Kn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=zn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=Zn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=eo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=ro(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=ao(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=oo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=po(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=go(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=qo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=xo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Po(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=To(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=Bo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:o,body:n}=Go(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=So(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=Mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:o,body:n}=Do(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=_o(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=Fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=$o(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Vo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=jo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Yo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=ti(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=si(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=ni(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ii(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ui(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=di(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=gi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=mi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return qi.default.isAxiosError(e)&&e.response?.data?De(e.response.data):De(e)}var bi=100*1024*1024,Tu=bi,Cu=bi,At=class extends Ye{config;constructor(t={}){let s=Gt(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=Ze.default.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Tu,maxContentLength:Cu,httpAgent:Pt.isNode?new hi.default.Agent({keepAlive:!0}):void 0,httpsAgent:Pt.isNode?new fi.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new M("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await Ze.default.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new M(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new M("No content was provided for the file");let r=p instanceof Buffer?p:Buffer.from(p),{file:d}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:r.byteLength});try{await Ze.default.put(d.uploadUrl,r,{maxBodyLength:1/0})}catch(l){throw new M(`Failed to upload file: ${l.message}`,l,d)}return await this.getFile({id:d.id})}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,axios,errorFrom,isApiError});
4
+ `+t.prev}function $e(e,t){var s=lt(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=M(e,o)?t(e[o],e):""}var n=typeof it=="function"?it(e):[],p;if(re){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)M(e,r)&&(s&&String(Number(r))===r&&r<e.length||re&&p["$"+r]instanceof Symbol||(br.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof it=="function")for(var d=0;d<n.length;d++)xr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Cr=I((su,Br)=>{"use strict";var qt=Fe(),se=nr(),jp=Tr(),Jp=qt("%TypeError%"),ze=qt("%WeakMap%",!0),je=qt("%Map%",!0),Yp=se("WeakMap.prototype.get",!0),Zp=se("WeakMap.prototype.set",!0),Xp=se("WeakMap.prototype.has",!0),ec=se("Map.prototype.get",!0),tc=se("Map.prototype.set",!0),rc=se("Map.prototype.has",!0),ht=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},sc=function(e,t){var s=ht(e,t);return s&&s.value},ac=function(e,t,s){var a=ht(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},nc=function(e,t){return!!ht(e,t)};Br.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new Jp("Side channel does not contain "+jp(n))},get:function(n){if(ze&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Yp(t,n)}else if(je){if(s)return ec(s,n)}else if(a)return sc(a,n)},has:function(n){if(ze&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Xp(t,n)}else if(je){if(s)return rc(s,n)}else if(a)return nc(a,n);return!1},set:function(n,p){ze&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new ze),Zp(t,n,p)):je?(s||(s=new je),tc(s,n,p)):(a||(a={key:{},next:null}),ac(a,n,p))}};return o}});var Je=I((au,Ur)=>{"use strict";var oc=String.prototype.replace,ic=/%20/g,ft={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ur.exports={default:ft.RFC3986,formatters:{RFC1738:function(e){return oc.call(e,ic,"+")},RFC3986:function(e){return String(e)}},RFC1738:ft.RFC1738,RFC3986:ft.RFC3986}});var xt=I((nu,wr)=>{"use strict";var pc=Je(),bt=Object.prototype.hasOwnProperty,V=Array.isArray,B=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),cc=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(V(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Gr=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},uc=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(V(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!bt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return V(t)&&!V(s)&&(o=Gr(t,a)),V(t)&&V(s)?(s.forEach(function(n,p){if(bt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return bt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},dc=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},lc=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}},gc=function(t,s,a,o,n){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(l){return"%26%23"+parseInt(l.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||n===pc.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+B[d];continue}if(d<2048){i=i+(B[192|d>>6]+B[128|d&63]);continue}if(d<55296||d>=57344){i=i+(B[224|d>>12]+B[128|d>>6&63]+B[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=B[240|d>>18]+B[128|d>>12&63]+B[128|d>>6&63]+B[128|d&63]}return i},yc=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return cc(s),t},mc=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Rc=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},qc=function(t,s){return[].concat(t,s)},hc=function(t,s){if(V(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};wr.exports={arrayToObject:Gr,assign:dc,combine:qc,compact:yc,decode:lc,encode:gc,isBuffer:Rc,isRegExp:mc,maybeMap:hc,merge:uc}});var Mr=I((ou,Hr)=>{"use strict";var Sr=Cr(),kt=xt(),ye=Je(),fc=Object.prototype.hasOwnProperty,Lr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,bc=String.prototype.split,xc=Array.prototype.push,Qr=function(e,t){xc.apply(e,w(t)?t:[t])},Ic=Date.prototype.toISOString,Wr=ye.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:kt.encode,encodeValuesOnly:!1,format:Wr,formatter:ye.formatters[Wr],indices:!1,serializeDate:function(t){return Ic.call(t)},skipNulls:!1,strictNullHandling:!1},kc=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},It={},vc=function e(t,s,a,o,n,p,i,r,d,l,h,y,f,q,P,C){for(var m=t,U=C,L=0,z=!1;(U=U.get(It))!==void 0&&!z;){var ne=U.get(t);if(L+=1,typeof ne<"u"){if(ne===L)throw new RangeError("Cyclic object value");z=!0}typeof U.get(It)>"u"&&(L=0)}if(typeof r=="function"?m=r(s,m):m instanceof Date?m=h(m):a==="comma"&&w(m)&&(m=kt.maybeMap(m,function(Xe){return Xe instanceof Date?h(Xe):Xe})),m===null){if(n)return i&&!q?i(s,k.encoder,P,"key",y):s;m=""}if(kc(m)||kt.isBuffer(m)){if(i){var oe=q?s:i(s,k.encoder,P,"key",y);if(a==="comma"&&q){for(var _=bc.call(String(m),","),ie="",W=0;W<_.length;++W)ie+=(W===0?"":",")+f(i(_[W],k.encoder,P,"value",y));return[f(oe)+(o&&w(m)&&_.length===1?"[]":"")+"="+ie]}return[f(oe)+"="+f(i(m,k.encoder,P,"value",y))]}return[f(s)+"="+f(String(m))]}var j=[];if(typeof m>"u")return j;var O;if(a==="comma"&&w(m))O=[{value:m.length>0?m.join(",")||null:void 0}];else if(w(r))O=r;else{var J=Object.keys(m);O=d?J.sort(d):J}for(var A=o&&w(m)&&m.length===1?s+"[]":s,S=0;S<O.length;++S){var G=O[S],pe=typeof G=="object"&&typeof G.value<"u"?G.value:m[G];if(!(p&&pe===null)){var Li=w(m)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");C.set(t,L);var Tt=Sr();Tt.set(It,C),Qr(j,e(pe,Li,a,o,n,p,i,r,d,l,h,y,f,q,P,Tt))}}return j},Pc=function(t){if(!t)return k;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||k.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=ye.default;if(typeof t.format<"u"){if(!fc.call(ye.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=ye.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Hr.exports=function(e,t){var s=e,a=Pc(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Lr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Lr[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;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Sr(),h=0;h<o.length;++h){var y=o[h];a.skipNulls&&s[y]===null||Qr(p,vc(s[y],y,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,l))}var f=p.join(a.delimiter),q=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?q+="utf8=%26%2310003%3B&":q+="utf8=%E2%9C%93&"),f.length>0?q+f:""}});var _r=I((iu,Er)=>{"use strict";var ae=xt(),vt=Object.prototype.hasOwnProperty,Ac=Array.isArray,x={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ae.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Tc=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Dr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Bc="utf8=%26%2310003%3B",Cc="utf8=%E2%9C%93",Uc=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Cc?d="utf-8":p[r]===Bc&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],h=l.indexOf("]="),y=h===-1?l.indexOf("="):h+1,f,q;y===-1?(f=s.decoder(l,x.decoder,d,"key"),q=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,y),x.decoder,d,"key"),q=ae.maybeMap(Dr(l.slice(y+1),s),function(P){return s.decoder(P,x.decoder,d,"value")})),q&&s.interpretNumericEntities&&d==="iso-8859-1"&&(q=Tc(q)),l.indexOf("[]=")>-1&&(q=Ac(q)?[q]:q),vt.call(a,f)?a[f]=ae.combine(a[f],q):a[f]=q}return a},Gc=function(e,t,s,a){for(var o=a?t:Dr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);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:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},wc=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&vt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var h=0;a.depth>0&&(r=i.exec(n))!==null&&h<a.depth;){if(h+=1,!a.plainObjects&&vt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),Gc(l,s,a,o)}},Lc=function(t){if(!t)return x;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"?x.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?x.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:x.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:x.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:x.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:x.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:x.comma,decoder:typeof t.decoder=="function"?t.decoder:x.decoder,delimiter:typeof t.delimiter=="string"||ae.isRegExp(t.delimiter)?t.delimiter:x.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:x.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:x.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:x.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:x.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:x.strictNullHandling}};Er.exports=function(e,t){var s=Lc(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Uc(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=wc(i,a[i],s,typeof e=="string");o=ae.merge(o,r,s)}return s.allowSparse===!0?o:ae.compact(o)}});var Fr=I((pu,Or)=>{"use strict";var Wc=Mr(),Sc=_r(),Qc=Je();Or.exports={formats:Qc,parse:Sc,stringify:Wc}});var _c={};Di(_c,{AlreadyExistsError:()=>Le,BreakingChangesError:()=>Me,Client:()=>At,ForbiddenError:()=>he,InternalError:()=>Re,InvalidDataFormatError:()=>Pe,InvalidIdentifierError:()=>Ae,InvalidJsonSchemaError:()=>ve,InvalidPayloadError:()=>be,InvalidQueryError:()=>Ge,LimitExceededError:()=>He,MethodNotFoundError:()=>Ie,PayloadTooLargeError:()=>fe,PaymentRequiredError:()=>Se,QuotaExceededError:()=>Qe,RateLimitedError:()=>We,ReferenceConstraintError:()=>Be,ReferenceNotFoundError:()=>Ue,RelationConflictError:()=>Te,ResourceLockedConflictError:()=>Ce,ResourceNotFoundError:()=>ke,RuntimeError:()=>we,UnauthorizedError:()=>qe,UnknownError:()=>Q,UnsupportedMediaTypeError:()=>xe,UploadFileError:()=>H,axios:()=>Oc,errorFrom:()=>De,isApiError:()=>Ut});module.exports=Ei(_c);var Oc=F(require("axios"));var Ct=F(require("crypto"));var _i={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},et=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ct.default;et.getRandomValues||(et=_i);var R=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=R.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}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,n=Array.from(et.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Oi=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ut=e=>e instanceof R||Oi(e)&&e.isApiError===!0,Q=class extends R{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Re=class extends R{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},qe=class extends R{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},he=class extends R{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},fe=class extends R{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},be=class extends R{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},xe=class extends R{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Ie=class extends R{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},ke=class extends R{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},ve=class extends R{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Pe=class extends R{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ae=class extends R{constructor(t,s,a){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)}},Te=class extends R{constructor(t,s,a){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)}},Be=class extends R{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Ce=class extends R{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Ue=class extends R{constructor(t,s,a){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)}},Ge=class extends R{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},we=class extends R{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},Le=class extends R{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},We=class extends R{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Se=class extends R{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Qe=class extends R{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},He=class extends R{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},Me=class extends R{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Fi={Unknown:Q,Internal:Re,Unauthorized:qe,Forbidden:he,PayloadTooLarge:fe,InvalidPayload:be,UnsupportedMediaType:xe,MethodNotFound:Ie,ResourceNotFound:ke,InvalidJsonSchema:ve,InvalidDataFormat:Pe,InvalidIdentifier:Ae,RelationConflict:Te,ReferenceConstraint:Be,ResourceLockedConflict:Ce,ReferenceNotFound:Ue,InvalidQuery:Ge,Runtime:we,AlreadyExists:Le,RateLimited:We,PaymentRequired:Se,QuotaExceeded:Qe,LimitExceeded:He,BreakingChanges:Me},De=e=>Ut(e)?e:e instanceof Error?new Q(e.message,e):typeof e=="string"?new Q(e):Ni(e);function Ni(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=Fi[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Q(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Q("An invalid error occurred: "+JSON.stringify(e))}var H=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var Ze=F(require("axios")),Pt=require("browser-or-node"),Ui=F(require("http")),Gi=F(require("https"));var ce=require("browser-or-node"),Ki="https://api.botpress.cloud",Vi=6e4,zi="BP_API_URL",ji="BP_BOT_ID",Ji="BP_INTEGRATION_ID",Yi="BP_WORKSPACE_ID",Zi="BP_TOKEN";function Gt(e){let t=Xi(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??Ki,o=t.timeout??Vi;return{apiUrl:a,timeout:o,withCredentials:ce.isBrowser,headers:s}}function Xi(e){return ce.isBrowser?e:ce.isNode?ep(e):e}function ep(e){let t={...e,apiUrl:e.apiUrl??process.env[zi],botId:e.botId??process.env[ji],integrationId:e.integrationId??process.env[Ji],workspaceId:e.workspaceId??process.env[Yi]},s=t.token??process.env[Zi];return s&&(t.token=s),t}var Ci=F(require("axios"));var Nr=F(Fr()),Hc=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(Hc),i=Object.fromEntries(p),r=Nr.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var $r=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Vr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jr=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Yr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Xr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var is=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ds=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 gs=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ms=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 qs=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 fs=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 xs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Ps=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ts=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cs=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Gs=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ls=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ss=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 Hs=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 Ds=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _s=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 Fs=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 $s=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 Vs=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 js=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Ys=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var Xs=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ta=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 sa=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 na=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ia=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 ca=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var da=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ga=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ma=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var qa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var fa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var xa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ka=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Pa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ta=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ca=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ga=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var La=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,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Sa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,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 Ha=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Da=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var _a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Va=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var nn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var pn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var yn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var In=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 vn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var An=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Bn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Un=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 wn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Wn=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Qn=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Mn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var En=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var On=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nn=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Kn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Jn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Zn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var eo=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var ro=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ao=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,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 oo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,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 po=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var uo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var go=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var mo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var qo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fo=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,events:e.events,actions:e.actions,entities:e.entities}});var xo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ko=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Po=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{events:e.events,actions:e.actions,entities:e.entities}});var To=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Co=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Go=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Lo=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var So=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ho=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Do=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var _o=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Fo=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}});var $o=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vo=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var jo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}});var Xo=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var ti=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var si=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ni=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 ii=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 ci=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 di=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 gi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var mi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var qi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var fi=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 xi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ki=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 Pi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ti=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 Ye=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=$r(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Vr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=jr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Yr(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Xr(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=ts(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=ss(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ns(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=is(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=cs(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=ds(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=gs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ms(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=qs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ks(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=Ps(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=Ts(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Cs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Gs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ss(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Hs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ds(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=_s(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Fs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=$s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Vs(t),i=(this.props.toAxiosRequest??c)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=js(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ys(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=ta(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=sa(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=na(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=ia(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=ca(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=da(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ga(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ma(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=qa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=fa(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=xa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=ka(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=Pa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=Ta(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Ca(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ga(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=La(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=Sa(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ha(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Da(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=_a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Fa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=$a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Va(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=ja(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=Xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=tn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=sn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=nn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=pn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=un(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=ln(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=yn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=hn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=bn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=In(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=An(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=Bn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Un(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=wn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Wn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Qn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Mn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=En(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=On(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Nn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Kn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=zn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=Zn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=eo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=ro(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=ao(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=oo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=po(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=uo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=go(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=mo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=qo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createInterface=async t=>{let{path:s,headers:a,query:o,body:n}=fo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterface=async t=>{let{path:s,headers:a,query:o,body:n}=xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:o,body:n}=ko(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Po(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:o,body:n}=To(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:o,body:n}=Co(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=Go(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Lo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=So(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Ho(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=Do(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=_o(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertFile=async t=>{let{path:s,headers:a,query:o,body:n}=Fo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=$o(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Vo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=jo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:o,body:n}=Yo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=ti(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=si(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=ni(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=ii(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=ci(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=di(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=gi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=mi(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=qi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=fi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=xi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ki(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Pi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Ti(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})}};function u(e){return Ci.default.isAxiosError(e)&&e.response?.data?De(e.response.data):De(e)}var wi=100*1024*1024,Dc=wi,Ec=wi,At=class extends Ye{config;constructor(t={}){let s=Gt(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=Ze.default.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Dc,maxContentLength:Ec,httpAgent:Pt.isNode?new Ui.default.Agent({keepAlive:!0}):void 0,httpsAgent:Pt.isNode?new Gi.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new H("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await Ze.default.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new H(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new H("No content was provided for the file");let r=p instanceof Buffer?p:Buffer.from(p),{file:d}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:r.byteLength});try{await Ze.default.put(d.uploadUrl,r,{maxBodyLength:1/0})}catch(l){throw new H(`Failed to upload file: ${l.message}`,l,d)}return await this.getFile({id:d.id})}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,axios,errorFrom,isApiError});
5
5
  //# sourceMappingURL=index.cjs.map