@yuno-payments/dashboard-api-mfe 0.40.0 → 0.40.2
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/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +4 -1
- package/build/cjs/types/lib/http-client/http-client.d.ts +7 -0
- package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +4 -0
- package/build/cjs/types/mutations/connections/connections.mutation.d.ts +4 -0
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/network-tokens/index.d.ts +1 -0
- package/build/cjs/types/queries/network-tokens/network-tokens.query.d.ts +5 -0
- package/build/cjs/types/types/audit/audit.d.ts +3 -2
- package/build/cjs/types/types/connection/connection.d.ts +18 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +4 -1
- package/build/esm/types/lib/http-client/http-client.d.ts +7 -0
- package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +4 -0
- package/build/esm/types/mutations/connections/connections.mutation.d.ts +4 -0
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/network-tokens/index.d.ts +1 -0
- package/build/esm/types/queries/network-tokens/network-tokens.query.d.ts +5 -0
- package/build/esm/types/types/audit/audit.d.ts +3 -2
- package/build/esm/types/types/connection/connection.d.ts +18 -0
- package/build/index.d.ts +35 -3
- package/package.json +26 -26
package/build/esm/index.js
CHANGED
|
@@ -46,7 +46,7 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
46
46
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
47
47
|
* MIT Licensed
|
|
48
48
|
*/
|
|
49
|
-
!function(e){var t,n,a,o=qr,i=u.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!s.test(t[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var a=e.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),a=n&&e.extensions[n[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=i("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=e.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var i=o[e],r=i.extensions;if(r&&r.length){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var u=a.indexOf(o[n[c]].source),l=a.indexOf(i.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}})}(Dr);var Nr=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Mr=function(e){var t=!1;return Nr(function(){t=!0}),function(n,a){t?e(n,a):Nr(function(){e(n,a)})}};var Br=function(e){Object.keys(e.jobs).forEach(Ur.bind(e)),e.jobs={}};function Ur(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Fr=Mr,Wr=Br,Hr=function(e,t,n,a){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=function(e,t,n,a){var o;o=2==e.length?e(n,Fr(a)):e(n,t,Fr(a));return o}(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?Wr(n):n.results[o]=t,a(e,n.results))})};var Gr=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])});return a};var Vr=Br,$r=Mr,Kr=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Vr(this),$r(e)(null,this.results)};var Qr=Hr,Jr=Gr,Xr=Kr,Yr=function(e,t,n){var a=Jr(e);for(;a.index<(a.keyedList||e).length;)Qr(e,t,a,function(e,t){e?n(e,t):0!==Object.keys(a.jobs).length||n(null,a.results)}),a.index++;return Xr.bind(a,n)};var Zr={exports:{}},es=Hr,ts=Gr,ns=Kr;function as(e,t){return e<t?-1:e>t?1:0}Zr.exports=function(e,t,n,a){var o=ts(e,n);return es(e,t,o,function n(i,r){i?a(i,r):(o.index++,o.index<(o.keyedList||e).length?es(e,t,o,n):a(null,o.results))}),ns.bind(o,a)},Zr.exports.ascending=as,Zr.exports.descending=function(e,t){return-1*as(e,t)};var os=Zr.exports,is=os,rs=function(e,t,n){return is(e,t,null,n)};var ss={parallel:Yr,serial:rs,serialOrdered:os},cs=Object,us=Error,ls=EvalError,ps=RangeError,ds=ReferenceError,ms=SyntaxError,hs=TypeError,fs=URIError,gs=Math.abs,ys=Math.floor,vs=Math.max,bs=Math.min,xs=Math.pow,ks=Math.round,ws=Number.isNaN||function(e){return e!=e},_s=Object.getOwnPropertyDescriptor;if(_s)try{_s([],"length")}catch(e){_s=null}var Es=_s,Cs=Object.defineProperty||!1;if(Cs)try{Cs({},"a",{value:1})}catch(e){Cs=!1}var Ss,Rs,Ts,Is,js,As,Os,Ps,Ls,zs,Ds,qs,Ns,Ms,Bs,Us,Fs=Cs;function Ws(){return Rs?Ss:(Rs=1,Ss=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var a in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0})}function Hs(){return As?js:(As=1,js="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Gs(){return Ps?Os:(Ps=1,Os=cs.getPrototypeOf||null)}function Vs(){if(zs)return Ls;zs=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return Ls=function(a){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,r=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n}(arguments,1),s=t(0,o.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,n(r,arguments));return Object(e)===e?e:this}return o.apply(a,n(r,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Ls}function $s(){if(qs)return Ds;qs=1;var e=Vs();return Ds=Function.prototype.bind||e}function Ks(){return Ms?Ns:(Ms=1,Ns=Function.prototype.call)}function Qs(){return Us?Bs:(Us=1,Bs=Function.prototype.apply)}var Js,Xs,Ys,Zs,ec="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,tc=$s(),nc=Qs(),ac=Ks(),oc=ec||tc.call(ac,nc),ic=$s(),rc=hs,sc=Ks(),cc=oc,uc=function(e){if(e.length<1||"function"!=typeof e[0])throw new rc("a function is required");return cc(ic,sc,e)};var lc,pc=Function.prototype.call,dc=Object.prototype.hasOwnProperty,mc=$s().call(pc,dc),hc=cs,fc=us,gc=ls,yc=ps,vc=ds,bc=ms,xc=hs,kc=fs,wc=gs,_c=ys,Ec=vs,Cc=bs,Sc=xs,Rc=ks,Tc=function(e){return ws(e)||0===e?e:e<0?-1:1},Ic=Function,jc=function(e){try{return Ic('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ac=Es,Oc=Fs,Pc=function(){throw new xc},Lc=Ac?function(){try{return Pc}catch(e){try{return Ac(arguments,"callee").get}catch(e){return Pc}}}():Pc,zc=function(){if(Is)return Ts;Is=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ws();return Ts=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Dc=function(){if(Zs)return Ys;Zs=1;var e=Hs(),t=Gs(),n=function(){if(Xs)return Js;Xs=1;var e,t=uc,n=Es;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Js=a&&"function"==typeof a.get?t([a.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return Ys=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),qc=Gs(),Nc=Hs(),Mc=Qs(),Bc=Ks(),Uc={},Fc="undefined"!=typeof Uint8Array&&Dc?Dc(Uint8Array):lc,Wc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?lc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?lc:ArrayBuffer,"%ArrayIteratorPrototype%":zc&&Dc?Dc([][Symbol.iterator]()):lc,"%AsyncFromSyncIteratorPrototype%":lc,"%AsyncFunction%":Uc,"%AsyncGenerator%":Uc,"%AsyncGeneratorFunction%":Uc,"%AsyncIteratorPrototype%":Uc,"%Atomics%":"undefined"==typeof Atomics?lc:Atomics,"%BigInt%":"undefined"==typeof BigInt?lc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?lc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?lc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?lc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fc,"%eval%":eval,"%EvalError%":gc,"%Float16Array%":"undefined"==typeof Float16Array?lc:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?lc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?lc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?lc:FinalizationRegistry,"%Function%":Ic,"%GeneratorFunction%":Uc,"%Int8Array%":"undefined"==typeof Int8Array?lc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?lc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?lc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zc&&Dc?Dc(Dc([][Symbol.iterator]())):lc,"%JSON%":"object"==typeof JSON?JSON:lc,"%Map%":"undefined"==typeof Map?lc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&zc&&Dc?Dc((new Map)[Symbol.iterator]()):lc,"%Math%":Math,"%Number%":Number,"%Object%":hc,"%Object.getOwnPropertyDescriptor%":Ac,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?lc:Promise,"%Proxy%":"undefined"==typeof Proxy?lc:Proxy,"%RangeError%":yc,"%ReferenceError%":vc,"%Reflect%":"undefined"==typeof Reflect?lc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?lc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&zc&&Dc?Dc((new Set)[Symbol.iterator]()):lc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?lc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zc&&Dc?Dc(""[Symbol.iterator]()):lc,"%Symbol%":zc?Symbol:lc,"%SyntaxError%":bc,"%ThrowTypeError%":Lc,"%TypedArray%":Fc,"%TypeError%":xc,"%Uint8Array%":"undefined"==typeof Uint8Array?lc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?lc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?lc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?lc:Uint32Array,"%URIError%":kc,"%WeakMap%":"undefined"==typeof WeakMap?lc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?lc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?lc:WeakSet,"%Function.prototype.call%":Bc,"%Function.prototype.apply%":Mc,"%Object.defineProperty%":Oc,"%Object.getPrototypeOf%":qc,"%Math.abs%":wc,"%Math.floor%":_c,"%Math.max%":Ec,"%Math.min%":Cc,"%Math.pow%":Sc,"%Math.round%":Rc,"%Math.sign%":Tc,"%Reflect.getPrototypeOf%":Nc};if(Dc)try{null.error}catch(e){var Hc=Dc(Dc(e));Wc["%Error.prototype%"]=Hc}var Gc,Vc,$c=function e(t){var n;if("%AsyncFunction%"===t)n=jc("async function () {}");else if("%GeneratorFunction%"===t)n=jc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=jc("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Dc&&(n=Dc(o.prototype))}return Wc[t]=n,n},Kc={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qc=$s(),Jc=mc,Xc=Qc.call(Bc,Array.prototype.concat),Yc=Qc.call(Mc,Array.prototype.splice),Zc=Qc.call(Bc,String.prototype.replace),eu=Qc.call(Bc,String.prototype.slice),tu=Qc.call(Bc,RegExp.prototype.exec),nu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,au=/\\(\\)?/g,ou=function(e,t){var n,a=e;if(Jc(Kc,a)&&(a="%"+(n=Kc[a])[0]+"%"),Jc(Wc,a)){var o=Wc[a];if(o===Uc&&(o=$c(a)),void 0===o&&!t)throw new xc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new bc("intrinsic "+e+" does not exist!")},iu=function(e,t){if("string"!=typeof e||0===e.length)throw new xc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new xc('"allowMissing" argument must be a boolean');if(null===tu(/^%?[^%]*%?$/,e))throw new bc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=eu(e,0,1),n=eu(e,-1);if("%"===t&&"%"!==n)throw new bc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new bc("invalid intrinsic syntax, expected opening `%`");var a=[];return Zc(e,nu,function(e,t,n,o){a[a.length]=n?Zc(o,au,"$1"):t||e}),a}(e),a=n.length>0?n[0]:"",o=ou("%"+a+"%",t),i=o.name,r=o.value,s=!1,c=o.alias;c&&(a=c[0],Yc(n,Xc([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=eu(p,0,1),m=eu(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new bc("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Jc(Wc,i="%"+(a+="."+p)+"%"))r=Wc[i];else if(null!=r){if(!(p in r)){if(!t)throw new xc("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ac&&u+1>=n.length){var h=Ac(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Jc(r,p),r=r[p];l&&!s&&(Wc[i]=r)}}return r};var ru=iu("%Object.defineProperty%",!0),su=function(){if(Vc)return Gc;Vc=1;var e=Ws();return Gc=function(){return e()&&!!Symbol.toStringTag}}()(),cu=mc,uu=hs,lu=su?Symbol.toStringTag:null,pu=Lr,du=r,mu=u,hu=l,fu=p,gu=d.parse,yu=m,vu=s.Stream,bu=h,xu=Dr,ku=ss,wu=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new uu("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!lu||!n&&cu(e,lu)||(ru?ru(e,lu,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[lu]=t)},_u=mc,Eu=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function Cu(e){if(!(this instanceof Cu))return new Cu(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],pu.call(this),e=e||{})this[t]=e[t]}du.inherits(Cu,pu),Cu.LINE_BREAK="\r\n",Cu.DEFAULT_CONTENT_TYPE="application/octet-stream",Cu.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var a=pu.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),i=this._multiPartFooter();a(o),a(t),a(i),this._trackLength(o,t,n)}},Cu.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=Number(n.knownLength):Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Cu.LINE_BREAK.length,t&&(t.path||t.readable&&_u(t,"httpVersion")||t instanceof vu)&&(n.knownLength||this._valuesToMeasure.push(t))},Cu.prototype._lengthRetriever=function(e,t){_u(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):yu.stat(e.path,function(n,a){if(n)t(n);else{var o=a.size-(e.start?e.start:0);t(null,o)}}):_u(e,"httpVersion")?t(null,Number(e.headers["content-length"])):_u(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},Cu.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,o=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&Eu(s,n.header),s)if(_u(s,c)){if(null==(a=s[c]))continue;Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+Cu.LINE_BREAK)}return"--"+this.getBoundary()+Cu.LINE_BREAK+r+Cu.LINE_BREAK},Cu.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=mu.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=mu.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&_u(e,"httpVersion")&&(n=mu.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},Cu.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=xu.lookup(e.name)),!n&&e&&e.path&&(n=xu.lookup(e.path)),!n&&e&&e.readable&&_u(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=xu.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=Cu.DEFAULT_CONTENT_TYPE),n},Cu.prototype._multiPartFooter=function(){return function(e){var t=Cu.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Cu.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Cu.LINE_BREAK},Cu.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)_u(e,t)&&(n[t.toLowerCase()]=e[t]);return n},Cu.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},Cu.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Cu.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n<a;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(Cu.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Cu.prototype._generateBoundary=function(){this._boundary="--------------------------"+bu.randomBytes(12).toString("hex")},Cu.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Cu.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Cu.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?ku.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,a){n?e(n):(a.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},Cu.prototype.submit=function(e,t){var n,a,o={method:"post"};return"string"==typeof e?(e=gu(e),a=Eu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(a=Eu(e,o)).port||(a.port="https:"===a.protocol?443:80),a.headers=this.getHeaders(e.headers),n="https:"===a.protocol?fu.request(a):hu.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var o,i=function(e,a){return n.removeListener("error",i),n.removeListener("response",o),t.call(this,e,a)};o=i.bind(this,null),n.on("error",i),n.on("response",o)}}.bind(this)),n},Cu.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Cu.prototype.toString=function(){return"[object FormData]"},wu(Cu,"FormData");var Su=Rr(Cu);function Ru(e){return wr.isPlainObject(e)||wr.isArray(e)}function Tu(e){return wr.endsWith(e,"[]")?e.slice(0,-2):e}function Iu(e,t,n){return e?e.concat(t).map(function(e,t){return e=Tu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ju=wr.toFlatObject(wr,{},null,function(e){return/^is[A-Z]/.test(e)});function Au(e,t,n){if(!wr.isObject(e))throw new TypeError("target must be an object");t=t||new(Su||FormData);const a=(n=wr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!wr.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wr.isSpecCompliantForm(t);if(!wr.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(wr.isDate(e))return e.toISOString();if(wr.isBoolean(e))return e.toString();if(!s&&wr.isBlob(e))throw new _r("Blob is not supported. Use a Buffer instead.");return wr.isArrayBuffer(e)||wr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(wr.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(wr.isArray(e)&&function(e){return wr.isArray(e)&&!e.some(Ru)}(e)||(wr.isFileList(e)||wr.endsWith(n,"[]"))&&(s=wr.toArray(e)))return n=Tu(n),s.forEach(function(e,a){!wr.isUndefined(e)&&null!==e&&t.append(!0===r?Iu([n],a,i):null===r?n:n+"[]",c(e))}),!1;return!!Ru(e)||(t.append(Iu(o,n,i),c(e)),!1)}const l=[],p=Object.assign(ju,{defaultVisitor:u,convertValue:c,isVisitable:Ru});if(!wr.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!wr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),wr.forEach(n,function(n,i){!0===(!(wr.isUndefined(n)||null===n)&&o.call(t,n,wr.isString(i)?i.trim():i,a,p))&&e(n,a?a.concat(i):[i])}),l.pop()}}(e),t}function Ou(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Pu(e,t){this._pairs=[],e&&Au(e,this,t)}const Lu=Pu.prototype;function zu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Du(e,t,n){if(!t)return e;const a=n&&n.encode||zu;wr.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):wr.isURLSearchParams(t)?t.toString():new Pu(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Lu.append=function(e,t){this._pairs.push([e,t])},Lu.toString=function(e){const t=e?function(t){return e.call(this,t,Ou)}:Ou;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var qu=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Nu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mu=d.URLSearchParams;const Bu="abcdefghijklmnopqrstuvwxyz",Uu="0123456789",Fu={DIGIT:Uu,ALPHA:Bu,ALPHA_DIGIT:Bu+Bu.toUpperCase()+Uu};var Wu={isNode:!0,classes:{URLSearchParams:Mu,FormData:Su,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Fu,generateString:(e=16,t=Fu.ALPHA_DIGIT)=>{let n="";const{length:a}=t,o=new Uint32Array(e);h.randomFillSync(o);for(let i=0;i<e;i++)n+=t[o[i]%a];return n},protocols:["http","https","file","data"]};const Hu="undefined"!=typeof window&&"undefined"!=typeof document,Gu="object"==typeof navigator&&navigator||void 0,Vu=Hu&&(!Gu||["ReactNative","NativeScript","NS"].indexOf(Gu.product)<0),$u="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ku=Hu&&window.location.href||"http://localhost";var Qu={...Object.freeze({__proto__:null,hasBrowserEnv:Hu,hasStandardBrowserEnv:Vu,hasStandardBrowserWebWorkerEnv:$u,navigator:Gu,origin:Ku}),...Wu};function Ju(e){function t(e,n,a,o){let i=e[o++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=o>=e.length;if(i=!i&&wr.isArray(a)?a.length:i,s)return wr.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!r;a[i]&&wr.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],o)&&wr.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}(a[i])),!r}if(wr.isFormData(e)&&wr.isFunction(e.entries)){const n={};return wr.forEachEntry(e,(e,a)=>{t(function(e){return wr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null}const Xu={transitional:Nu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=wr.isObject(e);o&&wr.isHTMLForm(e)&&(e=new FormData(e));if(wr.isFormData(e))return a?JSON.stringify(Ju(e)):e;if(wr.isArrayBuffer(e)||wr.isBuffer(e)||wr.isStream(e)||wr.isFile(e)||wr.isBlob(e)||wr.isReadableStream(e))return e;if(wr.isArrayBufferView(e))return e.buffer;if(wr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Au(e,new Qu.classes.URLSearchParams,{visitor:function(e,t,n,a){return Qu.isNode&&wr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=wr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Au(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),function(e,t,n){if(wr.isString(e))try{return(t||JSON.parse)(e),wr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xu.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(wr.isResponse(e)||wr.isReadableStream(e))return e;if(e&&wr.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw _r.from(e,_r.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qu.classes.FormData,Blob:Qu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wr.forEach(["delete","get","head","post","put","patch"],e=>{Xu.headers[e]={}});var Yu=Xu;const Zu=wr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const el=Symbol("internals");function tl(e){return e&&String(e).trim().toLowerCase()}function nl(e){return!1===e||null==e?e:wr.isArray(e)?e.map(nl):String(e)}function al(e,t,n,a,o){return wr.isFunction(a)?a.call(this,t,n):(o&&(t=n),wr.isString(t)?wr.isString(a)?-1!==t.indexOf(a):wr.isRegExp(a)?a.test(t):void 0:void 0)}class ol{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(e,t,n){const o=tl(t);if(!o)throw new Error("header name must be a non-empty string");const i=wr.findKey(a,o);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=nl(e))}const i=(e,t)=>wr.forEach(e,(e,n)=>o(e,n,t));if(wr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(wr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,a,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),a=e.substring(o+1).trim(),!n||t[n]&&Zu[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(wr.isObject(e)&&wr.isIterable(e)){let n,a,o={};for(const t of e){if(!wr.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[a=t[0]]=(n=o[a])?wr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=tl(e)){const n=wr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(wr.isFunction(t))return t.call(this,e,n);if(wr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tl(e)){const n=wr.findKey(this,e);return!(!n||void 0===this[n]||t&&!al(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function o(e){if(e=tl(e)){const o=wr.findKey(n,e);!o||t&&!al(0,n[o],o,t)||(delete n[o],a=!0)}}return wr.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const o=t[n];e&&!al(0,this[o],o,e,!0)||(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return wr.forEach(this,(a,o)=>{const i=wr.findKey(n,o);if(i)return t[i]=nl(a),void delete t[o];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();r!==o&&delete t[o],t[r]=nl(a),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return wr.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&wr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[el]=this[el]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=tl(e);t[a]||(!function(e,t){const n=wr.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,o){return this[a].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[a]=!0)}return wr.isArray(e)?e.forEach(a):a(e),this}}ol.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wr.reduceDescriptors(ol.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),wr.freezeMethods(ol);var il=ol;function rl(e,t){const n=this||Yu,a=t||n,o=il.from(a.headers);let i=a.data;return wr.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sl(e){return!(!e||!e.__CANCEL__)}function cl(e,t,n){_r.call(this,null==e?"canceled":e,_r.ERR_CANCELED,t,n),this.name="CanceledError"}function ul(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ll(e,t,n){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}wr.inherits(cl,_r,{__CANCEL__:!0});var pl={},dl=d.parse,ml={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},hl=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function fl(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}pl.getProxyForUrl=function(e){var t="string"==typeof e?dl(e):e||{},n=t.protocol,a=t.host,o=t.port;if("string"!=typeof a||!a||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(fl("npm_config_no_proxy")||fl("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),o=a?a[1]:n,i=a?parseInt(a[2]):0;return!(!i||i===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!hl.call(e,o)):e!==o)})}(a=a.replace(/:\d*$/,""),o=parseInt(o)||ml[n]||0))return"";var i=fl("npm_config_"+n+"_proxy")||fl(n+"_proxy")||fl("npm_config_proxy")||fl("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var gl,yl,vl,bl,xl,kl={exports:{}},wl={exports:{}},_l={exports:{}};function El(){if(yl)return gl;yl=1;var e=1e3,t=60*e,n=60*t,a=24*n,o=7*a,i=365.25*a;function r(e,t,n,a){var o=t>=1.5*n;return Math.round(e/n)+" "+a+(o?"s":"")}return gl=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(r){if((r=String(r)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(o){var i=Math.abs(o);if(i>=a)return r(o,i,a,"day");if(i>=n)return r(o,i,n,"hour");if(i>=t)return r(o,i,t,"minute");if(i>=e)return r(o,i,e,"second");return o+" ms"}(s):function(o){var i=Math.abs(o);if(i>=a)return Math.round(o/a)+"d";if(i>=n)return Math.round(o/n)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},gl}function Cl(){if(bl)return vl;return bl=1,vl=function(e){function t(e){let a,o,i,r=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(a||o);n.diff=i,n.prev=a,n.curr=o,a=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,o)=>{if("%%"===a)return"%";r++;const i=t.formatters[o];if("function"==typeof i){const t=e[r];a=i.call(n,t),e.splice(r,1),r--}return a}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function a(e,t){let n=0,a=0,o=-1,i=0;for(;n<e.length;)if(a<t.length&&(t[a]===e[n]||"*"===t[a]))"*"===t[a]?(o=a,i=n,a++):(n++,a++);else{if(-1===o)return!1;a=o+1,i++,n=i}for(;a<t.length&&"*"===t[a];)a++;return a===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(a(e,n))return!1;for(const n of t.names)if(a(e,n))return!0;return!1},t.humanize=El(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},vl}var Sl,Rl,Tl,Il,jl,Al,Ol,Pl={exports:{}};function Ll(){return Rl?Sl:(Rl=1,Sl=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),o=t.indexOf("--");return-1!==a&&(-1===o||a<o)})}function zl(){return jl||(jl=1,function(e,t){const n=g,a=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:a,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),i=` ${o};1m${a} [0m`;n[0]=i+n[0].split("\n").join("\n"+i),n.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=function(){if(Il)return Tl;Il=1;const e=y,t=g,n=Ll(),{env:a}=process;let o;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!i&&void 0===o)return 0;const r=o||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?o=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=1),"FORCE_COLOR"in a&&(o="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),Tl={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},Tl}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e},{}),e.exports=Cl()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(Pl,Pl.exports)),Pl.exports}function Dl(){return Al||(Al=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?wl.exports=(xl||(xl=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Cl()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(_l,_l.exports)),_l.exports):wl.exports=zl()),wl.exports}var ql,Nl,Ml,Bl=d,Ul=Bl.URL,Fl=l,Wl=p,Hl=s.Writable,Gl=f,Vl=function(){if(!Ol){try{Ol=Dl()("follow-redirects")}catch(e){}"function"!=typeof Ol&&(Ol=function(){})}Ol.apply(null,arguments)};ql="undefined"!=typeof process,Nl="undefined"!=typeof window&&"undefined"!=typeof document,Ml=mp(Error.captureStackTrace),ql||!Nl&&Ml||console.warn("The follow-redirects package should be excluded from browser builds.");var $l=!1;try{Gl(new Ul(""))}catch(Oa){$l="ERR_INVALID_URL"===Oa.code}var Kl=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ql=["abort","aborted","connect","error","socket","timeout"],Jl=Object.create(null);Ql.forEach(function(e){Jl[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}});var Xl=lp("ERR_INVALID_URL","Invalid URL",TypeError),Yl=lp("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Zl=lp("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Yl),ep=lp("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),tp=lp("ERR_STREAM_WRITE_AFTER_END","write after end"),np=Hl.prototype.destroy||ip;function ap(e,t){Hl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof Yl?e:new Yl({cause:e}))}},this._performRequest()}function op(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(a){var o=a+":",i=n[o]=e[a],r=t[a]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,a,i){var r;return r=e,Ul&&r instanceof Ul?e=cp(e):dp(e)?e=cp(rp(e)):(i=a,a=sp(e),e={protocol:o}),mp(a)&&(i=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,dp(a.host)||dp(a.hostname)||(a.hostname="::1"),Gl.equal(a.protocol,o,"protocol mismatch"),Vl("options",a),new ap(a,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=r.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})}),t}function ip(){}function rp(e){var t;if($l)t=new Ul(e);else if(!dp((t=sp(Bl.parse(e))).protocol))throw new Xl({input:e});return t}function sp(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Xl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Xl({input:e.href||e});return e}function cp(e,t){var n=t||{};for(var a of Kl)n[a]=e[a];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function up(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function lp(e,t,n){function a(n){mp(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function pp(e,t){for(var n of Ql)e.removeListener(n,Jl[n]);e.on("error",ip),e.destroy(t)}function dp(e){return"string"==typeof e||e instanceof String}function mp(e){return"function"==typeof e}ap.prototype=Object.create(Hl.prototype),ap.prototype.abort=function(){pp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},ap.prototype.destroy=function(e){return pp(this._currentRequest,e),np.call(this,e),this},ap.prototype.write=function(e,t,n){if(this._ending)throw new tp;if(!dp(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;mp(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new ep),this.abort()):n&&n()},ap.prototype.end=function(e,t,n){if(mp(e)?(n=e,e=t=null):mp(t)&&(n=t,t=null),e){var a=this,o=this._currentRequest;this.write(e,t,function(){a._ended=!0,o.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},ap.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},ap.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},ap.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),i()},e),a(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),n.removeListener("close",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",a),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ap.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ap.prototype,e,{get:function(){return this._currentRequest[e]}})}),ap.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},ap.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(a._redirectable=this,Ql))a.on(o,Jl[o]);if(this._currentUrl=/^\//.test(this._options.path)?Bl.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(a===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];a.finished||a.write(n.data,n.encoding,e)}else r._ended&&a.end()}()}},ap.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,a=e.headers.location;if(!a||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(pp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Zl;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],up(/^content-/i,this._options.headers));var r,s,c=up(/^host$/i,this._options.headers),u=rp(this._currentUrl),l=c||u.host,p=/^\w+:/.test(a)?this._currentUrl:Bl.format(Object.assign(u,{host:l})),d=(r=a,s=p,$l?new Ul(r,s):rp(Bl.resolve(s,r)));if(Vl("redirecting to",d.href),this._isRedirect=!0,cp(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Gl(dp(e)&&dp(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&up(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),mp(o)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};o(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},kl.exports=op({http:Fl,https:Wl}),kl.exports.wrap=op;var hp=Rr(kl.exports);const fp="1.12.2";function gp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const yp=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const vp=Symbol("internals");class bp extends s.Transform{constructor(e){super({readableHighWaterMark:(e=wr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!wr.isUndefined(t[e]))).chunkSize});const t=this[vp]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[vp];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this[vp],o=a.maxRate,i=this.readableHighWaterMark,r=a.timeWindow,s=o/(1e3/r),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);a.bytesSeen+=n,a.bytes+=n,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(t):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(o){const e=Date.now();(!a.ts||(m=e-a.ts)>=r)&&(a.ts=e,l=s-a.bytes,a.bytes=l<0?-l:0,m=0),l=s-a.bytes}if(o){if(l<=0)return setTimeout(()=>{t(null,e)},r-m);l<d&&(d=l)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),u(e,p?()=>{process.nextTick(t,null,p)}:t)};l(e,function e(t,a){if(t)return n(t);a?l(a,e):n(null)})}}var xp=bp;const{asyncIterator:kp}=Symbol;var wp=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kp]?yield*e[kp]():yield e};const _p=Qu.ALPHABET.ALPHA_DIGIT+"-_",Ep="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Cp="\r\n",Sp=Ep.encode(Cp);class Rp{constructor(e,t){const{escapeName:n}=this.constructor,a=wr.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Cp}`;a?t=Ep.encode(String(t).replace(/\r?\n|\r\n?/g,Cp)):o+=`Content-Type: ${t.type||"application/octet-stream"}${Cp}`,this.headers=Ep.encode(o+Cp),this.contentLength=a?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;wr.isTypedArray(e)?yield e:yield*wp(e),yield Sp}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var Tp=(e,t,n)=>{const{tag:a="form-data-boundary",size:o=25,boundary:i=a+"-"+Qu.generateString(o,_p)}=n||{};if(!wr.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const r=Ep.encode("--"+i+Cp),s=Ep.encode("--"+i+"--"+Cp);let u=s.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new Rp(e,t);return u+=n.size,n});u+=r.byteLength*l.length,u=wr.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),c.from(async function*(){for(const e of l)yield r,yield*e.encode();yield s}())};class Ip extends s.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}var jp=Ip;var Ap=(e,t)=>wr.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then(e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}},a)}:e;const Op=(e,t,n=3)=>{let a=0;const o=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=a[r];o||(o=c),n[i]=s,a[i]=c;let l=r,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,a,o=0,i=1e3/t;const r=(t,i=Date.now())=>{o=i,n=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?r(e,t):(n=e,a||(a=setTimeout(()=>{a=null,r(n)},i-s)))},()=>n&&r(n)]}(n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-a,c=o(s);a=i;e({loaded:i,total:r,progress:r?i/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&i<=r?(r-i)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})},n)},Pp=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Lp=e=>(...t)=>wr.asap(()=>e(...t));const zp={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Dp={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},qp=wr.isFunction(v.createBrotliDecompress),{http:Np,https:Mp}=hp,Bp=/https:?/,Up=Qu.protocols.map(e=>e+":"),Fp=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Wp(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Hp(e,t,n){let a=t;if(!a&&!1!==a){const e=pl.getProxyForUrl(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Hp(e,t,e.href)}}const Gp="undefined"!=typeof process&&"process"===wr.kindOf(process),Vp=(e,t)=>(({address:e,family:t})=>{if(!wr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(wr.isObject(e)?e:{address:e,family:t});var $p=Gp&&function(e){return t=async function(t,n,a){let{data:o,lookup:i,family:c}=e;const{responseType:u,responseEncoding:d}=e,m=e.method.toUpperCase();let h,f,g=!1;if(i){const e=Ap(i,e=>wr.isArray(e)?e:[e]);i=(t,n,a)=>{e(t,n,(e,t,o)=>{if(e)return a(e);const i=wr.isArray(t)?t.map(e=>Vp(e)):[Vp(t,o)];n.all?a(e,i):a(e,i[0].address,i[0].family)})}}const y=new b,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(k),e.signal&&e.signal.removeEventListener("abort",k),y.removeAllListeners()};function k(t){y.emit("abort",!t||t.type?new cl(null,e,f):t)}a((e,t)=>{h=!0,t&&(g=!0,x())}),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(k),e.signal&&(e.signal.aborted?k():e.signal.addEventListener("abort",k)));const w=ll(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,Qu.hasBrowserEnv?Qu.origin:void 0),E=_.protocol||Up[0];if("data:"===E){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let e=a.length;const t=a.length;for(let n=0;n<t;n++)if(37===a.charCodeAt(n)&&n+2<t){const t=a.charCodeAt(n+1),o=a.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===a.charCodeAt(e-2)&&51===a.charCodeAt(e-1)&&(68===a.charCodeAt(e)||100===a.charCodeAt(e));o>=0&&(61===a.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===a.charCodeAt(o)||i(o))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(a,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e))}let a;if("GET"!==m)return ul(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||Qu.classes.Blob,o=gp(e);if(void 0===t&&a&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=yp.exec(e);if(!n)throw new _r("Invalid URL",_r.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!a)throw new _r("Blob is not supported",_r.ERR_NOT_SUPPORT);return new a([c],{type:i})}return c}throw new _r("Unsupported protocol "+o,_r.ERR_NOT_SUPPORT)}(e.url,"blob"===u,{Blob:e.env&&e.env.Blob})}catch(t){throw _r.from(t,_r.ERR_BAD_REQUEST,e)}return"text"===u?(a=a.toString(d),d&&"utf8"!==d||(a=wr.stripBOM(a))):"stream"===u&&(a=s.Readable.from(a)),ul(t,n,{data:a,status:200,statusText:"OK",headers:new il,config:e})}if(-1===Up.indexOf(E))return n(new _r("Unsupported protocol "+E,_r.ERR_BAD_REQUEST,e));const C=il.from(e.headers).normalize();C.set("User-Agent","axios/"+fp,!1);const{onUploadProgress:S,onDownloadProgress:R}=e,T=e.maxRate;let I,j;if(wr.isSpecCompliantForm(o)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);o=Tp(o,e=>{C.set(e)},{tag:`axios-${fp}-boundary`,boundary:e&&e[1]||void 0})}else if(wr.isFormData(o)&&wr.isFunction(o.getHeaders)){if(C.set(o.getHeaders()),!C.hasContentLength())try{const e=await r.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(wr.isBlob(o)||wr.isFile(o))o.size&&C.setContentType(o.type||"application/octet-stream"),C.setContentLength(o.size||0),o=s.Readable.from(wp(o));else if(o&&!wr.isStream(o)){if(Buffer.isBuffer(o));else if(wr.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!wr.isString(o))return n(new _r("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",_r.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(C.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return n(new _r("Request body larger than maxBodyLength limit",_r.ERR_BAD_REQUEST,e))}const A=wr.toFiniteNumber(C.getContentLength());let O,P;wr.isArray(T)?(I=T[0],j=T[1]):I=j=T,o&&(S||I)&&(wr.isStream(o)||(o=s.Readable.from(o,{objectMode:!1})),o=s.pipeline([o,new xp({maxRate:wr.toFiniteNumber(I)})],wr.noop),S&&o.on("progress",Fp(o,Pp(A,Op(Lp(S),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{P=Du(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}C.set("Accept-Encoding","gzip, compress, deflate"+(qp?", br":""),!1);const L={path:P,method:m,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:c,beforeRedirect:Wp,beforeRedirects:{}};let z;!wr.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,L.port=_.port,Hp(L,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+L.path));const D=Bp.test(L.protocol);if(L.agent=D?e.httpsAgent:e.httpAgent,e.transport?z=e.transport:0===e.maxRedirects?z=D?p:l:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),z=D?Mp:Np),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=z.request(L,function(a){if(f.destroyed)return;const o=[a],i=+a.headers["content-length"];if(R||j){const e=new xp({maxRate:wr.toFiniteNumber(j)});R&&e.on("progress",Fp(e,Pp(i,Op(Lp(R),!0,3)))),o.push(e)}let r=a;const c=a.req||f;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==m&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"deflate":o.push(new jp),o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"br":qp&&(o.push(v.createBrotliDecompress(Dp)),delete a.headers["content-encoding"])}r=o.length>1?s.pipeline(o,wr.noop):o[0];const l=s.finished(r,()=>{l(),x()}),p={status:a.statusCode,statusText:a.statusMessage,headers:new il(a.headers),config:e,request:c};if("stream"===u)p.data=r,ul(t,n,p);else{const a=[];let o=0;r.on("data",function(t){a.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(g=!0,r.destroy(),n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e,c)))}),r.on("aborted",function(){if(g)return;const t=new _r("stream has been aborted",_r.ERR_BAD_RESPONSE,e,c);r.destroy(t),n(t)}),r.on("error",function(t){f.destroyed||n(_r.from(t,null,e,c))}),r.on("end",function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==u&&(e=e.toString(d),d&&"utf8"!==d||(e=wr.stripBOM(e))),p.data=e}catch(t){return n(_r.from(t,null,e,p.request,p))}ul(t,n,p)})}y.once("abort",e=>{r.destroyed||(r.emit("error",e),r.destroy())})}),y.once("abort",e=>{n(e),f.destroy(e)}),f.on("error",function(t){n(_r.from(t,null,e,f))}),f.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new _r("error trying to parse `config.timeout` to int",_r.ERR_BAD_OPTION_VALUE,e,f));f.setTimeout(t,function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Nu;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _r(t,a.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),k()})}if(wr.isStream(o)){let t=!1,n=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{n=!0,f.destroy(e)}),o.on("close",()=>{t||n||k(new cl("Request stream has been aborted",e,f))}),o.pipe(f)}else f.end(o)},new Promise((e,n)=>{let a,o;const i=(e,t)=>{o||(o=!0,a&&a(e,t))},r=e=>{i(e,!0),n(e)};t(t=>{i(t),e(t)},r,e=>a=e).catch(r)});var t},Kp=Qu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qu.origin),Qu.navigator&&/(msie|trident)/i.test(Qu.navigator.userAgent)):()=>!0,Qp=Qu.hasStandardBrowserEnv?{write(e,t,n,a,o,i){const r=[e+"="+encodeURIComponent(t)];wr.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),wr.isString(a)&&r.push("path="+a),wr.isString(o)&&r.push("domain="+o),!0===i&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Jp=e=>e instanceof il?{...e}:e;function Xp(e,t){t=t||{};const n={};function a(e,t,n,a){return wr.isPlainObject(e)&&wr.isPlainObject(t)?wr.merge.call({caseless:a},e,t):wr.isPlainObject(t)?wr.merge({},t):wr.isArray(t)?t.slice():t}function o(e,t,n,o){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e,0,o):a(e,t,0,o)}function i(e,t){if(!wr.isUndefined(t))return a(void 0,t)}function r(e,t){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,o,i){return i in t?a(n,o):i in e?a(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t,n)=>o(Jp(e),Jp(t),0,!0)};return wr.forEach(Object.keys({...e,...t}),function(a){const i=c[a]||o,r=i(e[a],t[a],a);wr.isUndefined(r)&&i!==s||(n[a]=r)}),n}var Yp=e=>{const t=Xp({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=il.from(r),t.url=Du(ll(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),wr.isFormData(n))if(Qu.hasStandardBrowserEnv||Qu.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(wr.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&r.set(e,n)})}if(Qu.hasStandardBrowserEnv&&(a&&wr.isFunction(a)&&(a=a(t)),a||!1!==a&&Kp(t.url))){const e=o&&i&&Qp.read(i);e&&r.set(o,e)}return t};var Zp="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=Yp(e);let o=a.data;const i=il.from(a.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=a;function h(){u&&u(),l&&l(),a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const a=il.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ul(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new _r("Request aborted",_r.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const a=new _r(t&&t.message?t.message:"Network Error",_r.ERR_NETWORK,e,f);a.event=t||null,n(a),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const o=a.transitional||Nu;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new _r(t,o.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),f=null},void 0===o&&i.setContentType(null),"setRequestHeader"in f&&wr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),wr.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),p&&"json"!==p&&(f.responseType=a.responseType),m&&([c,l]=Op(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=Op(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(r=t=>{f&&(n(!t||t.type?new cl(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const y=gp(a.url);y&&-1===Qu.protocols.indexOf(y)?n(new _r("Unsupported protocol "+y+":",_r.ERR_BAD_REQUEST,e)):f.send(o||null)})};var ed=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;a.abort(t instanceof _r?t:new cl(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=a;return s.unsubscribe=()=>wr.asap(r),s}};const td=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,o=0;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},nd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ad=(e,t,n,a)=>{const o=async function*(e,t){for await(const n of nd(e))yield*td(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await o.next();if(t)return s(),void e.close();let i=a.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:od}=wr,id=(({Request:e,Response:t})=>({Request:e,Response:t}))(wr.global),{ReadableStream:rd,TextEncoder:sd}=wr.global,cd=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=e=>{e=wr.merge.call({skipUndefined:!0},id,e);const{fetch:t,Request:n,Response:a}=e,o=t?od(t):"function"==typeof fetch,i=od(n),r=od(a);if(!o)return!1;const s=o&&od(rd),c=o&&("function"==typeof sd?(e=>t=>e.encode(t))(new sd):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&cd(()=>{let e=!1;const t=new n(Qu.origin,{body:new rd,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=r&&s&&cd(()=>wr.isReadableStream(new a("").body)),p={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let a=t&&t[e];if(a)return a.call(t);throw new _r(`Response type '${e}' is not supported`,_r.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const a=wr.toFiniteNumber(e.getContentLength());return null==a?(async e=>{if(null==e)return 0;if(wr.isBlob(e))return e.size;if(wr.isSpecCompliantForm(e)){const t=new n(Qu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return wr.isArrayBufferView(e)||wr.isArrayBuffer(e)?e.byteLength:(wr.isURLSearchParams(e)&&(e+=""),wr.isString(e)?(await c(e)).byteLength:void 0)})(t):a};return async e=>{let{url:o,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:x}=Yp(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let w=ed([c,m&&m.toAbortSignal()],h),_=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(g&&u&&"get"!==r&&"head"!==r&&0!==(C=await d(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(wr.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Pp(C,Op(Lp(g)));s=ad(t.body,65536,e,n)}}wr.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...x,signal:w,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};_=i&&new n(o,c);let m=await(i?k(_,x):k(o,c));const h=l&&("stream"===y||"response"===y);if(l&&(f||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=wr.toFiniteNumber(m.headers.get("content-length")),[n,o]=f&&Pp(t,Op(Lp(f),!0))||[];m=new a(ad(m.body,65536,n,()=>{o&&o(),E&&E()}),e)}y=y||"text";let S=await p[wr.findKey(p,y)||"text"](m,e);return!h&&E&&E(),await new Promise((t,n)=>{ul(t,n,{data:S,headers:il.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:_})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,_),{cause:t.cause||t});throw _r.from(t,t&&t.code,e,_)}}},ld=new Map,pd=e=>{let t=e?e.env:{};const{fetch:n,Request:a,Response:o}=t,i=[a,o,n];let r,s,c=i.length,u=ld;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:ud(t)),u=s;return s};pd();const dd={http:$p,xhr:Zp,fetch:{get:pd}};wr.forEach(dd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const md=e=>`- ${e}`,hd=e=>wr.isFunction(e)||null===e||!1===e;var fd=(e,t)=>{e=wr.isArray(e)?e:[e];const{length:n}=e;let a,o;const i={};for(let r=0;r<n;r++){let n;if(a=e[r],o=a,!hd(a)&&(o=dd[(n=String(a)).toLowerCase()],void 0===o))throw new _r(`Unknown adapter '${n}'`);if(o&&(wr.isFunction(o)||(o=o.get(t))))break;i[n||"#"+r]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new _r("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(md).join("\n"):" "+md(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function gd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function yd(e){gd(e),e.headers=il.from(e.headers),e.data=rl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fd(e.adapter||Yu.adapter,e)(e).then(function(t){return gd(e),t.data=rl.call(e,e.transformResponse,t),t.headers=il.from(t.headers),t},function(t){return sl(t)||(gd(e),t&&t.response&&(t.response.data=rl.call(e,e.transformResponse,t.response),t.response.headers=il.from(t.response.headers))),Promise.reject(t)})}const vd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const bd={};vd.transitional=function(e,t,n){function a(e,t){return"[Axios v"+fp+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _r(a(o," has been removed"+(t?" in "+t:"")),_r.ERR_DEPRECATED);return t&&!bd[o]&&(bd[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},vd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var xd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const i=a[o],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new _r("option "+i+" must be "+n,_r.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new _r("Unknown option "+i,_r.ERR_BAD_OPTION)}},validators:vd};const kd=xd.validators;let wd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new qu,response:new qu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xp(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:o}=t;void 0!==n&&xd.assertOptions(n,{silentJSONParsing:kd.transitional(kd.boolean),forcedJSONParsing:kd.transitional(kd.boolean),clarifyTimeoutError:kd.transitional(kd.boolean)},!1),null!=a&&(wr.isFunction(a)?t.paramsSerializer={serialize:a}:xd.assertOptions(a,{encode:kd.function,serialize:kd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xd.assertOptions(t,{baseUrl:kd.spelling("baseURL"),withXsrfToken:kd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&wr.merge(o.common,o[t.method]);o&&wr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=il.concat(i,o);const r=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,p=0;if(!s){const e=[yd.bind(this),void 0];for(e.unshift(...r),e.push(...c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=r.length;let d=t;for(;p<l;){const e=r[p++],t=r[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=yd.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return Du(ll((e=Xp(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};wr.forEach(["delete","get","head","options"],function(e){wd.prototype[e]=function(t,n){return this.request(Xp(n||{},{method:e,url:t,data:(n||{}).data}))}}),wr.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,o){return this.request(Xp(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}wd.prototype[e]=t(),wd.prototype[e+"Form"]=t(!0)});var _d=wd;class Ed{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,o){n.reason||(n.reason=new cl(e,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ed(function(t){e=t}),cancel:e}}}var Cd=Ed;const Sd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sd).forEach(([e,t])=>{Sd[t]=e});var Rd=Sd;const Td=function e(t){const n=new _d(t),a=Pi(_d.prototype.request,n);return wr.extend(a,_d.prototype,n,{allOwnKeys:!0}),wr.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(Xp(t,n))},a}(Yu);Td.Axios=_d,Td.CanceledError=cl,Td.CancelToken=Cd,Td.isCancel=sl,Td.VERSION=fp,Td.toFormData=Au,Td.AxiosError=_r,Td.Cancel=Td.CanceledError,Td.all=function(e){return Promise.all(e)},Td.spread=function(e){return function(t){return e.apply(null,t)}},Td.isAxiosError=function(e){return wr.isObject(e)&&!0===e.isAxiosError},Td.mergeConfig=Xp,Td.AxiosHeaders=il,Td.formToJSON=e=>Ju(wr.isHTMLForm(e)?new FormData(e):e),Td.getAdapter=fd,Td.HttpStatusCode=Rd,Td.default=Td;var Id=Td,jd=function(e){function t(t){var n,a,i,r,s=this;return(s=e.call(this,t)||this).token="",null===(a=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===a||a.request.use(function(e){return o(o({},e),{defaults:{headers:o(o({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(r=null===(i=s.instance)||void 0===i?void 0:i.interceptors)||void 0===r||r.response.use(function(e){return o({},e)},function(e){return Promise.reject(e)}),s}return a(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Id.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}(function(e){this.instance=Id.create(e)}),Ad=r.inspect,Od="function"==typeof Map&&Map.prototype,Pd=Object.getOwnPropertyDescriptor&&Od?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ld=Od&&Pd&&"function"==typeof Pd.get?Pd.get:null,zd=Od&&Map.prototype.forEach,Dd="function"==typeof Set&&Set.prototype,qd=Object.getOwnPropertyDescriptor&&Dd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nd=Dd&&qd&&"function"==typeof qd.get?qd.get:null,Md=Dd&&Set.prototype.forEach,Bd="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ud="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Fd="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Wd=Boolean.prototype.valueOf,Hd=Object.prototype.toString,Gd=Function.prototype.toString,Vd=String.prototype.match,$d=String.prototype.slice,Kd=String.prototype.replace,Qd=String.prototype.toUpperCase,Jd=String.prototype.toLowerCase,Xd=RegExp.prototype.test,Yd=Array.prototype.concat,Zd=Array.prototype.join,em=Array.prototype.slice,tm=Math.floor,nm="function"==typeof BigInt?BigInt.prototype.valueOf:null,am=Object.getOwnPropertySymbols,om="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,im="function"==typeof Symbol&&"object"==typeof Symbol.iterator,rm="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===im||"symbol")?Symbol.toStringTag:null,sm=Object.prototype.propertyIsEnumerable,cm=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function um(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Xd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var a=e<0?-tm(-e):tm(e);if(a!==e){var o=String(a),i=$d.call(t,o.length+1);return Kd.call(o,n,"$&_")+"."+Kd.call(Kd.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kd.call(t,n,"$&_")}var lm=Ad,pm=lm.custom,dm=km(pm)?pm:null,mm={__proto__:null,double:'"',single:"'"},hm={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},fm=function e(t,n,a,o){var i=n||{};if(_m(i,"quoteStyle")&&!_m(mm,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_m(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var r=!_m(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_m(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_m(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Sm(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?um(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?um(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===a&&(a=0),a>=l&&l>0&&"object"==typeof t)return bm(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Zd.call(Array(e.indent+1)," ")}return{base:n,prev:Zd.call(Array(t+1),n)}}(i,a);if(void 0===o)o=[];else if(Cm(o,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(o=em.call(o)).push(n),r){var s={depth:i.depth};return _m(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,a+1,o)}return e(t,i,a+1,o)}if("function"==typeof t&&!xm(t)){var m=function(e){if(e.name)return e.name;var t=Vd.call(Gd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Om(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Zd.call(h,", ")+" }":"")}if(km(t)){var f=im?Kd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):om.call(t);return"object"!=typeof t||im?f:Tm(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+Jd.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+gm(ym(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Jd.call(String(t.nodeName))+">"}if(bm(t)){if(0===t.length)return"[]";var b=Om(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Cm(e[t],"\n")>=0)return!1;return!0}(b)?"["+Am(b,p)+"]":"[ "+Zd.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Em(e)&&vm(e)}(t)){var x=Om(t,d);return"cause"in Error.prototype||!("cause"in t)||sm.call(t,"cause")?0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Zd.call(x,", ")+" }":"{ ["+String(t)+"] "+Zd.call(Yd.call("[cause]: "+d(t.cause),x),", ")+" }"}if("object"==typeof t&&r){if(dm&&"function"==typeof t[dm]&&lm)return lm(t,{depth:l-a});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ld||!e||"object"!=typeof e)return!1;try{Ld.call(e);try{Nd.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return zd&&zd.call(t,function(e,n){k.push(d(n,t,!0)+" => "+d(e,t))}),jm("Map",Ld.call(t),k,p)}if(function(e){if(!Nd||!e||"object"!=typeof e)return!1;try{Nd.call(e);try{Ld.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Md&&Md.call(t,function(e){w.push(d(e,t))}),jm("Set",Nd.call(t),w,p)}if(function(e){if(!Bd||!e||"object"!=typeof e)return!1;try{Bd.call(e,Bd);try{Ud.call(e,Ud)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Im("WeakMap");if(function(e){if(!Ud||!e||"object"!=typeof e)return!1;try{Ud.call(e,Ud);try{Bd.call(e,Bd)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Im("WeakSet");if(function(e){if(!Fd||!e||"object"!=typeof e)return!1;try{return Fd.call(e),!0}catch(e){}return!1}(t))return Im("WeakRef");if(function(e){return"[object Number]"===Em(e)&&vm(e)}(t))return Tm(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!nm)return!1;try{return nm.call(e),!0}catch(e){}return!1}(t))return Tm(d(nm.call(t)));if(function(e){return"[object Boolean]"===Em(e)&&vm(e)}(t))return Tm(Wd.call(t));if(function(e){return"[object String]"===Em(e)&&vm(e)}(t))return Tm(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Sr&&t===Sr)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Em(e)&&vm(e)}(t)&&!xm(t)){var _=Om(t,d),E=cm?cm(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&rm&&Object(t)===t&&rm in t?$d.call(Em(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Zd.call(Yd.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":p?R+"{"+Am(_,p)+"}":R+"{ "+Zd.call(_,", ")+" }"}return String(t)};function gm(e,t,n){var a=n.quoteStyle||t,o=mm[a];return o+e+o}function ym(e){return Kd.call(String(e),/"/g,""")}function vm(e){return!rm||!("object"==typeof e&&(rm in e||void 0!==e[rm]))}function bm(e){return"[object Array]"===Em(e)&&vm(e)}function xm(e){return"[object RegExp]"===Em(e)&&vm(e)}function km(e){if(im)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!om)return!1;try{return om.call(e),!0}catch(e){}return!1}var wm=Object.prototype.hasOwnProperty||function(e){return e in this};function _m(e,t){return wm.call(e,t)}function Em(e){return Hd.call(e)}function Cm(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1}function Sm(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return Sm($d.call(e,0,t.maxStringLength),t)+a}var o=hm[t.quoteStyle||"single"];return o.lastIndex=0,gm(Kd.call(Kd.call(e,o,"\\$1"),/[\x00-\x1f]/g,Rm),"single",t)}function Rm(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Qd.call(t.toString(16))}function Tm(e){return"Object("+e+")"}function Im(e){return e+" { ? }"}function jm(e,t,n,a){return e+" ("+t+") {"+(a?Am(n,a):Zd.call(n,", "))+"}"}function Am(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Zd.call(e,","+n)+"\n"+t.prev}function Om(e,t){var n=bm(e),a=[];if(n){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=_m(e,o)?t(e[o],e):""}var i,r="function"==typeof am?am(e):[];if(im){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)_m(e,c)&&(n&&String(Number(c))===c&&c<e.length||im&&i["$"+c]instanceof Symbol||(Xd.call(/[^\w$]/,c)?a.push(t(c,e)+": "+t(e[c],e)):a.push(c+": "+t(e[c],e))));if("function"==typeof am)for(var u=0;u<r.length;u++)sm.call(e,r[u])&&a.push("["+t(r[u])+"]: "+t(e[r[u]],e));return a}var Pm,Lm,zm,Dm,qm,Nm,Mm,Bm,Um,Fm,Wm,Hm,Gm=fm,Vm=hs,$m=function(e,t,n){for(var a,o=e;null!=(a=o.next);o=a)if(a.key===t)return o.next=a.next,n||(a.next=e.next,e.next=a),a},Km=iu,Qm=uc,Jm=Qm([Km("%String.prototype.indexOf%")]),Xm=function(e,t){var n=Km(e,!!t);return"function"==typeof n&&Jm(e,".prototype.")>-1?Qm([n]):n},Ym=Xm,Zm=fm,eh=hs,th=iu("%Map%",!0),nh=Ym("Map.prototype.get",!0),ah=Ym("Map.prototype.set",!0),oh=Ym("Map.prototype.has",!0),ih=Ym("Map.prototype.delete",!0),rh=Ym("Map.prototype.size",!0),sh=!!th&&function(){var e,t={assert:function(e){if(!t.has(e))throw new eh("Side channel does not contain "+Zm(e))},delete:function(t){if(e){var n=ih(e,t);return 0===rh(e)&&(e=void 0),n}return!1},get:function(t){if(e)return nh(e,t)},has:function(t){return!!e&&oh(e,t)},set:function(t,n){e||(e=new th),ah(e,t,n)}};return t},ch=Xm,uh=fm,lh=sh,ph=hs,dh=iu("%WeakMap%",!0),mh=ch("WeakMap.prototype.get",!0),hh=ch("WeakMap.prototype.set",!0),fh=ch("WeakMap.prototype.has",!0),gh=ch("WeakMap.prototype.delete",!0),yh=hs,vh=fm,bh=function(){var e,t={assert:function(e){if(!t.has(e))throw new Vm("Side channel does not contain "+Gm(e))},delete:function(t){var n=e&&e.next,a=function(e,t){if(e)return $m(e,t,!0)}(e,t);return a&&n&&n===a&&(e=void 0),!!a},get:function(t){return function(e,t){if(e){var n=$m(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!$m(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var a=$m(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},xh=(dh?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new ph("Side channel does not contain "+uh(e))},delete:function(n){if(dh&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gh(e,n)}else if(lh&&t)return t.delete(n);return!1},get:function(n){return dh&&n&&("object"==typeof n||"function"==typeof n)&&e?mh(e,n):t&&t.get(n)},has:function(n){return dh&&n&&("object"==typeof n||"function"==typeof n)&&e?fh(e,n):!!t&&t.has(n)},set:function(n,a){dh&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new dh),hh(e,n,a)):lh&&(t||(t=lh()),t.set(n,a))}};return n}:lh)||sh||bh,kh=String.prototype.replace,wh=/%20/g,_h="RFC3986",Eh={default:_h,formatters:{RFC1738:function(e){return kh.call(e,wh,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:_h},Ch=Eh,Sh=Object.prototype.hasOwnProperty,Rh=Array.isArray,Th=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ih=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n},jh=1024,Ah={arrayToObject:Ih,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],i=o.obj[o.prop],r=Object.keys(i),s=0;s<r.length;++s){var c=r[s],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Rh(n)){for(var a=[],o=0;o<n.length;++o)void 0!==n[o]&&a.push(n[o]);t.obj[t.prop]=a}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode:function(e,t,n,a,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var r="",s=0;s<i.length;s+=jh){for(var c=i.length>=jh?i.slice(s,s+jh):i,u=[],l=0;l<c.length;++l){var p=c.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Ch.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Th[p]:p<2048?u[u.length]=Th[192|p>>6]+Th[128|63&p]:p<55296||p>=57344?u[u.length]=Th[224|p>>12]+Th[128|p>>6&63]+Th[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Th[240|p>>18]+Th[128|p>>12&63]+Th[128|p>>6&63]+Th[128|63&p])}r+=u.join("")}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Rh(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},merge:function e(t,n,a){if(!n)return t;if("object"!=typeof n){if(Rh(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(a&&(a.plainObjects||a.allowPrototypes)||!Sh.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return Rh(t)&&!Rh(n)&&(o=Ih(t,a)),Rh(t)&&Rh(n)?(n.forEach(function(n,o){if(Sh.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,a):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var i=n[o];return Sh.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t},o)}},Oh=function(){var e,t={assert:function(e){if(!t.has(e))throw new yh("Side channel does not contain "+vh(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=xh()),e.set(t,n)}};return t},Ph=Ah,Lh=Eh,zh=Object.prototype.hasOwnProperty,Dh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},qh=Array.isArray,Nh=Array.prototype.push,Mh=function(e,t){Nh.apply(e,qh(t)?t:[t])},Bh=Date.prototype.toISOString,Uh=Lh.default,Fh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ph.encode,encodeValuesOnly:!1,format:Uh,formatter:Lh.formatters[Uh],indices:!1,serializeDate:function(e){return Bh.call(e)},skipNulls:!1,strictNullHandling:!1},Wh={},Hh=function e(t,n,a,o,i,r,s,c,u,l,p,d,m,h,f,g,y,v){for(var b,x=t,k=v,w=0,_=!1;void 0!==(k=k.get(Wh))&&!_;){var E=k.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===k.get(Wh)&&(w=0)}if("function"==typeof l?x=l(n,x):x instanceof Date?x=m(x):"comma"===a&&qh(x)&&(x=Ph.maybeMap(x,function(e){return e instanceof Date?m(e):e})),null===x){if(r)return u&&!g?u(n,Fh.encoder,y,"key",h):n;x=""}if("string"==typeof(b=x)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Ph.isBuffer(x))return u?[f(g?n:u(n,Fh.encoder,y,"key",h))+"="+f(u(x,Fh.encoder,y,"value",h))]:[f(n)+"="+f(String(x))];var C,S=[];if(void 0===x)return S;if("comma"===a&&qh(x))g&&u&&(x=Ph.maybeMap(x,u)),C=[{value:x.length>0?x.join(",")||null:void 0}];else if(qh(l))C=l;else{var R=Object.keys(x);C=p?R.sort(p):R}var T=c?n.replace(/\./g,"%2E"):n,I=o&&qh(x)&&1===x.length?T+"[]":T;if(i&&qh(x)&&0===x.length)return I+"[]";for(var j=0;j<C.length;++j){var A=C[j],O="object"==typeof A&&void 0!==A.value?A.value:x[A];if(!s||null!==O){var P=d&&c?A.replace(/\./g,"%2E"):A,L=qh(x)?"function"==typeof a?a(I,P):I:I+(d?"."+P:"["+P+"]");v.set(t,w);var z=Oh();z.set(Wh,v),Mh(S,e(O,L,a,o,i,r,s,c,"comma"===a&&g&&qh(x)?null:u,l,p,d,m,h,f,g,y,z))}}return S},Gh=Ah,Vh=Object.prototype.hasOwnProperty,$h=Array.isArray,Kh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Gh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Qh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Jh=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Xh=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=r?o.slice(0,r.index):o,c=[];if(s){if(!n.plainObjects&&Vh.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(o))&&u<n.depth;){if(u+=1,!n.plainObjects&&Vh.call(Object.prototype,r[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(r[1])}if(r){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(r.index)+"]")}return function(e,t,n,a){for(var o=a?t:Jh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{r=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(r=[])[l]=o:"__proto__"!==u&&(r[u]=o):r={0:o}}o=r}return o}(c,t,n,a)}},Yh=function(e,t){var n,a=e,o=function(e){if(!e)return Fh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Fh.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Lh.default;if(void 0!==e.format){if(!zh.call(Lh.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a,o=Lh.formatters[n],i=Fh.filter;if(("function"==typeof e.filter||qh(e.filter))&&(i=e.filter),a=e.arrayFormat in Dh?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Fh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var r=void 0===e.allowDots?!0===e.encodeDotInKeys||Fh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Fh.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Fh.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Fh.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Fh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Fh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Fh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Fh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Fh.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Fh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Fh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Fh.strictNullHandling}}(t);"function"==typeof o.filter?a=(0,o.filter)("",a):qh(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof a||null===a)return"";var r=Dh[o.arrayFormat],s="comma"===r&&o.commaRoundTrip;n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var c=Oh(),u=0;u<n.length;++u){var l=n[u];o.skipNulls&&null===a[l]||Mh(i,Hh(a[l],l,r,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},Zh=function(e,t){var n=function(e){if(!e)return Kh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Kh.charset:e.charset,n=void 0===e.duplicates?Kh.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Kh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Kh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Kh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Kh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Kh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Kh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Kh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Kh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Kh.decoder,delimiter:"string"==typeof e.delimiter||Gh.isRegExp(e.delimiter)?e.delimiter:Kh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Kh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Kh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Kh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Kh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Kh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Kh.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof e?function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=a.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(o=0;o<r.length;++o)0===r[o].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[o]?c="utf-8":"utf8=%26%2310003%3B"===r[o]&&(c="iso-8859-1"),s=o,o=r.length);for(o=0;o<r.length;++o)if(o!==s){var u,l,p=r[o],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Kh.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Kh.decoder,c,"key"),l=Gh.maybeMap(Jh(p.slice(m+1),t),function(e){return t.decoder(e,Kh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Qh(l)),p.indexOf("[]=")>-1&&(l=$h(l)?[l]:l);var h=Vh.call(n,u);h&&"combine"===t.duplicates?n[u]=Gh.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(a),r=0;r<i.length;++r){var s=i[r],c=Xh(s,a[s],n,"string"==typeof e);o=Gh.merge(o,c,n)}return!0===n.allowSparse?o:Gh.compact(o)},ef={formats:Eh,parse:Zh,stringify:Yh},tf={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return ef.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Pm||(Pm={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Lm||(Lm={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(zm||(zm={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Dm||(Dm={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(qm||(qm={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Nm||(Nm={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Mm||(Mm={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Bm||(Bm={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Um||(Um={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.ADVANCEMENTS="ADVANCEMENTS",e.FEES="FEES"}(Fm||(Fm={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Wm||(Wm={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Hm||(Hm={}));var nf=["PAUSED","ACTIVE"],af={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},of="DELETED",rf={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},sf=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},cf=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],uf=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],lf=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],pf=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],df=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],mf={docs_url:"https://docs.y.uno/reference/api-reference-overview"},hf={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},ff=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const gf=[];for(let e=0;e<256;++e)gf.push((e+256).toString(16).slice(1));let yf;const vf=new Uint8Array(16);var bf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xf(e,t,n){if(bf.randomUUID&&!t&&!e)return bf.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!yf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yf=crypto.getRandomValues.bind(crypto)}return yf(vf)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(gf[e[t+0]]+gf[e[t+1]]+gf[e[t+2]]+gf[e[t+3]]+"-"+gf[e[t+4]]+gf[e[t+5]]+"-"+gf[e[t+6]]+gf[e[t+7]]+"-"+gf[e[t+8]]+gf[e[t+9]]+"-"+gf[e[t+10]]+gf[e[t+11]]+gf[e[t+12]]+gf[e[t+13]]+gf[e[t+14]]+gf[e[t+15]]).toLowerCase()}(a)}var kf=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},wf=function(e){function r(t){var n=t?o(o({},tf),t):tf;return e.call(this,n)||this}return a(r,e),r.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},r.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Fm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},r.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Fm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},r.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},r.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},r.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},r.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},r.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},r.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},r.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},r.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},r.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},r.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},r.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},r.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},r.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},r.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=i(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.postPayouts=function(e){var t=e.account_code,n=i(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payouts",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},r.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=i(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},r.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},r.prototype.postTransactions=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.postFraudTransactions=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},r.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},r.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},r.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,a=e.country,o=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(a),o?{}:{headers:i})},r.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},r.prototype.createOperationTransaction=function(e,t,n,a){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(a),e)},r.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},r.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},r.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},r.prototype.uploadChargebacks=function(e,t,n,a){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":xf()}})},r.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},r.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},r.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},r.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},r.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},r.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},r.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},r.prototype.getAllOrganization=function(){return this.get("/organizations/all")},r.prototype.getProviderParams=function(e,t){var n,a=localStorage.getItem("x-organization-code"),o={"x-organization-code":a?null===(n=JSON.parse(a))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:o})},r.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},r.prototype.putCosts=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},r.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,function(){return n(this,function(e){return[2,this.patch("/organizations/status")]})})},r.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},r.prototype.getConnectionsByPaymentMethod=function(e,a){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(a))]})})},r.prototype.getHashPylon=function(){return this.get("/pylon-hash")},r.prototype.getConnections=function(){return this.get("/connections")},r.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},r.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,a="/connections/change-status";if(t.status==of)return delete t.status,this.delete(a,{data:t});Object.values(nf).includes(null==t?void 0:t.status)&&(a="".concat(a,"/").concat(af[t.status]),delete t.status);var o={"x-account-code":n};return this.post(a,t,{headers:o})},r.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},r.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},r.prototype.patchConnection=function(e){var t,n=e.payload,a=e.connectionCode,i=localStorage.getItem("account"),r=i?null===(t=JSON.parse(i).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(a),o({account_code:r},n))},r.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},r.prototype.getDialogs=function(){return this.get("/dialogs")},r.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},r.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},r.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},r.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},r.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},r.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},r.prototype.getMenu=function(){return this.get("/cms/menu")},r.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/webhooks/organization",o,{params:a})},r.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},r.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},r.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/api-logs/organization",o,{params:a})},r.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},r.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},r.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},r.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},r.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},r.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},r.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},r.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},r.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},r.prototype.getLocales=function(){return this.get("/cms/locales")},r.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},r.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},r.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},r.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},r.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},r.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},r.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},r.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},r.prototype.postSmartRoutingPublishVersion=function(e,t,n){var a={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:a})},r.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},r.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},r.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},r.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},r.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},r.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},r.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},r.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},r.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},r.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},r.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},r.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},r.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},r.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},r.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},r.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},r.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},r.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},r.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},r.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},r.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,a=e.connection_name,o=i(e,["account_code","connection_name"]),r=kf(n);return a&&(r.connection_name=a.split(",")),this.post("/insights/conversion-rate/".concat(t),r,{params:o})},r.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,a=i(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),kf(n),{params:a})},r.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",kf(t),{params:n})},r.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,a=i(t,["connection_name"]),r={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(r=o(o({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",r,{params:a})},r.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var a=n.connection_name,r=i(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return a&&(s=o(o({},s),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/volume/".concat(t),s,{params:r})},r.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},r.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},r.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},r.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},r.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},r.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},r.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},r.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},r.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},r.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},r.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},r.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,a=i(e,["account_code","connection_name"]),r=kf(t);return n&&(r=o(o({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",r,{params:a})},r.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,a=e.connection_name,r=i(e,["account_code","connection_name"]),s=kf(n);return a&&(s=o(o({},s),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/overview/".concat(t),s,{params:r})},r.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},r.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},r.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},r.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},r.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},r.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},r.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),a=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":a}})},r.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},r.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,a={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:a})},r.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,a={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:a})},r.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload,i={"x-account-code":t,"x-environment":a,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",o,{headers:i})},r.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},r.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},r.prototype.createReportV2=function(e){return this.post("/reports",e)},r.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},r.prototype.reportsList=function(){return this.get("/reports")},r.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},r.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},r.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},r.prototype.getReportTemplates=function(){return this.get("/reports/templates")},r.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},r.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},r.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},r.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},r.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},r.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},r.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},r.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},r.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},r.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},r.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},r.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},r.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},r.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},r.prototype.getRefundPdf=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:a})},r.prototype.getProofOfCancel=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:a})},r.prototype.getProofOfPayment=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:a})},r.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},r.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},r.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},r.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},r.prototype.getProfile=function(){return this.get("/user")},r.prototype.getUserFull=function(){return this.get("/user-full")},r.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},r.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},r.prototype.getUsersToImpersonate=function(e,t,n,a,i){void 0===n&&(n=1),void 0===a&&(a=10);var r=o({account_codes:t||[],page:n,page_size:a},i&&{search_value:i});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),r)},r.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},r.prototype.updateProfile=function(e){return this.patch("/user",e)},r.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},r.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},r.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},r.prototype.getAccountsV2=function(){return this.get("/accounts-user")},r.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},r.prototype.putAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:a})},r.prototype.deleteAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:a})},r.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},r.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,a=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:a},{headers:{"x-account-code":n}})},r.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},r.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},r.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},r.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},r.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},r.prototype.pathNotification=function(e){return this.patch("/notifications",e)},r.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},r.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},r.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:a,page:o,page_size:i},{headers:r})},r.prototype.getRoles=function(){return this.get("/teams/roles")},r.prototype.setCustodian=function(){return this.post("/teams/custodian")},r.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},r.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},r.prototype.editRoles=function(e,t){var n=e.payload,a=e.id;return this.patch("/teams/roles/".concat(a),n,{headers:{"x-account-code":t}})},r.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},r.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},r.prototype.getFeatureFlagId=function(e){var t=e.name,n=i(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},r.prototype.getFeatureFlagIdAll=function(e){var a=e.accountCode;return t(this,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",a?{headers:{"x-account-code":a}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach(function(e){t[e]=!0}),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}})})},r.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},r.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},r.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},r.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},r.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},r.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},r.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},r.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},r.prototype.getAuditEvents=function(e){return this.post("v2/events/organization?time_zone=".concat(null==e?void 0:e.time_zone,"&now=").concat(null==e?void 0:e.now,"&page=").concat(null==e?void 0:e.page,"&size=").concat(null==e?void 0:e.size,"&periodicity=").concat(e.periodicity,"&event=").concat(e.event,"&source=").concat(e.source,"&search=").concat(e.search,"&start_date=").concat(e.start_date,"&end_date=").concat(e.end_date),{account_codes:null==e?void 0:e.account_code})},r.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},r.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},r.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},r.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(a),t)},r.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},r.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},r.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},r.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},r.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},r.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},r.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},r.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},r.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},r.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},r.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},r.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},r.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},r.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},r.prototype.postBlockList=function(e,t,n,a){var o={name:t,account_codes:e,page:n,size:a};return this.post("/blacklist",o)},r.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},r.prototype.getBlacklistDetail=function(e,t,n,a,o){void 0===n&&(n=26),void 0===a&&(a=null),void 0===o&&(o=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(i+="&search=".concat(o)),this.get(i,a?{headers:{"x-account-code":a}}:{})},r.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},r.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},r.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},r.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},r.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},r.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},r.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},r.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},r.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},r.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},r.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,a=e.file,o=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:a},{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},r.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},r.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":a}})},r.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",o({},e))},r.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},r.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:a.token}),cancel:function(){return a.cancel()}}},r.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:a.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return a.cancel()}}},r.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",o({},t))},r.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",o({},t))},r.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},r.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:a})},r.prototype.getBatchRefundUserFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:a})},r.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},r.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},r.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},r.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},r.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},r.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},r.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},r.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},r.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},r.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},r.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},r.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},r.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},r.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},r.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},r.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},r.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},r.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},r.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},r.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},r.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},r.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(rf[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(rf[null==e?void 0:e.type],"/export");return this.post(t,e)},r.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},r.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},r.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},r.prototype.getSamlConfig=function(){return this.get("/saml-config")},r.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},r.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},r.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},r.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},r.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},r.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},r.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},r.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},r.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},r.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},r.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},r.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},r.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},r.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},r.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},r.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},r.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},r.prototype.getLanguages=function(){return this.get("/languages")},r.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},r.prototype.getCommunications=function(e){return this.post("/communications",e)},r.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},r.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},r}(jd),_f={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},Ef=function(e){function i(t){return e.call(this,t)||this}return a(i,e),i.refreshInstance=function(e){var t;return this.classInstance=new i(o(o({},e),{baseURL:_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},i.getInstance=function(e){var t,n;if(this.classInstance){var a=localStorage.getItem("account");if(a){var r=null===(n=null===(t=JSON.parse(a))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!r&&""!==r&&r!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=r)}return this.classInstance}return this.classInstance=new i(o(o({},e),{baseURL:(null==e?void 0:e.baseURL)||_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),this.classInstance},i.setMode=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},i}(wf);class Cf{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Sf="undefined"==typeof window||"Deno"in window;function Rf(){}function Tf(e){return"number"==typeof e&&e>=0&&e!==1/0}function If(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jf(e,t,n){return Wf(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Af(e,t,n){return Wf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Of(e,t){const{type:n="all",exact:a,fetchStatus:o,predicate:i,queryKey:r,stale:s}=e;if(Wf(r))if(a){if(t.queryHash!==Lf(r,t.options))return!1}else if(!Df(t.queryKey,r))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Pf(e,t){const{exact:n,fetching:a,predicate:o,mutationKey:i}=e;if(Wf(i)){if(!t.options.mutationKey)return!1;if(n){if(zf(t.options.mutationKey)!==zf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return("boolean"!=typeof a||"loading"===t.state.status===a)&&!(o&&!o(t))}function Lf(e,t){return((null==t?void 0:t.queryKeyHashFn)||zf)(e)}function zf(e){return JSON.stringify(e,(e,t)=>Uf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Df(e,t){return qf(e,t)}function qf(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!qf(e[n],t[n])))}function Nf(e,t){if(e===t)return e;const n=Bf(e)&&Bf(t);if(n||Uf(e)&&Uf(t)){const a=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,r=n?[]:{};let s=0;for(let a=0;a<i;a++){const i=n?a:o[a];r[i]=Nf(e[i],t[i]),r[i]===e[i]&&s++}return a===i&&s===a?e:r}return t}function Mf(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Bf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uf(e){if(!Ff(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ff(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ff(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wf(e){return Array.isArray(e)}function Hf(e){return new Promise(t=>{setTimeout(t,e)})}function Gf(e){Hf(0).then(e)}function Vf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Nf(e,t):t}const $f=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Kf=["online","offline"];const Qf=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return Kf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Kf.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Jf(e){return Math.min(1e3*2**e,3e4)}function Xf(e){return"online"!==(null!=e?e:"online")||Qf.isOnline()}class Yf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Zf(e){return e instanceof Yf}function eg(e){let t,n,a,o=!1,i=0,r=!1;const s=new Promise((e,t)=>{n=e,a=t}),c=()=>!$f.isFocused()||"always"!==e.networkMode&&!Qf.isOnline(),u=a=>{r||(r=!0,null==e.onSuccess||e.onSuccess(a),null==t||t(),n(a))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),a(n))},p=()=>new Promise(n=>{t=e=>{const t=r||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,r||null==e.onContinue||e.onContinue()}),d=()=>{if(r)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,a;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(a=e.retryDelay)?a:Jf,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!o&&h?(i++,null==e.onFail||e.onFail(i,t),Hf(m).then(()=>{if(c())return p()}).then(()=>{o?l(t):d()})):l(t)})};return Xf(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new Yf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const tg=console;const ng=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()};const o=a=>{t?e.push(a):Gf(()=>{n(a)})},i=()=>{const t=e;e=[],t.length&&Gf(()=>{a(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e}}}();class ag{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tf(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Sf?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class og extends ag{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||tg,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=a?a:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Vf(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Rf).catch(Rf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!If(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=function(){if("function"==typeof AbortController)return new AbortController}(),r={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(r);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(r)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(a=c.fetchOptions)?void 0:a.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,a,o;(Zf(e)&&e.silent||this.dispatch({type:"error",error:e}),Zf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=eg({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,a,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Xf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(a=e.dataUpdatedAt)?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Zf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ng.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class ig extends Cf{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var a;const o=t.queryKey,i=null!=(a=t.queryHash)?a:Lf(o,t);let r=this.get(i);return r||(r=new og({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(r)),r}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ng.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Af(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Of(n,e))}findAll(e,t){const[n]=Af(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Of(n,e)):this.queries}notify(e){ng.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ng.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ng.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rg extends ag{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||tg,this.observers=[],this.state=e.state||sg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=eg({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,a,o,i,r,s,c,u;if(!t){var l,p,d,m;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(p=this.mutationCache.config).onMutate)?void 0:l.call(p,this.state.variables,this));const e=await(null==(d=(m=this.options).onMutate)?void 0:d.call(m,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(a=this.mutationCache.config).onSuccess)?void 0:n.call(a,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(r=(s=this.mutationCache.config).onSettled)?void 0:r.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,f,g,y,v,b,x,k;throw await(null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(k=this.options).onSettled)?void 0:x.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Xf(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ng.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function sg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class cg extends Cf{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const a=new rg({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(a),a}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ng.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Pf(e,t))}findAll(e){return this.mutations.filter(t=>Pf(e,t))}notify(e){ng.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ng.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Rf)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function ug(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,a,o,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(a=e.fetchOptions)||null==(o=a.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),d=(null==(i=e.state.data)?void 0:i.pages)||[],m=(null==(r=e.state.data)?void 0:r.pageParams)||[];let h=m,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,a)=>(h=a?[t,...h]:[...h,t],a?[n,...e]:[...e,n]),v=(t,n,a,o)=>{if(f)return Promise.reject("Cancelled");if(void 0===a&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:a,meta:e.options.meta};var r;r=i,Object.defineProperty(r,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{f=!0}),e.signal}});const s=g(i);return Promise.resolve(s).then(e=>y(t,a,e,o))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:lg(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==u,n=t?u:(x=e.options,k=d,null==x.getPreviousPageParam?void 0:x.getPreviousPageParam(k[0],k));b=v(d,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=!s||!d[0]||s(d[0],0,d)?v([],t,m[0]):Promise.resolve(y([],m[0],d[0]));for(let n=1;n<d.length;n++)b=b.then(a=>{if(!s||!d[n]||s(d[n],n,d)){const o=t?m[n]:lg(e.options,a);return v(a,t,o)}return Promise.resolve(y(a,m[n],d[n]))})}else b=v([]);var x,k;const w=b.then(e=>({pages:e,pageParams:h}));return w}}}}function lg(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class pg extends Cf{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),dg(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mg(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mg(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Mf(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&hg(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===a&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===a&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Mf(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Rf)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Sf||this.currentResult.isStale||!Tf(this.options.staleTime))return;const e=If(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Sf&&!1!==this.options.enabled&&Tf(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||$f.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,a=this.options,o=this.currentResult,i=this.currentResultState,r=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let p,{dataUpdatedAt:d,error:m,errorUpdatedAt:h,fetchStatus:f,status:g}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&dg(e,t),r=o&&hg(e,n,t,a);(i||r)&&(f=Xf(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)p=u.data,d=u.dataUpdatedAt,g=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==i?void 0:i.data)&&t.select===this.selectFn)p=this.selectResult;else try{this.selectFn=t.select,p=t.select(l.data),p=Vf(null==o?void 0:o.data,p,t),this.selectResult=p,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else p=l.data;if(void 0!==t.placeholderData&&void 0===p&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",p=Vf(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(m=this.selectError,p=this.selectResult,h=Date.now(),g="error");const b="fetching"===f,x="loading"===g,k="error"===g;return{status:g,fetchStatus:f,isLoading:x,isSuccess:"success"===g,isError:k,isInitialLoading:x&&b,data:p,dataUpdatedAt:d,error:m,errorUpdatedAt:h,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:k&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:v,isPreviousData:y,isRefetchError:k&&0!==l.dataUpdatedAt,isStale:fg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Mf(n,t))return;this.currentResult=n;const a={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const a=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&a.has(n)})})()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Zf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ng.batch(()=>{var t,n,a,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(a=(o=this.options).onSettled)||a.call(o,this.currentResult.data,null);else if(e.onError){var i,r,s,c;null==(i=(r=this.options).onError)||i.call(r,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function dg(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&mg(e,t,t.refetchOnMount)}function mg(e,t,n){if(!1!==t.enabled){const a="function"==typeof n?n(e):n;return"always"===a||!1!==a&&fg(e,t)}return!1}function hg(e,t,n,a){return!1!==n.enabled&&(e!==t||!1===a.enabled)&&(!n.suspense||"error"!==e.state.status)&&fg(e,n)}function fg(e,t){return e.isStaleByTime(t.staleTime)}class gg extends Cf{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Mf(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){ng.batch(()=>{var t,n,a,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,r,s,c;null==(i=(r=this.mutateOptions).onError)||i.call(r,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var yg,vg={exports:{}},bg={};var xg,kg={};
|
|
49
|
+
!function(e){var t,n,a,o=qr,i=u.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!s.test(t[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var a=e.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),a=n&&e.extensions[n[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=i("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=e.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var i=o[e],r=i.extensions;if(r&&r.length){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var u=a.indexOf(o[n[c]].source),l=a.indexOf(i.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}})}(Dr);var Nr=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Mr=function(e){var t=!1;return Nr(function(){t=!0}),function(n,a){t?e(n,a):Nr(function(){e(n,a)})}};var Br=function(e){Object.keys(e.jobs).forEach(Ur.bind(e)),e.jobs={}};function Ur(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Fr=Mr,Wr=Br,Hr=function(e,t,n,a){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=function(e,t,n,a){var o;o=2==e.length?e(n,Fr(a)):e(n,t,Fr(a));return o}(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?Wr(n):n.results[o]=t,a(e,n.results))})};var Gr=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])});return a};var Vr=Br,$r=Mr,Kr=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Vr(this),$r(e)(null,this.results)};var Qr=Hr,Jr=Gr,Xr=Kr,Yr=function(e,t,n){var a=Jr(e);for(;a.index<(a.keyedList||e).length;)Qr(e,t,a,function(e,t){e?n(e,t):0!==Object.keys(a.jobs).length||n(null,a.results)}),a.index++;return Xr.bind(a,n)};var Zr={exports:{}},es=Hr,ts=Gr,ns=Kr;function as(e,t){return e<t?-1:e>t?1:0}Zr.exports=function(e,t,n,a){var o=ts(e,n);return es(e,t,o,function n(i,r){i?a(i,r):(o.index++,o.index<(o.keyedList||e).length?es(e,t,o,n):a(null,o.results))}),ns.bind(o,a)},Zr.exports.ascending=as,Zr.exports.descending=function(e,t){return-1*as(e,t)};var os=Zr.exports,is=os,rs=function(e,t,n){return is(e,t,null,n)};var ss={parallel:Yr,serial:rs,serialOrdered:os},cs=Object,us=Error,ls=EvalError,ps=RangeError,ds=ReferenceError,ms=SyntaxError,hs=TypeError,fs=URIError,gs=Math.abs,ys=Math.floor,vs=Math.max,bs=Math.min,xs=Math.pow,ks=Math.round,ws=Number.isNaN||function(e){return e!=e},_s=Object.getOwnPropertyDescriptor;if(_s)try{_s([],"length")}catch(e){_s=null}var Es=_s,Cs=Object.defineProperty||!1;if(Cs)try{Cs({},"a",{value:1})}catch(e){Cs=!1}var Ss,Rs,Ts,Is,js,As,Os,Ps,Ls,zs,Ds,qs,Ns,Ms,Bs,Us,Fs=Cs;function Ws(){return Rs?Ss:(Rs=1,Ss=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var a in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0})}function Hs(){return As?js:(As=1,js="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Gs(){return Ps?Os:(Ps=1,Os=cs.getPrototypeOf||null)}function Vs(){if(zs)return Ls;zs=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return Ls=function(a){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,r=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n}(arguments,1),s=t(0,o.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,n(r,arguments));return Object(e)===e?e:this}return o.apply(a,n(r,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Ls}function $s(){if(qs)return Ds;qs=1;var e=Vs();return Ds=Function.prototype.bind||e}function Ks(){return Ms?Ns:(Ms=1,Ns=Function.prototype.call)}function Qs(){return Us?Bs:(Us=1,Bs=Function.prototype.apply)}var Js,Xs,Ys,Zs,ec="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,tc=$s(),nc=Qs(),ac=Ks(),oc=ec||tc.call(ac,nc),ic=$s(),rc=hs,sc=Ks(),cc=oc,uc=function(e){if(e.length<1||"function"!=typeof e[0])throw new rc("a function is required");return cc(ic,sc,e)};var lc,pc=Function.prototype.call,dc=Object.prototype.hasOwnProperty,mc=$s().call(pc,dc),hc=cs,fc=us,gc=ls,yc=ps,vc=ds,bc=ms,xc=hs,kc=fs,wc=gs,_c=ys,Ec=vs,Cc=bs,Sc=xs,Rc=ks,Tc=function(e){return ws(e)||0===e?e:e<0?-1:1},Ic=Function,jc=function(e){try{return Ic('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ac=Es,Oc=Fs,Pc=function(){throw new xc},Lc=Ac?function(){try{return Pc}catch(e){try{return Ac(arguments,"callee").get}catch(e){return Pc}}}():Pc,zc=function(){if(Is)return Ts;Is=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ws();return Ts=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Dc=function(){if(Zs)return Ys;Zs=1;var e=Hs(),t=Gs(),n=function(){if(Xs)return Js;Xs=1;var e,t=uc,n=Es;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Js=a&&"function"==typeof a.get?t([a.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return Ys=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),qc=Gs(),Nc=Hs(),Mc=Qs(),Bc=Ks(),Uc={},Fc="undefined"!=typeof Uint8Array&&Dc?Dc(Uint8Array):lc,Wc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?lc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?lc:ArrayBuffer,"%ArrayIteratorPrototype%":zc&&Dc?Dc([][Symbol.iterator]()):lc,"%AsyncFromSyncIteratorPrototype%":lc,"%AsyncFunction%":Uc,"%AsyncGenerator%":Uc,"%AsyncGeneratorFunction%":Uc,"%AsyncIteratorPrototype%":Uc,"%Atomics%":"undefined"==typeof Atomics?lc:Atomics,"%BigInt%":"undefined"==typeof BigInt?lc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?lc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?lc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?lc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fc,"%eval%":eval,"%EvalError%":gc,"%Float16Array%":"undefined"==typeof Float16Array?lc:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?lc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?lc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?lc:FinalizationRegistry,"%Function%":Ic,"%GeneratorFunction%":Uc,"%Int8Array%":"undefined"==typeof Int8Array?lc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?lc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?lc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zc&&Dc?Dc(Dc([][Symbol.iterator]())):lc,"%JSON%":"object"==typeof JSON?JSON:lc,"%Map%":"undefined"==typeof Map?lc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&zc&&Dc?Dc((new Map)[Symbol.iterator]()):lc,"%Math%":Math,"%Number%":Number,"%Object%":hc,"%Object.getOwnPropertyDescriptor%":Ac,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?lc:Promise,"%Proxy%":"undefined"==typeof Proxy?lc:Proxy,"%RangeError%":yc,"%ReferenceError%":vc,"%Reflect%":"undefined"==typeof Reflect?lc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?lc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&zc&&Dc?Dc((new Set)[Symbol.iterator]()):lc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?lc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zc&&Dc?Dc(""[Symbol.iterator]()):lc,"%Symbol%":zc?Symbol:lc,"%SyntaxError%":bc,"%ThrowTypeError%":Lc,"%TypedArray%":Fc,"%TypeError%":xc,"%Uint8Array%":"undefined"==typeof Uint8Array?lc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?lc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?lc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?lc:Uint32Array,"%URIError%":kc,"%WeakMap%":"undefined"==typeof WeakMap?lc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?lc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?lc:WeakSet,"%Function.prototype.call%":Bc,"%Function.prototype.apply%":Mc,"%Object.defineProperty%":Oc,"%Object.getPrototypeOf%":qc,"%Math.abs%":wc,"%Math.floor%":_c,"%Math.max%":Ec,"%Math.min%":Cc,"%Math.pow%":Sc,"%Math.round%":Rc,"%Math.sign%":Tc,"%Reflect.getPrototypeOf%":Nc};if(Dc)try{null.error}catch(e){var Hc=Dc(Dc(e));Wc["%Error.prototype%"]=Hc}var Gc,Vc,$c=function e(t){var n;if("%AsyncFunction%"===t)n=jc("async function () {}");else if("%GeneratorFunction%"===t)n=jc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=jc("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Dc&&(n=Dc(o.prototype))}return Wc[t]=n,n},Kc={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qc=$s(),Jc=mc,Xc=Qc.call(Bc,Array.prototype.concat),Yc=Qc.call(Mc,Array.prototype.splice),Zc=Qc.call(Bc,String.prototype.replace),eu=Qc.call(Bc,String.prototype.slice),tu=Qc.call(Bc,RegExp.prototype.exec),nu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,au=/\\(\\)?/g,ou=function(e,t){var n,a=e;if(Jc(Kc,a)&&(a="%"+(n=Kc[a])[0]+"%"),Jc(Wc,a)){var o=Wc[a];if(o===Uc&&(o=$c(a)),void 0===o&&!t)throw new xc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new bc("intrinsic "+e+" does not exist!")},iu=function(e,t){if("string"!=typeof e||0===e.length)throw new xc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new xc('"allowMissing" argument must be a boolean');if(null===tu(/^%?[^%]*%?$/,e))throw new bc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=eu(e,0,1),n=eu(e,-1);if("%"===t&&"%"!==n)throw new bc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new bc("invalid intrinsic syntax, expected opening `%`");var a=[];return Zc(e,nu,function(e,t,n,o){a[a.length]=n?Zc(o,au,"$1"):t||e}),a}(e),a=n.length>0?n[0]:"",o=ou("%"+a+"%",t),i=o.name,r=o.value,s=!1,c=o.alias;c&&(a=c[0],Yc(n,Xc([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=eu(p,0,1),m=eu(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new bc("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Jc(Wc,i="%"+(a+="."+p)+"%"))r=Wc[i];else if(null!=r){if(!(p in r)){if(!t)throw new xc("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ac&&u+1>=n.length){var h=Ac(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Jc(r,p),r=r[p];l&&!s&&(Wc[i]=r)}}return r};var ru=iu("%Object.defineProperty%",!0),su=function(){if(Vc)return Gc;Vc=1;var e=Ws();return Gc=function(){return e()&&!!Symbol.toStringTag}}()(),cu=mc,uu=hs,lu=su?Symbol.toStringTag:null,pu=Lr,du=r,mu=u,hu=l,fu=p,gu=d.parse,yu=m,vu=s.Stream,bu=h,xu=Dr,ku=ss,wu=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new uu("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!lu||!n&&cu(e,lu)||(ru?ru(e,lu,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[lu]=t)},_u=mc,Eu=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function Cu(e){if(!(this instanceof Cu))return new Cu(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],pu.call(this),e=e||{})this[t]=e[t]}du.inherits(Cu,pu),Cu.LINE_BREAK="\r\n",Cu.DEFAULT_CONTENT_TYPE="application/octet-stream",Cu.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var a=pu.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),i=this._multiPartFooter();a(o),a(t),a(i),this._trackLength(o,t,n)}},Cu.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=Number(n.knownLength):Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Cu.LINE_BREAK.length,t&&(t.path||t.readable&&_u(t,"httpVersion")||t instanceof vu)&&(n.knownLength||this._valuesToMeasure.push(t))},Cu.prototype._lengthRetriever=function(e,t){_u(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):yu.stat(e.path,function(n,a){if(n)t(n);else{var o=a.size-(e.start?e.start:0);t(null,o)}}):_u(e,"httpVersion")?t(null,Number(e.headers["content-length"])):_u(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},Cu.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,o=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&Eu(s,n.header),s)if(_u(s,c)){if(null==(a=s[c]))continue;Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+Cu.LINE_BREAK)}return"--"+this.getBoundary()+Cu.LINE_BREAK+r+Cu.LINE_BREAK},Cu.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=mu.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=mu.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&_u(e,"httpVersion")&&(n=mu.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},Cu.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=xu.lookup(e.name)),!n&&e&&e.path&&(n=xu.lookup(e.path)),!n&&e&&e.readable&&_u(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=xu.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=Cu.DEFAULT_CONTENT_TYPE),n},Cu.prototype._multiPartFooter=function(){return function(e){var t=Cu.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Cu.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Cu.LINE_BREAK},Cu.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)_u(e,t)&&(n[t.toLowerCase()]=e[t]);return n},Cu.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},Cu.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Cu.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n<a;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(Cu.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Cu.prototype._generateBoundary=function(){this._boundary="--------------------------"+bu.randomBytes(12).toString("hex")},Cu.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Cu.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Cu.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?ku.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,a){n?e(n):(a.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},Cu.prototype.submit=function(e,t){var n,a,o={method:"post"};return"string"==typeof e?(e=gu(e),a=Eu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(a=Eu(e,o)).port||(a.port="https:"===a.protocol?443:80),a.headers=this.getHeaders(e.headers),n="https:"===a.protocol?fu.request(a):hu.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var o,i=function(e,a){return n.removeListener("error",i),n.removeListener("response",o),t.call(this,e,a)};o=i.bind(this,null),n.on("error",i),n.on("response",o)}}.bind(this)),n},Cu.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Cu.prototype.toString=function(){return"[object FormData]"},wu(Cu,"FormData");var Su=Rr(Cu);function Ru(e){return wr.isPlainObject(e)||wr.isArray(e)}function Tu(e){return wr.endsWith(e,"[]")?e.slice(0,-2):e}function Iu(e,t,n){return e?e.concat(t).map(function(e,t){return e=Tu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ju=wr.toFlatObject(wr,{},null,function(e){return/^is[A-Z]/.test(e)});function Au(e,t,n){if(!wr.isObject(e))throw new TypeError("target must be an object");t=t||new(Su||FormData);const a=(n=wr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!wr.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wr.isSpecCompliantForm(t);if(!wr.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(wr.isDate(e))return e.toISOString();if(wr.isBoolean(e))return e.toString();if(!s&&wr.isBlob(e))throw new _r("Blob is not supported. Use a Buffer instead.");return wr.isArrayBuffer(e)||wr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(wr.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(wr.isArray(e)&&function(e){return wr.isArray(e)&&!e.some(Ru)}(e)||(wr.isFileList(e)||wr.endsWith(n,"[]"))&&(s=wr.toArray(e)))return n=Tu(n),s.forEach(function(e,a){!wr.isUndefined(e)&&null!==e&&t.append(!0===r?Iu([n],a,i):null===r?n:n+"[]",c(e))}),!1;return!!Ru(e)||(t.append(Iu(o,n,i),c(e)),!1)}const l=[],p=Object.assign(ju,{defaultVisitor:u,convertValue:c,isVisitable:Ru});if(!wr.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!wr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),wr.forEach(n,function(n,i){!0===(!(wr.isUndefined(n)||null===n)&&o.call(t,n,wr.isString(i)?i.trim():i,a,p))&&e(n,a?a.concat(i):[i])}),l.pop()}}(e),t}function Ou(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Pu(e,t){this._pairs=[],e&&Au(e,this,t)}const Lu=Pu.prototype;function zu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Du(e,t,n){if(!t)return e;const a=n&&n.encode||zu;wr.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):wr.isURLSearchParams(t)?t.toString():new Pu(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Lu.append=function(e,t){this._pairs.push([e,t])},Lu.toString=function(e){const t=e?function(t){return e.call(this,t,Ou)}:Ou;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var qu=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Nu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mu=d.URLSearchParams;const Bu="abcdefghijklmnopqrstuvwxyz",Uu="0123456789",Fu={DIGIT:Uu,ALPHA:Bu,ALPHA_DIGIT:Bu+Bu.toUpperCase()+Uu};var Wu={isNode:!0,classes:{URLSearchParams:Mu,FormData:Su,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Fu,generateString:(e=16,t=Fu.ALPHA_DIGIT)=>{let n="";const{length:a}=t,o=new Uint32Array(e);h.randomFillSync(o);for(let i=0;i<e;i++)n+=t[o[i]%a];return n},protocols:["http","https","file","data"]};const Hu="undefined"!=typeof window&&"undefined"!=typeof document,Gu="object"==typeof navigator&&navigator||void 0,Vu=Hu&&(!Gu||["ReactNative","NativeScript","NS"].indexOf(Gu.product)<0),$u="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ku=Hu&&window.location.href||"http://localhost";var Qu={...Object.freeze({__proto__:null,hasBrowserEnv:Hu,hasStandardBrowserEnv:Vu,hasStandardBrowserWebWorkerEnv:$u,navigator:Gu,origin:Ku}),...Wu};function Ju(e){function t(e,n,a,o){let i=e[o++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=o>=e.length;if(i=!i&&wr.isArray(a)?a.length:i,s)return wr.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!r;a[i]&&wr.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],o)&&wr.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}(a[i])),!r}if(wr.isFormData(e)&&wr.isFunction(e.entries)){const n={};return wr.forEachEntry(e,(e,a)=>{t(function(e){return wr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null}const Xu={transitional:Nu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=wr.isObject(e);o&&wr.isHTMLForm(e)&&(e=new FormData(e));if(wr.isFormData(e))return a?JSON.stringify(Ju(e)):e;if(wr.isArrayBuffer(e)||wr.isBuffer(e)||wr.isStream(e)||wr.isFile(e)||wr.isBlob(e)||wr.isReadableStream(e))return e;if(wr.isArrayBufferView(e))return e.buffer;if(wr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Au(e,new Qu.classes.URLSearchParams,{visitor:function(e,t,n,a){return Qu.isNode&&wr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=wr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Au(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),function(e,t,n){if(wr.isString(e))try{return(t||JSON.parse)(e),wr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xu.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(wr.isResponse(e)||wr.isReadableStream(e))return e;if(e&&wr.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw _r.from(e,_r.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qu.classes.FormData,Blob:Qu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wr.forEach(["delete","get","head","post","put","patch"],e=>{Xu.headers[e]={}});var Yu=Xu;const Zu=wr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const el=Symbol("internals");function tl(e){return e&&String(e).trim().toLowerCase()}function nl(e){return!1===e||null==e?e:wr.isArray(e)?e.map(nl):String(e)}function al(e,t,n,a,o){return wr.isFunction(a)?a.call(this,t,n):(o&&(t=n),wr.isString(t)?wr.isString(a)?-1!==t.indexOf(a):wr.isRegExp(a)?a.test(t):void 0:void 0)}class ol{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(e,t,n){const o=tl(t);if(!o)throw new Error("header name must be a non-empty string");const i=wr.findKey(a,o);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=nl(e))}const i=(e,t)=>wr.forEach(e,(e,n)=>o(e,n,t));if(wr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(wr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,a,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),a=e.substring(o+1).trim(),!n||t[n]&&Zu[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(wr.isObject(e)&&wr.isIterable(e)){let n,a,o={};for(const t of e){if(!wr.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[a=t[0]]=(n=o[a])?wr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=tl(e)){const n=wr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(wr.isFunction(t))return t.call(this,e,n);if(wr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tl(e)){const n=wr.findKey(this,e);return!(!n||void 0===this[n]||t&&!al(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function o(e){if(e=tl(e)){const o=wr.findKey(n,e);!o||t&&!al(0,n[o],o,t)||(delete n[o],a=!0)}}return wr.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const o=t[n];e&&!al(0,this[o],o,e,!0)||(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return wr.forEach(this,(a,o)=>{const i=wr.findKey(n,o);if(i)return t[i]=nl(a),void delete t[o];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();r!==o&&delete t[o],t[r]=nl(a),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return wr.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&wr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[el]=this[el]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=tl(e);t[a]||(!function(e,t){const n=wr.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,o){return this[a].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[a]=!0)}return wr.isArray(e)?e.forEach(a):a(e),this}}ol.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wr.reduceDescriptors(ol.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),wr.freezeMethods(ol);var il=ol;function rl(e,t){const n=this||Yu,a=t||n,o=il.from(a.headers);let i=a.data;return wr.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sl(e){return!(!e||!e.__CANCEL__)}function cl(e,t,n){_r.call(this,null==e?"canceled":e,_r.ERR_CANCELED,t,n),this.name="CanceledError"}function ul(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ll(e,t,n){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}wr.inherits(cl,_r,{__CANCEL__:!0});var pl={},dl=d.parse,ml={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},hl=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function fl(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}pl.getProxyForUrl=function(e){var t="string"==typeof e?dl(e):e||{},n=t.protocol,a=t.host,o=t.port;if("string"!=typeof a||!a||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(fl("npm_config_no_proxy")||fl("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),o=a?a[1]:n,i=a?parseInt(a[2]):0;return!(!i||i===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!hl.call(e,o)):e!==o)})}(a=a.replace(/:\d*$/,""),o=parseInt(o)||ml[n]||0))return"";var i=fl("npm_config_"+n+"_proxy")||fl(n+"_proxy")||fl("npm_config_proxy")||fl("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var gl,yl,vl,bl,xl,kl={exports:{}},wl={exports:{}},_l={exports:{}};function El(){if(yl)return gl;yl=1;var e=1e3,t=60*e,n=60*t,a=24*n,o=7*a,i=365.25*a;function r(e,t,n,a){var o=t>=1.5*n;return Math.round(e/n)+" "+a+(o?"s":"")}return gl=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(r){if((r=String(r)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(o){var i=Math.abs(o);if(i>=a)return r(o,i,a,"day");if(i>=n)return r(o,i,n,"hour");if(i>=t)return r(o,i,t,"minute");if(i>=e)return r(o,i,e,"second");return o+" ms"}(s):function(o){var i=Math.abs(o);if(i>=a)return Math.round(o/a)+"d";if(i>=n)return Math.round(o/n)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},gl}function Cl(){if(bl)return vl;return bl=1,vl=function(e){function t(e){let a,o,i,r=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(a||o);n.diff=i,n.prev=a,n.curr=o,a=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,o)=>{if("%%"===a)return"%";r++;const i=t.formatters[o];if("function"==typeof i){const t=e[r];a=i.call(n,t),e.splice(r,1),r--}return a}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function a(e,t){let n=0,a=0,o=-1,i=0;for(;n<e.length;)if(a<t.length&&(t[a]===e[n]||"*"===t[a]))"*"===t[a]?(o=a,i=n,a++):(n++,a++);else{if(-1===o)return!1;a=o+1,i++,n=i}for(;a<t.length&&"*"===t[a];)a++;return a===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(a(e,n))return!1;for(const n of t.names)if(a(e,n))return!0;return!1},t.humanize=El(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},vl}var Sl,Rl,Tl,Il,jl,Al,Ol,Pl={exports:{}};function Ll(){return Rl?Sl:(Rl=1,Sl=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),o=t.indexOf("--");return-1!==a&&(-1===o||a<o)})}function zl(){return jl||(jl=1,function(e,t){const n=g,a=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:a,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),i=` ${o};1m${a} [0m`;n[0]=i+n[0].split("\n").join("\n"+i),n.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=function(){if(Il)return Tl;Il=1;const e=y,t=g,n=Ll(),{env:a}=process;let o;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!i&&void 0===o)return 0;const r=o||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?o=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=1),"FORCE_COLOR"in a&&(o="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),Tl={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},Tl}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e},{}),e.exports=Cl()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(Pl,Pl.exports)),Pl.exports}function Dl(){return Al||(Al=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?wl.exports=(xl||(xl=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Cl()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(_l,_l.exports)),_l.exports):wl.exports=zl()),wl.exports}var ql,Nl,Ml,Bl=d,Ul=Bl.URL,Fl=l,Wl=p,Hl=s.Writable,Gl=f,Vl=function(){if(!Ol){try{Ol=Dl()("follow-redirects")}catch(e){}"function"!=typeof Ol&&(Ol=function(){})}Ol.apply(null,arguments)};ql="undefined"!=typeof process,Nl="undefined"!=typeof window&&"undefined"!=typeof document,Ml=mp(Error.captureStackTrace),ql||!Nl&&Ml||console.warn("The follow-redirects package should be excluded from browser builds.");var $l=!1;try{Gl(new Ul(""))}catch(Oa){$l="ERR_INVALID_URL"===Oa.code}var Kl=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ql=["abort","aborted","connect","error","socket","timeout"],Jl=Object.create(null);Ql.forEach(function(e){Jl[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}});var Xl=lp("ERR_INVALID_URL","Invalid URL",TypeError),Yl=lp("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Zl=lp("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Yl),ep=lp("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),tp=lp("ERR_STREAM_WRITE_AFTER_END","write after end"),np=Hl.prototype.destroy||ip;function ap(e,t){Hl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof Yl?e:new Yl({cause:e}))}},this._performRequest()}function op(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(a){var o=a+":",i=n[o]=e[a],r=t[a]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,a,i){var r;return r=e,Ul&&r instanceof Ul?e=cp(e):dp(e)?e=cp(rp(e)):(i=a,a=sp(e),e={protocol:o}),mp(a)&&(i=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,dp(a.host)||dp(a.hostname)||(a.hostname="::1"),Gl.equal(a.protocol,o,"protocol mismatch"),Vl("options",a),new ap(a,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=r.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})}),t}function ip(){}function rp(e){var t;if($l)t=new Ul(e);else if(!dp((t=sp(Bl.parse(e))).protocol))throw new Xl({input:e});return t}function sp(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Xl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Xl({input:e.href||e});return e}function cp(e,t){var n=t||{};for(var a of Kl)n[a]=e[a];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function up(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function lp(e,t,n){function a(n){mp(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function pp(e,t){for(var n of Ql)e.removeListener(n,Jl[n]);e.on("error",ip),e.destroy(t)}function dp(e){return"string"==typeof e||e instanceof String}function mp(e){return"function"==typeof e}ap.prototype=Object.create(Hl.prototype),ap.prototype.abort=function(){pp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},ap.prototype.destroy=function(e){return pp(this._currentRequest,e),np.call(this,e),this},ap.prototype.write=function(e,t,n){if(this._ending)throw new tp;if(!dp(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;mp(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new ep),this.abort()):n&&n()},ap.prototype.end=function(e,t,n){if(mp(e)?(n=e,e=t=null):mp(t)&&(n=t,t=null),e){var a=this,o=this._currentRequest;this.write(e,t,function(){a._ended=!0,o.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},ap.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},ap.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},ap.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),i()},e),a(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),n.removeListener("close",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",a),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ap.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ap.prototype,e,{get:function(){return this._currentRequest[e]}})}),ap.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},ap.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(a._redirectable=this,Ql))a.on(o,Jl[o]);if(this._currentUrl=/^\//.test(this._options.path)?Bl.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(a===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];a.finished||a.write(n.data,n.encoding,e)}else r._ended&&a.end()}()}},ap.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,a=e.headers.location;if(!a||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(pp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Zl;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],up(/^content-/i,this._options.headers));var r,s,c=up(/^host$/i,this._options.headers),u=rp(this._currentUrl),l=c||u.host,p=/^\w+:/.test(a)?this._currentUrl:Bl.format(Object.assign(u,{host:l})),d=(r=a,s=p,$l?new Ul(r,s):rp(Bl.resolve(s,r)));if(Vl("redirecting to",d.href),this._isRedirect=!0,cp(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Gl(dp(e)&&dp(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&up(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),mp(o)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};o(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},kl.exports=op({http:Fl,https:Wl}),kl.exports.wrap=op;var hp=Rr(kl.exports);const fp="1.12.2";function gp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const yp=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const vp=Symbol("internals");class bp extends s.Transform{constructor(e){super({readableHighWaterMark:(e=wr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!wr.isUndefined(t[e]))).chunkSize});const t=this[vp]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[vp];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this[vp],o=a.maxRate,i=this.readableHighWaterMark,r=a.timeWindow,s=o/(1e3/r),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);a.bytesSeen+=n,a.bytes+=n,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(t):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(o){const e=Date.now();(!a.ts||(m=e-a.ts)>=r)&&(a.ts=e,l=s-a.bytes,a.bytes=l<0?-l:0,m=0),l=s-a.bytes}if(o){if(l<=0)return setTimeout(()=>{t(null,e)},r-m);l<d&&(d=l)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),u(e,p?()=>{process.nextTick(t,null,p)}:t)};l(e,function e(t,a){if(t)return n(t);a?l(a,e):n(null)})}}var xp=bp;const{asyncIterator:kp}=Symbol;var wp=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kp]?yield*e[kp]():yield e};const _p=Qu.ALPHABET.ALPHA_DIGIT+"-_",Ep="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Cp="\r\n",Sp=Ep.encode(Cp);class Rp{constructor(e,t){const{escapeName:n}=this.constructor,a=wr.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Cp}`;a?t=Ep.encode(String(t).replace(/\r?\n|\r\n?/g,Cp)):o+=`Content-Type: ${t.type||"application/octet-stream"}${Cp}`,this.headers=Ep.encode(o+Cp),this.contentLength=a?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;wr.isTypedArray(e)?yield e:yield*wp(e),yield Sp}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var Tp=(e,t,n)=>{const{tag:a="form-data-boundary",size:o=25,boundary:i=a+"-"+Qu.generateString(o,_p)}=n||{};if(!wr.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const r=Ep.encode("--"+i+Cp),s=Ep.encode("--"+i+"--"+Cp);let u=s.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new Rp(e,t);return u+=n.size,n});u+=r.byteLength*l.length,u=wr.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),c.from(async function*(){for(const e of l)yield r,yield*e.encode();yield s}())};class Ip extends s.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}var jp=Ip;var Ap=(e,t)=>wr.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then(e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}},a)}:e;const Op=(e,t,n=3)=>{let a=0;const o=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=a[r];o||(o=c),n[i]=s,a[i]=c;let l=r,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,a,o=0,i=1e3/t;const r=(t,i=Date.now())=>{o=i,n=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?r(e,t):(n=e,a||(a=setTimeout(()=>{a=null,r(n)},i-s)))},()=>n&&r(n)]}(n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-a,c=o(s);a=i;e({loaded:i,total:r,progress:r?i/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&i<=r?(r-i)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})},n)},Pp=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Lp=e=>(...t)=>wr.asap(()=>e(...t));const zp={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Dp={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},qp=wr.isFunction(v.createBrotliDecompress),{http:Np,https:Mp}=hp,Bp=/https:?/,Up=Qu.protocols.map(e=>e+":"),Fp=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Wp(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Hp(e,t,n){let a=t;if(!a&&!1!==a){const e=pl.getProxyForUrl(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Hp(e,t,e.href)}}const Gp="undefined"!=typeof process&&"process"===wr.kindOf(process),Vp=(e,t)=>(({address:e,family:t})=>{if(!wr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(wr.isObject(e)?e:{address:e,family:t});var $p=Gp&&function(e){return t=async function(t,n,a){let{data:o,lookup:i,family:c}=e;const{responseType:u,responseEncoding:d}=e,m=e.method.toUpperCase();let h,f,g=!1;if(i){const e=Ap(i,e=>wr.isArray(e)?e:[e]);i=(t,n,a)=>{e(t,n,(e,t,o)=>{if(e)return a(e);const i=wr.isArray(t)?t.map(e=>Vp(e)):[Vp(t,o)];n.all?a(e,i):a(e,i[0].address,i[0].family)})}}const y=new b,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(k),e.signal&&e.signal.removeEventListener("abort",k),y.removeAllListeners()};function k(t){y.emit("abort",!t||t.type?new cl(null,e,f):t)}a((e,t)=>{h=!0,t&&(g=!0,x())}),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(k),e.signal&&(e.signal.aborted?k():e.signal.addEventListener("abort",k)));const w=ll(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,Qu.hasBrowserEnv?Qu.origin:void 0),E=_.protocol||Up[0];if("data:"===E){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let e=a.length;const t=a.length;for(let n=0;n<t;n++)if(37===a.charCodeAt(n)&&n+2<t){const t=a.charCodeAt(n+1),o=a.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===a.charCodeAt(e-2)&&51===a.charCodeAt(e-1)&&(68===a.charCodeAt(e)||100===a.charCodeAt(e));o>=0&&(61===a.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===a.charCodeAt(o)||i(o))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(a,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e))}let a;if("GET"!==m)return ul(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||Qu.classes.Blob,o=gp(e);if(void 0===t&&a&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=yp.exec(e);if(!n)throw new _r("Invalid URL",_r.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!a)throw new _r("Blob is not supported",_r.ERR_NOT_SUPPORT);return new a([c],{type:i})}return c}throw new _r("Unsupported protocol "+o,_r.ERR_NOT_SUPPORT)}(e.url,"blob"===u,{Blob:e.env&&e.env.Blob})}catch(t){throw _r.from(t,_r.ERR_BAD_REQUEST,e)}return"text"===u?(a=a.toString(d),d&&"utf8"!==d||(a=wr.stripBOM(a))):"stream"===u&&(a=s.Readable.from(a)),ul(t,n,{data:a,status:200,statusText:"OK",headers:new il,config:e})}if(-1===Up.indexOf(E))return n(new _r("Unsupported protocol "+E,_r.ERR_BAD_REQUEST,e));const C=il.from(e.headers).normalize();C.set("User-Agent","axios/"+fp,!1);const{onUploadProgress:S,onDownloadProgress:R}=e,T=e.maxRate;let I,j;if(wr.isSpecCompliantForm(o)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);o=Tp(o,e=>{C.set(e)},{tag:`axios-${fp}-boundary`,boundary:e&&e[1]||void 0})}else if(wr.isFormData(o)&&wr.isFunction(o.getHeaders)){if(C.set(o.getHeaders()),!C.hasContentLength())try{const e=await r.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(wr.isBlob(o)||wr.isFile(o))o.size&&C.setContentType(o.type||"application/octet-stream"),C.setContentLength(o.size||0),o=s.Readable.from(wp(o));else if(o&&!wr.isStream(o)){if(Buffer.isBuffer(o));else if(wr.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!wr.isString(o))return n(new _r("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",_r.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(C.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return n(new _r("Request body larger than maxBodyLength limit",_r.ERR_BAD_REQUEST,e))}const A=wr.toFiniteNumber(C.getContentLength());let O,P;wr.isArray(T)?(I=T[0],j=T[1]):I=j=T,o&&(S||I)&&(wr.isStream(o)||(o=s.Readable.from(o,{objectMode:!1})),o=s.pipeline([o,new xp({maxRate:wr.toFiniteNumber(I)})],wr.noop),S&&o.on("progress",Fp(o,Pp(A,Op(Lp(S),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{P=Du(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}C.set("Accept-Encoding","gzip, compress, deflate"+(qp?", br":""),!1);const L={path:P,method:m,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:c,beforeRedirect:Wp,beforeRedirects:{}};let z;!wr.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,L.port=_.port,Hp(L,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+L.path));const D=Bp.test(L.protocol);if(L.agent=D?e.httpsAgent:e.httpAgent,e.transport?z=e.transport:0===e.maxRedirects?z=D?p:l:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),z=D?Mp:Np),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=z.request(L,function(a){if(f.destroyed)return;const o=[a],i=+a.headers["content-length"];if(R||j){const e=new xp({maxRate:wr.toFiniteNumber(j)});R&&e.on("progress",Fp(e,Pp(i,Op(Lp(R),!0,3)))),o.push(e)}let r=a;const c=a.req||f;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==m&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"deflate":o.push(new jp),o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"br":qp&&(o.push(v.createBrotliDecompress(Dp)),delete a.headers["content-encoding"])}r=o.length>1?s.pipeline(o,wr.noop):o[0];const l=s.finished(r,()=>{l(),x()}),p={status:a.statusCode,statusText:a.statusMessage,headers:new il(a.headers),config:e,request:c};if("stream"===u)p.data=r,ul(t,n,p);else{const a=[];let o=0;r.on("data",function(t){a.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(g=!0,r.destroy(),n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e,c)))}),r.on("aborted",function(){if(g)return;const t=new _r("stream has been aborted",_r.ERR_BAD_RESPONSE,e,c);r.destroy(t),n(t)}),r.on("error",function(t){f.destroyed||n(_r.from(t,null,e,c))}),r.on("end",function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==u&&(e=e.toString(d),d&&"utf8"!==d||(e=wr.stripBOM(e))),p.data=e}catch(t){return n(_r.from(t,null,e,p.request,p))}ul(t,n,p)})}y.once("abort",e=>{r.destroyed||(r.emit("error",e),r.destroy())})}),y.once("abort",e=>{n(e),f.destroy(e)}),f.on("error",function(t){n(_r.from(t,null,e,f))}),f.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new _r("error trying to parse `config.timeout` to int",_r.ERR_BAD_OPTION_VALUE,e,f));f.setTimeout(t,function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Nu;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _r(t,a.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),k()})}if(wr.isStream(o)){let t=!1,n=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{n=!0,f.destroy(e)}),o.on("close",()=>{t||n||k(new cl("Request stream has been aborted",e,f))}),o.pipe(f)}else f.end(o)},new Promise((e,n)=>{let a,o;const i=(e,t)=>{o||(o=!0,a&&a(e,t))},r=e=>{i(e,!0),n(e)};t(t=>{i(t),e(t)},r,e=>a=e).catch(r)});var t},Kp=Qu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qu.origin),Qu.navigator&&/(msie|trident)/i.test(Qu.navigator.userAgent)):()=>!0,Qp=Qu.hasStandardBrowserEnv?{write(e,t,n,a,o,i){const r=[e+"="+encodeURIComponent(t)];wr.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),wr.isString(a)&&r.push("path="+a),wr.isString(o)&&r.push("domain="+o),!0===i&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Jp=e=>e instanceof il?{...e}:e;function Xp(e,t){t=t||{};const n={};function a(e,t,n,a){return wr.isPlainObject(e)&&wr.isPlainObject(t)?wr.merge.call({caseless:a},e,t):wr.isPlainObject(t)?wr.merge({},t):wr.isArray(t)?t.slice():t}function o(e,t,n,o){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e,0,o):a(e,t,0,o)}function i(e,t){if(!wr.isUndefined(t))return a(void 0,t)}function r(e,t){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,o,i){return i in t?a(n,o):i in e?a(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t,n)=>o(Jp(e),Jp(t),0,!0)};return wr.forEach(Object.keys({...e,...t}),function(a){const i=c[a]||o,r=i(e[a],t[a],a);wr.isUndefined(r)&&i!==s||(n[a]=r)}),n}var Yp=e=>{const t=Xp({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=il.from(r),t.url=Du(ll(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),wr.isFormData(n))if(Qu.hasStandardBrowserEnv||Qu.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(wr.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&r.set(e,n)})}if(Qu.hasStandardBrowserEnv&&(a&&wr.isFunction(a)&&(a=a(t)),a||!1!==a&&Kp(t.url))){const e=o&&i&&Qp.read(i);e&&r.set(o,e)}return t};var Zp="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=Yp(e);let o=a.data;const i=il.from(a.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=a;function h(){u&&u(),l&&l(),a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const a=il.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ul(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new _r("Request aborted",_r.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const a=new _r(t&&t.message?t.message:"Network Error",_r.ERR_NETWORK,e,f);a.event=t||null,n(a),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const o=a.transitional||Nu;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new _r(t,o.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),f=null},void 0===o&&i.setContentType(null),"setRequestHeader"in f&&wr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),wr.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),p&&"json"!==p&&(f.responseType=a.responseType),m&&([c,l]=Op(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=Op(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(r=t=>{f&&(n(!t||t.type?new cl(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const y=gp(a.url);y&&-1===Qu.protocols.indexOf(y)?n(new _r("Unsupported protocol "+y+":",_r.ERR_BAD_REQUEST,e)):f.send(o||null)})};var ed=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;a.abort(t instanceof _r?t:new cl(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=a;return s.unsubscribe=()=>wr.asap(r),s}};const td=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,o=0;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},nd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ad=(e,t,n,a)=>{const o=async function*(e,t){for await(const n of nd(e))yield*td(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await o.next();if(t)return s(),void e.close();let i=a.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:od}=wr,id=(({Request:e,Response:t})=>({Request:e,Response:t}))(wr.global),{ReadableStream:rd,TextEncoder:sd}=wr.global,cd=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=e=>{e=wr.merge.call({skipUndefined:!0},id,e);const{fetch:t,Request:n,Response:a}=e,o=t?od(t):"function"==typeof fetch,i=od(n),r=od(a);if(!o)return!1;const s=o&&od(rd),c=o&&("function"==typeof sd?(e=>t=>e.encode(t))(new sd):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&cd(()=>{let e=!1;const t=new n(Qu.origin,{body:new rd,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=r&&s&&cd(()=>wr.isReadableStream(new a("").body)),p={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let a=t&&t[e];if(a)return a.call(t);throw new _r(`Response type '${e}' is not supported`,_r.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const a=wr.toFiniteNumber(e.getContentLength());return null==a?(async e=>{if(null==e)return 0;if(wr.isBlob(e))return e.size;if(wr.isSpecCompliantForm(e)){const t=new n(Qu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return wr.isArrayBufferView(e)||wr.isArrayBuffer(e)?e.byteLength:(wr.isURLSearchParams(e)&&(e+=""),wr.isString(e)?(await c(e)).byteLength:void 0)})(t):a};return async e=>{let{url:o,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:x}=Yp(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let w=ed([c,m&&m.toAbortSignal()],h),_=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(g&&u&&"get"!==r&&"head"!==r&&0!==(C=await d(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(wr.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Pp(C,Op(Lp(g)));s=ad(t.body,65536,e,n)}}wr.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...x,signal:w,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};_=i&&new n(o,c);let m=await(i?k(_,x):k(o,c));const h=l&&("stream"===y||"response"===y);if(l&&(f||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=wr.toFiniteNumber(m.headers.get("content-length")),[n,o]=f&&Pp(t,Op(Lp(f),!0))||[];m=new a(ad(m.body,65536,n,()=>{o&&o(),E&&E()}),e)}y=y||"text";let S=await p[wr.findKey(p,y)||"text"](m,e);return!h&&E&&E(),await new Promise((t,n)=>{ul(t,n,{data:S,headers:il.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:_})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,_),{cause:t.cause||t});throw _r.from(t,t&&t.code,e,_)}}},ld=new Map,pd=e=>{let t=e?e.env:{};const{fetch:n,Request:a,Response:o}=t,i=[a,o,n];let r,s,c=i.length,u=ld;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:ud(t)),u=s;return s};pd();const dd={http:$p,xhr:Zp,fetch:{get:pd}};wr.forEach(dd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const md=e=>`- ${e}`,hd=e=>wr.isFunction(e)||null===e||!1===e;var fd=(e,t)=>{e=wr.isArray(e)?e:[e];const{length:n}=e;let a,o;const i={};for(let r=0;r<n;r++){let n;if(a=e[r],o=a,!hd(a)&&(o=dd[(n=String(a)).toLowerCase()],void 0===o))throw new _r(`Unknown adapter '${n}'`);if(o&&(wr.isFunction(o)||(o=o.get(t))))break;i[n||"#"+r]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new _r("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(md).join("\n"):" "+md(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function gd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function yd(e){gd(e),e.headers=il.from(e.headers),e.data=rl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fd(e.adapter||Yu.adapter,e)(e).then(function(t){return gd(e),t.data=rl.call(e,e.transformResponse,t),t.headers=il.from(t.headers),t},function(t){return sl(t)||(gd(e),t&&t.response&&(t.response.data=rl.call(e,e.transformResponse,t.response),t.response.headers=il.from(t.response.headers))),Promise.reject(t)})}const vd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const bd={};vd.transitional=function(e,t,n){function a(e,t){return"[Axios v"+fp+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _r(a(o," has been removed"+(t?" in "+t:"")),_r.ERR_DEPRECATED);return t&&!bd[o]&&(bd[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},vd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var xd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const i=a[o],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new _r("option "+i+" must be "+n,_r.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new _r("Unknown option "+i,_r.ERR_BAD_OPTION)}},validators:vd};const kd=xd.validators;let wd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new qu,response:new qu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xp(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:o}=t;void 0!==n&&xd.assertOptions(n,{silentJSONParsing:kd.transitional(kd.boolean),forcedJSONParsing:kd.transitional(kd.boolean),clarifyTimeoutError:kd.transitional(kd.boolean)},!1),null!=a&&(wr.isFunction(a)?t.paramsSerializer={serialize:a}:xd.assertOptions(a,{encode:kd.function,serialize:kd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xd.assertOptions(t,{baseUrl:kd.spelling("baseURL"),withXsrfToken:kd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&wr.merge(o.common,o[t.method]);o&&wr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=il.concat(i,o);const r=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,p=0;if(!s){const e=[yd.bind(this),void 0];for(e.unshift(...r),e.push(...c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=r.length;let d=t;for(;p<l;){const e=r[p++],t=r[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=yd.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return Du(ll((e=Xp(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};wr.forEach(["delete","get","head","options"],function(e){wd.prototype[e]=function(t,n){return this.request(Xp(n||{},{method:e,url:t,data:(n||{}).data}))}}),wr.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,o){return this.request(Xp(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}wd.prototype[e]=t(),wd.prototype[e+"Form"]=t(!0)});var _d=wd;class Ed{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,o){n.reason||(n.reason=new cl(e,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ed(function(t){e=t}),cancel:e}}}var Cd=Ed;const Sd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sd).forEach(([e,t])=>{Sd[t]=e});var Rd=Sd;const Td=function e(t){const n=new _d(t),a=Pi(_d.prototype.request,n);return wr.extend(a,_d.prototype,n,{allOwnKeys:!0}),wr.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(Xp(t,n))},a}(Yu);Td.Axios=_d,Td.CanceledError=cl,Td.CancelToken=Cd,Td.isCancel=sl,Td.VERSION=fp,Td.toFormData=Au,Td.AxiosError=_r,Td.Cancel=Td.CanceledError,Td.all=function(e){return Promise.all(e)},Td.spread=function(e){return function(t){return e.apply(null,t)}},Td.isAxiosError=function(e){return wr.isObject(e)&&!0===e.isAxiosError},Td.mergeConfig=Xp,Td.AxiosHeaders=il,Td.formToJSON=e=>Ju(wr.isHTMLForm(e)?new FormData(e):e),Td.getAdapter=fd,Td.HttpStatusCode=Rd,Td.default=Td;var Id=Td,jd=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],a=e[1];if(Array.isArray(a)){var o=a.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(o))}else null!=a&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(a))))}),t.join("&")},Ad=function(e){function t(t){var n,a,i,r,s=this;return(s=e.call(this,t)||this).token="",null===(a=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===a||a.request.use(function(e){return o(o({},e),{defaults:{headers:o(o({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(r=null===(i=s.instance)||void 0===i?void 0:i.interceptors)||void 0===r||r.response.use(function(e){return o({},e)},function(e){return Promise.reject(e)}),s}return a(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Id.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}(function(e){this.instance=Id.create(e)}),Od=r.inspect,Pd="function"==typeof Map&&Map.prototype,Ld=Object.getOwnPropertyDescriptor&&Pd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zd=Pd&&Ld&&"function"==typeof Ld.get?Ld.get:null,Dd=Pd&&Map.prototype.forEach,qd="function"==typeof Set&&Set.prototype,Nd=Object.getOwnPropertyDescriptor&&qd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Md=qd&&Nd&&"function"==typeof Nd.get?Nd.get:null,Bd=qd&&Set.prototype.forEach,Ud="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Fd="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Wd="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Hd=Boolean.prototype.valueOf,Gd=Object.prototype.toString,Vd=Function.prototype.toString,$d=String.prototype.match,Kd=String.prototype.slice,Qd=String.prototype.replace,Jd=String.prototype.toUpperCase,Xd=String.prototype.toLowerCase,Yd=RegExp.prototype.test,Zd=Array.prototype.concat,em=Array.prototype.join,tm=Array.prototype.slice,nm=Math.floor,am="function"==typeof BigInt?BigInt.prototype.valueOf:null,om=Object.getOwnPropertySymbols,im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,rm="function"==typeof Symbol&&"object"==typeof Symbol.iterator,sm="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===rm||"symbol")?Symbol.toStringTag:null,cm=Object.prototype.propertyIsEnumerable,um=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function lm(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Yd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var a=e<0?-nm(-e):nm(e);if(a!==e){var o=String(a),i=Kd.call(t,o.length+1);return Qd.call(o,n,"$&_")+"."+Qd.call(Qd.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Qd.call(t,n,"$&_")}var pm=Od,dm=pm.custom,mm=wm(dm)?dm:null,hm={__proto__:null,double:'"',single:"'"},fm={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},gm=function e(t,n,a,o){var i=n||{};if(Em(i,"quoteStyle")&&!Em(hm,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Em(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var r=!Em(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Em(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Em(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Rm(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?lm(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?lm(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===a&&(a=0),a>=l&&l>0&&"object"==typeof t)return xm(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=em.call(Array(e.indent+1)," ")}return{base:n,prev:em.call(Array(t+1),n)}}(i,a);if(void 0===o)o=[];else if(Sm(o,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(o=tm.call(o)).push(n),r){var s={depth:i.depth};return Em(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,a+1,o)}return e(t,i,a+1,o)}if("function"==typeof t&&!km(t)){var m=function(e){if(e.name)return e.name;var t=$d.call(Vd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Pm(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+em.call(h,", ")+" }":"")}if(wm(t)){var f=rm?Qd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):im.call(t);return"object"!=typeof t||rm?f:Im(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+Xd.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+ym(vm(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Xd.call(String(t.nodeName))+">"}if(xm(t)){if(0===t.length)return"[]";var b=Pm(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Sm(e[t],"\n")>=0)return!1;return!0}(b)?"["+Om(b,p)+"]":"[ "+em.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Cm(e)&&bm(e)}(t)){var x=Pm(t,d);return"cause"in Error.prototype||!("cause"in t)||cm.call(t,"cause")?0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+em.call(x,", ")+" }":"{ ["+String(t)+"] "+em.call(Zd.call("[cause]: "+d(t.cause),x),", ")+" }"}if("object"==typeof t&&r){if(mm&&"function"==typeof t[mm]&&pm)return pm(t,{depth:l-a});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!zd||!e||"object"!=typeof e)return!1;try{zd.call(e);try{Md.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return Dd&&Dd.call(t,function(e,n){k.push(d(n,t,!0)+" => "+d(e,t))}),Am("Map",zd.call(t),k,p)}if(function(e){if(!Md||!e||"object"!=typeof e)return!1;try{Md.call(e);try{zd.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Bd&&Bd.call(t,function(e){w.push(d(e,t))}),Am("Set",Md.call(t),w,p)}if(function(e){if(!Ud||!e||"object"!=typeof e)return!1;try{Ud.call(e,Ud);try{Fd.call(e,Fd)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return jm("WeakMap");if(function(e){if(!Fd||!e||"object"!=typeof e)return!1;try{Fd.call(e,Fd);try{Ud.call(e,Ud)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return jm("WeakSet");if(function(e){if(!Wd||!e||"object"!=typeof e)return!1;try{return Wd.call(e),!0}catch(e){}return!1}(t))return jm("WeakRef");if(function(e){return"[object Number]"===Cm(e)&&bm(e)}(t))return Im(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!am)return!1;try{return am.call(e),!0}catch(e){}return!1}(t))return Im(d(am.call(t)));if(function(e){return"[object Boolean]"===Cm(e)&&bm(e)}(t))return Im(Hd.call(t));if(function(e){return"[object String]"===Cm(e)&&bm(e)}(t))return Im(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Sr&&t===Sr)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Cm(e)&&bm(e)}(t)&&!km(t)){var _=Pm(t,d),E=um?um(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&sm&&Object(t)===t&&sm in t?Kd.call(Cm(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+em.call(Zd.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":p?R+"{"+Om(_,p)+"}":R+"{ "+em.call(_,", ")+" }"}return String(t)};function ym(e,t,n){var a=n.quoteStyle||t,o=hm[a];return o+e+o}function vm(e){return Qd.call(String(e),/"/g,""")}function bm(e){return!sm||!("object"==typeof e&&(sm in e||void 0!==e[sm]))}function xm(e){return"[object Array]"===Cm(e)&&bm(e)}function km(e){return"[object RegExp]"===Cm(e)&&bm(e)}function wm(e){if(rm)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!im)return!1;try{return im.call(e),!0}catch(e){}return!1}var _m=Object.prototype.hasOwnProperty||function(e){return e in this};function Em(e,t){return _m.call(e,t)}function Cm(e){return Gd.call(e)}function Sm(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1}function Rm(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return Rm(Kd.call(e,0,t.maxStringLength),t)+a}var o=fm[t.quoteStyle||"single"];return o.lastIndex=0,ym(Qd.call(Qd.call(e,o,"\\$1"),/[\x00-\x1f]/g,Tm),"single",t)}function Tm(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Jd.call(t.toString(16))}function Im(e){return"Object("+e+")"}function jm(e){return e+" { ? }"}function Am(e,t,n,a){return e+" ("+t+") {"+(a?Om(n,a):em.call(n,", "))+"}"}function Om(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+em.call(e,","+n)+"\n"+t.prev}function Pm(e,t){var n=xm(e),a=[];if(n){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=Em(e,o)?t(e[o],e):""}var i,r="function"==typeof om?om(e):[];if(rm){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)Em(e,c)&&(n&&String(Number(c))===c&&c<e.length||rm&&i["$"+c]instanceof Symbol||(Yd.call(/[^\w$]/,c)?a.push(t(c,e)+": "+t(e[c],e)):a.push(c+": "+t(e[c],e))));if("function"==typeof om)for(var u=0;u<r.length;u++)cm.call(e,r[u])&&a.push("["+t(r[u])+"]: "+t(e[r[u]],e));return a}var Lm,zm,Dm,qm,Nm,Mm,Bm,Um,Fm,Wm,Hm,Gm,Vm=gm,$m=hs,Km=function(e,t,n){for(var a,o=e;null!=(a=o.next);o=a)if(a.key===t)return o.next=a.next,n||(a.next=e.next,e.next=a),a},Qm=iu,Jm=uc,Xm=Jm([Qm("%String.prototype.indexOf%")]),Ym=function(e,t){var n=Qm(e,!!t);return"function"==typeof n&&Xm(e,".prototype.")>-1?Jm([n]):n},Zm=Ym,eh=gm,th=hs,nh=iu("%Map%",!0),ah=Zm("Map.prototype.get",!0),oh=Zm("Map.prototype.set",!0),ih=Zm("Map.prototype.has",!0),rh=Zm("Map.prototype.delete",!0),sh=Zm("Map.prototype.size",!0),ch=!!nh&&function(){var e,t={assert:function(e){if(!t.has(e))throw new th("Side channel does not contain "+eh(e))},delete:function(t){if(e){var n=rh(e,t);return 0===sh(e)&&(e=void 0),n}return!1},get:function(t){if(e)return ah(e,t)},has:function(t){return!!e&&ih(e,t)},set:function(t,n){e||(e=new nh),oh(e,t,n)}};return t},uh=Ym,lh=gm,ph=ch,dh=hs,mh=iu("%WeakMap%",!0),hh=uh("WeakMap.prototype.get",!0),fh=uh("WeakMap.prototype.set",!0),gh=uh("WeakMap.prototype.has",!0),yh=uh("WeakMap.prototype.delete",!0),vh=hs,bh=gm,xh=function(){var e,t={assert:function(e){if(!t.has(e))throw new $m("Side channel does not contain "+Vm(e))},delete:function(t){var n=e&&e.next,a=function(e,t){if(e)return Km(e,t,!0)}(e,t);return a&&n&&n===a&&(e=void 0),!!a},get:function(t){return function(e,t){if(e){var n=Km(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Km(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var a=Km(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},kh=(mh?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new dh("Side channel does not contain "+lh(e))},delete:function(n){if(mh&&n&&("object"==typeof n||"function"==typeof n)){if(e)return yh(e,n)}else if(ph&&t)return t.delete(n);return!1},get:function(n){return mh&&n&&("object"==typeof n||"function"==typeof n)&&e?hh(e,n):t&&t.get(n)},has:function(n){return mh&&n&&("object"==typeof n||"function"==typeof n)&&e?gh(e,n):!!t&&t.has(n)},set:function(n,a){mh&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new mh),fh(e,n,a)):ph&&(t||(t=ph()),t.set(n,a))}};return n}:ph)||ch||xh,wh=String.prototype.replace,_h=/%20/g,Eh="RFC3986",Ch={default:Eh,formatters:{RFC1738:function(e){return wh.call(e,_h,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Eh},Sh=Ch,Rh=Object.prototype.hasOwnProperty,Th=Array.isArray,Ih=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jh=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n},Ah=1024,Oh={arrayToObject:jh,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],i=o.obj[o.prop],r=Object.keys(i),s=0;s<r.length;++s){var c=r[s],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Th(n)){for(var a=[],o=0;o<n.length;++o)void 0!==n[o]&&a.push(n[o]);t.obj[t.prop]=a}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode:function(e,t,n,a,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var r="",s=0;s<i.length;s+=Ah){for(var c=i.length>=Ah?i.slice(s,s+Ah):i,u=[],l=0;l<c.length;++l){var p=c.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Sh.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Ih[p]:p<2048?u[u.length]=Ih[192|p>>6]+Ih[128|63&p]:p<55296||p>=57344?u[u.length]=Ih[224|p>>12]+Ih[128|p>>6&63]+Ih[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Ih[240|p>>18]+Ih[128|p>>12&63]+Ih[128|p>>6&63]+Ih[128|63&p])}r+=u.join("")}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Th(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},merge:function e(t,n,a){if(!n)return t;if("object"!=typeof n){if(Th(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(a&&(a.plainObjects||a.allowPrototypes)||!Rh.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return Th(t)&&!Th(n)&&(o=jh(t,a)),Th(t)&&Th(n)?(n.forEach(function(n,o){if(Rh.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,a):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var i=n[o];return Rh.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t},o)}},Ph=function(){var e,t={assert:function(e){if(!t.has(e))throw new vh("Side channel does not contain "+bh(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=kh()),e.set(t,n)}};return t},Lh=Oh,zh=Ch,Dh=Object.prototype.hasOwnProperty,qh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Nh=Array.isArray,Mh=Array.prototype.push,Bh=function(e,t){Mh.apply(e,Nh(t)?t:[t])},Uh=Date.prototype.toISOString,Fh=zh.default,Wh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Lh.encode,encodeValuesOnly:!1,format:Fh,formatter:zh.formatters[Fh],indices:!1,serializeDate:function(e){return Uh.call(e)},skipNulls:!1,strictNullHandling:!1},Hh={},Gh=function e(t,n,a,o,i,r,s,c,u,l,p,d,m,h,f,g,y,v){for(var b,x=t,k=v,w=0,_=!1;void 0!==(k=k.get(Hh))&&!_;){var E=k.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===k.get(Hh)&&(w=0)}if("function"==typeof l?x=l(n,x):x instanceof Date?x=m(x):"comma"===a&&Nh(x)&&(x=Lh.maybeMap(x,function(e){return e instanceof Date?m(e):e})),null===x){if(r)return u&&!g?u(n,Wh.encoder,y,"key",h):n;x=""}if("string"==typeof(b=x)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Lh.isBuffer(x))return u?[f(g?n:u(n,Wh.encoder,y,"key",h))+"="+f(u(x,Wh.encoder,y,"value",h))]:[f(n)+"="+f(String(x))];var C,S=[];if(void 0===x)return S;if("comma"===a&&Nh(x))g&&u&&(x=Lh.maybeMap(x,u)),C=[{value:x.length>0?x.join(",")||null:void 0}];else if(Nh(l))C=l;else{var R=Object.keys(x);C=p?R.sort(p):R}var T=c?n.replace(/\./g,"%2E"):n,I=o&&Nh(x)&&1===x.length?T+"[]":T;if(i&&Nh(x)&&0===x.length)return I+"[]";for(var j=0;j<C.length;++j){var A=C[j],O="object"==typeof A&&void 0!==A.value?A.value:x[A];if(!s||null!==O){var P=d&&c?A.replace(/\./g,"%2E"):A,L=Nh(x)?"function"==typeof a?a(I,P):I:I+(d?"."+P:"["+P+"]");v.set(t,w);var z=Ph();z.set(Hh,v),Bh(S,e(O,L,a,o,i,r,s,c,"comma"===a&&g&&Nh(x)?null:u,l,p,d,m,h,f,g,y,z))}}return S},Vh=Oh,$h=Object.prototype.hasOwnProperty,Kh=Array.isArray,Qh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Vh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Jh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Xh=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Yh=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=r?o.slice(0,r.index):o,c=[];if(s){if(!n.plainObjects&&$h.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(o))&&u<n.depth;){if(u+=1,!n.plainObjects&&$h.call(Object.prototype,r[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(r[1])}if(r){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(r.index)+"]")}return function(e,t,n,a){for(var o=a?t:Xh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{r=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(r=[])[l]=o:"__proto__"!==u&&(r[u]=o):r={0:o}}o=r}return o}(c,t,n,a)}},Zh=function(e,t){var n,a=e,o=function(e){if(!e)return Wh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Wh.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=zh.default;if(void 0!==e.format){if(!Dh.call(zh.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a,o=zh.formatters[n],i=Wh.filter;if(("function"==typeof e.filter||Nh(e.filter))&&(i=e.filter),a=e.arrayFormat in qh?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Wh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var r=void 0===e.allowDots?!0===e.encodeDotInKeys||Wh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Wh.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Wh.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Wh.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Wh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Wh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Wh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Wh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Wh.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Wh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Wh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Wh.strictNullHandling}}(t);"function"==typeof o.filter?a=(0,o.filter)("",a):Nh(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof a||null===a)return"";var r=qh[o.arrayFormat],s="comma"===r&&o.commaRoundTrip;n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var c=Ph(),u=0;u<n.length;++u){var l=n[u];o.skipNulls&&null===a[l]||Bh(i,Gh(a[l],l,r,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},ef=function(e,t){var n=function(e){if(!e)return Qh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Qh.charset:e.charset,n=void 0===e.duplicates?Qh.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Qh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Qh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Qh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Qh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Qh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Qh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Qh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Qh.decoder,delimiter:"string"==typeof e.delimiter||Vh.isRegExp(e.delimiter)?e.delimiter:Qh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Qh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Qh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Qh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Qh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Qh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qh.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof e?function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=a.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(o=0;o<r.length;++o)0===r[o].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[o]?c="utf-8":"utf8=%26%2310003%3B"===r[o]&&(c="iso-8859-1"),s=o,o=r.length);for(o=0;o<r.length;++o)if(o!==s){var u,l,p=r[o],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Qh.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Qh.decoder,c,"key"),l=Vh.maybeMap(Xh(p.slice(m+1),t),function(e){return t.decoder(e,Qh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Jh(l)),p.indexOf("[]=")>-1&&(l=Kh(l)?[l]:l);var h=$h.call(n,u);h&&"combine"===t.duplicates?n[u]=Vh.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(a),r=0;r<i.length;++r){var s=i[r],c=Yh(s,a[s],n,"string"==typeof e);o=Vh.merge(o,c,n)}return!0===n.allowSparse?o:Vh.compact(o)},tf={formats:Ch,parse:ef,stringify:Zh},nf={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return tf.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Lm||(Lm={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(zm||(zm={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Dm||(Dm={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(qm||(qm={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(Nm||(Nm={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Mm||(Mm={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Bm||(Bm={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Um||(Um={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Fm||(Fm={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.ADVANCEMENTS="ADVANCEMENTS",e.FEES="FEES"}(Wm||(Wm={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Hm||(Hm={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Gm||(Gm={}));var af=["PAUSED","ACTIVE"],of={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},rf="DELETED",sf={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},cf=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},uf=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],lf=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],pf=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],df=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],mf=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],hf={docs_url:"https://docs.y.uno/reference/api-reference-overview"},ff={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},gf=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const yf=[];for(let e=0;e<256;++e)yf.push((e+256).toString(16).slice(1));let vf;const bf=new Uint8Array(16);var xf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kf(e,t,n){if(xf.randomUUID&&!t&&!e)return xf.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!vf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vf=crypto.getRandomValues.bind(crypto)}return vf(bf)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(yf[e[t+0]]+yf[e[t+1]]+yf[e[t+2]]+yf[e[t+3]]+"-"+yf[e[t+4]]+yf[e[t+5]]+"-"+yf[e[t+6]]+yf[e[t+7]]+"-"+yf[e[t+8]]+yf[e[t+9]]+"-"+yf[e[t+10]]+yf[e[t+11]]+yf[e[t+12]]+yf[e[t+13]]+yf[e[t+14]]+yf[e[t+15]]).toLowerCase()}(a)}var wf=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},_f=function(e){function r(t){var n=t?o(o({},nf),t):nf;return e.call(this,n)||this}return a(r,e),r.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},r.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Wm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},r.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Wm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},r.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},r.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},r.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},r.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},r.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},r.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},r.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},r.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},r.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},r.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},r.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},r.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},r.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},r.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=i(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.postPayouts=function(e){var t=e.account_code,n=i(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payouts",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},r.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=i(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},r.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},r.prototype.postTransactions=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.postFraudTransactions=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},r.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},r.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},r.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,a=e.country,o=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(a),o?{}:{headers:i})},r.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},r.prototype.createOperationTransaction=function(e,t,n,a){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(a),e)},r.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},r.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},r.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},r.prototype.uploadChargebacks=function(e,t,n,a){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":kf()}})},r.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},r.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},r.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},r.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},r.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},r.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},r.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},r.prototype.getAllOrganization=function(){return this.get("/organizations/all")},r.prototype.getProviderParams=function(e,t){var n,a=localStorage.getItem("x-organization-code"),o={"x-organization-code":a?null===(n=JSON.parse(a))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:o})},r.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},r.prototype.putCosts=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},r.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,function(){return n(this,function(e){return[2,this.patch("/organizations/status")]})})},r.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},r.prototype.getConnectionsByPaymentMethod=function(e,a){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(a))]})})},r.prototype.getHashPylon=function(){return this.get("/pylon-hash")},r.prototype.getConnections=function(){return this.get("/connections")},r.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},r.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,a="/connections/change-status";if(t.status==rf)return delete t.status,this.delete(a,{data:t});Object.values(af).includes(null==t?void 0:t.status)&&(a="".concat(a,"/").concat(of[t.status]),delete t.status);var o={"x-account-code":n};return this.post(a,t,{headers:o})},r.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},r.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},r.prototype.patchConnection=function(e){var t,n=e.payload,a=e.connectionCode,i=localStorage.getItem("account"),r=i?null===(t=JSON.parse(i).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(a),o({account_code:r},n))},r.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},r.prototype.getDialogs=function(){return this.get("/dialogs")},r.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},r.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},r.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},r.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},r.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},r.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},r.prototype.getMenu=function(){return this.get("/cms/menu")},r.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/webhooks/organization",o,{params:a,paramsSerializer:jd})},r.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},r.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},r.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/api-logs/organization",o,{params:a,paramsSerializer:jd})},r.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},r.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},r.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},r.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},r.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},r.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},r.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},r.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},r.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},r.prototype.getLocales=function(){return this.get("/cms/locales")},r.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},r.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},r.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},r.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},r.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},r.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},r.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},r.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},r.prototype.postSmartRoutingPublishVersion=function(e,t,n){var a={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:a})},r.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},r.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},r.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},r.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},r.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},r.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},r.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},r.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},r.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},r.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},r.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},r.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},r.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},r.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},r.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},r.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},r.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},r.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},r.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},r.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},r.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,a=e.connection_name,o=i(e,["account_code","connection_name"]),r=wf(n);return a&&(r.connection_name=a.split(",")),this.post("/insights/conversion-rate/".concat(t),r,{params:o})},r.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,a=i(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),wf(n),{params:a})},r.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",wf(t),{params:n})},r.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,a=i(t,["connection_name"]),r={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(r=o(o({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",r,{params:a})},r.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var a=n.connection_name,r=i(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return a&&(s=o(o({},s),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/volume/".concat(t),s,{params:r})},r.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},r.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},r.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},r.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},r.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},r.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},r.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},r.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},r.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},r.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},r.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},r.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,a=i(e,["account_code","connection_name"]),r=wf(t);return n&&(r=o(o({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",r,{params:a})},r.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,a=e.connection_name,r=i(e,["account_code","connection_name"]),s=wf(n);return a&&(s=o(o({},s),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/overview/".concat(t),s,{params:r})},r.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},r.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},r.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},r.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},r.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},r.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},r.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),a=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":a}})},r.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},r.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,a={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:a})},r.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,a={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:a})},r.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload,i={"x-account-code":t,"x-environment":a,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",o,{headers:i})},r.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},r.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},r.prototype.createReportV2=function(e){return this.post("/reports",e)},r.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},r.prototype.reportsList=function(){return this.get("/reports")},r.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},r.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},r.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},r.prototype.getReportTemplates=function(){return this.get("/reports/templates")},r.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},r.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},r.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},r.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},r.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},r.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},r.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},r.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},r.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},r.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},r.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},r.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},r.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},r.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},r.prototype.getRefundPdf=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:a})},r.prototype.getProofOfCancel=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:a})},r.prototype.getProofOfPayment=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:a})},r.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},r.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},r.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},r.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},r.prototype.getProfile=function(){return this.get("/user")},r.prototype.getUserFull=function(){return this.get("/user-full")},r.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},r.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},r.prototype.getUsersToImpersonate=function(e,t,n,a,i){void 0===n&&(n=1),void 0===a&&(a=10);var r=o({account_codes:t||[],page:n,page_size:a},i&&{search_value:i});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),r)},r.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},r.prototype.updateProfile=function(e){return this.patch("/user",e)},r.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},r.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},r.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},r.prototype.getAccountsV2=function(){return this.get("/accounts-user")},r.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},r.prototype.putAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:a})},r.prototype.deleteAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:a})},r.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},r.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,a=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:a},{headers:{"x-account-code":n}})},r.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},r.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},r.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},r.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},r.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},r.prototype.pathNotification=function(e){return this.patch("/notifications",e)},r.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},r.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},r.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:a,page:o,page_size:i},{headers:r})},r.prototype.getRoles=function(){return this.get("/teams/roles")},r.prototype.setCustodian=function(){return this.post("/teams/custodian")},r.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},r.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},r.prototype.editRoles=function(e,t){var n=e.payload,a=e.id;return this.patch("/teams/roles/".concat(a),n,{headers:{"x-account-code":t}})},r.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},r.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},r.prototype.getFeatureFlagId=function(e){var t=e.name,n=i(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},r.prototype.getFeatureFlagIdAll=function(e){var a=e.accountCode;return t(this,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",a?{headers:{"x-account-code":a}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach(function(e){t[e]=!0}),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}})})},r.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},r.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},r.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},r.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},r.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},r.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},r.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},r.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},r.prototype.getAuditEvents=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:jd})},r.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},r.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},r.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},r.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(a),t)},r.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},r.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},r.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},r.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},r.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},r.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},r.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},r.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},r.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},r.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},r.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},r.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},r.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},r.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},r.prototype.postBlockList=function(e,t,n,a){var o={name:t,account_codes:e,page:n,size:a};return this.post("/blacklist",o)},r.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},r.prototype.getBlacklistDetail=function(e,t,n,a,o){void 0===n&&(n=26),void 0===a&&(a=null),void 0===o&&(o=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(i+="&search=".concat(o)),this.get(i,a?{headers:{"x-account-code":a}}:{})},r.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},r.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},r.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},r.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},r.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},r.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},r.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},r.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},r.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},r.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},r.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,a=e.file,o=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:a},{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},r.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},r.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":a}})},r.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",o({},e))},r.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},r.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:a.token}),cancel:function(){return a.cancel()}}},r.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:a.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return a.cancel()}}},r.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",o({},t))},r.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",o({},t))},r.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},r.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:a})},r.prototype.getBatchRefundUserFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:a})},r.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},r.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},r.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},r.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},r.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},r.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},r.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},r.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},r.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},r.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},r.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},r.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},r.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},r.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},r.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},r.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},r.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},r.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},r.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},r.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},r.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},r.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(sf[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(sf[null==e?void 0:e.type],"/export");return this.post(t,e)},r.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},r.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},r.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},r.prototype.getSamlConfig=function(){return this.get("/saml-config")},r.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},r.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},r.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},r.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},r.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},r.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},r.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},r.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},r.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},r.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},r.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},r.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding/".concat(e))},r.prototype.postNetworkTokensOnboarding=function(e,t){return this.post("/network-tokens/organization/onboarding/".concat(t),e)},r.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},r.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},r.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},r.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},r.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},r.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},r.prototype.getLanguages=function(){return this.get("/languages")},r.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},r.prototype.getCommunications=function(e){return this.post("/communications",e)},r.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},r.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},r}(Ad),Ef={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},Cf=function(e){function i(t){return e.call(this,t)||this}return a(i,e),i.refreshInstance=function(e){var t;return this.classInstance=new i(o(o({},e),{baseURL:Ef["BFF_URL_".concat(Ef.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},i.getInstance=function(e){var t,n;if(this.classInstance){var a=localStorage.getItem("account");if(a){var r=null===(n=null===(t=JSON.parse(a))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!r&&""!==r&&r!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=r)}return this.classInstance}return this.classInstance=new i(o(o({},e),{baseURL:(null==e?void 0:e.baseURL)||Ef["BFF_URL_".concat(Ef.ENVIRONMENT)]})),this.classInstance},i.setMode=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},i}(_f);class Sf{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Rf="undefined"==typeof window||"Deno"in window;function Tf(){}function If(e){return"number"==typeof e&&e>=0&&e!==1/0}function jf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Af(e,t,n){return Hf(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Of(e,t,n){return Hf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Pf(e,t){const{type:n="all",exact:a,fetchStatus:o,predicate:i,queryKey:r,stale:s}=e;if(Hf(r))if(a){if(t.queryHash!==zf(r,t.options))return!1}else if(!qf(t.queryKey,r))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Lf(e,t){const{exact:n,fetching:a,predicate:o,mutationKey:i}=e;if(Hf(i)){if(!t.options.mutationKey)return!1;if(n){if(Df(t.options.mutationKey)!==Df(i))return!1}else if(!qf(t.options.mutationKey,i))return!1}return("boolean"!=typeof a||"loading"===t.state.status===a)&&!(o&&!o(t))}function zf(e,t){return((null==t?void 0:t.queryKeyHashFn)||Df)(e)}function Df(e){return JSON.stringify(e,(e,t)=>Ff(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function qf(e,t){return Nf(e,t)}function Nf(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Nf(e[n],t[n])))}function Mf(e,t){if(e===t)return e;const n=Uf(e)&&Uf(t);if(n||Ff(e)&&Ff(t)){const a=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,r=n?[]:{};let s=0;for(let a=0;a<i;a++){const i=n?a:o[a];r[i]=Mf(e[i],t[i]),r[i]===e[i]&&s++}return a===i&&s===a?e:r}return t}function Bf(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Uf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ff(e){if(!Wf(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Wf(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Wf(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hf(e){return Array.isArray(e)}function Gf(e){return new Promise(t=>{setTimeout(t,e)})}function Vf(e){Gf(0).then(e)}function $f(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Mf(e,t):t}const Kf=new class extends Sf{constructor(){super(),this.setup=e=>{if(!Rf&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Qf=["online","offline"];const Jf=new class extends Sf{constructor(){super(),this.setup=e=>{if(!Rf&&window.addEventListener){const t=()=>e();return Qf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Qf.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Xf(e){return Math.min(1e3*2**e,3e4)}function Yf(e){return"online"!==(null!=e?e:"online")||Jf.isOnline()}class Zf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function eg(e){return e instanceof Zf}function tg(e){let t,n,a,o=!1,i=0,r=!1;const s=new Promise((e,t)=>{n=e,a=t}),c=()=>!Kf.isFocused()||"always"!==e.networkMode&&!Jf.isOnline(),u=a=>{r||(r=!0,null==e.onSuccess||e.onSuccess(a),null==t||t(),n(a))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),a(n))},p=()=>new Promise(n=>{t=e=>{const t=r||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,r||null==e.onContinue||e.onContinue()}),d=()=>{if(r)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,a;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(a=e.retryDelay)?a:Xf,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!o&&h?(i++,null==e.onFail||e.onFail(i,t),Gf(m).then(()=>{if(c())return p()}).then(()=>{o?l(t):d()})):l(t)})};return Yf(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new Zf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const ng=console;const ag=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()};const o=a=>{t?e.push(a):Vf(()=>{n(a)})},i=()=>{const t=e;e=[],t.length&&Vf(()=>{a(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e}}}();class og{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),If(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Rf?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ig extends og{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ng,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=a?a:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=$f(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Tf).catch(Tf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!jf(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=function(){if("function"==typeof AbortController)return new AbortController}(),r={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(r);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(r)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(a=c.fetchOptions)?void 0:a.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,a,o;(eg(e)&&e.silent||this.dispatch({type:"error",error:e}),eg(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=tg({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,a,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Yf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(a=e.dataUpdatedAt)?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return eg(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ag.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class rg extends Sf{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var a;const o=t.queryKey,i=null!=(a=t.queryHash)?a:zf(o,t);let r=this.get(i);return r||(r=new ig({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(r)),r}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ag.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Of(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Pf(n,e))}findAll(e,t){const[n]=Of(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Pf(n,e)):this.queries}notify(e){ag.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ag.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ag.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class sg extends og{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ng,this.observers=[],this.state=e.state||cg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=tg({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,a,o,i,r,s,c,u;if(!t){var l,p,d,m;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(p=this.mutationCache.config).onMutate)?void 0:l.call(p,this.state.variables,this));const e=await(null==(d=(m=this.options).onMutate)?void 0:d.call(m,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(a=this.mutationCache.config).onSuccess)?void 0:n.call(a,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(r=(s=this.mutationCache.config).onSettled)?void 0:r.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,f,g,y,v,b,x,k;throw await(null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(k=this.options).onSettled)?void 0:x.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yf(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ag.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function cg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class ug extends Sf{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const a=new sg({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(a),a}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ag.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Lf(e,t))}findAll(e){return this.mutations.filter(t=>Lf(e,t))}notify(e){ag.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ag.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Tf)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function lg(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,a,o,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(a=e.fetchOptions)||null==(o=a.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),d=(null==(i=e.state.data)?void 0:i.pages)||[],m=(null==(r=e.state.data)?void 0:r.pageParams)||[];let h=m,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,a)=>(h=a?[t,...h]:[...h,t],a?[n,...e]:[...e,n]),v=(t,n,a,o)=>{if(f)return Promise.reject("Cancelled");if(void 0===a&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:a,meta:e.options.meta};var r;r=i,Object.defineProperty(r,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{f=!0}),e.signal}});const s=g(i);return Promise.resolve(s).then(e=>y(t,a,e,o))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:pg(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==u,n=t?u:(x=e.options,k=d,null==x.getPreviousPageParam?void 0:x.getPreviousPageParam(k[0],k));b=v(d,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=!s||!d[0]||s(d[0],0,d)?v([],t,m[0]):Promise.resolve(y([],m[0],d[0]));for(let n=1;n<d.length;n++)b=b.then(a=>{if(!s||!d[n]||s(d[n],n,d)){const o=t?m[n]:pg(e.options,a);return v(a,t,o)}return Promise.resolve(y(a,m[n],d[n]))})}else b=v([]);var x,k;const w=b.then(e=>({pages:e,pageParams:h}));return w}}}}function pg(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class dg extends Sf{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),mg(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hg(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hg(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Bf(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&fg(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===a&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===a&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Bf(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Tf)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Rf||this.currentResult.isStale||!If(this.options.staleTime))return;const e=jf(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Rf&&!1!==this.options.enabled&&If(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Kf.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,a=this.options,o=this.currentResult,i=this.currentResultState,r=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let p,{dataUpdatedAt:d,error:m,errorUpdatedAt:h,fetchStatus:f,status:g}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&mg(e,t),r=o&&fg(e,n,t,a);(i||r)&&(f=Yf(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)p=u.data,d=u.dataUpdatedAt,g=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==i?void 0:i.data)&&t.select===this.selectFn)p=this.selectResult;else try{this.selectFn=t.select,p=t.select(l.data),p=$f(null==o?void 0:o.data,p,t),this.selectResult=p,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else p=l.data;if(void 0!==t.placeholderData&&void 0===p&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",p=$f(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(m=this.selectError,p=this.selectResult,h=Date.now(),g="error");const b="fetching"===f,x="loading"===g,k="error"===g;return{status:g,fetchStatus:f,isLoading:x,isSuccess:"success"===g,isError:k,isInitialLoading:x&&b,data:p,dataUpdatedAt:d,error:m,errorUpdatedAt:h,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:k&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:v,isPreviousData:y,isRefetchError:k&&0!==l.dataUpdatedAt,isStale:gg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Bf(n,t))return;this.currentResult=n;const a={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const a=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&a.has(n)})})()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||eg(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ag.batch(()=>{var t,n,a,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(a=(o=this.options).onSettled)||a.call(o,this.currentResult.data,null);else if(e.onError){var i,r,s,c;null==(i=(r=this.options).onError)||i.call(r,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function mg(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&hg(e,t,t.refetchOnMount)}function hg(e,t,n){if(!1!==t.enabled){const a="function"==typeof n?n(e):n;return"always"===a||!1!==a&&gg(e,t)}return!1}function fg(e,t,n,a){return!1!==n.enabled&&(e!==t||!1===a.enabled)&&(!n.suspense||"error"!==e.state.status)&&gg(e,n)}function gg(e,t){return e.isStaleByTime(t.staleTime)}class yg extends Sf{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Bf(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){ag.batch(()=>{var t,n,a,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,r,s,c;null==(i=(r=this.mutateOptions).onError)||i.call(r,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var vg,bg={exports:{}},xg={};var kg,wg={};
|
|
50
50
|
/**
|
|
51
51
|
* @license React
|
|
52
52
|
* use-sync-external-store-shim.development.js
|
|
@@ -55,7 +55,7 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/"production"===process.env.NODE_ENV?vg.exports=function(){if(yg)return bg;yg=1;var e=k,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!t(e,a)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})},[e,s,t]),a(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return bg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,bg}():vg.exports=(xg||(xg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,o=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=a({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i(function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})},[u,p,l]),o(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};kg.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),kg);var wg=vg.exports;const _g=wg.useSyncExternalStore,Eg=x.createContext(void 0),Cg=x.createContext(!1);function Sg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Eg),window.ReactQueryClientContext):Eg)}const Rg=({context:e}={})=>{const t=x.useContext(Sg(e,x.useContext(Cg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tg=({client:e,children:t,context:n,contextSharing:a=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&a&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Sg(n,a);return x.createElement(Cg.Provider,{value:!n&&a},x.createElement(o.Provider,{value:e},t))},Ig=x.createContext(!1);Ig.Provider;const jg=x.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Ag(e,t){return"function"==typeof e?e(...t):!!e}function Og(e,t){const n=Rg({context:e.context}),a=x.useContext(Ig),o=x.useContext(jg),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",i.onError&&(i.onError=ng.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ng.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ng.batchCalls(i.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{x.useEffect(()=>{e.clearReset()},[e])})(o);const[r]=x.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(_g(x.useCallback(e=>{const t=a?()=>{}:r.subscribe(ng.batchCalls(e));return r.updateResult(),t},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),x.useEffect(()=>{r.setOptions(i,{listeners:!1})},[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,a))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(i,r,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&Ag(n,[e.error,a]))({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pg(e,t,n){return Og(jf(e,t,n),pg)}function Lg(e,t,n){const a=function(e,t,n){return Wf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Rg({context:a.context}),[i]=x.useState(()=>new gg(o,a));x.useEffect(()=>{i.setOptions(a)},[i,a]);const r=_g(x.useCallback(e=>i.subscribe(ng.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=x.useCallback((e,t)=>{i.mutate(e,t).catch(zg)},[i]);if(r.error&&Ag(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function zg(){}function Dg(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function qg(e){return Lg(function(e){var t=e.code,n=e.accountCode;return Ef.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ng(e){return Lg(function(e){var t=e.code,n=e.payload,a=e.accountCode;return Ef.getInstance().updateWebhookV2(t,n,a)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mg(){return Lg(function(e){var t=e.name,n=e.principal;return Ef.getInstance().postAccount(t,n)})}function Bg(){return Lg(function(e){var t=e.name,n=e.code,a=e.principal;return Ef.getInstance().patchAccountV2({name:t,code:n,principal:a})})}function Ug(){return Lg(function(e){var t=e.account_code;return Ef.getInstance().putAccountPrincipal({account_code:t})})}function Fg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().putAccountsUserMassive(t,n,a)})}function Wg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().deleteAccountsUserMassive(t,n,a)})}function Hg(){return Lg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Gg(){return Lg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vg(){return Lg(function(e){return Ef.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function $g(){return Lg(["post-connection"],function(e){var t=e.payload;return Ef.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Kg(){return Lg(["new-post-connection-validate"],function(){return Ef.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qg(){return Lg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Ef.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Jg(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Xg(){return Lg(function(e){return Ef.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Yg(){return Lg(["patch-organizations"],function(){return Ef.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function Zg(){return Lg(function(e){return Ef.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function ey(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().changePasswordV2(a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ty(e){return Lg(function(e){return Ef.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ny(){return Lg(function(e){return Ef.getInstance().inviteUsersMassive(e,e.organizationCode)})}function ay(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function oy(){return Lg(function(e){return Ef.getInstance().createUserAuth0(e)})}function iy(){return Lg(function(e){return Ef.getInstance().postCall(e)})}function ry(){return Lg(function(e){return Ef.getInstance().changeLoginMethods(e)})}function sy(e){return Lg(function(e){return Ef.getInstance().updateIsActiveCheckout(e)},e)}function cy(){return Lg(function(e){var t=e.accountCode,n=e.template;return Ef.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function uy(){return Lg(function(e){var t=e.accountCode,n=e.theme;return Ef.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function ly(){return Lg(function(e){var t=e.payload,n=e.transactionId,a=e.paymentId,o=e.action;return Ef.getInstance().createOperationTransaction(t,n,a,o)})}function py(){return Lg(function(e){var t=e.payload,n=e.paymentId,a=e.transactionId,o=e.handleSetProgress;return Ef.getInstance().uploadChargebacks(t,n,a,o)})}var dy=new ig({}),my=new class{constructor(e={}){this.queryCache=e.queryCache||new ig,this.mutationCache=e.mutationCache||new cg,this.logger=e.logger||tg,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=$f.subscribe(()=>{$f.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Qf.subscribe(()=>{Qf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Af(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const a=jf(e,t,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0===o)return;const i=jf(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ng.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Af(e,t),a=this.queryCache;ng.batch(()=>{a.findAll(n).forEach(e=>{a.remove(e)})})}resetQueries(e,t,n){const[a,o]=Af(e,t,n),i=this.queryCache,r={type:"active",...a};return ng.batch(()=>(i.findAll(a).forEach(e=>{e.reset()}),this.refetchQueries(r,o)))}cancelQueries(e,t,n){const[a,o={}]=Af(e,t,n);void 0===o.revert&&(o.revert=!0);const i=ng.batch(()=>this.queryCache.findAll(a).map(e=>e.cancel(o)));return Promise.all(i).then(Rf).catch(Rf)}invalidateQueries(e,t,n){const[a,o]=Af(e,t,n);return ng.batch(()=>{var e,t;if(this.queryCache.findAll(a).forEach(e=>{e.invalidate()}),"none"===a.refetchType)return Promise.resolve();const n={...a,type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[a,o]=Af(e,t,n),i=ng.batch(()=>this.queryCache.findAll(a).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}})}));let r=Promise.all(i).then(Rf);return null!=o&&o.throwOnError||(r=r.catch(Rf)),r}fetchQuery(e,t,n){const a=jf(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rf).catch(Rf)}fetchInfiniteQuery(e,t,n){const a=jf(e,t,n);return a.behavior=ug(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rf).catch(Rf)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>zf(e)===zf(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Df(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Df(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>zf(e)===zf(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Df(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Df(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Lf(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:dy});function hy(){return Lg(function(e){return Ef.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fy(){return Lg(function(e){return Ef.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function gy(){return Lg(function(e){return Ef.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yy(){return Lg(function(e){return Ef.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function vy(a){var o=this;return Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=my.getQueryData(["GET/reports/templates"]),my.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[a],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function by(e){return Lg(function(){return Ef.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xy(e,a,o){var i=this;return void 0===o&&(o=null),Lg(function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().postSmartRoutingCreateWorkflow(e,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},o)}function ky(e,a){var o=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===a&&(a=null),Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingPublishVersion(r,i,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},a)}function wy(e,t){var n=e.data,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflow(a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function _y(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().deleteSmartRoutingVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Ey(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().postSmartRoutingDuplicateVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Cy(e,t){var n=e.paymentMethod,a=e.active,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingToggleMethod(o,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Sy(e,t){var n=e.declinedId,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().updateSmartRoutingDeclinedGroup(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Ry(e){var t=e.accountCode;return Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Ty(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=!1),Ef.getInstance().updateSmartRoutingFavorite(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Iy(e,t){var n=e.code,a=e.name,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:a}).then(function(e){return null==e?void 0:e.data})},t)}function jy(e,t){var n=e.accountCode,a=e.workflowVersionCode;return void 0===t&&(t=null),Lg(function(e){return Ef.getInstance().simulateSmartRoutingTransaction(n,a,e).then(function(e){return null==e?void 0:e.data})},t)}function Ay(e,t){return void 0===t&&(t=null),Lg(function(t){return Ef.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Oy(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.declinedGroupCode;return Ef.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}function Py(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.payload;return Ef.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}var Ly=function(e){return Lg(function(t){return Ef.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},zy=function(e){return Lg(function(t){return Ef.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Dy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function qy(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Ny(){return Lg(function(){return Ef.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function My(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function By(){var e=this;return Lg(function(a){var o=a.payload,i=a.id,r=a.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().editRoles({payload:o,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Uy(){return Lg(function(e){return Ef.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Fy(){return Lg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Wy(){return Lg(["post-delete-payment-link"],function(e){var t=e.code;return Ef.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Hy(){return Lg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return Ef.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:a}).then(function(e){return null==e?void 0:e.data})})}function Gy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Vy(){return Lg(function(e){return Ef.getInstance().postUserThemeSettings(e)})}function $y(){return Lg(function(e){var t=e.payload,n=e.section;return Ef.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=my.getQueryData(["fetch-profile"]);e.data&&my.setQueryData(["fetch-profile"],o(o({},t),{settings:e.data}))}})}function Ky(e){return Lg(["pinned-sections"],function(e){var t=e.payload;return Ef.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Qy(){return Lg(function(e){var t=e.password,n=e.otp;return Ef.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Jy(){return Lg(function(){return Ef.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Xy(){return Lg(function(e){return Ef.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Yy(){return Lg(function(e){return Ef.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Lg(function(){return Ef.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ev(){return Lg(["post-get-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tv(){return Lg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function nv(){return Lg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function av(){return Lg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ov(){return Lg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iv(){return Lg(["post-add-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rv(){return Lg(["patch-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sv(){return Lg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return Lg(["put-blacklist"],function(e){return Ef.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uv(){return Lg(["change-blacklist"],function(e){return Ef.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function lv(){return Lg(["change-blacklist-item"],function(e){return Ef.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pv(){return Lg(["post-blacklist-items"],function(e){var t=e.payload;return Ef.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dv(){return Lg(["delete-blacklist"],function(e){var t=e.black_list_code;return Ef.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mv(e){var t=e.handleSetProgress;return Lg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,a=e.expiration_days,o=e.file;return Ef.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:a,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hv(){return Lg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Ef.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fv(){return Lg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return Ef.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gv(){return Lg(["valiate-blacklist-items"],function(e){return Ef.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yv(){return Lg(["delete-allowlist-item"],function(e){return Ef.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Lg(["validate-allowlist-items"],function(e){return Ef.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function bv(e){var t=e.fileName,n=e.onSuccess,a=e.onError,o=w(0),i=o[0],r=o[1],s=_({cancel:function(){return null}}),c=Lg(["upload-file-chargeback",t],function(e){var t=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),o=t.promise,i=t.cancel;return s.current.cancel=i,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==a||a(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function xv(){return Lg(function(e){return Ef.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function kv(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().batchRefundByFile({payload:a}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wv(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundProcessedFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function _v(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundUserFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ev(){var e=_({cancel:function(){return null}}),t=Lg(["upload-file"],function(t){var n=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),a=n.promise,o=n.cancel;return e.current.cancel=o,a.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Cv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().updateMFAConfig(t,n)})}function Sv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().mfaExcludeUsers(t,n)})}function Rv(e){return Pg(["GET/scheduled-reports",e],function(){return Ef.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Tv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Iv(){return Lg(function(e){var t=e.reportCode,n=e.payload;return Ef.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function jv(){return Lg(function(e){return Ef.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Av(){return Lg(function(e){return Ef.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ov(){return Lg(function(e){return Ef.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pv(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Lv(){return Lg(function(e){var t=e.payload,n=e.ruleId,a=e.accountCode;return Ef.getInstance().postEditRule(t,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qv(){return Lg(function(e){var t=e.code,n=e.password;return Ef.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Nv(){return Lg(function(e){var t=e.passwordOtp;return Ef.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Mv(){return Lg(function(e){var t=e.code;return Ef.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Bv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Uv(){return Lg(function(e){var t=e.payload,n=e.code,a=e.password;return Ef.getInstance().postApiKeysRoll(t,n,a).then(function(e){return e.data}).catch(function(e){return e})})}function Fv(){return Lg(function(e){var t=e.password,n=e.accountCode;return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})})}function Wv(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Hv(){return Lg(function(e){var t=e.codes;return Ef.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Gv(){return Lg(function(e){return Ef.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Vv(a){var o=this;return Lg(function(){return Ef.getInstance().createReconciliationReportTemplate(a).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t,o;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(o=my.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,my.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[a],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function $v(e){return Lg(function(){return Ef.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Kv(){return Lg(["POST/reconciliation/alerts"],function(e){return Ef.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qv(){return Lg(["DELETE/reconciliation/alerts"],function(e){return Ef.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jv(){return Lg(["UPDATE/reconciliation/alerts"],function(e){return Ef.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Yv(){return Lg(function(e){return Ef.getInstance().createSamlConfig(e)})}function Zv(){return Lg(function(e){return Ef.getInstance().updateSamlConfig(e)})}function eb(){return Lg(function(){return Ef.getInstance().deleteSamlConfig()})}function tb(e,t){return void 0===t&&(t={}),Lg(function(t){return Ef.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},o(o({},t),{useErrorBoundary:!1}))}function nb(e){return void 0===e&&(e={}),Lg(function(e){return Ef.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},o(o({},e),{useErrorBoundary:!1}))}function ab(){return Lg(function(e){return Ef.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ob(){return Lg(function(e){return Ef.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ib(){return Lg(function(e){var t=e.chart_id,n=e.type,a=e.name,o=e.user_prompt,i=void 0===o?"":o;return Ef.getInstance().patchChartGPTChart(t,{type:n,name:a,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function rb(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e,t,o,i,r;return n(this,function(n){switch(n.label){case 0:return[4,Ef.getInstance().createChartGPTChart(a)];case 1:if(e=n.sent(),!(t=null!==(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==i?i:null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function sb(){var e=this;return Lg(["POST/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createTemplateReporting(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function cb(){var e=this;return Lg(["POST/template-reporting/report-templates/clone"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().cloneReportTemplate(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function ub(){var e=this;return Lg(["POST/template-reporting/report-templates/selection"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().updateTemplateSelection(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function lb(){var e=this;return Lg(["POST/template-reporting/report-templates/status"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().changeTemplateStatus(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function pb(){var e=this;return Lg(["DELETE/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deleteReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function db(){var e=this;return Lg(["POST/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function mb(){var e=this;return Lg(["POST/template-reporting/report-schedules/deactivate"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deactivateReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function hb(){var e=this;return Lg(["DELETE/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deleteReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}var fb=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),a=n[0],o=n[1];return E(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),a}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function gb(e){var a=this;return Pg(["fetch-payments-lazy",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function yb(e){return Pg(["fetch-payments-evaluated",e],function(){return Ef.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function vb(e){var a=this,o=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:r,cacheTime:500,useErrorBoundary:!1})}function bb(e){var a=this,o=e.payment_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-details-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function xb(e){var a=this,o=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-raw-response",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function kb(e){var t=fb();return Pg(["payment-methods",e],function(){return Ef.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function wb(){return Pg({queryKey:["/payment-methods/providers"],queryFn:function(){return Ef.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function _b(){return Pg(["GET/catalog/card-brands"],function(){return Ef.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Eb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Lm.PAYMENTS),Pg(["payment-filters",e,t],function(){return Ef.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Cb(){return Pg(["payment-metrics-filters"],function(){return Ef.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Sb(e){var t=e.transaction_code,n=e.enabled;return Pg(["payment-transaction-details",t],function(){return Ef.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Rb(e){var t=e.payment_code,n=e.enabled;return Pg(["transaction-history",t],function(){return Ef.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Tb(e){var a=this;return Pg(["POST/transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Ib(e){var a=this;return Pg(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function jb(e){return Pg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Ef.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ab(e){return Pg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Ef.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Ob(e){var t=fb();return Pg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Ef.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Pb(e,a){var o=this,i=fb();return Pg(["GET/useGetProofOfCancel",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfCancel(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Lb(e,a){var o=this,i=fb();return Pg(["GET/useGetProofOfPayment",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfPayment(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function zb(e,a,o){var i=this,r=Ef.getInstance();return Pg(["send-payment-notification",e,a],function(){return t(i,void 0,void 0,function(){var t,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,a)];case 1:return t=n.sent(),o.onSuccess(),[2,t.data];case 2:throw i=n.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function Db(e){return Pg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Ef.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function qb(e){var a=this;void 0===e&&(e=!0);var o=fb();return Pg(["getPayoutsFilters",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Nb(e){var t=e.password,n=e.accountCode;return Pg(["developers"],function(){return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Mb(){return Pg(["fetch-customized-api-keys-members"],function(){return Ef.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Bb(){return Pg(["developers-get-allowed-ips"],function(){return Ef.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Ub(){return Pg(["fetch-customized-api-keys-accounts"],function(){return Ef.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Fb(e){return Pg(["fetch-customized-api-keys",e],function(){return Ef.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Wb(){return Pg(["fetch-customized-api-keys-products"],function(){return Ef.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Hb(){return Lg(["developers-patch-allowed-ips"],function(e){return Ef.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{cacheTime:0})}function Gb(){return Pg(["fetch-organizations"],function(){return Ef.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Vb(){return Pg(["fetch-all-organizations",fb()],function(){return Ef.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function $b(e){var t=fb();return Pg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Ef.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Kb(e){var t=e.integration_code,n=e.enabled,a=e.accountCode;return Pg(["integration-params",t,a],function(){return t.includes("undefined")?{}:Ef.getInstance().getIntegrationParams({accountCode:a,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Qb(e){var t=e.accountCode,n=e.organizationCode,a=fb();return Pg(["organizations-account-integrations",t,n],function(){return Ef.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||a}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Jb(e){var t=e.accountCode,n=e.paymentMethod;return Pg(["fetch-connections-by-payment-method",n,t],function(){return Ef.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Xb(){var e=this;return Pg(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Yb(){return Pg(["connections"],function(){return Ef.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Zb(){return Pg(["dialogs"],function(){return Ef.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function ex(){return Pg(["params-catalog"],function(){return Ef.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function tx(e){var t=e.accountCode,n=e.name;return Pg(["webhooks",t,n],function(){return Ef.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function nx(e){var t=e.accountCode,n=e.enabled;return Pg(["webhooks-detail",t],function(){return Ef.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function ax(e){var t,n=fb(),a=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pg({queryKey:["accounts",a],queryFn:function(){return Ef.getInstance().getAccounts(a).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!a})}function ox(e){return Pg(["accountsV2",e],function(){return Ef.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ix(e){return Pg(["accountsV2-by-user",e],function(){return e?Ef.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function rx(e,a){var o=this;return Pg({queryKey:["accounts-for-impersonation",e,a],queryFn:function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getAccountsForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:a?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function sx(){return Pg(["menu"],function(){return Ef.getInstance().getMenu().then(function(e){return sf(e)?hf:null==e?void 0:e.data}).catch(function(){return hf})})}function cx(){return Pg(["/payment/statuses/style"],function(){return Ef.getInstance().useGetPaymentStatusesStyles().then(function(e){return sf(e)?cf:null==e?void 0:e.data}).catch(function(){return cf})})}function ux(){return Pg(["/transaction/statuses/style"],function(){return Ef.getInstance().useGetTransactionStatusesStyles().then(function(e){return sf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})},{cacheTime:36e5,useErrorBoundary:!1})}function lx(){return Pg(["/reconciliation/transaction/statuses/style"],function(){return Ef.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return sf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})})}function px(){return Pg(["timezone-catalog"],function(){return Ef.getInstance().useGetTimeZoneCatalog().then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})}function dx(){return Pg(["/cms/audit-logs-filters"],function(){return Ef.getInstance().useGetAuditLogsFilters().then(function(e){return sf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})}function mx(){return Pg(["/cms/static-contents"],function(){return Ef.getInstance().getDashboardStaticContents().then(function(e){var t,n;return sf(e)?mf:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function hx(){return Pg(["/cms/locales"],function(){return Ef.getInstance().getLocales().then(function(e){return sf(e)?ff:e.data}).catch(function(){return ff})})}var fx=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return E(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function gx(e){return Pg(["smart-routing-methods",e],function(){return Ef.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function yx(e,t){return Pg(["smart-routing-workflow",t,e],function(){return Ef.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function vx(e,t){return Pg(["smart-routing-condition-types",e,t],function(){return Ef.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function bx(e,t){return Pg(["smart-routing-condition-payment-method",e,t],function(){return Ef.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function xx(e,t){return Pg(["smart-routing-condition-types-values",t,e],function(){return Ef.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function kx(e){var t=e.accountCode,n=e.workflowVersionId;return Pg(["smart-routing-workflow-version",n,t],function(){return Ef.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function wx(e,t,n){return Pg(["smart-routing-next-route",e,n,t],function(){return Ef.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function _x(e){return Pg(["smart-routing-decline-groups",e],function(){return Ef.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Ex(e,t){return Pg(["smart-routing-payment-route",e,t],function(){return Ef.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function Cx(e){return Pg(["smart-routing-simulate-condition-type-values",e],function(){return Ef.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Sx(e){var t=e.text,n=e.conditionType;return Pg(["smart-routing-search-condition-values",t,n],function(){return Ef.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Rx(){return Pg(["smart-routing-conversion-rates"],function(){return Ef.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Tx(){var e=this;return Pg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Ix(){var e=this;return Pg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function jx(e){return Pg(["fetch-routing-monitors-templates",e],function(){return Ef.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ax(e,t){return Pg(["fetch-routing-monitors-template",e],function(){return Ef.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Ox(e){var t=e.accountCode;return Pg(["checkouts",t],function(){return Ef.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function Px(e){var t=e.accountCode;return Pg(["checkouts-template"],function(){return Ef.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var Lx=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},zx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Lx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getNameAndIcon({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)},Dx=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},qx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Dx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getRequiredFields({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)};function Nx(e){var t=e.accountCode;return Pg(["styling-sdk-dynamic",t],function(){return Ef.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Mx(e){var t=e.accountCode;return Pg(["styling-theme",t],function(){return Ef.getInstance().getStylingTheme({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Bx(e){var t=e.accountCode;return Pg(["styling-settings",t],function(){return Ef.getInstance().getStylingSettings({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ux(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n;return Pg(["styling-settings-v2",t],function(){return Ef.getInstance().getStylingSettingsV2({accountCode:t,environment:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Fx(){return Lg(function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload;return Ef.getInstance().changeStylingSettings({accountCode:t,environment:a,payload:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Wx(){return Pg(["fetch-profile"],function(){return Ef.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Hx(){var e=this;return Pg(["get-user-full"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Gx(e,t){return Pg(["fetch-permissions",e,t],function(){var e,t,n,a=localStorage.getItem("account"),o=localStorage.getItem("user"),i=a&&JSON.parse(a),r=o&&JSON.parse(o);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Vx(e){return Pg(["email-verification",e],function(){return Ef.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function $x(){return Pg({queryKey:["get-login-methods"],queryFn:function(){return Ef.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Kx(){return Pg(["fetch-impersonation-users"],function(){return Ef.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Qx(){return Pg(["fetch-impersonation-enabled"],function(){return Ef.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Jx(e,a,o,i,r){var s=this;return void 0===o&&(o=1),void 0===i&&(i=10),Pg(["get-users-to-impersonate",e,a,o,i,r],function(){return t(s,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getUsersToImpersonate(e,a,o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Xx(e){var t;return Pg(["fetch-communications",e],function(){return Ef.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Yx(){return Pg(["fetch-communications-filters"],function(){return Ef.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zx(e,t){return Pg(["fetch-communication-details",e],function(){return Ef.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function ek(e){return Pg(["notifications-customer",e],function(){return Ef.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function tk(e){return Pg(["validate-opsgenie-key",e],function(){return Ef.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function nk(){return Pg(["notifications-merged"],function(){return Ef.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function ak(){return Lg(function(e){return Ef.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ok(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().pathNotification(a)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var ik={key:"metadata_fields",name:"metadata_fields"};function rk(){return Pg(["reports"],function(){return Ef.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sk(e){return void 0===e&&(e=!0),Pg(["reports-multi-env"],function(){return Ef.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function ck(e,t,n){return void 0===t&&(t=!1),Pg(["reports/".concat(e)],function(){return Ef.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function uk(e){return Pg(["GET/reports/templates"],function(){return Ef.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function lk(a,o,i){var r=this;return Pg(["GET/reports/columns/".concat(o,"/").concat(i)],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportColumns(o,i).then(function(t){return o===Mm.ALL&&i===Nm.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[ik],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:a,useErrorBoundary:!1})}function pk(e,a){var o=this,i=fb();return Pg(["getRefundPdf",e,i,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getRefundPdf(e,i,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!i,useErrorBoundary:!1})}function dk(){var e=fb();return Pg(["teams-filters-members"],function(){return Ef.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function mk(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r=fb();return Pg(["fetch-post-members-v2",t,n,a,o,i],function(){return Ef.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:a,page:o,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function hk(){return Pg(["fetch-roles"],function(){return Ef.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fk(){return Pg(["fetch-rolespermissions"],function(){return Ef.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function gk(){return Pg(["fetch-permissions-catalog"],function(){return Ef.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yk(e){return Pg(["data-report",e],function(){return Ef.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function vk(e,t,n){return void 0===n&&(n=!0),Pg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Ef.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function bk(e,t){return Pg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function xk(e){return Pg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Ef.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function kk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-volume-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function wk(e,t,n,a){return void 0===a&&(a=!0),delete t.account_code,Pg(["get-insights-volume-metrics-v2",t,e,n],function(){return Ef.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:a,cacheTime:200,useErrorBoundary:!1})}function _k(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ek(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ck(e){return Pg(["get-insights-overview",e],function(){return Ef.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Sk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pg(["get-insights-overview-v3",e,t],function(){return Ef.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Rk(e){return Pg(["get-insights-home-metrics",e],function(){return Ef.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Tk(e){return Pg(["get-insights-reports",e],function(){return Ef.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Ik(e){return Pg(["get-insights-reports-again",e],function(){return Ef.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function jk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-conversion-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningConversionRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-volume-and-count-tx",a,e],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsConversionRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-decline-reasons",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsDeclineReasons(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsFrictionlessVsChallenge(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-win-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksWinRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-disputed",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksDisputed(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Uk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-reasons-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksReasonsDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-status-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksStatusDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Hk(e,t){return Pg(["fetch-reconciliation-transaction",e],function(){return Ef.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Gk(e,t){return Pg(["fetch-reconciliation-settlements",e],function(){return Ef.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Vk(e,t){return Pg(["fetch-reconciliation-metrics",e],function(){return Ef.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function $k(){return Pg(["GET-reconciliation-filters"],function(){return Ef.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kk(e){return Pg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Ef.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Qk(){return Pg(["GET/v1/reconciliation/active"],function(){return Ef.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Jk(e,t,n){return Pg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Ef.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Xk(e){return Pg(["GET/reconciliation/reports/templates"],function(){return Ef.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Yk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/alerts/list",t,n],function(){return Ef.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Zk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/list",t,n],function(){return Ef.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/insights",t,n],function(){return Ef.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/sales/list",t,n],function(){return Ef.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/advancements/list",t,n],function(){return Ef.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function aw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/fees/list",t,n],function(){return Ef.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ow(e){var a=this,o=Object.values(e).filter(Boolean);return Pg(["feature-flags",o],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function iw(e){var a=this,o=Pg({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),i=Rg();return E(function(){i.setQueryData(["cached-feature-flags"],o)},[o,i]),o}function rw(e){var t,n,a=Rg(),i=a.getQueryState(["cached-feature-flags"]),r=Boolean(!(null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.status)),s=Pg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return o(o({},s),{isLoading:r})}function sw(e){return Pg(["events",e],function(){return Ef.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function cw(e){return Pg(["audit-monitor-event-detail",e],function(){return Ef.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function uw(e){return Pg(["api-logs",e],function(){return Ef.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function lw(e){var t=e.params;return Pg(["webhook-logs",t],function(){return Ef.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function pw(e){return Pg(["api-logs-detail",e],function(){return Ef.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function dw(e,t){return Pg(["fetch-payment-links",e,t],function(){return Ef.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function mw(e){return Pg(["payment-link"],function(){return Ef.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function hw(e){return void 0===e&&(e=!0),Pg(["countries",e],function(){return Ef.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function fw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pg(["countries-v2",n],function(){return Ef.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function gw(e){return Pg(["timezone"],function(){return Ef.getInstance().getTimezone(e).then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})},{enabled:!0,keepPreviousData:!0})}function yw(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function vw(e,t){return Pg(["get-cofig-allow-list",e],function(){return Ef.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function bw(e){return Pg(["get-black-list",e],function(){return Ef.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function xw(e,t,n,a){var o;return Pg(["post-black-list",e],function(){return Ef.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=a?a:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function kw(e,t,n){return Pg(["get-block-list-summary",e,t,n],function(){var a=Ef.getInstance();return n?a.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function ww(e,t,n,a,o,i){return Pg(["black-list-detail",e,t,a,o,i],function(){return Ef.getInstance().getBlacklistDetail(e,t,n,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})}function _w(e,t,n){return Pg(["allow-list-detail",e],function(){return Ef.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Ew(e){return Pg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Ef.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Cw(e,a){var o=this;return void 0===e&&(e=26),void 0===a&&(a=0),Pg(["batch-refunds",e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getBatchRefunds(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Sw(e){return Pg(["velocity-rules",e],function(){var t=Ef.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Rw(){return Pg(["config-rules"],function(){return Ef.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Tw(e,t){var n=e.organizationCode;return Pg(["mfa-excluded-users",n],function(){return Ef.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Iw(e,t){var n=e.organizationCode;return Pg(["mfa-config",n],function(){return Ef.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function jw(e,t){return Pg(["mfa-enforcement-status",e.accountCode],function(){return Ef.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Aw(e){return Pg(["fetch-organization-saml-config",e],function(){return Ef.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ow(e){return Pg(["chartgpt-chart-execute",e],function(){return Ef.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function Pw(){return Pg(["chartgpt-user-charts"],function(){return Ef.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Lw(){var e=this;return Pg(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,a,i,r=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=Ef.getInstance()).getChartsByUser()];case 1:return a=s.sent(),i=(null==a?void 0:a.data)||[],[4,Promise.all(i.map(function(a){return t(r,void 0,void 0,function(){var t,i,r,s,c,u,l,p;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return t=n.sent(),[2,o(o({},a),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:a.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),i),[2,o(o({},a),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function zw(e,a,o){var i=this;return void 0===o&&(o=!0),Pg(["chartgpt-patch-and-execute",e,a],function(){return t(i,void 0,void 0,function(){var t,o,i,r,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=Ef.getInstance()).patchChartGPTChart(e,a)];case 1:return o=n.sent(),i=null==o?void 0:o.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function Dw(){return Pg(["languages"],function(){return Ef.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function qw(){var e=localStorage.getItem("lang")||"en";return Pg(["translations",e],function(){return Ef.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Nw(e,a){var o=this;return Pg(["GET/template-reporting/templates",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportTemplatesList(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a,useErrorBoundary:!1,cacheTime:0})}function Mw(e,a){var o=this;return Pg(["GET/template-reporting/template-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportTemplateById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Bw(e){var a=this;return Pg(["GET/template-reporting/schedules"],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:e,useErrorBoundary:!1,cacheTime:0})}function Uw(e,a){var o=this;return Pg(["GET/template-reporting/schedule-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportScheduleById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Fw(){return Fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fw.apply(this,arguments)}
|
|
58
|
+
*/"production"===process.env.NODE_ENV?bg.exports=function(){if(vg)return xg;vg=1;var e=k,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!t(e,a)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})},[e,s,t]),a(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return xg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,xg}():bg.exports=(kg||(kg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,o=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=a({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i(function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})},[u,p,l]),o(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};wg.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),wg);var _g=bg.exports;const Eg=_g.useSyncExternalStore,Cg=x.createContext(void 0),Sg=x.createContext(!1);function Rg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cg),window.ReactQueryClientContext):Cg)}const Tg=({context:e}={})=>{const t=x.useContext(Rg(e,x.useContext(Sg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ig=({client:e,children:t,context:n,contextSharing:a=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&a&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Rg(n,a);return x.createElement(Sg.Provider,{value:!n&&a},x.createElement(o.Provider,{value:e},t))},jg=x.createContext(!1);jg.Provider;const Ag=x.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Og(e,t){return"function"==typeof e?e(...t):!!e}function Pg(e,t){const n=Tg({context:e.context}),a=x.useContext(jg),o=x.useContext(Ag),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",i.onError&&(i.onError=ag.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ag.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ag.batchCalls(i.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{x.useEffect(()=>{e.clearReset()},[e])})(o);const[r]=x.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(Eg(x.useCallback(e=>{const t=a?()=>{}:r.subscribe(ag.batchCalls(e));return r.updateResult(),t},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),x.useEffect(()=>{r.setOptions(i,{listeners:!1})},[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,a))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(i,r,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&Og(n,[e.error,a]))({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Lg(e,t,n){return Pg(Af(e,t,n),dg)}function zg(e,t,n){const a=function(e,t,n){return Hf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Tg({context:a.context}),[i]=x.useState(()=>new yg(o,a));x.useEffect(()=>{i.setOptions(a)},[i,a]);const r=Eg(x.useCallback(e=>i.subscribe(ag.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=x.useCallback((e,t)=>{i.mutate(e,t).catch(Dg)},[i]);if(r.error&&Og(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function Dg(){}function qg(e){return zg(function(e){var t=e.payload;return Cf.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ng(e){return zg(function(e){var t=e.code,n=e.accountCode;return Cf.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mg(e){return zg(function(e){var t=e.code,n=e.payload,a=e.accountCode;return Cf.getInstance().updateWebhookV2(t,n,a)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bg(){return zg(function(e){var t=e.name,n=e.principal;return Cf.getInstance().postAccount(t,n)})}function Ug(){return zg(function(e){var t=e.name,n=e.code,a=e.principal;return Cf.getInstance().patchAccountV2({name:t,code:n,principal:a})})}function Fg(){return zg(function(e){var t=e.account_code;return Cf.getInstance().putAccountPrincipal({account_code:t})})}function Wg(){return zg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Cf.getInstance().putAccountsUserMassive(t,n,a)})}function Hg(){return zg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Cf.getInstance().deleteAccountsUserMassive(t,n,a)})}function Gg(){return zg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vg(){return zg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function $g(){return zg(function(e){return Cf.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Kg(){return zg(["post-connection"],function(e){var t=e.payload;return Cf.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Qg(){return zg(["new-post-connection-validate"],function(){return Cf.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Jg(){return zg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Cf.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Xg(){return zg(function(e){var t=e.payload;return Cf.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Yg(){return zg(function(e){return Cf.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Zg(){var e=this;return zg(function(a){var o=a.payload,i=a.organizationCode;return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().postNetworkTokensOnboarding(o,i)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function ey(){return zg(["patch-organizations"],function(){return Cf.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function ty(){return zg(function(e){return Cf.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function ny(){var e=this;return zg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().changePasswordV2(a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ay(e){return zg(function(e){return Cf.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function oy(){return zg(function(e){return Cf.getInstance().inviteUsersMassive(e,e.organizationCode)})}function iy(){return zg(function(e){var t=e.userCode,n=e.organizationCode;return Cf.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function ry(){return zg(function(e){return Cf.getInstance().createUserAuth0(e)})}function sy(){return zg(function(e){return Cf.getInstance().postCall(e)})}function cy(){return zg(function(e){return Cf.getInstance().changeLoginMethods(e)})}function uy(e){return zg(function(e){return Cf.getInstance().updateIsActiveCheckout(e)},e)}function ly(){return zg(function(e){var t=e.accountCode,n=e.template;return Cf.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function py(){return zg(function(e){var t=e.accountCode,n=e.theme;return Cf.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function dy(){return zg(function(e){var t=e.payload,n=e.transactionId,a=e.paymentId,o=e.action;return Cf.getInstance().createOperationTransaction(t,n,a,o)})}function my(){return zg(function(e){var t=e.payload,n=e.paymentId,a=e.transactionId,o=e.handleSetProgress;return Cf.getInstance().uploadChargebacks(t,n,a,o)})}var hy=new rg({}),fy=new class{constructor(e={}){this.queryCache=e.queryCache||new rg,this.mutationCache=e.mutationCache||new ug,this.logger=e.logger||ng,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Kf.subscribe(()=>{Kf.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Jf.subscribe(()=>{Jf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Of(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const a=Af(e,t,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0===o)return;const i=Af(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ag.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Of(e,t),a=this.queryCache;ag.batch(()=>{a.findAll(n).forEach(e=>{a.remove(e)})})}resetQueries(e,t,n){const[a,o]=Of(e,t,n),i=this.queryCache,r={type:"active",...a};return ag.batch(()=>(i.findAll(a).forEach(e=>{e.reset()}),this.refetchQueries(r,o)))}cancelQueries(e,t,n){const[a,o={}]=Of(e,t,n);void 0===o.revert&&(o.revert=!0);const i=ag.batch(()=>this.queryCache.findAll(a).map(e=>e.cancel(o)));return Promise.all(i).then(Tf).catch(Tf)}invalidateQueries(e,t,n){const[a,o]=Of(e,t,n);return ag.batch(()=>{var e,t;if(this.queryCache.findAll(a).forEach(e=>{e.invalidate()}),"none"===a.refetchType)return Promise.resolve();const n={...a,type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[a,o]=Of(e,t,n),i=ag.batch(()=>this.queryCache.findAll(a).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}})}));let r=Promise.all(i).then(Tf);return null!=o&&o.throwOnError||(r=r.catch(Tf)),r}fetchQuery(e,t,n){const a=Af(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Tf).catch(Tf)}fetchInfiniteQuery(e,t,n){const a=Af(e,t,n);return a.behavior=lg(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Tf).catch(Tf)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Df(e)===Df(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>qf(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>qf(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Df(e)===Df(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>qf(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>qf(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=zf(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:hy});function gy(){return zg(function(e){return Cf.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function yy(){return zg(function(e){return Cf.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function vy(){return zg(function(e){return Cf.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function by(){return zg(function(e){return Cf.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function xy(a){var o=this;return zg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().createReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,fy.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=fy.getQueryData(["GET/reports/templates"]),fy.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[a],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){fy.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){fy.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function ky(e){return zg(function(){return Cf.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function wy(e,a,o){var i=this;return void 0===o&&(o=null),zg(function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().postSmartRoutingCreateWorkflow(e,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},o)}function _y(e,a){var o=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===a&&(a=null),zg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().postSmartRoutingPublishVersion(r,i,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},a)}function Ey(e,t){var n=e.data,a=e.accountCode;return void 0===t&&(t=null),zg(function(){return Cf.getInstance().putSmartRoutingUpdateWorkflow(a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Cy(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),zg(function(){return Cf.getInstance().deleteSmartRoutingVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Sy(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),zg(function(){return Cf.getInstance().postSmartRoutingDuplicateVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Ry(e,t){var n=e.paymentMethod,a=e.active,o=e.accountCode;return void 0===t&&(t=null),zg(function(){return Cf.getInstance().putSmartRoutingToggleMethod(o,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Ty(e,t){var n=e.declinedId,a=e.accountCode;return void 0===t&&(t=null),zg(function(e){return void 0===e&&(e=null),Cf.getInstance().updateSmartRoutingDeclinedGroup(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Iy(e){var t=e.accountCode;return zg(function(e){return void 0===e&&(e=null),Cf.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function jy(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),zg(function(e){return void 0===e&&(e=!1),Cf.getInstance().updateSmartRoutingFavorite(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Ay(e,t){var n=e.code,a=e.name,o=e.accountCode;return void 0===t&&(t=null),zg(function(){return Cf.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:a}).then(function(e){return null==e?void 0:e.data})},t)}function Oy(e,t){var n=e.accountCode,a=e.workflowVersionCode;return void 0===t&&(t=null),zg(function(e){return Cf.getInstance().simulateSmartRoutingTransaction(n,a,e).then(function(e){return null==e?void 0:e.data})},t)}function Py(e,t){return void 0===t&&(t=null),zg(function(t){return Cf.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Ly(e,t){return void 0===t&&(t={}),zg(function(t){var n=t.declinedGroupCode;return Cf.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}function zy(e,t){return void 0===t&&(t={}),zg(function(t){var n=t.payload;return Cf.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}var Dy=function(e){return zg(function(t){return Cf.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},qy=function(e){return zg(function(t){return Cf.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Ny(){return zg(function(e){var t=e.payload;return Cf.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function My(){return zg(function(e){var t=e.userCode,n=e.organizationCode;return Cf.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function By(){return zg(function(){return Cf.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function Uy(){return zg(function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Fy(){var e=this;return zg(function(a){var o=a.payload,i=a.id,r=a.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().editRoles({payload:o,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Wy(){return zg(function(e){return Cf.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Hy(){return zg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Gy(){return zg(["post-delete-payment-link"],function(e){var t=e.code;return Cf.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Vy(){return zg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return Cf.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:a}).then(function(e){return null==e?void 0:e.data})})}function $y(){return zg(function(e){var t=e.payload;return Cf.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Ky(){return zg(function(e){return Cf.getInstance().postUserThemeSettings(e)})}function Qy(){return zg(function(e){var t=e.payload,n=e.section;return Cf.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=fy.getQueryData(["fetch-profile"]);e.data&&fy.setQueryData(["fetch-profile"],o(o({},t),{settings:e.data}))}})}function Jy(e){return zg(["pinned-sections"],function(e){var t=e.payload;return Cf.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Xy(){return zg(function(e){var t=e.password,n=e.otp;return Cf.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Yy(){return zg(function(){return Cf.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Zy(){return zg(function(e){return Cf.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function ev(){return zg(function(e){return Cf.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function tv(){return zg(function(){return Cf.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function nv(){return zg(["post-get-allowlist-items"],function(e){var t=e.payload;return Cf.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function av(){return zg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Cf.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ov(){return zg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Cf.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iv(){return zg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Cf.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rv(){return zg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Cf.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sv(){return zg(["post-add-allowlist-items"],function(e){var t=e.payload;return Cf.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return zg(["patch-allowlist"],function(e){var t=e.payload;return Cf.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function uv(){return zg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Cf.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function lv(){return zg(["put-blacklist"],function(e){return Cf.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pv(){return zg(["change-blacklist"],function(e){return Cf.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dv(){return zg(["change-blacklist-item"],function(e){return Cf.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mv(){return zg(["post-blacklist-items"],function(e){var t=e.payload;return Cf.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hv(){return zg(["delete-blacklist"],function(e){var t=e.black_list_code;return Cf.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fv(e){var t=e.handleSetProgress;return zg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,a=e.expiration_days,o=e.file;return Cf.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:a,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gv(){return zg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Cf.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yv(){return zg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return Cf.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function vv(){return zg(["valiate-blacklist-items"],function(e){return Cf.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function bv(){return zg(["delete-allowlist-item"],function(e){return Cf.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function xv(){return zg(["validate-allowlist-items"],function(e){return Cf.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function kv(e){var t=e.fileName,n=e.onSuccess,a=e.onError,o=w(0),i=o[0],r=o[1],s=_({cancel:function(){return null}}),c=zg(["upload-file-chargeback",t],function(e){var t=Cf.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),o=t.promise,i=t.cancel;return s.current.cancel=i,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==a||a(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function wv(){return zg(function(e){return Cf.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _v(){var e=this;return zg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().batchRefundByFile({payload:a}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ev(){var e=this;return zg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().getBatchRefundProcessedFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Cv(){var e=this;return zg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().getBatchRefundUserFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Sv(){var e=_({cancel:function(){return null}}),t=zg(["upload-file"],function(t){var n=Cf.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),a=n.promise,o=n.cancel;return e.current.cancel=o,a.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Rv(){return zg(function(e){var t=e.payload,n=e.organizationCode;return Cf.getInstance().updateMFAConfig(t,n)})}function Tv(){return zg(function(e){var t=e.payload,n=e.organizationCode;return Cf.getInstance().mfaExcludeUsers(t,n)})}function Iv(e){return Lg(["GET/scheduled-reports",e],function(){return Cf.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function jv(){return zg(function(e){var t=e.payload;return Cf.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Av(){return zg(function(e){var t=e.reportCode,n=e.payload;return Cf.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ov(){return zg(function(e){return Cf.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pv(){return zg(function(e){return Cf.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Lv(){return zg(function(e){return Cf.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zv(){return zg(function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dv(){return zg(function(e){var t=e.payload,n=e.ruleId,a=e.accountCode;return Cf.getInstance().postEditRule(t,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function qv(){return zg(function(e){var t=e.payload;return Cf.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Nv(){return zg(function(e){var t=e.payload,n=e.code;return Cf.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Mv(){return zg(function(e){var t=e.code,n=e.password;return Cf.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Bv(){return zg(function(e){var t=e.passwordOtp;return Cf.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Uv(){return zg(function(e){var t=e.code;return Cf.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Fv(){return zg(function(e){var t=e.payload,n=e.code;return Cf.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Wv(){return zg(function(e){var t=e.payload,n=e.code,a=e.password;return Cf.getInstance().postApiKeysRoll(t,n,a).then(function(e){return e.data}).catch(function(e){return e})})}function Hv(){return zg(function(e){var t=e.password,n=e.accountCode;return Cf.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})})}function Gv(e){return zg(function(e){var t=e.payload;return Cf.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Vv(){return zg(function(e){var t=e.codes;return Cf.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function $v(){return zg(function(e){return Cf.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Kv(a){var o=this;return zg(function(){return Cf.getInstance().createReconciliationReportTemplate(a).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t,o;return n(this,function(n){switch(n.label){case 0:return[4,fy.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(o=fy.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,fy.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[a],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){fy.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){fy.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Qv(e){return zg(function(){return Cf.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Jv(){return zg(["POST/reconciliation/alerts"],function(e){return Cf.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){fy.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xv(){return zg(["DELETE/reconciliation/alerts"],function(e){return Cf.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){fy.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Yv(){return zg(["UPDATE/reconciliation/alerts"],function(e){return Cf.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){fy.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Zv(){return zg(function(e){var t=e.payload;return Cf.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function eb(){return zg(function(e){return Cf.getInstance().createSamlConfig(e)})}function tb(){return zg(function(e){return Cf.getInstance().updateSamlConfig(e)})}function nb(){return zg(function(){return Cf.getInstance().deleteSamlConfig()})}function ab(e,t){return void 0===t&&(t={}),zg(function(t){return Cf.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},o(o({},t),{useErrorBoundary:!1}))}function ob(e){return void 0===e&&(e={}),zg(function(e){return Cf.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},o(o({},e),{useErrorBoundary:!1}))}function ib(){return zg(function(e){return Cf.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function rb(){return zg(function(e){return Cf.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sb(){return zg(function(e){var t=e.chart_id,n=e.type,a=e.name,o=e.user_prompt,i=void 0===o?"":o;return Cf.getInstance().patchChartGPTChart(t,{type:n,name:a,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function cb(){var e=this;return zg(function(a){return t(e,void 0,void 0,function(){var e,t,o,i,r;return n(this,function(n){switch(n.label){case 0:return[4,Cf.getInstance().createChartGPTChart(a)];case 1:if(e=n.sent(),!(t=null!==(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==i?i:null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function ub(){return zg(function(e){return Cf.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function lb(){var e=this;return zg(function(a){return t(e,void 0,void 0,function(){var e,t,o,i,r;return n(this,function(n){switch(n.label){case 0:return[4,Cf.getInstance().createChartGPTChart(a)];case 1:if(e=n.sent(),!(t=null!==(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==i?i:null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function pb(){var e=this;return zg(["POST/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().createTemplateReporting(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function db(){var e=this;return zg(["POST/template-reporting/report-templates/clone"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().cloneReportTemplate(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function mb(){var e=this;return zg(["POST/template-reporting/report-templates/selection"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().updateTemplateSelection(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function hb(){var e=this;return zg(["POST/template-reporting/report-templates/status"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().changeTemplateStatus(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function fb(){var e=this;return zg(["DELETE/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().deleteReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function gb(){var e=this;return zg(["POST/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().createReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function yb(){var e=this;return zg(["POST/template-reporting/report-schedules/deactivate"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().deactivateReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function vb(){var e=this;return zg(["DELETE/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().deleteReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){fy.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}var bb=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),a=n[0],o=n[1];return E(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),a}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function xb(e){var a=this;return Lg(["fetch-payments-lazy",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function kb(e){return Lg(["fetch-payments-evaluated",e],function(){return Cf.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function wb(e){var a=this,o=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Cf.getInstance();return Lg(["get-payment-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:r,cacheTime:500,useErrorBoundary:!1})}function _b(e){var a=this,o=e.payment_code,i=e.enabled,r=void 0===i||i,s=Cf.getInstance();return Lg(["get-payment-transaction-details-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function Eb(e){var a=this,o=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Cf.getInstance();return Lg(["get-payment-transaction-raw-response",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function Cb(e){var t=bb();return Lg(["payment-methods",e],function(){return Cf.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Sb(){return Lg({queryKey:["/payment-methods/providers"],queryFn:function(){return Cf.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function Rb(){return Lg(["GET/catalog/card-brands"],function(){return Cf.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Tb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=zm.PAYMENTS),Lg(["payment-filters",e,t],function(){return Cf.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Ib(){return Lg(["payment-metrics-filters"],function(){return Cf.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function jb(e){var t=e.transaction_code,n=e.enabled;return Lg(["payment-transaction-details",t],function(){return Cf.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ab(e){var t=e.payment_code,n=e.enabled;return Lg(["transaction-history",t],function(){return Cf.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ob(e){var a=this;return Lg(["POST/transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Pb(e){var a=this;return Lg(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Lb(e){return Lg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Cf.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function zb(e){return Lg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Cf.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Db(e){var t=bb();return Lg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Cf.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function qb(e,a){var o=this,i=bb();return Lg(["GET/useGetProofOfCancel",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getProofOfCancel(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Nb(e,a){var o=this,i=bb();return Lg(["GET/useGetProofOfPayment",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getProofOfPayment(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Mb(e,a,o){var i=this,r=Cf.getInstance();return Lg(["send-payment-notification",e,a],function(){return t(i,void 0,void 0,function(){var t,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,a)];case 1:return t=n.sent(),o.onSuccess(),[2,t.data];case 2:throw i=n.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function Bb(e){return Lg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Cf.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function Ub(e){var a=this;void 0===e&&(e=!0);var o=bb();return Lg(["getPayoutsFilters",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Fb(e){var t=e.password,n=e.accountCode;return Lg(["developers"],function(){return Cf.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Wb(){return Lg(["fetch-customized-api-keys-members"],function(){return Cf.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Hb(){return Lg(["developers-get-allowed-ips"],function(){return Cf.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Gb(){return Lg(["fetch-customized-api-keys-accounts"],function(){return Cf.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Vb(e){return Lg(["fetch-customized-api-keys",e],function(){return Cf.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function $b(){return Lg(["fetch-customized-api-keys-products"],function(){return Cf.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Kb(){return zg(["developers-patch-allowed-ips"],function(e){return Cf.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{cacheTime:0})}function Qb(){return Lg(["fetch-organizations"],function(){return Cf.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Jb(){return Lg(["fetch-all-organizations",bb()],function(){return Cf.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Xb(e){var t=bb();return Lg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Cf.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Yb(e){var t=e.integration_code,n=e.enabled,a=e.accountCode;return Lg(["integration-params",t,a],function(){return t.includes("undefined")?{}:Cf.getInstance().getIntegrationParams({accountCode:a,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Zb(e){var t=e.accountCode,n=e.organizationCode,a=bb();return Lg(["organizations-account-integrations",t,n],function(){return Cf.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||a}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function ex(e){var t=e.accountCode,n=e.paymentMethod;return Lg(["fetch-connections-by-payment-method",n,t],function(){return Cf.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function tx(){var e=this;return Lg(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function nx(){return Lg(["connections"],function(){return Cf.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ax(){return Lg(["dialogs"],function(){return Cf.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function ox(){return Lg(["params-catalog"],function(){return Cf.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function ix(e){var t=e.accountCode,n=e.name;return Lg(["webhooks",t,n],function(){return Cf.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function rx(e){var t=e.accountCode,n=e.enabled;return Lg(["webhooks-detail",t],function(){return Cf.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function sx(e){var t,n=bb(),a=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Lg({queryKey:["accounts",a],queryFn:function(){return Cf.getInstance().getAccounts(a).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!a})}function cx(e){return Lg(["accountsV2",e],function(){return Cf.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ux(e){return Lg(["accountsV2-by-user",e],function(){return e?Cf.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function lx(e,a){var o=this;return Lg({queryKey:["accounts-for-impersonation",e,a],queryFn:function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getAccountsForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:a?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function px(){return Lg(["menu"],function(){return Cf.getInstance().getMenu().then(function(e){return cf(e)?ff:null==e?void 0:e.data}).catch(function(){return ff})})}function dx(){return Lg(["/payment/statuses/style"],function(){return Cf.getInstance().useGetPaymentStatusesStyles().then(function(e){return cf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})})}function mx(){return Lg(["/transaction/statuses/style"],function(){return Cf.getInstance().useGetTransactionStatusesStyles().then(function(e){return cf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})},{cacheTime:36e5,useErrorBoundary:!1})}function hx(){return Lg(["/reconciliation/transaction/statuses/style"],function(){return Cf.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return cf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})}function fx(){return Lg(["timezone-catalog"],function(){return Cf.getInstance().useGetTimeZoneCatalog().then(function(e){return cf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})}function gx(){return Lg(["/cms/audit-logs-filters"],function(){return Cf.getInstance().useGetAuditLogsFilters().then(function(e){return cf(e)?mf:null==e?void 0:e.data}).catch(function(){return mf})})}function yx(){return Lg(["/cms/static-contents"],function(){return Cf.getInstance().getDashboardStaticContents().then(function(e){var t,n;return cf(e)?hf:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function vx(){return Lg(["/cms/locales"],function(){return Cf.getInstance().getLocales().then(function(e){return cf(e)?gf:e.data}).catch(function(){return gf})})}var bx=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return E(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function xx(e){return Lg(["smart-routing-methods",e],function(){return Cf.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function kx(e,t){return Lg(["smart-routing-workflow",t,e],function(){return Cf.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function wx(e,t){return Lg(["smart-routing-condition-types",e,t],function(){return Cf.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function _x(e,t){return Lg(["smart-routing-condition-payment-method",e,t],function(){return Cf.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function Ex(e,t){return Lg(["smart-routing-condition-types-values",t,e],function(){return Cf.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function Cx(e){var t=e.accountCode,n=e.workflowVersionId;return Lg(["smart-routing-workflow-version",n,t],function(){return Cf.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Sx(e,t,n){return Lg(["smart-routing-next-route",e,n,t],function(){return Cf.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Rx(e){return Lg(["smart-routing-decline-groups",e],function(){return Cf.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Tx(e,t){return Lg(["smart-routing-payment-route",e,t],function(){return Cf.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function Ix(e){return Lg(["smart-routing-simulate-condition-type-values",e],function(){return Cf.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function jx(e){var t=e.text,n=e.conditionType;return Lg(["smart-routing-search-condition-values",t,n],function(){return Cf.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Ax(){return Lg(["smart-routing-conversion-rates"],function(){return Cf.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Ox(){var e=this;return Lg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Px(){var e=this;return Lg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Lx(e){return Lg(["fetch-routing-monitors-templates",e],function(){return Cf.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function zx(e,t){return Lg(["fetch-routing-monitors-template",e],function(){return Cf.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Dx(e){var t=e.accountCode;return Lg(["checkouts",t],function(){return Cf.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function qx(e){var t=e.accountCode;return Lg(["checkouts-template"],function(){return Cf.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var Nx=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Mx=function(e,t){var n=e.paymentMethodType,a=e.type;return Lg(Nx({paymentMethodType:n,type:a}),function(){return Cf.getInstance().getNameAndIcon({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)},Bx=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Ux=function(e,t){var n=e.paymentMethodType,a=e.type;return Lg(Bx({paymentMethodType:n,type:a}),function(){return Cf.getInstance().getRequiredFields({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)};function Fx(e){var t=e.accountCode;return Lg(["styling-sdk-dynamic",t],function(){return Cf.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Wx(e){var t=e.accountCode;return Lg(["styling-theme",t],function(){return Cf.getInstance().getStylingTheme({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Hx(e){var t=e.accountCode;return Lg(["styling-settings",t],function(){return Cf.getInstance().getStylingSettings({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Gx(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n;return Lg(["styling-settings-v2",t],function(){return Cf.getInstance().getStylingSettingsV2({accountCode:t,environment:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Vx(){return zg(function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload;return Cf.getInstance().changeStylingSettings({accountCode:t,environment:a,payload:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function $x(){return Lg(["fetch-profile"],function(){return Cf.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Kx(){var e=this;return Lg(["get-user-full"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Qx(e,t){return Lg(["fetch-permissions",e,t],function(){var e,t,n,a=localStorage.getItem("account"),o=localStorage.getItem("user"),i=a&&JSON.parse(a),r=o&&JSON.parse(o);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Jx(e){return Lg(["email-verification",e],function(){return Cf.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Xx(){return Lg({queryKey:["get-login-methods"],queryFn:function(){return Cf.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Yx(){return Lg(["fetch-impersonation-users"],function(){return Cf.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zx(){return Lg(["fetch-impersonation-enabled"],function(){return Cf.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function ek(e,a,o,i,r){var s=this;return void 0===o&&(o=1),void 0===i&&(i=10),Lg(["get-users-to-impersonate",e,a,o,i,r],function(){return t(s,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getUsersToImpersonate(e,a,o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function tk(e){var t;return Lg(["fetch-communications",e],function(){return Cf.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function nk(){return Lg(["fetch-communications-filters"],function(){return Cf.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function ak(e,t){return Lg(["fetch-communication-details",e],function(){return Cf.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function ok(e){return Lg(["notifications-customer",e],function(){return Cf.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function ik(e){return Lg(["validate-opsgenie-key",e],function(){return Cf.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function rk(){return Lg(["notifications-merged"],function(){return Cf.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function sk(){return zg(function(e){return Cf.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ck(){var e=this;return zg(function(a){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().pathNotification(a)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var uk={key:"metadata_fields",name:"metadata_fields"};function lk(){return Lg(["reports"],function(){return Cf.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function pk(e){return void 0===e&&(e=!0),Lg(["reports-multi-env"],function(){return Cf.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function dk(e,t,n){return void 0===t&&(t=!1),Lg(["reports/".concat(e)],function(){return Cf.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function mk(e){return Lg(["GET/reports/templates"],function(){return Cf.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function hk(a,o,i){var r=this;return Lg(["GET/reports/columns/".concat(o,"/").concat(i)],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getReportColumns(o,i).then(function(t){return o===Bm.ALL&&i===Mm.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[uk],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:a,useErrorBoundary:!1})}function fk(e,a){var o=this,i=bb();return Lg(["getRefundPdf",e,i,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getRefundPdf(e,i,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!i,useErrorBoundary:!1})}function gk(){var e=bb();return Lg(["teams-filters-members"],function(){return Cf.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function yk(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r=bb();return Lg(["fetch-post-members-v2",t,n,a,o,i],function(){return Cf.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:a,page:o,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function vk(){return Lg(["fetch-roles"],function(){return Cf.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function bk(){return Lg(["fetch-rolespermissions"],function(){return Cf.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function xk(){return Lg(["fetch-permissions-catalog"],function(){return Cf.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function kk(e){return Lg(["data-report",e],function(){return Cf.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function wk(e,t,n){return void 0===n&&(n=!0),Lg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Cf.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function _k(e,t){return Lg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Ek(e){return Lg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Cf.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Ck(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lg(["get-insights-volume-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Sk(e,t,n,a){return void 0===a&&(a=!0),delete t.account_code,Lg(["get-insights-volume-metrics-v2",t,e,n],function(){return Cf.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:a,cacheTime:200,useErrorBoundary:!1})}function Rk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Tk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ik(e){return Lg(["get-insights-overview",e],function(){return Cf.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function jk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Lg(["get-insights-overview-v3",e,t],function(){return Cf.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Ak(e){return Lg(["get-insights-home-metrics",e],function(){return Cf.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Ok(e){return Lg(["get-insights-reports",e],function(){return Cf.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Pk(e){return Lg(["get-insights-reports-again",e],function(){return Cf.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function Lk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-fraud-screening-conversion-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsFraudScreeningConversionRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-volume-and-count-tx",a,e],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsights3dsVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsights3dsConversionRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-decline-reasons",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsights3dsDeclineReasons(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsights3dsFrictionlessVsChallenge(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Uk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-win-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksWinRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-disputed",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksDisputed(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Hk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Gk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-reasons-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksReasonsDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Vk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-status-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksStatusDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function $k(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-by-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksByCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Kk(e,t){return Lg(["fetch-reconciliation-transaction",e],function(){return Cf.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Qk(e,t){return Lg(["fetch-reconciliation-settlements",e],function(){return Cf.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Jk(e,t){return Lg(["fetch-reconciliation-metrics",e],function(){return Cf.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function Xk(){return Lg(["GET-reconciliation-filters"],function(){return Cf.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Yk(e){return Lg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Cf.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Zk(){return Lg(["GET/v1/reconciliation/active"],function(){return Cf.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ew(e,t,n){return Lg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Cf.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function tw(e){return Lg(["GET/reconciliation/reports/templates"],function(){return Cf.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.params,a=e.enabled;return Lg(["GET/reconciliation/alerts/list",t,n],function(){return Cf.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function aw(e){var t=e.body,n=e.params,a=e.enabled;return Lg(["GET/reconciliation/agenda/list",t,n],function(){return Cf.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ow(e){var t=e.body,n=e.params,a=e.enabled;return Lg(["GET/reconciliation/agenda/insights",t,n],function(){return Cf.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function iw(e){var t=e.body,n=e.params,a=e.enabled;return Lg(["GET/reconciliation/sales/list",t,n],function(){return Cf.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function rw(e){var t=e.body,n=e.params,a=e.enabled;return Lg(["GET/reconciliation/advancements/list",t,n],function(){return Cf.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function sw(e){var t=e.body,n=e.params,a=e.enabled;return Lg(["GET/reconciliation/fees/list",t,n],function(){return Cf.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function cw(e){var a=this,o=Object.values(e).filter(Boolean);return Lg(["feature-flags",o],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function uw(e){var a=this,o=Lg({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),i=Tg();return E(function(){i.setQueryData(["cached-feature-flags"],o)},[o,i]),o}function lw(e){var t,n,a=Tg(),i=a.getQueryState(["cached-feature-flags"]),r=Boolean(!(null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.status)),s=Lg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return o(o({},s),{isLoading:r})}function pw(e){return Lg(["events",e],function(){return Cf.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function dw(e){return Lg(["audit-monitor-event-detail",e],function(){return Cf.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function mw(e){return Lg(["api-logs",e],function(){return Cf.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function hw(e){var t=e.params;return Lg(["webhook-logs",t],function(){return Cf.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function fw(e){return Lg(["api-logs-detail",e],function(){return Cf.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function gw(e,t){return Lg(["fetch-payment-links",e,t],function(){return Cf.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function yw(e){return Lg(["payment-link"],function(){return Cf.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function vw(e){return void 0===e&&(e=!0),Lg(["countries",e],function(){return Cf.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function bw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Lg(["countries-v2",n],function(){return Cf.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function xw(e){return Lg(["timezone"],function(){return Cf.getInstance().getTimezone(e).then(function(e){return cf(e)?df:null==e?void 0:e.data}).catch(function(){return df})},{enabled:!0,keepPreviousData:!0})}function kw(e){return zg(function(e){var t=e.payload;return Cf.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ww(e,t){return Lg(["get-cofig-allow-list",e],function(){return Cf.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function _w(e){return Lg(["get-black-list",e],function(){return Cf.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function Ew(e,t,n,a){var o;return Lg(["post-black-list",e],function(){return Cf.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=a?a:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function Cw(e,t,n){return Lg(["get-block-list-summary",e,t,n],function(){var a=Cf.getInstance();return n?a.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function Sw(e,t,n,a,o,i){return Lg(["black-list-detail",e,t,a,o,i],function(){return Cf.getInstance().getBlacklistDetail(e,t,n,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})}function Rw(e,t,n){return Lg(["allow-list-detail",e],function(){return Cf.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Tw(e){return Lg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Cf.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Iw(e,a){var o=this;return void 0===e&&(e=26),void 0===a&&(a=0),Lg(["batch-refunds",e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getBatchRefunds(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function jw(e){return Lg(["velocity-rules",e],function(){var t=Cf.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Aw(){return Lg(["config-rules"],function(){return Cf.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Ow(e,t){var n=e.organizationCode;return Lg(["mfa-excluded-users",n],function(){return Cf.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Pw(e,t){var n=e.organizationCode;return Lg(["mfa-config",n],function(){return Cf.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Lw(e,t){return Lg(["mfa-enforcement-status",e.accountCode],function(){return Cf.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function zw(e){return Lg(["fetch-organization-saml-config",e],function(){return Cf.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Dw(e){return Lg(["chartgpt-chart-execute",e],function(){return Cf.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function qw(){return Lg(["chartgpt-user-charts"],function(){return Cf.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Nw(){var e=this;return Lg(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,a,i,r=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=Cf.getInstance()).getChartsByUser()];case 1:return a=s.sent(),i=(null==a?void 0:a.data)||[],[4,Promise.all(i.map(function(a){return t(r,void 0,void 0,function(){var t,i,r,s,c,u,l,p;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return t=n.sent(),[2,o(o({},a),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:a.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),i),[2,o(o({},a),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function Mw(e,a,o){var i=this;return void 0===o&&(o=!0),Lg(["chartgpt-patch-and-execute",e,a],function(){return t(i,void 0,void 0,function(){var t,o,i,r,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=Cf.getInstance()).patchChartGPTChart(e,a)];case 1:return o=n.sent(),i=null==o?void 0:o.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function Bw(){return Lg(["languages"],function(){return Cf.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function Uw(){var e=localStorage.getItem("lang")||"en";return Lg(["translations",e],function(){return Cf.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Fw(e){var a=this;return Lg({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Cf.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1})}function Ww(e,a){var o=this;return Lg(["GET/template-reporting/templates",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getReportTemplatesList(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a,useErrorBoundary:!1,cacheTime:0})}function Hw(e,a){var o=this;return Lg(["GET/template-reporting/template-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getReportTemplateById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Gw(e){var a=this;return Lg(["GET/template-reporting/schedules"],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Cf.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:e,useErrorBoundary:!1,cacheTime:0})}function Vw(e,a){var o=this;return Lg(["GET/template-reporting/schedule-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Cf.getInstance().getReportScheduleById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},$w.apply(this,arguments)}
|
|
59
59
|
/**
|
|
60
60
|
* match-sorter-utils
|
|
61
61
|
*
|
|
@@ -65,12 +65,12 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
65
65
|
* LICENSE.md file in the root directory of this source tree.
|
|
66
66
|
*
|
|
67
67
|
* @license MIT
|
|
68
|
-
*/const
|
|
68
|
+
*/const Kw={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Qw=Object.keys(Kw).join("|"),Jw=new RegExp(Qw,"g");
|
|
69
69
|
/**
|
|
70
70
|
* @name match-sorter
|
|
71
71
|
* @license MIT license.
|
|
72
72
|
* @copyright (c) 2099 Kent C. Dodds
|
|
73
73
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
74
74
|
*/
|
|
75
|
-
const Vw=7,$w=6,Kw=5,Qw=4,Jw=3,Xw=2,Yw=1,Zw=0;function e_(e,t,n){var a;if((n=n||{}).threshold=null!=(a=n.threshold)?a:Yw,!n.accessors){const a=t_(e,t,n);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:n.threshold,passed:a>=n.threshold}}const o=function(e,t){const n=[];for(let a=0,o=t.length;a<o;a++){const o=t[a],i=i_(o),r=a_(e,o);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Zw,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const a=o[e];let r=t_(a.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=a.attributes;r<s&&r>=Yw?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=a.itemValue)}return i}function t_(e,t,n){return e=n_(e,n),(t=n_(t,n)).length>e.length?Zw:e===t?Vw:(e=e.toLowerCase())===(t=t.toLowerCase())?$w:e.startsWith(t)?Kw:e.includes(` ${t}`)?Qw:e.includes(t)?Jw:1===t.length?Zw:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?Xw:function(e,t){let n=0,a=0;function o(e,t,a){for(let o=a,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const a=1/e,o=n/t.length;return Yw+o*a}const r=o(t[0],e,0);if(r<0)return Zw;a=r;for(let n=1,i=t.length;n<i;n++){a=o(t[n],e,a);if(!(a>-1))return Zw}const s=a-r;return i(s)}(e,t)}function n_(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Gw,e=>Ww[e])),e}function a_(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const a=n(e);return null==a?[]:Array.isArray(a)?a:[String(a)]}const o_={maxRanking:1/0,minRanking:-1/0};function i_(e){return"function"==typeof e?o_:{...o_,...e}}function r_(e,t){const[n,a]=x.useState();x.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);a(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,x.useCallback(t=>{a(n=>{let a=t;"function"==typeof t&&(a=t(n));try{localStorage.setItem(e,JSON.stringify(a))}catch{}return a})},[e])]}var s_,c_=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),u_=function(){function e(e){this.generateIdentifier=e,this.kv=new c_}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),l_=(s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s_(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p_=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return l_(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(u_),d_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r};function m_(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var a=n,o=0;o<a.length;o++){var i=a[o];if(t(i))return i}}function h_(e,t){Object.entries(e).forEach(function(e){var n=d_(e,2),a=n[0],o=n[1];return t(o,a)})}function f_(e,t){return-1!==e.indexOf(t)}function g_(e,t){for(var n=0;n<e.length;n++){var a=e[n];if(t(a))return a}}var y_=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return m_(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),v_=function(e){return void 0===e},b_=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},x_=function(e){return b_(e)&&0===Object.keys(e).length},k_=function(e){return Array.isArray(e)},w_=function(e){return e instanceof Map},__=function(e){return e instanceof Set},E_=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},C_=function(e){return"number"==typeof e&&isNaN(e)},S_=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||v_(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||E_(e)},R_=function(e){return e.replace(/\./g,"\\.")},T_=function(e){return e.map(String).map(R_).join(".")},I_=function(e){for(var t=[],n="",a=0;a<e.length;a++){var o=e.charAt(a);if("\\"===o&&"."===e.charAt(a+1))n+=".",a++;else"."===o?(t.push(n),n=""):n+=o}var i=n;return t.push(i),t},j_=function(){return j_=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j_.apply(this,arguments)},A_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},O_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function P_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var L_=[P_(v_,"undefined",function(){return null},function(){}),P_(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),P_(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),P_(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),P_(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),P_(__,"set",function(e){return O_([],A_(e.values()))},function(e){return new Set(e)}),P_(w_,"map",function(e){return O_([],A_(e.entries()))},function(e){return new Map(e)}),P_(function(e){return C_(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return C_(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),P_(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),P_(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function z_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var D_=z_(function(e,t){return!!E_(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var a=n.symbolRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown symbol");return a}),q_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),N_=z_(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return O_([],A_(e))},function(e,t){var n=q_[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function M_(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var B_=z_(M_,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return j_({},e);var a={};return n.forEach(function(t){a[t]=e[t]}),a},function(e,t,n){var a=n.classRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(a.prototype),e)}),U_=z_(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var a=n.customTransformerRegistry.findByName(t[1]);if(!a)throw new Error("Trying to deserialize unknown custom value");return a.deserialize(e)}),F_=[B_,D_,U_,N_],W_=function(e,t){var n=g_(F_,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var a=g_(L_,function(n){return n.isApplicable(e,t)});return a?{value:a.transform(e,t),type:a.annotation}:void 0},H_={};L_.forEach(function(e){H_[e.annotation]=e});var G_=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function V_(e){if(f_(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(f_(e,"prototype"))throw new Error("prototype is not allowed as a property");if(f_(e,"constructor"))throw new Error("constructor is not allowed as a property")}var $_=function(e,t,n){if(V_(t),0===t.length)return n(e);for(var a=e,o=0;o<t.length-1;o++){var i=t[o];if(k_(a))a=a[+i];else if(b_(a))a=a[i];else if(__(a)){a=G_(a,r=+i)}else if(w_(a)){if(o===t.length-2)break;var r=+i,s=0===+t[++o]?"key":"value",c=G_(a,r);switch(s){case"key":a=c;break;case"value":a=a.get(c)}}}var u=t[t.length-1];if(k_(a)?a[+u]=n(a[+u]):b_(a)&&(a[u]=n(a[u])),__(a)){var l=G_(a,+u),p=n(l);l!==p&&(a.delete(l),a.add(p))}if(w_(a)){r=+t[t.length-2];var d=G_(a,r);switch(s=0===+u?"key":"value"){case"key":var m=n(d);a.set(m,a.get(d)),m!==d&&a.delete(d);break;case"value":a.set(d,n(a.get(d)))}}return e},K_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},Q_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function J_(e,t,n){if(void 0===n&&(n=[]),e)if(k_(e)){var a=K_(e,2),o=a[0],i=a[1];i&&h_(i,function(e,a){J_(e,t,Q_(Q_([],K_(n)),K_(I_(a))))}),t(o,n)}else h_(e,function(e,a){return J_(e,t,Q_(Q_([],K_(n)),K_(I_(a))))})}function X_(e,t,n){return J_(t,function(t,a){e=$_(e,a,function(e){return function(e,t,n){if(!k_(t)){var a=H_[t];if(!a)throw new Error("Unknown transformation: "+t);return a.untransform(e,n)}switch(t[0]){case"symbol":return D_.untransform(e,t,n);case"class":return B_.untransform(e,t,n);case"custom":return U_.untransform(e,t,n);case"typed-array":return N_.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Y_(e,t){function n(t,n){var a=function(e,t){V_(t);for(var n=0;n<t.length;n++){var a=t[n];if(__(e))e=G_(e,+a);else if(w_(e)){var o=+a,i=0===+t[++n]?"key":"value",r=G_(e,o);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[a]}return e}(e,I_(n));t.map(I_).forEach(function(t){e=$_(e,t,function(){return a})})}if(k_(t)){var a=K_(t,2),o=a[0],i=a[1];o.forEach(function(t){e=$_(e,I_(t),function(){return e})}),i&&h_(i,n)}else h_(t,n);return e}var Z_=function(e,t,n,a,o,i,r){var s;void 0===o&&(o=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=S_(e);if(!c){!function(e,t,n){var a=n.get(e);a?a.push(t):n.set(e,[t])}(e,o,t);var u=r.get(e);if(u)return a?{transformedValue:null}:u}if(!function(e,t){return b_(e)||k_(e)||w_(e)||__(e)||M_(e,t)}(e,n)){var l=W_(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(f_(i,e))return{transformedValue:null};var d=W_(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=k_(m)?[]:{},f={};h_(m,function(s,c){var u=Z_(s,t,n,a,Q_(Q_([],K_(o)),[c]),Q_(Q_([],K_(i)),[e]),r);h[c]=u.transformedValue,k_(u.annotations)?f[c]=u.annotations:b_(u.annotations)&&h_(u.annotations,function(e,t){f[R_(c)+"."+t]=e})});var g=x_(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function eE(e){return Object.prototype.toString.call(e).slice(8,-1)}function tE(e){return"Array"===eE(e)}function nE(e,t={}){if(tE(e))return e.map(e=>nE(e,t));if(!function(e){if("Object"!==eE(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,a)=>{if(tE(t.props)&&!t.props.includes(a))return n;return function(e,t,n,a,o){const i={}.propertyIsEnumerable.call(a,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,a,nE(e[a],t),e,t.nonenumerable),n},{})}var aE=function(){return aE=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aE.apply(this,arguments)},oE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},iE=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e},rE=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new p_,this.symbolRegistry=new u_(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new y_,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Z_(e,t,this,this.dedupe),a={json:n.transformedValue};n.annotations&&(a.meta=aE(aE({},a.meta),{values:n.annotations}));var o,i,r,s,c=(o=t,i=this.dedupe,r={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){i||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=K_(e),n=t[0],a=t.slice(1);0===n.length?s=a.map(T_):r[T_(n)]=a.map(T_)}}),s?x_(r)?[s]:[s,r]:x_(r)?void 0:r);return c&&(a.meta=aE(aE({},a.meta),{referentialEqualities:c})),a},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,a=nE(t);return(null==n?void 0:n.values)&&(a=X_(a,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(a=Y_(a,n.referentialEqualities)),a},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(aE({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,iE([],oE(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const sE={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},cE=x.createContext(sE);function uE({theme:e,...t}){return x.createElement(cE.Provider,Fw({value:e},t))}function lE({queryState:e,observerCount:t,isStale:n,theme:a}){return"fetching"===e.fetchStatus?a.active:t?"paused"===e.fetchStatus?a.paused:n?a.warning:a.success:a.gray}function pE(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function dE(e,t,n={}){return x.forwardRef(({style:a,...o},i)=>{const r=x.useContext(cE),s=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=x.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return x.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),a=({matches:e})=>n(e);return t.addListener(a),()=>{t.removeListener(a)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,r):n}:e,{});return x.createElement(e,{...o,style:{..."function"==typeof t?t(o,r):t,...a,...s},ref:i})})}const mE=(e,t=!1)=>{const{json:n}=rE.serialize(e);return JSON.stringify(n,null,t?2:void 0)},hE=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,fE=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,gE={"Status > Last Updated":(e,t)=>hE(e)===hE(t)?fE(e,t):hE(e)>hE(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":fE},yE=500,vE={top:"bottom",bottom:"top",left:"right",right:"left"};function bE(e){return["left","right"].includes(e)}function xE(e){return vE[e]}function kE(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function wE(e="bottom"){const t=bE(e),n=xE(e),a=kE("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[a]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const _E=dE("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),EE=dE("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),CE=dE("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),SE=dE("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),RE=dE("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),TE=dE("code",{fontSize:".9em",color:"inherit",background:"inherit"}),IE=dE("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),jE=dE("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function AE({text:e}){return x.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const OE=dE("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),PE=dE("span",{color:"white"}),LE=dE("button",{cursor:"pointer",color:"white"}),zE=dE("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),DE=({value:e})=>{const[t,n]=x.useState("NoCopy");return x.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(rE.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?x.createElement(UE,null):"SuccessCopy"===t?x.createElement(WE,null):x.createElement(FE,null))},qE=dE("span",(e,t)=>({color:t.danger})),NE=dE("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),ME=dE("span",{color:"grey",fontSize:".7em"}),BE=({expanded:e,style:t={}})=>x.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),UE=()=>x.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},x.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),x.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),FE=()=>x.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},x.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),x.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),WE=()=>x.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},x.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},x.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const HE=({handleEntry:e,label:t,value:n,subEntries:a=[],subEntryPages:o=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=x.useState([]);return x.createElement(OE,{key:t},o.length?x.createElement(x.Fragment,null,x.createElement(zE,{onClick:()=>c()},x.createElement(BE,{expanded:r})," ",t," ",x.createElement(ME,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",a.length," ",a.length>1?"items":"item")),s?x.createElement(DE,{value:n}):null,r?1===o.length?x.createElement(NE,null,a.map(e)):x.createElement(NE,null,o.map((t,n)=>x.createElement("div",{key:n},x.createElement(OE,null,x.createElement(LE,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},x.createElement(BE,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?x.createElement(NE,null,t.map(e)):null)))):null):x.createElement(x.Fragment,null,x.createElement(PE,null,t,":")," ",x.createElement(qE,null,mE(n))))};function GE({value:e,defaultExpanded:t,renderer:n=HE,pageSize:a=100,copyable:o=!1,...i}){const[r,s]=x.useState(Boolean(t)),c=x.useCallback(()=>s(e=>!e),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const m=function(e,t){if(t<1)return[];let n=0;const a=[];for(;n<e.length;)a.push(e.slice(n,n+t)),n+=t;return a}(l,a);return n({handleEntry:t=>x.createElement(GE,Fw({key:t.label,value:e,renderer:n,copyable:o},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:o,toggleExpanded:c,pageSize:a,...i})}function VE(e){return x.createElement("svg",Fw({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-33.000000, 0.000000)"},x.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),x.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),x.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const $E=(e,t,n=!1)=>wg.useSyncExternalStore(x.useCallback(t=>n?()=>{}:e.subscribe(ng.batchCalls(t)),[e,n]),t,t),KE=x.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:a,setIsOpen:o,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Rg({context:i}),g=f.getQueryCache(),[y,v]=r_("reactQueryDevtoolsSortFn",Object.keys(gE)[0]),[b,k]=r_("reactQueryDevtoolsFilter",""),[w,_]=r_("reactQueryDevtoolsBaseSort",1),E=x.useMemo(()=>gE[y],[y]),C=$E(g,()=>g.getAll().length,!n),[S,R]=r_("reactQueryDevtoolsActiveQueryHash",""),T=x.useMemo(()=>{const e=g.getAll();if(0===C)return[];const t=b?e.filter(e=>e_(e.queryHash,b).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,b,C,g]),[I,j]=x.useState(!1);return x.createElement(uE,{theme:sE},x.createElement(_E,Fw({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:yE,position:"relative",...d.style}}),x.createElement("style",{nonce:a,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+sE.backgroundAlt+" "+sE.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+sE.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+sE.gray+";\n border-radius: .5em;\n border: 3px solid "+sE.backgroundAlt+";\n }\n "}}),x.createElement("div",{style:wE(u),onMouseDown:r}),n&&x.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+sE.grayAlt,display:"flex",flexDirection:"column"}},x.createElement("div",{style:{padding:".5em",background:sE.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},x.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},x.createElement(VE,{"aria-hidden":!0}),x.createElement(AE,{text:"Close React Query Devtools"})),x.createElement("div",{style:{display:"flex",flexDirection:"column"}},x.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},x.createElement(JE,{queryCache:g}),u&&s?x.createElement(jE,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},x.createElement("option",{value:"left"},"Left"),x.createElement("option",{value:"right"},"Right"),x.createElement("option",{value:"top"},"Top"),x.createElement("option",{value:"bottom"},"Bottom")):null),x.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},x.createElement(IE,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),x.createElement(jE,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(gE).map(e=>x.createElement("option",{key:e,value:e},"Sort by ",e))),x.createElement(CE,{type:"button",onClick:()=>_(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),x.createElement(CE,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),x.createElement(CE,{type:"button",onClick:()=>{I?(Qf.setOnline(void 0),j(!1),window.dispatchEvent(new Event("online"))):(Qf.setOnline(!1),j(!0))},"aria-label":I?"Restore offline mock":"Mock offline behavior",title:I?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:I?sE.danger:"currentColor",fill:"none"},I?x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),x.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),x.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),x.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),x.createElement(AE,{text:I?"Restore offline mock":"Mock offline behavior"}))))),x.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map(e=>x.createElement(XE,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:g})))),S&&n?x.createElement(QE,{activeQueryHash:S,queryCache:g,queryClient:f,errorTypes:p}):null,c?x.createElement(CE,Fw({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{o(!1),null==m||m(e)}}),"Close"):null))}),QE=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:a})=>{var o,i;const r=$E(e,()=>e.getAll().find(e=>e.queryHash===t)),s=$E(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),c=null!=(o=$E(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,u=null!=(i=$E(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?i:0,l=C(()=>{if(r&&null!=s&&s.error){const e=a.find(e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())});return null==e?void 0:e.name}},[r,null==s?void 0:s.error,a]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),a=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:a}})};return x.createElement(EE,null,x.createElement("div",{style:{padding:".5em",background:sE.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),x.createElement("div",{style:{padding:".5em"}},x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},x.createElement(TE,{style:{lineHeight:"1.8em"}},x.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},mE(r.queryKey,!0))),x.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:lE({queryState:s,isStale:c,observerCount:u,theme:sE}),flexShrink:0}},pE(r))),x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",x.createElement(TE,null,u)),x.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",x.createElement(TE,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),x.createElement("div",{style:{background:sE.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),x.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},x.createElement(CE,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(YE)},disabled:"fetching"===s.fetchStatus,style:{background:sE.active}},"Refetch")," ",x.createElement(CE,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:sE.warning,color:sE.inputTextColor}},"Invalidate")," ",x.createElement(CE,{type:"button",onClick:()=>n.resetQueries(r),style:{background:sE.gray}},"Reset")," ",x.createElement(CE,{type:"button",onClick:()=>n.removeQueries(r),style:{background:sE.danger}},"Remove")," ",x.createElement(CE,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:sE.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===r.state.status?x.createElement(CE,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:sE.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):x.createElement("label",null,"Trigger error:",x.createElement(jE,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);p(t)}},x.createElement("option",{key:"",value:""}),a.map(e=>x.createElement("option",{key:e.name,value:e.name},e.name))))),x.createElement("div",{style:{background:sE.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(GE,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),x.createElement("div",{style:{background:sE.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(GE,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},JE=({queryCache:e})=>{const t=$E(e,()=>e.getAll().filter(e=>"fresh"===pE(e)).length),n=$E(e,()=>e.getAll().filter(e=>"fetching"===pE(e)).length),a=$E(e,()=>e.getAll().filter(e=>"paused"===pE(e)).length),o=$E(e,()=>e.getAll().filter(e=>"stale"===pE(e)).length),i=$E(e,()=>e.getAll().filter(e=>"inactive"===pE(e)).length);return x.createElement(SE,null,x.createElement(RE,{style:{background:sE.success,opacity:t?1:.3}},"fresh ",x.createElement(TE,null,"(",t,")"))," ",x.createElement(RE,{style:{background:sE.active,opacity:n?1:.3}},"fetching ",x.createElement(TE,null,"(",n,")"))," ",x.createElement(RE,{style:{background:sE.paused,opacity:a?1:.3}},"paused ",x.createElement(TE,null,"(",a,")"))," ",x.createElement(RE,{style:{background:sE.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",x.createElement(TE,null,"(",o,")"))," ",x.createElement(RE,{style:{background:sE.gray,opacity:i?1:.3}},"inactive ",x.createElement(TE,null,"(",i,")")))},XE=x.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:a})=>{var o,i,r,s;const c=null!=(o=$E(a,()=>{var t;return null==(t=a.find(e))?void 0:t.queryHash}))?o:"",u=$E(a,()=>{var t;return null==(t=a.find(e))?void 0:t.state}),l=null!=(i=$E(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isStale()}))&&i,p=null!=(r=$E(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isDisabled()}))&&r,d=null!=(s=$E(a,()=>{var t;return null==(t=a.find(e))?void 0:t.getObserversCount()}))?s:0;return u?x.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+sE.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},x.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:lE({queryState:u,isStale:l,observerCount:d,theme:sE}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?x.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:sE.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,x.createElement(TE,{style:{padding:".5em"}},""+c)):null});function YE(){}XE.displayName="QueryRow";const ZE="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:a={},position:o="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=x.useRef(null),p=x.useRef(null),[d,m]=r_("reactQueryDevtoolsOpen",e),[h,f]=r_("reactQueryDevtoolsHeight",yE),[g,y]=r_("reactQueryDevtoolsWidth",yE),[v="bottom",b]=r_("reactQueryDevtoolsPanelPosition",c),[k,w]=x.useState(!1),[_,E]=x.useState(!1),C=function(){const e=x.useRef(!1),t=x.useCallback(()=>e.current,[]);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();x.useEffect(()=>{w(null!=d&&d)},[d,k,w]),x.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),x.useEffect(()=>{var e;if(k&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=kE("padding",v),n=bE(v),a=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?g:h)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(a).forEach(([t,n])=>{e.style[t]=n})}}},[k,v,h,g]);const{style:S={},...R}=t,{style:T={},onClick:I,...j}=a,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:a,isOpen:o,isResizing:i,panelStyle:r}){const s=xE(e),c=kE("border",s),u=bE(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+a.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:yE}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:yE}}}({position:v,devtoolsTheme:sE,isOpen:k,height:h,width:g,isResizing:_,panelStyle:S});return C()?x.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},x.createElement(uE,{theme:sE},x.createElement(KE,Fw({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},R,{style:A,isOpen:k,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=bE(v);E(!0);const{height:a,width:o}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=a+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{_&&E(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:u}))),k?null:x.createElement("button",Fw({type:"button"},j,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==I||I(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...T}}),x.createElement(VE,{"aria-hidden":!0}),x.createElement(AE,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var eC,tC={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function nC(e){var a=this,i=e.children,r=process.env.ENVIRONMENT,s=C(function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"},[r]),c=w(!1),u=c[0],l=c[1],p=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),a=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,Ef.refreshInstance({headers:o(o({},a),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}})})},[s]);E(function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}},[p]);var d=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c,u,p;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(a=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,Ef.refreshInstance({headers:o(o({},a),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),my.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}})})},[s,l]);return E(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?d(n):"token"===t.key&&d(e)}}),d(e)},[l,d]),u?React.createElement(Tg,{client:my},i,React.createElement(ZE,{initialIsOpen:!1})):React.createElement("div",{style:tC})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(eC||(eC={}));var aC=function(){var e=_(null),t=_(null),n=_(null),a=w(!1),o=a[0],i=a[1],r=w(null),s=r[0],c=r[1],u=w(null),l=u[0],p=u[1],d=S(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),m=S(function(){var a;if((null===(a=e.current)||void 0===a?void 0:a.readyState)!==WebSocket.OPEN){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),p(null);try{var o=new WebSocket("".concat(_f["WS_URL_".concat(_f.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(d(),i(!1))},3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){p("Failed to parse server response")}},o.onerror=function(e){p("Connection error occurred"),i(!1)},o.onclose=function(e){i(!1),d(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){m()},5e3))}}catch(e){p("Failed to establish connection")}}},[]),h=S(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),f=S(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),g=S(function(){c(null)},[]),y=S(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return E(function(){return m(),function(){d(),y()}},[]),{subscribe:h,unsubscribe:f,disconnect:y,connect:m,clearChartData:g,isConnected:o,chartData:s,connectionError:l}},oC=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&oC&&function(){t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:if(!Oi())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ii.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Hm as AI,wf as Api,eC as ApiErrorCodes,nC as ApiProvider,Ef as ApiSingleton,qm as Cms,Dm as Country,Um as DataReport,zm as Organization,Lm as PaymentFiltersSection,Wm as ReconciliationAgendaInsight,Fm as ReconciliationReportType,Nm as ReportType,Pm as SendPaymentNotification,Bm as SmartRouting,Mm as TemplateType,Lx as getQueryKeyGetNameAndIcon,Dx as getQueryKeyRequiredFields,dy as queryCache,my as queryClient,Tx as use3DSExemptions,tb as useAICreateWorkflow,iw as useAllFeatureFlags,_w as useAllowListDetail,ww as useBlackListDetail,rw as useCachedFeatureFlag,yy as useCancelReport,ey as useChangePasswordV2,hv as useChangePaymentsWebhook,uv as useChangeStatusBlackList,lv as useChangeStatusItemBlackList,Fx as useChangeStylingSettings,lb as useChangeTemplateStatus,py as useChargebacksUpload,aC as useChartAssistantSocket,Ow as useChartExecute,cb as useCloneTemplate,Zx as useCommunicationDetails,Xx as useCommunications,Yx as useCommunicationsFilters,Xy as useConfirmedOtpMfa,gy as useCountRowsForReport,rb as useCreateAndExecuteChart,ab as useCreateChart,zy as useCreateMonitorTemplate,Ly as useCreateMonitorThreshold,ly as useCreateOperationTransaction,Fy as useCreatePaymentLinks,Kv as useCreateReconciliationAlert,Vv as useCreateReconciliationReportTemplate,hy as useCreateReconciliationsReportV2,vy as useCreateReportTemplate,fy as useCreateReportV2,My as useCreateRoles,Yv as useCreateSamlConfig,db as useCreateSchedule,Tv as useCreateScheduledReport,sb as useCreateTemplate,oy as useCreateUserAuth0,xy as useCreateWorkflow,mb as useDeactivateSchedule,Wg as useDeleteAccountsUserMassive,yv as useDeleteAllowlistItem,dv as useDeleteBlackListType,fv as useDeleteBlockListItem,ob as useDeleteChart,Mv as useDeleteCustomizedApiKeys,Wy as useDeletePaymentLink,Qv as useDeleteReconciliationAlert,Uy as useDeleteRoles,eb as useDeleteSamlConfig,hb as useDeleteSchedule,jv as useDeleteScheduledReport,pb as useDeleteTemplate,qy as useDeleteUserTeamV2,_y as useDeleteVersion,qg as useDeleteWebhookV2,Ey as useDuplicateVersion,Hy as useEditPaymentLinks,By as useEditRoles,Vx as useEmailVerification,Sv as useExcludeUsers,Gv as useExportApiLogs,ow as useFeatureFlags,yw as useFirebaseUserSubscribe,nb as useGenerateFeedback,ax as useGetAccounts,ix as useGetAccountsByUser,rx as useGetAccountsForImpersonation,ox as useGetAccountsV2,Rw as useGetAllConfigRules,Vb as useGetAllOrganizations,nw as useGetAllReconciliationsAdvancements,Zk as useGetAllReconciliationsAgenda,Yk as useGetAllReconciliationsAlerts,aw as useGetAllReconciliationsFees,tw as useGetAllReconciliationsSales,Kk as useGetAllTableColumns,Bb as useGetAllowedIps,pw as useGetApiLogsDetailByPaymentCode,sw as useGetAuditEvents,dx as useGetAuditLogsFilters,cw as useGetAuditMonitorEventDetail,wv as useGetBatchRefundProcessedFileDownload,_v as useGetBatchRefundUserFileDownload,Cw as useGetBatchRefunds,bw as useGetBlackList,kw as useGetBlockListSummary,_b as useGetCardBrands,Pw as useGetChartsByUser,Lw as useGetChartsByUserWithResults,Px as useGetCheckoutTemplate,Ox as useGetCheckouts,Av as useGetConditionalConfigRules,vw as useGetConfigAllowlist,Yb as useGetConnections,Jb as useGetConnectionsByPaymentMethod,hw as useGetCountriesConfigPaymentLink,fw as useGetCountriesConfigPaymentLinkV2,Nb as useGetCredentials,Fv as useGetCredentialsMFA,Fb as useGetCustomizedApiKeys,Ub as useGetCustomizedApiKeysAccounts,Mb as useGetCustomizedApiKeysMembers,Wb as useGetCustomizedApiKeysProducts,qv as useGetCustomizedApiKeysToken,mx as useGetDashboardStaticContents,Zb as useGetDialogs,ck as useGetDownloadReport,Jy as useGetEmailOtp,Xb as useGetHashPylon,Qx as useGetImpersonationEnabled,Kx as useGetImpersonationUsers,Tk as useGetInsightsReport,Ik as useGetInsightsReportAgain,Qb as useGetIntegrationByAccountV2,Kb as useGetIntegrationParams,Dw as useGetLanguages,hx as useGetLocales,$x as useGetLoginMethods,Iw as useGetMFAConfig,Tw as useGetMFAExcludedUsers,jw as useGetMFAStatus,sx as useGetMenu,nk as useGetMergedNotifications,zx as useGetNameAndIcon,ek as useGetNotificationsCustomer,ak as useGetNotificationsNumberMutation,Gb as useGetOrganization,Eb as useGetPaymentFilters,mw as useGetPaymentLinkByCode,dw as useGetPaymentLinks,wb as useGetPaymentMethodsAndProviders,Cb as useGetPaymentMetricsFilters,cx as useGetPaymentStatusesStyles,Sb as useGetPaymentTransactionsDetails,vb as useGetPaymentV2,kb as useGetPaymentsMethodsByCountry,jb as useGetPayoutDetail,Ob as useGetPayoutHistoryDetail,Ab as useGetPayoutTransactionDetail,Gx as useGetPermissions,gk as useGetPermissionsCatalog,Wx as useGetProfile,Pb as useGetProofOfCancel,Lb as useGetProofOfPayment,$b as useGetProviderParams,Qk as useGetReconciliationActive,ew as useGetReconciliationAgendaInsightsByKey,$k as useGetReconciliationFilters,Vk as useGetReconciliationMetrics,lx as useGetReconciliationTransactionStatusesStyles,Hk as useGetReconciliationTransactions,Jk as useGetReconciliationsReportColumns,Xk as useGetReconciliationsReportTemplates,pk as useGetRefundPdf,lk as useGetReportColumns,uk as useGetReportTemplates,rk as useGetReportsList,sk as useGetReportsListMultiEnv,qx as useGetRequiredFields,hk as useGetRoles,fk as useGetRolesPermissions,Ax as useGetRoutingMonitorsTemplate,jx as useGetRoutingMonitorsTemplates,Ov as useGetRule,Aw as useGetSamlConfig,Uw as useGetScheduleById,Rv as useGetScheduledReportsList,Bw as useGetSchedulesList,Gk as useGetSettlements,bx as useGetSmartRoutingConditionPaymentMethod,vx as useGetSmartRoutingConditionTypes,xx as useGetSmartRoutingConditionTypesValues,yk as useGetSmartRoutingDataReport,_x as useGetSmartRoutingDeclineGroups,gx as useGetSmartRoutingMethods,wx as useGetSmartRoutingNextRoute,Ex as useGetSmartRoutingPaymentRoute,Sx as useGetSmartRoutingSearchConditionValues,Cx as useGetSmartRoutingSimulateConditionTypeValues,yx as useGetSmartRoutingWorkflow,kx as useGetSmartRoutingWorkflowVersion,Nx as useGetStylingSdkDynamic,Bx as useGetStylingSettings,Ux as useGetStylingSettingsV2,Mx as useGetStylingTheme,dk as useGetTeamsFiltersMembers,Mw as useGetTemplateById,Nw as useGetTemplatesList,px as useGetTimeZoneCatalog,gw as useGetTimezonePaymentLink,Qy as useGetTokenValidation,bb as useGetTransactionDetailsV2,Rb as useGetTransactionHistoryByPaymentCode,xb as useGetTransactionRawResponse,ux as useGetTransactionStatusesStyles,qw as useGetTranslations,Hx as useGetUserFull,Jx as useGetUsersToImpersonate,tk as useGetValidateOpsgenieKey,ex as useGetWebhookParamsV2,nx as useGetWebhooksV2Detail,tx as useGetWebhooksV3,Pk as useInsights3dsConversionRateAndEvolution,Lk as useInsights3dsDeclineReasons,zk as useInsights3dsFrictionlessVsChallenge,Ok as useInsights3dsVolumeAndCountTx,Wk as useInsightsChargebacksByCardBrand,Bk as useInsightsChargebacksByProviderAndCardBrand,Mk as useInsightsChargebacksDisputed,Uk as useInsightsChargebacksReasonsDistribution,Fk as useInsightsChargebacksStatusDistribution,qk as useInsightsChargebacksTotalRateAndEvolution,Dk as useInsightsChargebacksVolumeAndCountTx,Nk as useInsightsChargebacksWinRate,vk as useInsightsConversionRateMetricsV2,Ek as useInsightsCustomerPaymentsAndFraudMetrics,xk as useInsightsFallbackMetrics,Ak as useInsightsFraudScreeningConversionRate,jk as useInsightsFraudScreeningVolumeAndCountTx,Rk as useInsightsHomeMetrics,Ck as useInsightsOverviewMetrics,Sk as useInsightsOverviewMetricsV3,_k as useInsightsTotalPaymentsAndFraudMetrics,kk as useInsightsVolumeMetrics,wk as useInsightsVolumeMetricsV2,ny as useInviteUsersMultiaccountMassive,fx as useIsTesting,ry as useLoginMethods,Ix as useNetworkTokensOnboarding,Kg as useNewPostConnectionValidate,Bg as usePatchAccountV2,iv as usePatchAddAllowlistItems,Hb as usePatchAllowedIps,rv as usePatchAllowlist,zw as usePatchAndExecuteChart,Bv as usePatchApiKeysEditNote,av as usePatchChangeStatusAllowlist,ov as usePatchChangeStatusAllowlistItem,ib as usePatchChartName,Qg as usePatchConnection,Dv as usePathCreateCustomizedApiKeys,ok as usePathNotifications,qb as usePayoutsFilters,Db as usePayoutsList,Mg as usePostAccount,Ew as usePostAllowlistMultiAccount,Uv as usePostApiKeysRoll,uw as usePostApiLogs,Wv as usePostAuditMonitors,kv as usePostBatchRefundByFile,mv as usePostBlackListBatch,pv as usePostBlackListItems,sv as usePostBlackListMultiAccount,xw as usePostBlockList,iy as usePostCall,Gg as usePostChangeStatusConnection,$g as usePostConnectionMultiAccount,nv as usePostCreateAllowlistMultiAccount,zv as usePostCreateCustomizedApiKeys,Xv as usePostCreateInsightsReport,Pv as usePostCreateRuleMultiAccount,Nv as usePostCredentialsValidatePassword,Jg as usePostDefaultRoutes,Lv as usePostEditRule,Ib as usePostFraudTransactions,ev as usePostGetAllowlistItems,tv as usePostGetAllowlistMultiAccount,mk as usePostMembersPaginatedV2,yb as usePostPaymentsEvaluated,gb as usePostPaymentsLazy,Dy as usePostSlackMessageChannel,Tb as usePostTransactions,Gy as usePostUserSettings,Ky as usePostUserSettingsPinned,$y as usePostUserSettingsTables,Vy as usePostUserThemeSettings,Hg as usePostValideStatusConnection,Sw as usePostVelocityRules,lw as usePostWebhookLogs,Dg as usePostWebhookMultiAccount,Rx as useProviderConversionRatesData,ky as usePublishVersion,Ug as usePutAccountPrincipal,Fg as usePutAccountsUserMassive,cv as usePutBlackListType,Vg as usePutCosts,Hv as useResendWebhooks,wy as useSaveVersion,zb as useSendPaymentNotification,Ny as useSetCustodian,Ry as useSmartRoutingCreateDeclinedGroup,Iy as useSmartRoutingEditWorkflowName,Py as useSmartRoutingMultiAccountDeclinedGroupCreate,Oy as useSmartRoutingRemoveDeclinedGroup,jy as useSmartRoutingSimulateTransaction,Ty as useSmartRoutingToggleFavorite,Sy as useSmartRoutingUpdateDeclinedGroup,Ay as useSmartRoutingUpdateMonitorRedistribution,Cy as useToggleMethod,ay as useUnInviteUsersV2,Yy as useUnrollUserV2,cy as useUpdateCheckoutTemplate,sy as useUpdateIsActiveCheckout,Cv as useUpdateMFAConfig,Yg as useUpdateOrganizationStatus,ty as useUpdateProfile,Jv as useUpdateReconciliationAlert,$v as useUpdateReconciliationReportTemplate,by as useUpdateReportTemplate,Zv as useUpdateSamlConfig,Iv as useUpdateScheduledReport,uy as useUpdateStylingTheme,ub as useUpdateTemplateSelection,Ng as useUpdateWebhookV2,bv as useUploadBatchRefundsFileV2,xv as useUploadBatchRefundsV2,Ev as useUploadFileS3ClientBatchRefunds,vv as useValiateAllowlistItems,gv as useValidateBlockListItems,Xg as useValidateCredentials,Zg as useValidateOrgName,Zy as useValidatePasswordStatus,bk as useViewMoreMetrics};
|
|
75
|
+
const Xw=7,Yw=6,Zw=5,e_=4,t_=3,n_=2,a_=1,o_=0;function i_(e,t,n){var a;if((n=n||{}).threshold=null!=(a=n.threshold)?a:a_,!n.accessors){const a=r_(e,t,n);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:n.threshold,passed:a>=n.threshold}}const o=function(e,t){const n=[];for(let a=0,o=t.length;a<o;a++){const o=t[a],i=l_(o),r=c_(e,o);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:o_,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const a=o[e];let r=r_(a.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=a.attributes;r<s&&r>=a_?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=a.itemValue)}return i}function r_(e,t,n){return e=s_(e,n),(t=s_(t,n)).length>e.length?o_:e===t?Xw:(e=e.toLowerCase())===(t=t.toLowerCase())?Yw:e.startsWith(t)?Zw:e.includes(` ${t}`)?e_:e.includes(t)?t_:1===t.length?o_:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?n_:function(e,t){let n=0,a=0;function o(e,t,a){for(let o=a,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const a=1/e,o=n/t.length;return a_+o*a}const r=o(t[0],e,0);if(r<0)return o_;a=r;for(let n=1,i=t.length;n<i;n++){a=o(t[n],e,a);if(!(a>-1))return o_}const s=a-r;return i(s)}(e,t)}function s_(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Jw,e=>Kw[e])),e}function c_(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const a=n(e);return null==a?[]:Array.isArray(a)?a:[String(a)]}const u_={maxRanking:1/0,minRanking:-1/0};function l_(e){return"function"==typeof e?u_:{...u_,...e}}function p_(e,t){const[n,a]=x.useState();x.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);a(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,x.useCallback(t=>{a(n=>{let a=t;"function"==typeof t&&(a=t(n));try{localStorage.setItem(e,JSON.stringify(a))}catch{}return a})},[e])]}var d_,m_=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),h_=function(){function e(e){this.generateIdentifier=e,this.kv=new m_}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),f_=(d_=function(e,t){return d_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d_(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g_=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return f_(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(h_),y_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r};function v_(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var a=n,o=0;o<a.length;o++){var i=a[o];if(t(i))return i}}function b_(e,t){Object.entries(e).forEach(function(e){var n=y_(e,2),a=n[0],o=n[1];return t(o,a)})}function x_(e,t){return-1!==e.indexOf(t)}function k_(e,t){for(var n=0;n<e.length;n++){var a=e[n];if(t(a))return a}}var w_=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return v_(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),__=function(e){return void 0===e},E_=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},C_=function(e){return E_(e)&&0===Object.keys(e).length},S_=function(e){return Array.isArray(e)},R_=function(e){return e instanceof Map},T_=function(e){return e instanceof Set},I_=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},j_=function(e){return"number"==typeof e&&isNaN(e)},A_=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||__(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||I_(e)},O_=function(e){return e.replace(/\./g,"\\.")},P_=function(e){return e.map(String).map(O_).join(".")},L_=function(e){for(var t=[],n="",a=0;a<e.length;a++){var o=e.charAt(a);if("\\"===o&&"."===e.charAt(a+1))n+=".",a++;else"."===o?(t.push(n),n=""):n+=o}var i=n;return t.push(i),t},z_=function(){return z_=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z_.apply(this,arguments)},D_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},q_=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function N_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var M_=[N_(__,"undefined",function(){return null},function(){}),N_(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),N_(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),N_(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),N_(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),N_(T_,"set",function(e){return q_([],D_(e.values()))},function(e){return new Set(e)}),N_(R_,"map",function(e){return q_([],D_(e.entries()))},function(e){return new Map(e)}),N_(function(e){return j_(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return j_(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),N_(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),N_(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function B_(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var U_=B_(function(e,t){return!!I_(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var a=n.symbolRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown symbol");return a}),F_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),W_=B_(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return q_([],D_(e))},function(e,t){var n=F_[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function H_(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var G_=B_(H_,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return z_({},e);var a={};return n.forEach(function(t){a[t]=e[t]}),a},function(e,t,n){var a=n.classRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(a.prototype),e)}),V_=B_(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var a=n.customTransformerRegistry.findByName(t[1]);if(!a)throw new Error("Trying to deserialize unknown custom value");return a.deserialize(e)}),$_=[G_,U_,V_,W_],K_=function(e,t){var n=k_($_,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var a=k_(M_,function(n){return n.isApplicable(e,t)});return a?{value:a.transform(e,t),type:a.annotation}:void 0},Q_={};M_.forEach(function(e){Q_[e.annotation]=e});var J_=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function X_(e){if(x_(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(x_(e,"prototype"))throw new Error("prototype is not allowed as a property");if(x_(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Y_=function(e,t,n){if(X_(t),0===t.length)return n(e);for(var a=e,o=0;o<t.length-1;o++){var i=t[o];if(S_(a))a=a[+i];else if(E_(a))a=a[i];else if(T_(a)){a=J_(a,r=+i)}else if(R_(a)){if(o===t.length-2)break;var r=+i,s=0===+t[++o]?"key":"value",c=J_(a,r);switch(s){case"key":a=c;break;case"value":a=a.get(c)}}}var u=t[t.length-1];if(S_(a)?a[+u]=n(a[+u]):E_(a)&&(a[u]=n(a[u])),T_(a)){var l=J_(a,+u),p=n(l);l!==p&&(a.delete(l),a.add(p))}if(R_(a)){r=+t[t.length-2];var d=J_(a,r);switch(s=0===+u?"key":"value"){case"key":var m=n(d);a.set(m,a.get(d)),m!==d&&a.delete(d);break;case"value":a.set(d,n(a.get(d)))}}return e},Z_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},eE=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e};function tE(e,t,n){if(void 0===n&&(n=[]),e)if(S_(e)){var a=Z_(e,2),o=a[0],i=a[1];i&&b_(i,function(e,a){tE(e,t,eE(eE([],Z_(n)),Z_(L_(a))))}),t(o,n)}else b_(e,function(e,a){return tE(e,t,eE(eE([],Z_(n)),Z_(L_(a))))})}function nE(e,t,n){return tE(t,function(t,a){e=Y_(e,a,function(e){return function(e,t,n){if(!S_(t)){var a=Q_[t];if(!a)throw new Error("Unknown transformation: "+t);return a.untransform(e,n)}switch(t[0]){case"symbol":return U_.untransform(e,t,n);case"class":return G_.untransform(e,t,n);case"custom":return V_.untransform(e,t,n);case"typed-array":return W_.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function aE(e,t){function n(t,n){var a=function(e,t){X_(t);for(var n=0;n<t.length;n++){var a=t[n];if(T_(e))e=J_(e,+a);else if(R_(e)){var o=+a,i=0===+t[++n]?"key":"value",r=J_(e,o);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[a]}return e}(e,L_(n));t.map(L_).forEach(function(t){e=Y_(e,t,function(){return a})})}if(S_(t)){var a=Z_(t,2),o=a[0],i=a[1];o.forEach(function(t){e=Y_(e,L_(t),function(){return e})}),i&&b_(i,n)}else b_(t,n);return e}var oE=function(e,t,n,a,o,i,r){var s;void 0===o&&(o=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=A_(e);if(!c){!function(e,t,n){var a=n.get(e);a?a.push(t):n.set(e,[t])}(e,o,t);var u=r.get(e);if(u)return a?{transformedValue:null}:u}if(!function(e,t){return E_(e)||S_(e)||R_(e)||T_(e)||H_(e,t)}(e,n)){var l=K_(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(x_(i,e))return{transformedValue:null};var d=K_(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=S_(m)?[]:{},f={};b_(m,function(s,c){var u=oE(s,t,n,a,eE(eE([],Z_(o)),[c]),eE(eE([],Z_(i)),[e]),r);h[c]=u.transformedValue,S_(u.annotations)?f[c]=u.annotations:E_(u.annotations)&&b_(u.annotations,function(e,t){f[O_(c)+"."+t]=e})});var g=C_(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function iE(e){return Object.prototype.toString.call(e).slice(8,-1)}function rE(e){return"Array"===iE(e)}function sE(e,t={}){if(rE(e))return e.map(e=>sE(e,t));if(!function(e){if("Object"!==iE(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,a)=>{if(rE(t.props)&&!t.props.includes(a))return n;return function(e,t,n,a,o){const i={}.propertyIsEnumerable.call(a,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,a,sE(e[a],t),e,t.nonenumerable),n},{})}var cE=function(){return cE=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cE.apply(this,arguments)},uE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r},lE=function(e,t){for(var n=0,a=t.length,o=e.length;n<a;n++,o++)e[o]=t[n];return e},pE=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new g_,this.symbolRegistry=new h_(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new w_,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=oE(e,t,this,this.dedupe),a={json:n.transformedValue};n.annotations&&(a.meta=cE(cE({},a.meta),{values:n.annotations}));var o,i,r,s,c=(o=t,i=this.dedupe,r={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){i||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Z_(e),n=t[0],a=t.slice(1);0===n.length?s=a.map(P_):r[P_(n)]=a.map(P_)}}),s?C_(r)?[s]:[s,r]:C_(r)?void 0:r);return c&&(a.meta=cE(cE({},a.meta),{referentialEqualities:c})),a},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,a=sE(t);return(null==n?void 0:n.values)&&(a=nE(a,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(a=aE(a,n.referentialEqualities)),a},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(cE({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,lE([],uE(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const dE={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},mE=x.createContext(dE);function hE({theme:e,...t}){return x.createElement(mE.Provider,$w({value:e},t))}function fE({queryState:e,observerCount:t,isStale:n,theme:a}){return"fetching"===e.fetchStatus?a.active:t?"paused"===e.fetchStatus?a.paused:n?a.warning:a.success:a.gray}function gE(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function yE(e,t,n={}){return x.forwardRef(({style:a,...o},i)=>{const r=x.useContext(mE),s=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=x.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return x.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),a=({matches:e})=>n(e);return t.addListener(a),()=>{t.removeListener(a)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,r):n}:e,{});return x.createElement(e,{...o,style:{..."function"==typeof t?t(o,r):t,...a,...s},ref:i})})}const vE=(e,t=!1)=>{const{json:n}=pE.serialize(e);return JSON.stringify(n,null,t?2:void 0)},bE=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,xE=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,kE={"Status > Last Updated":(e,t)=>bE(e)===bE(t)?xE(e,t):bE(e)>bE(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":xE},wE=500,_E={top:"bottom",bottom:"top",left:"right",right:"left"};function EE(e){return["left","right"].includes(e)}function CE(e){return _E[e]}function SE(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function RE(e="bottom"){const t=EE(e),n=CE(e),a=SE("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[a]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const TE=yE("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),IE=yE("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),jE=yE("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),AE=yE("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),OE=yE("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),PE=yE("code",{fontSize:".9em",color:"inherit",background:"inherit"}),LE=yE("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),zE=yE("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function DE({text:e}){return x.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const qE=yE("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),NE=yE("span",{color:"white"}),ME=yE("button",{cursor:"pointer",color:"white"}),BE=yE("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),UE=({value:e})=>{const[t,n]=x.useState("NoCopy");return x.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(pE.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?x.createElement(VE,null):"SuccessCopy"===t?x.createElement(KE,null):x.createElement($E,null))},FE=yE("span",(e,t)=>({color:t.danger})),WE=yE("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),HE=yE("span",{color:"grey",fontSize:".7em"}),GE=({expanded:e,style:t={}})=>x.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),VE=()=>x.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},x.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),x.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),$E=()=>x.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},x.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},x.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),x.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),KE=()=>x.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},x.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},x.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const QE=({handleEntry:e,label:t,value:n,subEntries:a=[],subEntryPages:o=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=x.useState([]);return x.createElement(qE,{key:t},o.length?x.createElement(x.Fragment,null,x.createElement(BE,{onClick:()=>c()},x.createElement(GE,{expanded:r})," ",t," ",x.createElement(HE,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",a.length," ",a.length>1?"items":"item")),s?x.createElement(UE,{value:n}):null,r?1===o.length?x.createElement(WE,null,a.map(e)):x.createElement(WE,null,o.map((t,n)=>x.createElement("div",{key:n},x.createElement(qE,null,x.createElement(ME,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},x.createElement(GE,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?x.createElement(WE,null,t.map(e)):null)))):null):x.createElement(x.Fragment,null,x.createElement(NE,null,t,":")," ",x.createElement(FE,null,vE(n))))};function JE({value:e,defaultExpanded:t,renderer:n=QE,pageSize:a=100,copyable:o=!1,...i}){const[r,s]=x.useState(Boolean(t)),c=x.useCallback(()=>s(e=>!e),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const m=function(e,t){if(t<1)return[];let n=0;const a=[];for(;n<e.length;)a.push(e.slice(n,n+t)),n+=t;return a}(l,a);return n({handleEntry:t=>x.createElement(JE,$w({key:t.label,value:e,renderer:n,copyable:o},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:o,toggleExpanded:c,pageSize:a,...i})}function XE(e){return x.createElement("svg",$w({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-33.000000, 0.000000)"},x.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),x.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),x.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const YE=(e,t,n=!1)=>_g.useSyncExternalStore(x.useCallback(t=>n?()=>{}:e.subscribe(ag.batchCalls(t)),[e,n]),t,t),ZE=x.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:a,setIsOpen:o,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Tg({context:i}),g=f.getQueryCache(),[y,v]=p_("reactQueryDevtoolsSortFn",Object.keys(kE)[0]),[b,k]=p_("reactQueryDevtoolsFilter",""),[w,_]=p_("reactQueryDevtoolsBaseSort",1),E=x.useMemo(()=>kE[y],[y]),C=YE(g,()=>g.getAll().length,!n),[S,R]=p_("reactQueryDevtoolsActiveQueryHash",""),T=x.useMemo(()=>{const e=g.getAll();if(0===C)return[];const t=b?e.filter(e=>i_(e.queryHash,b).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,b,C,g]),[I,j]=x.useState(!1);return x.createElement(hE,{theme:dE},x.createElement(TE,$w({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:wE,position:"relative",...d.style}}),x.createElement("style",{nonce:a,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+dE.backgroundAlt+" "+dE.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+dE.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+dE.gray+";\n border-radius: .5em;\n border: 3px solid "+dE.backgroundAlt+";\n }\n "}}),x.createElement("div",{style:RE(u),onMouseDown:r}),n&&x.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+dE.grayAlt,display:"flex",flexDirection:"column"}},x.createElement("div",{style:{padding:".5em",background:dE.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},x.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},x.createElement(XE,{"aria-hidden":!0}),x.createElement(DE,{text:"Close React Query Devtools"})),x.createElement("div",{style:{display:"flex",flexDirection:"column"}},x.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},x.createElement(tC,{queryCache:g}),u&&s?x.createElement(zE,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},x.createElement("option",{value:"left"},"Left"),x.createElement("option",{value:"right"},"Right"),x.createElement("option",{value:"top"},"Top"),x.createElement("option",{value:"bottom"},"Bottom")):null),x.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},x.createElement(LE,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),x.createElement(zE,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(kE).map(e=>x.createElement("option",{key:e,value:e},"Sort by ",e))),x.createElement(jE,{type:"button",onClick:()=>_(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),x.createElement(jE,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),x.createElement(jE,{type:"button",onClick:()=>{I?(Jf.setOnline(void 0),j(!1),window.dispatchEvent(new Event("online"))):(Jf.setOnline(!1),j(!0))},"aria-label":I?"Restore offline mock":"Mock offline behavior",title:I?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:I?dE.danger:"currentColor",fill:"none"},I?x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),x.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),x.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):x.createElement(x.Fragment,null,x.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),x.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),x.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),x.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),x.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),x.createElement(DE,{text:I?"Restore offline mock":"Mock offline behavior"}))))),x.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map(e=>x.createElement(nC,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:g})))),S&&n?x.createElement(eC,{activeQueryHash:S,queryCache:g,queryClient:f,errorTypes:p}):null,c?x.createElement(jE,$w({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{o(!1),null==m||m(e)}}),"Close"):null))}),eC=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:a})=>{var o,i;const r=YE(e,()=>e.getAll().find(e=>e.queryHash===t)),s=YE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),c=null!=(o=YE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,u=null!=(i=YE(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?i:0,l=C(()=>{if(r&&null!=s&&s.error){const e=a.find(e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())});return null==e?void 0:e.name}},[r,null==s?void 0:s.error,a]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),a=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:a}})};return x.createElement(IE,null,x.createElement("div",{style:{padding:".5em",background:dE.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),x.createElement("div",{style:{padding:".5em"}},x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},x.createElement(PE,{style:{lineHeight:"1.8em"}},x.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},vE(r.queryKey,!0))),x.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:fE({queryState:s,isStale:c,observerCount:u,theme:dE}),flexShrink:0}},gE(r))),x.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",x.createElement(PE,null,u)),x.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",x.createElement(PE,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),x.createElement("div",{style:{background:dE.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),x.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},x.createElement(jE,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(aC)},disabled:"fetching"===s.fetchStatus,style:{background:dE.active}},"Refetch")," ",x.createElement(jE,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:dE.warning,color:dE.inputTextColor}},"Invalidate")," ",x.createElement(jE,{type:"button",onClick:()=>n.resetQueries(r),style:{background:dE.gray}},"Reset")," ",x.createElement(jE,{type:"button",onClick:()=>n.removeQueries(r),style:{background:dE.danger}},"Remove")," ",x.createElement(jE,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:dE.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===r.state.status?x.createElement(jE,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:dE.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):x.createElement("label",null,"Trigger error:",x.createElement(zE,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);p(t)}},x.createElement("option",{key:"",value:""}),a.map(e=>x.createElement("option",{key:e.name,value:e.name},e.name))))),x.createElement("div",{style:{background:dE.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(JE,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),x.createElement("div",{style:{background:dE.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),x.createElement("div",{style:{padding:".5em"}},x.createElement(JE,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},tC=({queryCache:e})=>{const t=YE(e,()=>e.getAll().filter(e=>"fresh"===gE(e)).length),n=YE(e,()=>e.getAll().filter(e=>"fetching"===gE(e)).length),a=YE(e,()=>e.getAll().filter(e=>"paused"===gE(e)).length),o=YE(e,()=>e.getAll().filter(e=>"stale"===gE(e)).length),i=YE(e,()=>e.getAll().filter(e=>"inactive"===gE(e)).length);return x.createElement(AE,null,x.createElement(OE,{style:{background:dE.success,opacity:t?1:.3}},"fresh ",x.createElement(PE,null,"(",t,")"))," ",x.createElement(OE,{style:{background:dE.active,opacity:n?1:.3}},"fetching ",x.createElement(PE,null,"(",n,")"))," ",x.createElement(OE,{style:{background:dE.paused,opacity:a?1:.3}},"paused ",x.createElement(PE,null,"(",a,")"))," ",x.createElement(OE,{style:{background:dE.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",x.createElement(PE,null,"(",o,")"))," ",x.createElement(OE,{style:{background:dE.gray,opacity:i?1:.3}},"inactive ",x.createElement(PE,null,"(",i,")")))},nC=x.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:a})=>{var o,i,r,s;const c=null!=(o=YE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.queryHash}))?o:"",u=YE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.state}),l=null!=(i=YE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isStale()}))&&i,p=null!=(r=YE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.isDisabled()}))&&r,d=null!=(s=YE(a,()=>{var t;return null==(t=a.find(e))?void 0:t.getObserversCount()}))?s:0;return u?x.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+dE.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},x.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:fE({queryState:u,isStale:l,observerCount:d,theme:dE}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?x.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:dE.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,x.createElement(PE,{style:{padding:".5em"}},""+c)):null});function aC(){}nC.displayName="QueryRow";const oC="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:a={},position:o="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=x.useRef(null),p=x.useRef(null),[d,m]=p_("reactQueryDevtoolsOpen",e),[h,f]=p_("reactQueryDevtoolsHeight",wE),[g,y]=p_("reactQueryDevtoolsWidth",wE),[v="bottom",b]=p_("reactQueryDevtoolsPanelPosition",c),[k,w]=x.useState(!1),[_,E]=x.useState(!1),C=function(){const e=x.useRef(!1),t=x.useCallback(()=>e.current,[]);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();x.useEffect(()=>{w(null!=d&&d)},[d,k,w]),x.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),x.useEffect(()=>{var e;if(k&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=SE("padding",v),n=EE(v),a=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:a,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?g:h)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(a).forEach(([t,n])=>{e.style[t]=n})}}},[k,v,h,g]);const{style:S={},...R}=t,{style:T={},onClick:I,...j}=a,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:a,isOpen:o,isResizing:i,panelStyle:r}){const s=CE(e),c=SE("border",s),u=EE(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+a.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:wE}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:wE}}}({position:v,devtoolsTheme:dE,isOpen:k,height:h,width:g,isResizing:_,panelStyle:S});return C()?x.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},x.createElement(hE,{theme:dE},x.createElement(ZE,$w({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},R,{style:A,isOpen:k,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=EE(v);E(!0);const{height:a,width:o}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=a+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{_&&E(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:u}))),k?null:x.createElement("button",$w({type:"button"},j,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==I||I(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...T}}),x.createElement(XE,{"aria-hidden":!0}),x.createElement(DE,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var iC,rC={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function sC(e){var a=this,i=e.children,r=process.env.ENVIRONMENT,s=C(function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"},[r]),c=w(!1),u=c[0],l=c[1],p=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),a=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,Cf.refreshInstance({headers:o(o({},a),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}})})},[s]);E(function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}},[p]);var d=S(function(e){return t(a,void 0,void 0,function(){var t,a,i,r,c,u,p;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(a=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,Cf.refreshInstance({headers:o(o({},a),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),fy.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}})})},[s,l]);return E(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?d(n):"token"===t.key&&d(e)}}),d(e)},[l,d]),u?React.createElement(Ig,{client:fy},i,React.createElement(oC,{initialIsOpen:!1})):React.createElement("div",{style:rC})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(iC||(iC={}));var cC=function(){var e=_(null),t=_(null),n=_(null),a=w(!1),o=a[0],i=a[1],r=w(null),s=r[0],c=r[1],u=w(null),l=u[0],p=u[1],d=S(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),m=S(function(){var a;if((null===(a=e.current)||void 0===a?void 0:a.readyState)!==WebSocket.OPEN){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),p(null);try{var o=new WebSocket("".concat(Ef["WS_URL_".concat(Ef.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(d(),i(!1))},3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){p("Failed to parse server response")}},o.onerror=function(e){p("Connection error occurred"),i(!1)},o.onclose=function(e){i(!1),d(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){m()},5e3))}}catch(e){p("Failed to establish connection")}}},[]),h=S(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),f=S(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),g=S(function(){c(null)},[]),y=S(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return E(function(){return m(),function(){d(),y()}},[]),{subscribe:h,unsubscribe:f,disconnect:y,connect:m,clearChartData:g,isConnected:o,chartData:s,connectionError:l}},uC=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&uC&&function(){t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:if(!Oi())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ii.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Gm as AI,_f as Api,iC as ApiErrorCodes,sC as ApiProvider,Cf as ApiSingleton,Nm as Cms,qm as Country,Fm as DataReport,Dm as Organization,zm as PaymentFiltersSection,Hm as ReconciliationAgendaInsight,Wm as ReconciliationReportType,Mm as ReportType,Lm as SendPaymentNotification,Um as SmartRouting,Bm as TemplateType,Nx as getQueryKeyGetNameAndIcon,Bx as getQueryKeyRequiredFields,hy as queryCache,fy as queryClient,Ox as use3DSExemptions,ab as useAICreateWorkflow,uw as useAllFeatureFlags,Rw as useAllowListDetail,Sw as useBlackListDetail,lw as useCachedFeatureFlag,by as useCancelReport,ny as useChangePasswordV2,gv as useChangePaymentsWebhook,pv as useChangeStatusBlackList,dv as useChangeStatusItemBlackList,Vx as useChangeStylingSettings,hb as useChangeTemplateStatus,my as useChargebacksUpload,cC as useChartAssistantSocket,Dw as useChartExecute,db as useCloneTemplate,ak as useCommunicationDetails,tk as useCommunications,nk as useCommunicationsFilters,Zy as useConfirmedOtpMfa,vy as useCountRowsForReport,cb as useCreateAndExecuteChart,lb as useCreateAndExecuteChartWithTimezone,ib as useCreateChart,ub as useCreateChartWithTimezone,qy as useCreateMonitorTemplate,Dy as useCreateMonitorThreshold,dy as useCreateOperationTransaction,Hy as useCreatePaymentLinks,Jv as useCreateReconciliationAlert,Kv as useCreateReconciliationReportTemplate,gy as useCreateReconciliationsReportV2,xy as useCreateReportTemplate,yy as useCreateReportV2,Uy as useCreateRoles,eb as useCreateSamlConfig,gb as useCreateSchedule,jv as useCreateScheduledReport,pb as useCreateTemplate,ry as useCreateUserAuth0,wy as useCreateWorkflow,yb as useDeactivateSchedule,Hg as useDeleteAccountsUserMassive,bv as useDeleteAllowlistItem,hv as useDeleteBlackListType,yv as useDeleteBlockListItem,rb as useDeleteChart,Uv as useDeleteCustomizedApiKeys,Gy as useDeletePaymentLink,Xv as useDeleteReconciliationAlert,Wy as useDeleteRoles,nb as useDeleteSamlConfig,vb as useDeleteSchedule,Ov as useDeleteScheduledReport,fb as useDeleteTemplate,My as useDeleteUserTeamV2,Cy as useDeleteVersion,Ng as useDeleteWebhookV2,Sy as useDuplicateVersion,Vy as useEditPaymentLinks,Fy as useEditRoles,Jx as useEmailVerification,Tv as useExcludeUsers,$v as useExportApiLogs,cw as useFeatureFlags,kw as useFirebaseUserSubscribe,ob as useGenerateFeedback,sx as useGetAccounts,ux as useGetAccountsByUser,lx as useGetAccountsForImpersonation,cx as useGetAccountsV2,Aw as useGetAllConfigRules,Jb as useGetAllOrganizations,rw as useGetAllReconciliationsAdvancements,aw as useGetAllReconciliationsAgenda,nw as useGetAllReconciliationsAlerts,sw as useGetAllReconciliationsFees,iw as useGetAllReconciliationsSales,Yk as useGetAllTableColumns,Hb as useGetAllowedIps,fw as useGetApiLogsDetailByPaymentCode,pw as useGetAuditEvents,gx as useGetAuditLogsFilters,dw as useGetAuditMonitorEventDetail,Ev as useGetBatchRefundProcessedFileDownload,Cv as useGetBatchRefundUserFileDownload,Iw as useGetBatchRefunds,_w as useGetBlackList,Cw as useGetBlockListSummary,Rb as useGetCardBrands,qw as useGetChartsByUser,Nw as useGetChartsByUserWithResults,qx as useGetCheckoutTemplate,Dx as useGetCheckouts,Pv as useGetConditionalConfigRules,ww as useGetConfigAllowlist,nx as useGetConnections,ex as useGetConnectionsByPaymentMethod,vw as useGetCountriesConfigPaymentLink,bw as useGetCountriesConfigPaymentLinkV2,Fb as useGetCredentials,Hv as useGetCredentialsMFA,Vb as useGetCustomizedApiKeys,Gb as useGetCustomizedApiKeysAccounts,Wb as useGetCustomizedApiKeysMembers,$b as useGetCustomizedApiKeysProducts,Mv as useGetCustomizedApiKeysToken,yx as useGetDashboardStaticContents,ax as useGetDialogs,dk as useGetDownloadReport,Yy as useGetEmailOtp,tx as useGetHashPylon,Zx as useGetImpersonationEnabled,Yx as useGetImpersonationUsers,Ok as useGetInsightsReport,Pk as useGetInsightsReportAgain,Zb as useGetIntegrationByAccountV2,Yb as useGetIntegrationParams,Bw as useGetLanguages,vx as useGetLocales,Xx as useGetLoginMethods,Pw as useGetMFAConfig,Ow as useGetMFAExcludedUsers,Lw as useGetMFAStatus,px as useGetMenu,rk as useGetMergedNotifications,Mx as useGetNameAndIcon,Fw as useGetNetworkTokensOnboardingByOrganization,ok as useGetNotificationsCustomer,sk as useGetNotificationsNumberMutation,Qb as useGetOrganization,Tb as useGetPaymentFilters,yw as useGetPaymentLinkByCode,gw as useGetPaymentLinks,Sb as useGetPaymentMethodsAndProviders,Ib as useGetPaymentMetricsFilters,dx as useGetPaymentStatusesStyles,jb as useGetPaymentTransactionsDetails,wb as useGetPaymentV2,Cb as useGetPaymentsMethodsByCountry,Lb as useGetPayoutDetail,Db as useGetPayoutHistoryDetail,zb as useGetPayoutTransactionDetail,Qx as useGetPermissions,xk as useGetPermissionsCatalog,$x as useGetProfile,qb as useGetProofOfCancel,Nb as useGetProofOfPayment,Xb as useGetProviderParams,Zk as useGetReconciliationActive,ow as useGetReconciliationAgendaInsightsByKey,Xk as useGetReconciliationFilters,Jk as useGetReconciliationMetrics,hx as useGetReconciliationTransactionStatusesStyles,Kk as useGetReconciliationTransactions,ew as useGetReconciliationsReportColumns,tw as useGetReconciliationsReportTemplates,fk as useGetRefundPdf,hk as useGetReportColumns,mk as useGetReportTemplates,lk as useGetReportsList,pk as useGetReportsListMultiEnv,Ux as useGetRequiredFields,vk as useGetRoles,bk as useGetRolesPermissions,zx as useGetRoutingMonitorsTemplate,Lx as useGetRoutingMonitorsTemplates,Lv as useGetRule,zw as useGetSamlConfig,Vw as useGetScheduleById,Iv as useGetScheduledReportsList,Gw as useGetSchedulesList,Qk as useGetSettlements,_x as useGetSmartRoutingConditionPaymentMethod,wx as useGetSmartRoutingConditionTypes,Ex as useGetSmartRoutingConditionTypesValues,kk as useGetSmartRoutingDataReport,Rx as useGetSmartRoutingDeclineGroups,xx as useGetSmartRoutingMethods,Sx as useGetSmartRoutingNextRoute,Tx as useGetSmartRoutingPaymentRoute,jx as useGetSmartRoutingSearchConditionValues,Ix as useGetSmartRoutingSimulateConditionTypeValues,kx as useGetSmartRoutingWorkflow,Cx as useGetSmartRoutingWorkflowVersion,Fx as useGetStylingSdkDynamic,Hx as useGetStylingSettings,Gx as useGetStylingSettingsV2,Wx as useGetStylingTheme,gk as useGetTeamsFiltersMembers,Hw as useGetTemplateById,Ww as useGetTemplatesList,fx as useGetTimeZoneCatalog,xw as useGetTimezonePaymentLink,Xy as useGetTokenValidation,_b as useGetTransactionDetailsV2,Ab as useGetTransactionHistoryByPaymentCode,Eb as useGetTransactionRawResponse,mx as useGetTransactionStatusesStyles,Uw as useGetTranslations,Kx as useGetUserFull,ek as useGetUsersToImpersonate,ik as useGetValidateOpsgenieKey,ox as useGetWebhookParamsV2,rx as useGetWebhooksV2Detail,ix as useGetWebhooksV3,qk as useInsights3dsConversionRateAndEvolution,Nk as useInsights3dsDeclineReasons,Mk as useInsights3dsFrictionlessVsChallenge,Dk as useInsights3dsVolumeAndCountTx,$k as useInsightsChargebacksByCardBrand,Hk as useInsightsChargebacksByProviderAndCardBrand,Wk as useInsightsChargebacksDisputed,Gk as useInsightsChargebacksReasonsDistribution,Vk as useInsightsChargebacksStatusDistribution,Uk as useInsightsChargebacksTotalRateAndEvolution,Bk as useInsightsChargebacksVolumeAndCountTx,Fk as useInsightsChargebacksWinRate,wk as useInsightsConversionRateMetricsV2,Tk as useInsightsCustomerPaymentsAndFraudMetrics,Ek as useInsightsFallbackMetrics,zk as useInsightsFraudScreeningConversionRate,Lk as useInsightsFraudScreeningVolumeAndCountTx,Ak as useInsightsHomeMetrics,Ik as useInsightsOverviewMetrics,jk as useInsightsOverviewMetricsV3,Rk as useInsightsTotalPaymentsAndFraudMetrics,Ck as useInsightsVolumeMetrics,Sk as useInsightsVolumeMetricsV2,oy as useInviteUsersMultiaccountMassive,bx as useIsTesting,cy as useLoginMethods,Px as useNetworkTokensOnboarding,Qg as useNewPostConnectionValidate,Ug as usePatchAccountV2,sv as usePatchAddAllowlistItems,Kb as usePatchAllowedIps,cv as usePatchAllowlist,Mw as usePatchAndExecuteChart,Fv as usePatchApiKeysEditNote,iv as usePatchChangeStatusAllowlist,rv as usePatchChangeStatusAllowlistItem,sb as usePatchChartName,Jg as usePatchConnection,Nv as usePathCreateCustomizedApiKeys,ck as usePathNotifications,Ub as usePayoutsFilters,Bb as usePayoutsList,Bg as usePostAccount,Tw as usePostAllowlistMultiAccount,Wv as usePostApiKeysRoll,mw as usePostApiLogs,Gv as usePostAuditMonitors,_v as usePostBatchRefundByFile,fv as usePostBlackListBatch,mv as usePostBlackListItems,uv as usePostBlackListMultiAccount,Ew as usePostBlockList,sy as usePostCall,Vg as usePostChangeStatusConnection,Kg as usePostConnectionMultiAccount,ov as usePostCreateAllowlistMultiAccount,qv as usePostCreateCustomizedApiKeys,Zv as usePostCreateInsightsReport,zv as usePostCreateRuleMultiAccount,Bv as usePostCredentialsValidatePassword,Xg as usePostDefaultRoutes,Dv as usePostEditRule,Pb as usePostFraudTransactions,nv as usePostGetAllowlistItems,av as usePostGetAllowlistMultiAccount,yk as usePostMembersPaginatedV2,Zg as usePostNetworkTokensOnboarding,kb as usePostPaymentsEvaluated,xb as usePostPaymentsLazy,Ny as usePostSlackMessageChannel,Ob as usePostTransactions,$y as usePostUserSettings,Jy as usePostUserSettingsPinned,Qy as usePostUserSettingsTables,Ky as usePostUserThemeSettings,Gg as usePostValideStatusConnection,jw as usePostVelocityRules,hw as usePostWebhookLogs,qg as usePostWebhookMultiAccount,Ax as useProviderConversionRatesData,_y as usePublishVersion,Fg as usePutAccountPrincipal,Wg as usePutAccountsUserMassive,lv as usePutBlackListType,$g as usePutCosts,Vv as useResendWebhooks,Ey as useSaveVersion,Mb as useSendPaymentNotification,By as useSetCustodian,Iy as useSmartRoutingCreateDeclinedGroup,Ay as useSmartRoutingEditWorkflowName,zy as useSmartRoutingMultiAccountDeclinedGroupCreate,Ly as useSmartRoutingRemoveDeclinedGroup,Oy as useSmartRoutingSimulateTransaction,jy as useSmartRoutingToggleFavorite,Ty as useSmartRoutingUpdateDeclinedGroup,Py as useSmartRoutingUpdateMonitorRedistribution,Ry as useToggleMethod,iy as useUnInviteUsersV2,ev as useUnrollUserV2,ly as useUpdateCheckoutTemplate,uy as useUpdateIsActiveCheckout,Rv as useUpdateMFAConfig,ey as useUpdateOrganizationStatus,ay as useUpdateProfile,Yv as useUpdateReconciliationAlert,Qv as useUpdateReconciliationReportTemplate,ky as useUpdateReportTemplate,tb as useUpdateSamlConfig,Av as useUpdateScheduledReport,py as useUpdateStylingTheme,mb as useUpdateTemplateSelection,Mg as useUpdateWebhookV2,kv as useUploadBatchRefundsFileV2,wv as useUploadBatchRefundsV2,Sv as useUploadFileS3ClientBatchRefunds,xv as useValiateAllowlistItems,vv as useValidateBlockListItems,Yg as useValidateCredentials,ty as useValidateOrgName,tv as useValidatePasswordStatus,_k as useViewMoreMetrics};
|
|
76
76
|
//# sourceMappingURL=index.js.map
|