@yuno-payments/dashboard-api-mfe 0.36.60-RC.6 → 0.36.60-RC.8
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/lib/http-client/http-client.d.ts +7 -0
- package/build/cjs/types/types/audit/audit.d.ts +7 -7
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/lib/http-client/http-client.d.ts +7 -0
- package/build/esm/types/types/audit/audit.d.ts +7 -7
- package/build/index.d.ts +7 -7
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -211,7 +211,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
211
211
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
212
212
|
* MIT Licensed
|
|
213
213
|
*/
|
|
214
|
-
!function(e){var t,n,o,a=Fi,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&&a[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 o=e.charset(n);o&&(n+="; charset="+o.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),o=n&&e.extensions[n[1].toLowerCase()];if(!o||!o.length)return!1;return o[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,o=["nginx","apache",void 0,"iana"],Object.keys(a).forEach((function(e){var i=a[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=o.indexOf(a[n[c]].source),l=o.indexOf(i.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))}(Mi);var Bi=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Ui=function(e){var t=!1;return Bi((function(){t=!0})),function(n,o){t?e(n,o):Bi((function(){e(n,o)}))}};var Hi=function(e){Object.keys(e.jobs).forEach(Wi.bind(e)),e.jobs={}};function Wi(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Gi=Ui,Vi=Hi,$i=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,o){var a;a=2==e.length?e(n,Gi(o)):e(n,t,Gi(o));return a}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?Vi(n):n.results[a]=t,o(e,n.results))}))};var Ki=function(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&o.keyedList.sort(n?t:function(n,o){return t(e[n],e[o])});return o};var Qi=Hi,Ji=Ui,Xi=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Qi(this),Ji(e)(null,this.results)};var Yi=$i,Zi=Ki,er=Xi,tr=function(e,t,n){var o=Zi(e);for(;o.index<(o.keyedList||e).length;)Yi(e,t,o,(function(e,t){e?n(e,t):0!==Object.keys(o.jobs).length||n(null,o.results)})),o.index++;return er.bind(o,n)};var nr={exports:{}},or=$i,ar=Ki,ir=Xi;function rr(e,t){return e<t?-1:e>t?1:0}nr.exports=function(e,t,n,o){var a=ar(e,n);return or(e,t,a,(function n(i,r){i?o(i,r):(a.index++,a.index<(a.keyedList||e).length?or(e,t,a,n):o(null,a.results))})),ir.bind(a,o)},nr.exports.ascending=rr,nr.exports.descending=function(e,t){return-1*rr(e,t)};var sr=nr.exports,cr=sr,ur=function(e,t,n){return cr(e,t,null,n)};var lr={parallel:tr,serial:ur,serialOrdered:sr},pr=Object,dr=Error,mr=EvalError,hr=RangeError,fr=ReferenceError,gr=SyntaxError,yr=TypeError,vr=URIError,br=Math.abs,kr=Math.floor,xr=Math.max,wr=Math.min,jr=Math.pow,_r=Math.round,Er=Number.isNaN||function(e){return e!=e},Cr=Object.getOwnPropertyDescriptor;if(Cr)try{Cr([],"length")}catch(e){Cr=null}var Sr=Cr,Rr=Object.defineProperty||!1;if(Rr)try{Rr({},"a",{value:1})}catch(e){Rr=!1}var Tr,Ar,Or,Ir,zr,Lr,Pr,Dr,qr,Nr,Mr,Fr,Br,Ur,Hr,Wr,Gr=Rr;function Vr(){return Ar?Tr:(Ar=1,Tr=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 o 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 a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[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 $r(){return Lr?zr:(Lr=1,zr="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Kr(){return Dr?Pr:(Dr=1,Pr=pr.getPrototypeOf||null)}function Qr(){if(Nr)return qr;Nr=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return qr=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var i,r=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=a.apply(this,n(r,arguments));return Object(e)===e?e:this}return a.apply(o,n(r,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,i.prototype=new l,l.prototype=null}return i},qr}function Jr(){if(Fr)return Mr;Fr=1;var e=Qr();return Mr=Function.prototype.bind||e}function Xr(){return Ur?Br:(Ur=1,Br=Function.prototype.call)}function Yr(){return Wr?Hr:(Wr=1,Hr=Function.prototype.apply)}var Zr,es,ts,ns,os="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,as=Jr(),is=Yr(),rs=Xr(),ss=os||as.call(rs,is),cs=Jr(),us=yr,ls=Xr(),ps=ss,ds=function(e){if(e.length<1||"function"!=typeof e[0])throw new us("a function is required");return ps(cs,ls,e)};var ms,hs=Function.prototype.call,fs=Object.prototype.hasOwnProperty,gs=Jr().call(hs,fs),ys=pr,vs=dr,bs=mr,ks=hr,xs=fr,ws=gr,js=yr,_s=vr,Es=br,Cs=kr,Ss=xr,Rs=wr,Ts=jr,As=_r,Os=function(e){return Er(e)||0===e?e:e<0?-1:1},Is=Function,zs=function(e){try{return Is('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ls=Sr,Ps=Gr,Ds=function(){throw new js},qs=Ls?function(){try{return Ds}catch(e){try{return Ls(arguments,"callee").get}catch(e){return Ds}}}():Ds,Ns=function(){if(Ir)return Or;Ir=1;var e="undefined"!=typeof Symbol&&Symbol,t=Vr();return Or=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Ms=function(){if(ns)return ts;ns=1;var e=$r(),t=Kr(),n=function(){if(es)return Zr;es=1;var e,t=ds,n=Sr;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return Zr=o&&"function"==typeof o.get?t([o.get]):"function"==typeof i&&function(e){return i(null==e?e:a(e))}}();return ts=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}(),Fs=Kr(),Bs=$r(),Us=Yr(),Hs=Xr(),Ws={},Gs="undefined"!=typeof Uint8Array&&Ms?Ms(Uint8Array):ms,Vs={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ms:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ms:ArrayBuffer,"%ArrayIteratorPrototype%":Ns&&Ms?Ms([][Symbol.iterator]()):ms,"%AsyncFromSyncIteratorPrototype%":ms,"%AsyncFunction%":Ws,"%AsyncGenerator%":Ws,"%AsyncGeneratorFunction%":Ws,"%AsyncIteratorPrototype%":Ws,"%Atomics%":"undefined"==typeof Atomics?ms:Atomics,"%BigInt%":"undefined"==typeof BigInt?ms:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ms:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ms:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ms:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":vs,"%eval%":eval,"%EvalError%":bs,"%Float16Array%":"undefined"==typeof Float16Array?ms:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ms:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ms:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ms:FinalizationRegistry,"%Function%":Is,"%GeneratorFunction%":Ws,"%Int8Array%":"undefined"==typeof Int8Array?ms:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ms:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ms:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ns&&Ms?Ms(Ms([][Symbol.iterator]())):ms,"%JSON%":"object"==typeof JSON?JSON:ms,"%Map%":"undefined"==typeof Map?ms:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ns&&Ms?Ms((new Map)[Symbol.iterator]()):ms,"%Math%":Math,"%Number%":Number,"%Object%":ys,"%Object.getOwnPropertyDescriptor%":Ls,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ms:Promise,"%Proxy%":"undefined"==typeof Proxy?ms:Proxy,"%RangeError%":ks,"%ReferenceError%":xs,"%Reflect%":"undefined"==typeof Reflect?ms:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ms:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ns&&Ms?Ms((new Set)[Symbol.iterator]()):ms,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ms:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ns&&Ms?Ms(""[Symbol.iterator]()):ms,"%Symbol%":Ns?Symbol:ms,"%SyntaxError%":ws,"%ThrowTypeError%":qs,"%TypedArray%":Gs,"%TypeError%":js,"%Uint8Array%":"undefined"==typeof Uint8Array?ms:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ms:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ms:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ms:Uint32Array,"%URIError%":_s,"%WeakMap%":"undefined"==typeof WeakMap?ms:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ms:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ms:WeakSet,"%Function.prototype.call%":Hs,"%Function.prototype.apply%":Us,"%Object.defineProperty%":Ps,"%Object.getPrototypeOf%":Fs,"%Math.abs%":Es,"%Math.floor%":Cs,"%Math.max%":Ss,"%Math.min%":Rs,"%Math.pow%":Ts,"%Math.round%":As,"%Math.sign%":Os,"%Reflect.getPrototypeOf%":Bs};if(Ms)try{null.error}catch(e){var $s=Ms(Ms(e));Vs["%Error.prototype%"]=$s}var Ks,Qs,Js=function e(t){var n;if("%AsyncFunction%"===t)n=zs("async function () {}");else if("%GeneratorFunction%"===t)n=zs("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=zs("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&Ms&&(n=Ms(a.prototype))}return Vs[t]=n,n},Xs={__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"]},Ys=Jr(),Zs=gs,ec=Ys.call(Hs,Array.prototype.concat),tc=Ys.call(Us,Array.prototype.splice),nc=Ys.call(Hs,String.prototype.replace),oc=Ys.call(Hs,String.prototype.slice),ac=Ys.call(Hs,RegExp.prototype.exec),ic=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rc=/\\(\\)?/g,sc=function(e,t){var n,o=e;if(Zs(Xs,o)&&(o="%"+(n=Xs[o])[0]+"%"),Zs(Vs,o)){var a=Vs[o];if(a===Ws&&(a=Js(o)),void 0===a&&!t)throw new js("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new ws("intrinsic "+e+" does not exist!")},cc=function(e,t){if("string"!=typeof e||0===e.length)throw new js("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new js('"allowMissing" argument must be a boolean');if(null===ac(/^%?[^%]*%?$/,e))throw new ws("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=oc(e,0,1),n=oc(e,-1);if("%"===t&&"%"!==n)throw new ws("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new ws("invalid intrinsic syntax, expected opening `%`");var o=[];return nc(e,ic,(function(e,t,n,a){o[o.length]=n?nc(a,rc,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=sc("%"+o+"%",t),i=a.name,r=a.value,s=!1,c=a.alias;c&&(o=c[0],tc(n,ec([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=oc(p,0,1),m=oc(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new ws("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Zs(Vs,i="%"+(o+="."+p)+"%"))r=Vs[i];else if(null!=r){if(!(p in r)){if(!t)throw new js("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ls&&u+1>=n.length){var h=Ls(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Zs(r,p),r=r[p];l&&!s&&(Vs[i]=r)}}return r};var uc=cc("%Object.defineProperty%",!0),lc=function(){if(Qs)return Ks;Qs=1;var e=Vr();return Ks=function(){return e()&&!!Symbol.toStringTag}}()(),pc=gs,dc=yr,mc=lc?Symbol.toStringTag:null,hc=qi,fc=r,gc=u,yc=l,vc=p,bc=d.parse,kc=m,xc=s.Stream,wc=h,jc=Mi,_c=lr,Ec=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==o&&"boolean"!=typeof o)throw new dc("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!mc||!n&&pc(e,mc)||(uc?uc(e,mc,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[mc]=t)},Cc=gs,Sc=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e};function Rc(e){if(!(this instanceof Rc))return new Rc(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],hc.call(this),e=e||{})this[t]=e[t]}fc.inherits(Rc,hc),Rc.LINE_BREAK="\r\n",Rc.DEFAULT_CONTENT_TYPE="application/octet-stream",Rc.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=hc.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 a=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(a),o(t),o(i),this._trackLength(a,t,n)}},Rc.prototype._trackLength=function(e,t,n){var o=0;null!=n.knownLength?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:"string"==typeof t&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+Rc.LINE_BREAK.length,t&&(t.path||t.readable&&Cc(t,"httpVersion")||t instanceof xc)&&(n.knownLength||this._valuesToMeasure.push(t))},Rc.prototype._lengthRetriever=function(e,t){Cc(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):kc.stat(e.path,(function(n,o){if(n)t(n);else{var a=o.size-(e.start?e.start:0);t(null,a)}})):Cc(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Cc(e,"httpModule")?(e.on("response",(function(n){e.pause(),t(null,Number(n.headers["content-length"]))})),e.resume()):t("Unknown stream")},Rc.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var o,a=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&Sc(s,n.header),s)if(Cc(s,c)){if(null==(o=s[c]))continue;Array.isArray(o)||(o=[o]),o.length&&(r+=c+": "+o.join("; ")+Rc.LINE_BREAK)}return"--"+this.getBoundary()+Rc.LINE_BREAK+r+Rc.LINE_BREAK},Rc.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=gc.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=gc.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Cc(e,"httpVersion")&&(n=gc.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},Rc.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=jc.lookup(e.name)),!n&&e&&e.path&&(n=jc.lookup(e.path)),!n&&e&&e.readable&&Cc(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=jc.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=Rc.DEFAULT_CONTENT_TYPE),n},Rc.prototype._multiPartFooter=function(){return function(e){var t=Rc.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Rc.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Rc.LINE_BREAK},Rc.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Cc(e,t)&&(n[t.toLowerCase()]=e[t]);return n},Rc.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},Rc.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Rc.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;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(Rc.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Rc.prototype._generateBoundary=function(){this._boundary="--------------------------"+wc.randomBytes(12).toString("hex")},Rc.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},Rc.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Rc.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?_c.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,o){n?e(n):(o.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},Rc.prototype.submit=function(e,t){var n,o,a={method:"post"};return"string"==typeof e?(e=bc(e),o=Sc({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(o=Sc(e,a)).port||(o.port="https:"===o.protocol?443:80),o.headers=this.getHeaders(e.headers),n="https:"===o.protocol?vc.request(o):yc.request(o),this.getLength(function(e,o){if(e&&"Unknown stream"!==e)this._error(e);else if(o&&n.setHeader("Content-Length",o),this.pipe(n),t){var a,i=function(e,o){return n.removeListener("error",i),n.removeListener("response",a),t.call(this,e,o)};a=i.bind(this,null),n.on("error",i),n.on("response",a)}}.bind(this)),n},Rc.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Rc.prototype.toString=function(){return"[object FormData]"},Ec(Rc,"FormData");var Tc=Ai(Rc);function Ac(e){return Ei.isPlainObject(e)||Ei.isArray(e)}function Oc(e){return Ei.endsWith(e,"[]")?e.slice(0,-2):e}function Ic(e,t,n){return e?e.concat(t).map((function(e,t){return e=Oc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const zc=Ei.toFlatObject(Ei,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Lc(e,t,n){if(!Ei.isObject(e))throw new TypeError("target must be an object");t=t||new(Tc||FormData);const o=(n=Ei.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ei.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ei.isSpecCompliantForm(t);if(!Ei.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ei.isDate(e))return e.toISOString();if(Ei.isBoolean(e))return e.toString();if(!s&&Ei.isBlob(e))throw new Ci("Blob is not supported. Use a Buffer instead.");return Ei.isArrayBuffer(e)||Ei.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(Ei.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ei.isArray(e)&&function(e){return Ei.isArray(e)&&!e.some(Ac)}(e)||(Ei.isFileList(e)||Ei.endsWith(n,"[]"))&&(s=Ei.toArray(e)))return n=Oc(n),s.forEach((function(e,o){!Ei.isUndefined(e)&&null!==e&&t.append(!0===r?Ic([n],o,i):null===r?n:n+"[]",c(e))})),!1;return!!Ac(e)||(t.append(Ic(a,n,i),c(e)),!1)}const l=[],p=Object.assign(zc,{defaultVisitor:u,convertValue:c,isVisitable:Ac});if(!Ei.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!Ei.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),Ei.forEach(n,(function(n,i){!0===(!(Ei.isUndefined(n)||null===n)&&a.call(t,n,Ei.isString(i)?i.trim():i,o,p))&&e(n,o?o.concat(i):[i])})),l.pop()}}(e),t}function Pc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Dc(e,t){this._pairs=[],e&&Lc(e,this,t)}const qc=Dc.prototype;function Nc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Mc(e,t,n){if(!t)return e;const o=n&&n.encode||Nc;Ei.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):Ei.isURLSearchParams(t)?t.toString():new Dc(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}qc.append=function(e,t){this._pairs.push([e,t])},qc.toString=function(e){const t=e?function(t){return e.call(this,t,Pc)}:Pc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Fc=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){Ei.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uc=d.URLSearchParams;const Hc="abcdefghijklmnopqrstuvwxyz",Wc="0123456789",Gc={DIGIT:Wc,ALPHA:Hc,ALPHA_DIGIT:Hc+Hc.toUpperCase()+Wc};var Vc={isNode:!0,classes:{URLSearchParams:Uc,FormData:Tc,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Gc,generateString:(e=16,t=Gc.ALPHA_DIGIT)=>{let n="";const{length:o}=t,a=new Uint32Array(e);h.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%o];return n},protocols:["http","https","file","data"]};const $c="undefined"!=typeof window&&"undefined"!=typeof document,Kc="object"==typeof navigator&&navigator||void 0,Qc=$c&&(!Kc||["ReactNative","NativeScript","NS"].indexOf(Kc.product)<0),Jc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Xc=$c&&window.location.href||"http://localhost";var Yc={...Object.freeze({__proto__:null,hasBrowserEnv:$c,hasStandardBrowserEnv:Qc,hasStandardBrowserWebWorkerEnv:Jc,navigator:Kc,origin:Xc}),...Vc};function Zc(e){function t(e,n,o,a){let i=e[a++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=a>=e.length;if(i=!i&&Ei.isArray(o)?o.length:i,s)return Ei.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!r;o[i]&&Ei.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],a)&&Ei.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let i;for(o=0;o<a;o++)i=n[o],t[i]=e[i];return t}(o[i])),!r}if(Ei.isFormData(e)&&Ei.isFunction(e.entries)){const n={};return Ei.forEachEntry(e,((e,o)=>{t(function(e){return Ei.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const eu={transitional:Bc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=Ei.isObject(e);a&&Ei.isHTMLForm(e)&&(e=new FormData(e));if(Ei.isFormData(e))return o?JSON.stringify(Zc(e)):e;if(Ei.isArrayBuffer(e)||Ei.isBuffer(e)||Ei.isStream(e)||Ei.isFile(e)||Ei.isBlob(e)||Ei.isReadableStream(e))return e;if(Ei.isArrayBufferView(e))return e.buffer;if(Ei.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Lc(e,new Yc.classes.URLSearchParams,{visitor:function(e,t,n,o){return Yc.isNode&&Ei.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Ei.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Lc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(Ei.isString(e))try{return(t||JSON.parse)(e),Ei.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||eu.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Ei.isResponse(e)||Ei.isReadableStream(e))return e;if(e&&Ei.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Ci.from(e,Ci.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:Yc.classes.FormData,Blob:Yc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ei.forEach(["delete","get","head","post","put","patch"],(e=>{eu.headers[e]={}}));var tu=eu;const nu=Ei.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 ou=Symbol("internals");function au(e){return e&&String(e).trim().toLowerCase()}function iu(e){return!1===e||null==e?e:Ei.isArray(e)?e.map(iu):String(e)}function ru(e,t,n,o,a){return Ei.isFunction(o)?o.call(this,t,n):(a&&(t=n),Ei.isString(t)?Ei.isString(o)?-1!==t.indexOf(o):Ei.isRegExp(o)?o.test(t):void 0:void 0)}class su{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=au(t);if(!a)throw new Error("header name must be a non-empty string");const i=Ei.findKey(o,a);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=iu(e))}const i=(e,t)=>Ei.forEach(e,((e,n)=>a(e,n,t)));if(Ei.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ei.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&nu[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(Ei.isObject(e)&&Ei.isIterable(e)){let n,o,a={};for(const t of e){if(!Ei.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?Ei.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=au(e)){const n=Ei.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 o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(Ei.isFunction(t))return t.call(this,e,n);if(Ei.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=au(e)){const n=Ei.findKey(this,e);return!(!n||void 0===this[n]||t&&!ru(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=au(e)){const a=Ei.findKey(n,e);!a||t&&!ru(0,n[a],a,t)||(delete n[a],o=!0)}}return Ei.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!ru(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return Ei.forEach(this,((o,a)=>{const i=Ei.findKey(n,a);if(i)return t[i]=iu(o),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();r!==a&&delete t[a],t[r]=iu(o),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ei.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Ei.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[ou]=this[ou]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=au(e);t[o]||(!function(e,t){const n=Ei.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return Ei.isArray(e)?e.forEach(o):o(e),this}}su.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ei.reduceDescriptors(su.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ei.freezeMethods(su);var cu=su;function uu(e,t){const n=this||tu,o=t||n,a=cu.from(o.headers);let i=o.data;return Ei.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function lu(e){return!(!e||!e.__CANCEL__)}function pu(e,t,n){Ci.call(this,null==e?"canceled":e,Ci.ERR_CANCELED,t,n),this.name="CanceledError"}function du(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Ci("Request failed with status code "+n.status,[Ci.ERR_BAD_REQUEST,Ci.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function mu(e,t,n){let o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}Ei.inherits(pu,Ci,{__CANCEL__:!0});var hu={},fu=d.parse,gu={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},yu=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function vu(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}hu.getProxyForUrl=function(e){var t="string"==typeof e?fu(e):e||{},n=t.protocol,o=t.host,a=t.port;if("string"!=typeof o||!o||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(vu("npm_config_no_proxy")||vu("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,i=o?parseInt(o[2]):0;return!(!i||i===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!yu.call(e,a)):e!==a)}))}(o=o.replace(/:\d*$/,""),a=parseInt(a)||gu[n]||0))return"";var i=vu("npm_config_"+n+"_proxy")||vu(n+"_proxy")||vu("npm_config_proxy")||vu("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var bu,ku,xu,wu,ju,_u={exports:{}},Eu={exports:{}},Cu={exports:{}};function Su(){if(ku)return bu;ku=1;var e=1e3,t=60*e,n=60*t,o=24*n,a=7*o,i=365.25*o;function r(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}return bu=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*a;case"days":case"day":case"d":return c*o;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(a){var i=Math.abs(a);if(i>=o)return r(a,i,o,"day");if(i>=n)return r(a,i,n,"hour");if(i>=t)return r(a,i,t,"minute");if(i>=e)return r(a,i,e,"second");return a+" ms"}(s):function(a){var i=Math.abs(a);if(i>=o)return Math.round(a/o)+"d";if(i>=n)return Math.round(a/n)+"h";if(i>=t)return Math.round(a/t)+"m";if(i>=e)return Math.round(a/e)+"s";return a+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},bu}function Ru(){if(wu)return xu;return wu=1,xu=function(e){function t(e){let o,a,i,r=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date),i=a-(o||a);n.diff=i,n.prev=o,n.curr=a,o=a,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,((o,a)=>{if("%%"===o)return"%";r++;const i=t.formatters[a];if("function"==typeof i){const t=e[r];o=i.call(n,t),e.splice(r,1),r--}return o})),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:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function o(e,t){let n=0,o=0,a=-1,i=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(a=o,i=n,o++):(n++,o++);else{if(-1===a)return!1;o=a+1,i++,n=i}for(;o<t.length&&"*"===t[o];)o++;return o===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(" ",",").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(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=Su(),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},xu}var Tu,Au,Ou,Iu,zu,Lu,Pu,Du={exports:{}};function qu(){return Au?Tu:(Au=1,Tu=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(n+e),a=t.indexOf("--");return-1!==o&&(-1===a||o<a)})}function Nu(){return zu||(zu=1,function(e,t){const n=g,o=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++)e.inspectOpts[n[o]]=t.inspectOpts[n[o]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:o,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),i=` ${a};1m${o} [0m`;n[0]=i+n[0].split("\n").join("\n"+i),n.push(a+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+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=o.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(Iu)return Ou;Iu=1;const e=y,t=g,n=qu(),{env:o}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===a)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===a)return 0;const r=a||0;if("dumb"===o.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 o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?a=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),Ou={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},Ou}();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 o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[n]=o,e}),{}),e.exports=Ru()(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(Du,Du.exports)),Du.exports}function Mu(){return Lu||(Lu=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Eu.exports=(ju||(ju=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 o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))})),t.splice(a,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")}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=Ru()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Cu,Cu.exports)),Cu.exports):Eu.exports=Nu()),Eu.exports}var Fu,Bu,Uu,Hu=d,Wu=Hu.URL,Gu=l,Vu=p,$u=s.Writable,Ku=f,Qu=function(){if(!Pu){try{Pu=Mu()("follow-redirects")}catch(e){}"function"!=typeof Pu&&(Pu=function(){})}Pu.apply(null,arguments)};Fu="undefined"!=typeof process,Bu="undefined"!=typeof window&&"undefined"!=typeof document,Uu=gl(Error.captureStackTrace),Fu||!Bu&&Uu||console.warn("The follow-redirects package should be excluded from browser builds.");var Ju=!1;try{Ku(new Wu(""))}catch(eo){Ju="ERR_INVALID_URL"===eo.code}var Xu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Yu=["abort","aborted","connect","error","socket","timeout"],Zu=Object.create(null);Yu.forEach((function(e){Zu[e]=function(t,n,o){this._redirectable.emit(e,t,n,o)}}));var el=ml("ERR_INVALID_URL","Invalid URL",TypeError),tl=ml("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),nl=ml("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",tl),ol=ml("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),al=ml("ERR_STREAM_WRITE_AFTER_END","write after end"),il=$u.prototype.destroy||cl;function rl(e,t){$u.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 tl?e:new tl({cause:e}))}},this._performRequest()}function sl(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var a=o+":",i=n[a]=e[o],r=t[o]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,o,i){var r;return r=e,Wu&&r instanceof Wu?e=pl(e):fl(e)?e=pl(ul(e)):(i=o,o=ll(e),e={protocol:a}),gl(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,fl(o.host)||fl(o.hostname)||(o.hostname="::1"),Ku.equal(o.protocol,a,"protocol mismatch"),Qu("options",o),new rl(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var o=r.request(e,t,n);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})})),t}function cl(){}function ul(e){var t;if(Ju)t=new Wu(e);else if(!fl((t=ll(Hu.parse(e))).protocol))throw new el({input:e});return t}function ll(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new el({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new el({input:e.href||e});return e}function pl(e,t){var n=t||{};for(var o of Xu)n[o]=e[o];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 dl(e,t){var n;for(var o in t)e.test(o)&&(n=t[o],delete t[o]);return null==n?void 0:String(n).trim()}function ml(e,t,n){function o(n){gl(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return o.prototype=new(n||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),o}function hl(e,t){for(var n of Yu)e.removeListener(n,Zu[n]);e.on("error",cl),e.destroy(t)}function fl(e){return"string"==typeof e||e instanceof String}function gl(e){return"function"==typeof e}rl.prototype=Object.create($u.prototype),rl.prototype.abort=function(){hl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},rl.prototype.destroy=function(e){return hl(this._currentRequest,e),il.call(this,e),this},rl.prototype.write=function(e,t,n){if(this._ending)throw new al;if(!fl(e)&&("object"!=typeof(o=e)||!("length"in o)))throw new TypeError("data should be a string, Buffer or Uint8Array");var o;gl(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 ol),this.abort()):n&&n()},rl.prototype.end=function(e,t,n){if(gl(e)?(n=e,e=t=null):gl(t)&&(n=t,t=null),e){var o=this,a=this._currentRequest;this.write(e,t,(function(){o._ended=!0,a.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},rl.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},rl.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},rl.prototype.setTimeout=function(e,t){var n=this;function o(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),i()}),e),o(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",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",o),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){rl.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(rl.prototype,e,{get:function(){return this._currentRequest[e]}})})),rl.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))}},rl.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 o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(o._redirectable=this,Yu))o.on(a,Zu[a]);if(this._currentUrl=/^\//.test(this._options.path)?Hu.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(o===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];o.finished||o.write(n.data,n.encoding,e)}else r._ended&&o.end()}()}},rl.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!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(hl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new nl;var a=this._options.beforeRedirect;a&&(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=[],dl(/^content-/i,this._options.headers));var r,s,c=dl(/^host$/i,this._options.headers),u=ul(this._currentUrl),l=c||u.host,p=/^\w+:/.test(o)?this._currentUrl:Hu.format(Object.assign(u,{host:l})),d=(r=o,s=p,Ju?new Wu(r,s):ul(Hu.resolve(s,r)));if(Qu("redirecting to",d.href),this._isRedirect=!0,pl(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Ku(fl(e)&&fl(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&dl(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),gl(a)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};a(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},_u.exports=sl({http:Gu,https:Vu}),_u.exports.wrap=sl;var yl=Ai(_u.exports);const vl="1.12.2";function bl(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const kl=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const xl=Symbol("internals");class wl extends s.Transform{constructor(e){super({readableHighWaterMark:(e=Ei.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!Ei.isUndefined(t[e])))).chunkSize});const t=this[xl]={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[xl];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const o=this[xl],a=o.maxRate,i=this.readableHighWaterMark,r=o.timeWindow,s=a/(1e3/r),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);o.bytesSeen+=n,o.bytes+=n,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(e)?process.nextTick(t):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(a){const e=Date.now();(!o.ts||(m=e-o.ts)>=r)&&(o.ts=e,l=s-o.bytes,o.bytes=l<0?-l:0,m=0),l=s-o.bytes}if(a){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,o){if(t)return n(t);o?l(o,e):n(null)}))}}var jl=wl;const{asyncIterator:_l}=Symbol;var El=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[_l]?yield*e[_l]():yield e};const Cl=Yc.ALPHABET.ALPHA_DIGIT+"-_",Sl="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Rl="\r\n",Tl=Sl.encode(Rl);class Al{constructor(e,t){const{escapeName:n}=this.constructor,o=Ei.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!o&&t.name?`; filename="${n(t.name)}"`:""}${Rl}`;o?t=Sl.encode(String(t).replace(/\r?\n|\r\n?/g,Rl)):a+=`Content-Type: ${t.type||"application/octet-stream"}${Rl}`,this.headers=Sl.encode(a+Rl),this.contentLength=o?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;Ei.isTypedArray(e)?yield e:yield*El(e),yield Tl}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}var Ol=(e,t,n)=>{const{tag:o="form-data-boundary",size:a=25,boundary:i=o+"-"+Yc.generateString(a,Cl)}=n||{};if(!Ei.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=Sl.encode("--"+i+Rl),s=Sl.encode("--"+i+"--"+Rl);let u=s.byteLength;const l=Array.from(e.entries()).map((([e,t])=>{const n=new Al(e,t);return u+=n.size,n}));u+=r.byteLength*l.length,u=Ei.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 Il 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 zl=Il;var Ll=(e,t)=>Ei.isAsyncFn(e)?function(...n){const o=n.pop();e.apply(this,n).then((e=>{try{t?o(null,...t(e)):o(null,e)}catch(e){o(e)}}),o)}:e;const Pl=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[r];a||(a=c),n[i]=s,o[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-a<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,a=0,i=1e3/t;const r=(t,i=Date.now())=>{a=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?r(e,t):(n=e,o||(o=setTimeout((()=>{o=null,r(n)}),i-s)))},()=>n&&r(n)]}((n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-o,c=a(s);o=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)},Dl=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},ql=e=>(...t)=>Ei.asap((()=>e(...t)));const Nl={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Ml={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},Fl=Ei.isFunction(v.createBrotliDecompress),{http:Bl,https:Ul}=yl,Hl=/https:?/,Wl=Yc.protocols.map((e=>e+":")),Gl=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Vl(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function $l(e,t,n){let o=t;if(!o&&!1!==o){const e=hu.getProxyForUrl(n);e&&(o=new URL(e))}if(o){if(o.username&&(o.auth=(o.username||"")+":"+(o.password||"")),o.auth){(o.auth.username||o.auth.password)&&(o.auth=(o.auth.username||"")+":"+(o.auth.password||""));const t=Buffer.from(o.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=o.hostname||o.host;e.hostname=t,e.host=t,e.port=o.port,e.path=n,o.protocol&&(e.protocol=o.protocol.includes(":")?o.protocol:`${o.protocol}:`)}e.beforeRedirects.proxy=function(e){$l(e,t,e.href)}}const Kl="undefined"!=typeof process&&"process"===Ei.kindOf(process),Ql=(e,t)=>(({address:e,family:t})=>{if(!Ei.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(Ei.isObject(e)?e:{address:e,family:t});var Jl=Kl&&function(e){return t=async function(t,n,o){let{data:a,lookup:i,family:c}=e;const{responseType:u,responseEncoding:d}=e,m=e.method.toUpperCase();let h,f,g=!1;if(i){const e=Ll(i,(e=>Ei.isArray(e)?e:[e]));i=(t,n,o)=>{e(t,n,((e,t,a)=>{if(e)return o(e);const i=Ei.isArray(t)?t.map((e=>Ql(e))):[Ql(t,a)];n.all?o(e,i):o(e,i[0].address,i[0].family)}))}}const y=new b,k=()=>{e.cancelToken&&e.cancelToken.unsubscribe(x),e.signal&&e.signal.removeEventListener("abort",x),y.removeAllListeners()};function x(t){y.emit("abort",!t||t.type?new pu(null,e,f):t)}o(((e,t)=>{h=!0,t&&(g=!0,k())})),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(x),e.signal&&(e.signal.aborted?x():e.signal.addEventListener("abort",x)));const w=mu(e.baseURL,e.url,e.allowAbsoluteUrls),j=new URL(w,Yc.hasBrowserEnv?Yc.origin:void 0),_=j.protocol||Wl[0];if("data:"===_){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),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),a=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));a>=0&&(61===o.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===o.charCodeAt(a)||i(a))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(o,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return n(new Ci("maxContentLength size of "+e.maxContentLength+" exceeded",Ci.ERR_BAD_RESPONSE,e))}let o;if("GET"!==m)return du(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{o=function(e,t,n){const o=n&&n.Blob||Yc.classes.Blob,a=bl(e);if(void 0===t&&o&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=kl.exec(e);if(!n)throw new Ci("Invalid URL",Ci.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!o)throw new Ci("Blob is not supported",Ci.ERR_NOT_SUPPORT);return new o([c],{type:i})}return c}throw new Ci("Unsupported protocol "+a,Ci.ERR_NOT_SUPPORT)}(e.url,"blob"===u,{Blob:e.env&&e.env.Blob})}catch(t){throw Ci.from(t,Ci.ERR_BAD_REQUEST,e)}return"text"===u?(o=o.toString(d),d&&"utf8"!==d||(o=Ei.stripBOM(o))):"stream"===u&&(o=s.Readable.from(o)),du(t,n,{data:o,status:200,statusText:"OK",headers:new cu,config:e})}if(-1===Wl.indexOf(_))return n(new Ci("Unsupported protocol "+_,Ci.ERR_BAD_REQUEST,e));const E=cu.from(e.headers).normalize();E.set("User-Agent","axios/"+vl,!1);const{onUploadProgress:C,onDownloadProgress:S}=e,R=e.maxRate;let T,A;if(Ei.isSpecCompliantForm(a)){const e=E.getContentType(/boundary=([-_\w\d]{10,70})/i);a=Ol(a,(e=>{E.set(e)}),{tag:`axios-${vl}-boundary`,boundary:e&&e[1]||void 0})}else if(Ei.isFormData(a)&&Ei.isFunction(a.getHeaders)){if(E.set(a.getHeaders()),!E.hasContentLength())try{const e=await r.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&E.setContentLength(e)}catch(e){}}else if(Ei.isBlob(a)||Ei.isFile(a))a.size&&E.setContentType(a.type||"application/octet-stream"),E.setContentLength(a.size||0),a=s.Readable.from(El(a));else if(a&&!Ei.isStream(a)){if(Buffer.isBuffer(a));else if(Ei.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Ei.isString(a))return n(new Ci("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Ci.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(E.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return n(new Ci("Request body larger than maxBodyLength limit",Ci.ERR_BAD_REQUEST,e))}const O=Ei.toFiniteNumber(E.getContentLength());let I,z;Ei.isArray(R)?(T=R[0],A=R[1]):T=A=R,a&&(C||T)&&(Ei.isStream(a)||(a=s.Readable.from(a,{objectMode:!1})),a=s.pipeline([a,new jl({maxRate:Ei.toFiniteNumber(T)})],Ei.noop),C&&a.on("progress",Gl(a,Dl(O,Pl(ql(C),!1,3))))),e.auth&&(I=(e.auth.username||"")+":"+(e.auth.password||"")),!I&&j.username&&(I=j.username+":"+j.password),I&&E.delete("authorization");try{z=Mc(j.pathname+j.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const o=new Error(t.message);return o.config=e,o.url=e.url,o.exists=!0,n(o)}E.set("Accept-Encoding","gzip, compress, deflate"+(Fl?", br":""),!1);const L={path:z,method:m,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:I,protocol:_,family:c,beforeRedirect:Vl,beforeRedirects:{}};let P;!Ei.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=j.hostname.startsWith("[")?j.hostname.slice(1,-1):j.hostname,L.port=j.port,$l(L,e.proxy,_+"//"+j.hostname+(j.port?":"+j.port:"")+L.path));const D=Hl.test(L.protocol);if(L.agent=D?e.httpsAgent:e.httpAgent,e.transport?P=e.transport:0===e.maxRedirects?P=D?p:l:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),P=D?Ul:Bl),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=P.request(L,(function(o){if(f.destroyed)return;const a=[o],i=+o.headers["content-length"];if(S||A){const e=new jl({maxRate:Ei.toFiniteNumber(A)});S&&e.on("progress",Gl(e,Dl(i,Pl(ql(S),!0,3)))),a.push(e)}let r=o;const c=o.req||f;if(!1!==e.decompress&&o.headers["content-encoding"])switch("HEAD"!==m&&204!==o.statusCode||delete o.headers["content-encoding"],(o.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(v.createUnzip(Nl)),delete o.headers["content-encoding"];break;case"deflate":a.push(new zl),a.push(v.createUnzip(Nl)),delete o.headers["content-encoding"];break;case"br":Fl&&(a.push(v.createBrotliDecompress(Ml)),delete o.headers["content-encoding"])}r=a.length>1?s.pipeline(a,Ei.noop):a[0];const l=s.finished(r,(()=>{l(),k()})),p={status:o.statusCode,statusText:o.statusMessage,headers:new cu(o.headers),config:e,request:c};if("stream"===u)p.data=r,du(t,n,p);else{const o=[];let a=0;r.on("data",(function(t){o.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(g=!0,r.destroy(),n(new Ci("maxContentLength size of "+e.maxContentLength+" exceeded",Ci.ERR_BAD_RESPONSE,e,c)))})),r.on("aborted",(function(){if(g)return;const t=new Ci("stream has been aborted",Ci.ERR_BAD_RESPONSE,e,c);r.destroy(t),n(t)})),r.on("error",(function(t){f.destroyed||n(Ci.from(t,null,e,c))})),r.on("end",(function(){try{let e=1===o.length?o[0]:Buffer.concat(o);"arraybuffer"!==u&&(e=e.toString(d),d&&"utf8"!==d||(e=Ei.stripBOM(e))),p.data=e}catch(t){return n(Ci.from(t,null,e,p.request,p))}du(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(Ci.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 Ci("error trying to parse `config.timeout` to int",Ci.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 o=e.transitional||Bc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ci(t,o.clarifyTimeoutError?Ci.ETIMEDOUT:Ci.ECONNABORTED,e,f)),x()}))}if(Ei.isStream(a)){let t=!1,n=!1;a.on("end",(()=>{t=!0})),a.once("error",(e=>{n=!0,f.destroy(e)})),a.on("close",(()=>{t||n||x(new pu("Request stream has been aborted",e,f))})),a.pipe(f)}else f.end(a)},new Promise(((e,n)=>{let o,a;const i=(e,t)=>{a||(a=!0,o&&o(e,t))},r=e=>{i(e,!0),n(e)};t((t=>{i(t),e(t)}),r,(e=>o=e)).catch(r)}));var t},Xl=Yc.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yc.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yc.origin),Yc.navigator&&/(msie|trident)/i.test(Yc.navigator.userAgent)):()=>!0,Yl=Yc.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const r=[e+"="+encodeURIComponent(t)];Ei.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),Ei.isString(o)&&r.push("path="+o),Ei.isString(a)&&r.push("domain="+a),!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 Zl=e=>e instanceof cu?{...e}:e;function ep(e,t){t=t||{};const n={};function o(e,t,n,o){return Ei.isPlainObject(e)&&Ei.isPlainObject(t)?Ei.merge.call({caseless:o},e,t):Ei.isPlainObject(t)?Ei.merge({},t):Ei.isArray(t)?t.slice():t}function a(e,t,n,a){return Ei.isUndefined(t)?Ei.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function i(e,t){if(!Ei.isUndefined(t))return o(void 0,t)}function r(e,t){return Ei.isUndefined(t)?Ei.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,i){return i in t?o(n,a):i in e?o(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)=>a(Zl(e),Zl(t),0,!0)};return Ei.forEach(Object.keys({...e,...t}),(function(o){const i=c[o]||a,r=i(e[o],t[o],o);Ei.isUndefined(r)&&i!==s||(n[o]=r)})),n}var tp=e=>{const t=ep({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=cu.from(r),t.url=Mc(mu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ei.isFormData(n))if(Yc.hasStandardBrowserEnv||Yc.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(Ei.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(Yc.hasStandardBrowserEnv&&(o&&Ei.isFunction(o)&&(o=o(t)),o||!1!==o&&Xl(t.url))){const e=a&&i&&Yl.read(i);e&&r.set(a,e)}return t};var np="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=tp(e);let a=o.data;const i=cu.from(o.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=o;function h(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(r),o.signal&&o.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=cu.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());du((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:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.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 Ci("Request aborted",Ci.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new Ci(t&&t.message?t.message:"Network Error",Ci.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||Bc;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Ci(t,a.clarifyTimeoutError?Ci.ETIMEDOUT:Ci.ECONNABORTED,e,f)),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&Ei.forEach(i.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),Ei.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),m&&([c,l]=Pl(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=Pl(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(r=t=>{f&&(n(!t||t.type?new pu(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(r),o.signal&&(o.signal.aborted?r():o.signal.addEventListener("abort",r)));const y=bl(o.url);y&&-1===Yc.protocols.indexOf(y)?n(new Ci("Unsupported protocol "+y+":",Ci.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var op=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Ci?t:new pu(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,a(new Ci(`timeout ${t} of ms exceeded`,Ci.ETIMEDOUT))}),t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>Ei.asap(r),s}};const ap=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},ip=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()}},rp=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of ip(e))yield*ap(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let i=o.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:sp}=Ei,cp=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ei.global),{ReadableStream:up,TextEncoder:lp}=Ei.global,pp=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dp=e=>{e=Ei.merge.call({skipUndefined:!0},cp,e);const{fetch:t,Request:n,Response:o}=e,a=t?sp(t):"function"==typeof fetch,i=sp(n),r=sp(o);if(!a)return!1;const s=a&&sp(up),c=a&&("function"==typeof lp?(e=>t=>e.encode(t))(new lp):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&pp((()=>{let e=!1;const t=new n(Yc.origin,{body:new up,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=r&&s&&pp((()=>Ei.isReadableStream(new o("").body))),p={stream:l&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new Ci(`Response type '${e}' is not supported`,Ci.ERR_NOT_SUPPORT,n)})}));const d=async(e,t)=>{const o=Ei.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(Ei.isBlob(e))return e.size;if(Ei.isSpecCompliantForm(e)){const t=new n(Yc.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ei.isArrayBufferView(e)||Ei.isArrayBuffer(e)?e.byteLength:(Ei.isURLSearchParams(e)&&(e+=""),Ei.isString(e)?(await c(e)).byteLength:void 0)})(t):o};return async e=>{let{url:a,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=tp(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let w=op([c,m&&m.toAbortSignal()],h),j=null;const _=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(g&&u&&"get"!==r&&"head"!==r&&0!==(E=await d(v,s))){let e,t=new n(a,{method:"POST",body:s,duplex:"half"});if(Ei.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Dl(E,Pl(ql(g)));s=rp(t.body,65536,e,n)}}Ei.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...k,signal:w,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};j=i&&new n(a,c);let m=await(i?x(j,k):x(a,c));const h=l&&("stream"===y||"response"===y);if(l&&(f||h&&_)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=m[t]}));const t=Ei.toFiniteNumber(m.headers.get("content-length")),[n,a]=f&&Dl(t,Pl(ql(f),!0))||[];m=new o(rp(m.body,65536,n,(()=>{a&&a(),_&&_()})),e)}y=y||"text";let C=await p[Ei.findKey(p,y)||"text"](m,e);return!h&&_&&_(),await new Promise(((t,n)=>{du(t,n,{data:C,headers:cu.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:j})}))}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Ci("Network Error",Ci.ERR_NETWORK,e,j),{cause:t.cause||t});throw Ci.from(t,t&&t.code,e,j)}}},mp=new Map,hp=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:a}=t,i=[o,a,n];let r,s,c=i.length,u=mp;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:dp(t)),u=s;return s};hp();const fp={http:Jl,xhr:np,fetch:{get:hp}};Ei.forEach(fp,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const gp=e=>`- ${e}`,yp=e=>Ei.isFunction(e)||null===e||!1===e;var vp=(e,t)=>{e=Ei.isArray(e)?e:[e];const{length:n}=e;let o,a;const i={};for(let r=0;r<n;r++){let n;if(o=e[r],a=o,!yp(o)&&(a=fp[(n=String(o)).toLowerCase()],void 0===a))throw new Ci(`Unknown adapter '${n}'`);if(a&&(Ei.isFunction(a)||(a=a.get(t))))break;i[n||"#"+r]=a}if(!a){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 Ci("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(gp).join("\n"):" "+gp(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pu(null,e)}function kp(e){bp(e),e.headers=cu.from(e.headers),e.data=uu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vp(e.adapter||tu.adapter,e)(e).then((function(t){return bp(e),t.data=uu.call(e,e.transformResponse,t),t.headers=cu.from(t.headers),t}),(function(t){return lu(t)||(bp(e),t&&t.response&&(t.response.data=uu.call(e,e.transformResponse,t.response),t.response.headers=cu.from(t.response.headers))),Promise.reject(t)}))}const xp={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{xp[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const wp={};xp.transitional=function(e,t,n){function o(e,t){return"[Axios v"+vl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new Ci(o(a," has been removed"+(t?" in "+t:"")),Ci.ERR_DEPRECATED);return t&&!wp[a]&&(wp[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},xp.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var jp={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ci("options must be an object",Ci.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new Ci("option "+i+" must be "+n,Ci.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ci("Unknown option "+i,Ci.ERR_BAD_OPTION)}},validators:xp};const _p=jp.validators;let Ep=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Fc,response:new Fc}}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=ep(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&jp.assertOptions(n,{silentJSONParsing:_p.transitional(_p.boolean),forcedJSONParsing:_p.transitional(_p.boolean),clarifyTimeoutError:_p.transitional(_p.boolean)},!1),null!=o&&(Ei.isFunction(o)?t.paramsSerializer={serialize:o}:jp.assertOptions(o,{encode:_p.function,serialize:_p.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),jp.assertOptions(t,{baseUrl:_p.spelling("baseURL"),withXsrfToken:_p.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&Ei.merge(a.common,a[t.method]);a&&Ei.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=cu.concat(i,a);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=[kp.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=kp.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 Mc(mu((e=ep(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Ei.forEach(["delete","get","head","options"],(function(e){Ep.prototype[e]=function(t,n){return this.request(ep(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ei.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(ep(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Ep.prototype[e]=t(),Ep.prototype[e+"Form"]=t(!0)}));var Cp=Ep;class Sp{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 o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new pu(e,o,a),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 Sp((function(t){e=t})),cancel:e}}}var Rp=Sp;const Tp={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(Tp).forEach((([e,t])=>{Tp[t]=e}));var Ap=Tp;const Op=function e(t){const n=new Cp(t),o=Da(Cp.prototype.request,n);return Ei.extend(o,Cp.prototype,n,{allOwnKeys:!0}),Ei.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ep(t,n))},o}(tu);Op.Axios=Cp,Op.CanceledError=pu,Op.CancelToken=Rp,Op.isCancel=lu,Op.VERSION=vl,Op.toFormData=Lc,Op.AxiosError=Ci,Op.Cancel=Op.CanceledError,Op.all=function(e){return Promise.all(e)},Op.spread=function(e){return function(t){return e.apply(null,t)}},Op.isAxiosError=function(e){return Ei.isObject(e)&&!0===e.isAxiosError},Op.mergeConfig=ep,Op.AxiosHeaders=cu,Op.formToJSON=e=>Zc(Ei.isHTMLForm(e)?new FormData(e):e),Op.getAdapter=vp,Op.HttpStatusCode=Ap,Op.default=Op;var Ip=Op,zp=function(e){function t(t){var n,o,i,r,s=this;return(s=e.call(this,t)||this).token="",null===(o=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===o||o.request.use((function(e){return a(a({},e),{defaults:{headers:a(a({},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 a({},e)}),(function(e){return Promise.reject(e)})),s}return o(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=Ip.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=Ip.create(e)})),Lp=r.inspect,Pp="function"==typeof Map&&Map.prototype,Dp=Object.getOwnPropertyDescriptor&&Pp?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qp=Pp&&Dp&&"function"==typeof Dp.get?Dp.get:null,Np=Pp&&Map.prototype.forEach,Mp="function"==typeof Set&&Set.prototype,Fp=Object.getOwnPropertyDescriptor&&Mp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Bp=Mp&&Fp&&"function"==typeof Fp.get?Fp.get:null,Up=Mp&&Set.prototype.forEach,Hp="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Wp="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Gp="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Vp=Boolean.prototype.valueOf,$p=Object.prototype.toString,Kp=Function.prototype.toString,Qp=String.prototype.match,Jp=String.prototype.slice,Xp=String.prototype.replace,Yp=String.prototype.toUpperCase,Zp=String.prototype.toLowerCase,ed=RegExp.prototype.test,td=Array.prototype.concat,nd=Array.prototype.join,od=Array.prototype.slice,ad=Math.floor,id="function"==typeof BigInt?BigInt.prototype.valueOf:null,rd=Object.getOwnPropertySymbols,sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,cd="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ud="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===cd||"symbol")?Symbol.toStringTag:null,ld=Object.prototype.propertyIsEnumerable,pd=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dd(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ed.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-ad(-e):ad(e);if(o!==e){var a=String(o),i=Jp.call(t,a.length+1);return Xp.call(a,n,"$&_")+"."+Xp.call(Xp.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Xp.call(t,n,"$&_")}var md=Lp,hd=md.custom,fd=_d(hd)?hd:null,gd={__proto__:null,double:'"',single:"'"},yd={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},vd=function e(t,n,o,a){var i=n||{};if(Cd(i,"quoteStyle")&&!Cd(gd,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Cd(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=!Cd(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Cd(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(Cd(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 Td(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?dd(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?dd(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return wd(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=nd.call(Array(e.indent+1)," ")}return{base:n,prev:nd.call(Array(t+1),n)}}(i,o);if(void 0===a)a=[];else if(Rd(a,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(a=od.call(a)).push(n),r){var s={depth:i.depth};return Cd(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,o+1,a)}return e(t,i,o+1,a)}if("function"==typeof t&&!jd(t)){var m=function(e){if(e.name)return e.name;var t=Qp.call(Kp.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Pd(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+nd.call(h,", ")+" }":"")}if(_d(t)){var f=cd?Xp.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):sd.call(t);return"object"!=typeof t||cd?f:Od(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="<"+Zp.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+bd(kd(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Zp.call(String(t.nodeName))+">"}if(wd(t)){if(0===t.length)return"[]";var b=Pd(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Rd(e[t],"\n")>=0)return!1;return!0}(b)?"["+Ld(b,p)+"]":"[ "+nd.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Sd(e)&&xd(e)}(t)){var k=Pd(t,d);return"cause"in Error.prototype||!("cause"in t)||ld.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+nd.call(k,", ")+" }":"{ ["+String(t)+"] "+nd.call(td.call("[cause]: "+d(t.cause),k),", ")+" }"}if("object"==typeof t&&r){if(fd&&"function"==typeof t[fd]&&md)return md(t,{depth:l-o});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!qp||!e||"object"!=typeof e)return!1;try{qp.call(e);try{Bp.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return Np&&Np.call(t,(function(e,n){x.push(d(n,t,!0)+" => "+d(e,t))})),zd("Map",qp.call(t),x,p)}if(function(e){if(!Bp||!e||"object"!=typeof e)return!1;try{Bp.call(e);try{qp.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Up&&Up.call(t,(function(e){w.push(d(e,t))})),zd("Set",Bp.call(t),w,p)}if(function(e){if(!Hp||!e||"object"!=typeof e)return!1;try{Hp.call(e,Hp);try{Wp.call(e,Wp)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Id("WeakMap");if(function(e){if(!Wp||!e||"object"!=typeof e)return!1;try{Wp.call(e,Wp);try{Hp.call(e,Hp)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Id("WeakSet");if(function(e){if(!Gp||!e||"object"!=typeof e)return!1;try{return Gp.call(e),!0}catch(e){}return!1}(t))return Id("WeakRef");if(function(e){return"[object Number]"===Sd(e)&&xd(e)}(t))return Od(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!id)return!1;try{return id.call(e),!0}catch(e){}return!1}(t))return Od(d(id.call(t)));if(function(e){return"[object Boolean]"===Sd(e)&&xd(e)}(t))return Od(Vp.call(t));if(function(e){return"[object String]"===Sd(e)&&xd(e)}(t))return Od(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ti&&t===Ti)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Sd(e)&&xd(e)}(t)&&!jd(t)){var j=Pd(t,d),_=pd?pd(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",C=!_&&ud&&Object(t)===t&&ud in t?Jp.call(Sd(t),8,-1):E?"Object":"",S=(_||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||E?"["+nd.call(td.call([],C||[],E||[]),": ")+"] ":"");return 0===j.length?S+"{}":p?S+"{"+Ld(j,p)+"}":S+"{ "+nd.call(j,", ")+" }"}return String(t)};function bd(e,t,n){var o=n.quoteStyle||t,a=gd[o];return a+e+a}function kd(e){return Xp.call(String(e),/"/g,""")}function xd(e){return!ud||!("object"==typeof e&&(ud in e||void 0!==e[ud]))}function wd(e){return"[object Array]"===Sd(e)&&xd(e)}function jd(e){return"[object RegExp]"===Sd(e)&&xd(e)}function _d(e){if(cd)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!sd)return!1;try{return sd.call(e),!0}catch(e){}return!1}var Ed=Object.prototype.hasOwnProperty||function(e){return e in this};function Cd(e,t){return Ed.call(e,t)}function Sd(e){return $p.call(e)}function Rd(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Td(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Td(Jp.call(e,0,t.maxStringLength),t)+o}var a=yd[t.quoteStyle||"single"];return a.lastIndex=0,bd(Xp.call(Xp.call(e,a,"\\$1"),/[\x00-\x1f]/g,Ad),"single",t)}function Ad(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":"")+Yp.call(t.toString(16))}function Od(e){return"Object("+e+")"}function Id(e){return e+" { ? }"}function zd(e,t,n,o){return e+" ("+t+") {"+(o?Ld(n,o):nd.call(n,", "))+"}"}function Ld(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+nd.call(e,","+n)+"\n"+t.prev}function Pd(e,t){var n=wd(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=Cd(e,a)?t(e[a],e):""}var i,r="function"==typeof rd?rd(e):[];if(cd){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)Cd(e,c)&&(n&&String(Number(c))===c&&c<e.length||cd&&i["$"+c]instanceof Symbol||(ed.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof rd)for(var u=0;u<r.length;u++)ld.call(e,r[u])&&o.push("["+t(r[u])+"]: "+t(e[r[u]],e));return o}var Dd,qd,Nd,Md,Fd,Bd,Ud,Hd,Wd,Gd,Vd,$d,Kd=vd,Qd=yr,Jd=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},Xd=cc,Yd=ds,Zd=Yd([Xd("%String.prototype.indexOf%")]),em=function(e,t){var n=Xd(e,!!t);return"function"==typeof n&&Zd(e,".prototype.")>-1?Yd([n]):n},tm=em,nm=vd,om=yr,am=cc("%Map%",!0),im=tm("Map.prototype.get",!0),rm=tm("Map.prototype.set",!0),sm=tm("Map.prototype.has",!0),cm=tm("Map.prototype.delete",!0),um=tm("Map.prototype.size",!0),lm=!!am&&function(){var e,t={assert:function(e){if(!t.has(e))throw new om("Side channel does not contain "+nm(e))},delete:function(t){if(e){var n=cm(e,t);return 0===um(e)&&(e=void 0),n}return!1},get:function(t){if(e)return im(e,t)},has:function(t){return!!e&&sm(e,t)},set:function(t,n){e||(e=new am),rm(e,t,n)}};return t},pm=em,dm=vd,mm=lm,hm=yr,fm=cc("%WeakMap%",!0),gm=pm("WeakMap.prototype.get",!0),ym=pm("WeakMap.prototype.set",!0),vm=pm("WeakMap.prototype.has",!0),bm=pm("WeakMap.prototype.delete",!0),km=yr,xm=vd,wm=function(){var e,t={assert:function(e){if(!t.has(e))throw new Qd("Side channel does not contain "+Kd(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Jd(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Jd(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Jd(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Jd(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},jm=(fm?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new hm("Side channel does not contain "+dm(e))},delete:function(n){if(fm&&n&&("object"==typeof n||"function"==typeof n)){if(e)return bm(e,n)}else if(mm&&t)return t.delete(n);return!1},get:function(n){return fm&&n&&("object"==typeof n||"function"==typeof n)&&e?gm(e,n):t&&t.get(n)},has:function(n){return fm&&n&&("object"==typeof n||"function"==typeof n)&&e?vm(e,n):!!t&&t.has(n)},set:function(n,o){fm&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new fm),ym(e,n,o)):mm&&(t||(t=mm()),t.set(n,o))}};return n}:mm)||lm||wm,_m=String.prototype.replace,Em=/%20/g,Cm="RFC3986",Sm={default:Cm,formatters:{RFC1738:function(e){return _m.call(e,Em,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Cm},Rm=Sm,Tm=Object.prototype.hasOwnProperty,Am=Array.isArray,Om=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Im=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},zm=1024,Lm={arrayToObject:Im,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=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.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(Am(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){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+=zm){for(var c=i.length>=zm?i.slice(s,s+zm):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||a===Rm.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Om[p]:p<2048?u[u.length]=Om[192|p>>6]+Om[128|63&p]:p<55296||p>=57344?u[u.length]=Om[224|p>>12]+Om[128|p>>6&63]+Om[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Om[240|p>>18]+Om[128|p>>12&63]+Om[128|p>>6&63]+Om[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(Am(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Am(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Tm.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Am(t)&&!Am(n)&&(a=Im(t,o)),Am(t)&&Am(n)?(n.forEach((function(n,a){if(Tm.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return Tm.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),a)}},Pm=function(){var e,t={assert:function(e){if(!t.has(e))throw new km("Side channel does not contain "+xm(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=jm()),e.set(t,n)}};return t},Dm=Lm,qm=Sm,Nm=Object.prototype.hasOwnProperty,Mm={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Fm=Array.isArray,Bm=Array.prototype.push,Um=function(e,t){Bm.apply(e,Fm(t)?t:[t])},Hm=Date.prototype.toISOString,Wm=qm.default,Gm={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dm.encode,encodeValuesOnly:!1,format:Wm,formatter:qm.formatters[Wm],indices:!1,serializeDate:function(e){return Hm.call(e)},skipNulls:!1,strictNullHandling:!1},Vm={},$m=function e(t,n,o,a,i,r,s,c,u,l,p,d,m,h,f,g,y,v){for(var b,k=t,x=v,w=0,j=!1;void 0!==(x=x.get(Vm))&&!j;){var _=x.get(t);if(w+=1,void 0!==_){if(_===w)throw new RangeError("Cyclic object value");j=!0}void 0===x.get(Vm)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=m(k):"comma"===o&&Fm(k)&&(k=Dm.maybeMap(k,(function(e){return e instanceof Date?m(e):e}))),null===k){if(r)return u&&!g?u(n,Gm.encoder,y,"key",h):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Dm.isBuffer(k))return u?[f(g?n:u(n,Gm.encoder,y,"key",h))+"="+f(u(k,Gm.encoder,y,"value",h))]:[f(n)+"="+f(String(k))];var E,C=[];if(void 0===k)return C;if("comma"===o&&Fm(k))g&&u&&(k=Dm.maybeMap(k,u)),E=[{value:k.length>0?k.join(",")||null:void 0}];else if(Fm(l))E=l;else{var S=Object.keys(k);E=p?S.sort(p):S}var R=c?n.replace(/\./g,"%2E"):n,T=a&&Fm(k)&&1===k.length?R+"[]":R;if(i&&Fm(k)&&0===k.length)return T+"[]";for(var A=0;A<E.length;++A){var O=E[A],I="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==I){var z=d&&c?O.replace(/\./g,"%2E"):O,L=Fm(k)?"function"==typeof o?o(T,z):T:T+(d?"."+z:"["+z+"]");v.set(t,w);var P=Pm();P.set(Vm,v),Um(C,e(I,L,o,a,i,r,s,c,"comma"===o&&g&&Fm(k)?null:u,l,p,d,m,h,f,g,y,P))}}return C},Km=Lm,Qm=Object.prototype.hasOwnProperty,Jm=Array.isArray,Xm={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Km.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Ym=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Zm=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},eh=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=r?a.slice(0,r.index):a,c=[];if(s){if(!n.plainObjects&&Qm.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&Qm.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("["+a.slice(r.index)+"]")}return function(e,t,n,o){for(var a=o?t:Zm(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);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]=a:"__proto__"!==u&&(r[u]=a):r={0:a}}a=r}return a}(c,t,n,o)}},th=function(e,t){var n,o=e,a=function(e){if(!e)return Gm;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||Gm.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=qm.default;if(void 0!==e.format){if(!Nm.call(qm.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=qm.formatters[n],i=Gm.filter;if(("function"==typeof e.filter||Fm(e.filter))&&(i=e.filter),o=e.arrayFormat in Mm?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Gm.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||Gm.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Gm.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Gm.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Gm.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Gm.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Gm.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Gm.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Gm.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Gm.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Gm.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Gm.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Gm.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):Fm(a.filter)&&(n=a.filter);var i=[];if("object"!=typeof o||null===o)return"";var r=Mm[a.arrayFormat],s="comma"===r&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var c=Pm(),u=0;u<n.length;++u){var l=n[u];a.skipNulls&&null===o[l]||Um(i,$m(o[l],l,r,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,c))}var p=i.join(a.delimiter),d=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},nh=function(e,t){var n=function(e){if(!e)return Xm;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?Xm.charset:e.charset,n=void 0===e.duplicates?Xm.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||Xm.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Xm.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Xm.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Xm.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Xm.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Xm.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Xm.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Xm.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Xm.decoder,delimiter:"string"==typeof e.delimiter||Km.isRegExp(e.delimiter)?e.delimiter:Xm.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Xm.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Xm.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Xm.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Xm.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Xm.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Xm.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<r.length;++a)0===r[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[a]?c="utf-8":"utf8=%26%2310003%3B"===r[a]&&(c="iso-8859-1"),s=a,a=r.length);for(a=0;a<r.length;++a)if(a!==s){var u,l,p=r[a],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Xm.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Xm.decoder,c,"key"),l=Km.maybeMap(Zm(p.slice(m+1),t),(function(e){return t.decoder(e,Xm.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Ym(l)),p.indexOf("[]=")>-1&&(l=Jm(l)?[l]:l);var h=Qm.call(n,u);h&&"combine"===t.duplicates?n[u]=Km.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},i=Object.keys(o),r=0;r<i.length;++r){var s=i[r],c=eh(s,o[s],n,"string"==typeof e);a=Km.merge(a,c,n)}return!0===n.allowSparse?a:Km.compact(a)},oh={formats:Sm,parse:nh,stringify:th},ah={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 oh.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"}(Dd||(Dd={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(qd||(qd={})),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"}(Nd||(Nd={})),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"}(Md||(Md={})),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"}(Fd||(Fd={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Bd||(Bd={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Ud||(Ud={})),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"}(Hd||(Hd={})),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={}))}(Wd||(Wd={})),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"}(Gd||(Gd={})),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"}(Vd||(Vd={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}($d||($d={}));var ih=["PAUSED","ACTIVE"],rh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},sh="DELETED",ch={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},uh=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},lh=[{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"}],ph=[{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"}],dh=[{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"}],mh=[{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:""}}],hh=[{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"}],fh={docs_url:"https://docs.y.uno/reference/api-reference-overview"},gh={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}]},yh=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const vh=[];for(let e=0;e<256;++e)vh.push((e+256).toString(16).slice(1));let bh;const kh=new Uint8Array(16);var xh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function wh(e,t,n){if(xh.randomUUID&&!t&&!e)return xh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!bh){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bh=crypto.getRandomValues.bind(crypto)}return bh(kh)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[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]=o[e];return t}return function(e,t=0){return(vh[e[t+0]]+vh[e[t+1]]+vh[e[t+2]]+vh[e[t+3]]+"-"+vh[e[t+4]]+vh[e[t+5]]+"-"+vh[e[t+6]]+vh[e[t+7]]+"-"+vh[e[t+8]]+vh[e[t+9]]+"-"+vh[e[t+10]]+vh[e[t+11]]+vh[e[t+12]]+vh[e[t+13]]+vh[e[t+14]]+vh[e[t+15]]).toLowerCase()}(o)}var jh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},_h=function(e){function r(t){var n=t?a(a({},ah),t):ah;return e.call(this,n)||this}return o(r,e),r.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},r.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Gd.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},r.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Gd.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},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,o=e.country,a=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:i})},r.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},r.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),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,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":wh()}})},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,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},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,o){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(o))]}))}))},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,o="/connections/change-status";if(t.status==sh)return delete t.status,this.delete(o,{data:t});Object.values(ih).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(rh[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},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,o=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(o),a({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,o=i(t,["account_code"]),a={account_codes:n};return this.post("/v2/webhooks/organization",a,{params:o})},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,o=i(t,["account_code"]),a={account_codes:n};return this.post("/v2/api-logs/organization",a,{params:o})},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 o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},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,o=e.connection_name,a=i(e,["account_code","connection_name"]),r=jh(n);return o&&(r.connection_name=o.split(",")),this.post("/insights/conversion-rate/".concat(t),r,{params:a})},r.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,o=i(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),jh(n),{params:o})},r.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",jh(t),{params:n})},r.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,o=i(t,["connection_name"]),r={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(r=a(a({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",r,{params:o})},r.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var o=n.connection_name,r=i(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(s=a(a({},s),{connection_name:null==o?void 0:o.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,o=i(e,["account_code","connection_name"]),r=jh(t);return n&&(r=a(a({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",r,{params:o})},r.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,o=e.connection_name,r=i(e,["account_code","connection_name"]),s=jh(n);return o&&(s=a(a({},s),{connection_name:null==o?void 0:o.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"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},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,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},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,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},r.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload,i={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",a,{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.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},r.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},r.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},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.getImpersonationUsers=function(){return this.get("/impersonation/user")},r.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},r.prototype.getUsersToImpersonate=function(e,t){var n={account_codes:t||[]};return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),n)},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 o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},r.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},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,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{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,o=e.email,a=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:a,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,o=e.id;return this.patch("/teams/roles/".concat(o),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 o=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",o?{headers:{"x-account-code":o}}:{})];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,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),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,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},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,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(i+="&search=".concat(a)),this.get(i,o?{headers:{"x-account-code":o}}:{})},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,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(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,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},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",a({},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,o=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:o.token}),cancel:function(){return o.cancel()}}},r.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},r.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",a({},t))},r.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",a({},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 o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},r.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},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(ch[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(ch[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}(zp),Eh={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},Ch=function(e){function i(t){return e.call(this,t)||this}return o(i,e),i.refreshInstance=function(e){var t;return this.classInstance=new i(a(a({},e),{baseURL:Eh["BFF_URL_".concat(Eh.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 o=localStorage.getItem("account");if(o){var r=null===(n=null===(t=JSON.parse(o))||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(a(a({},e),{baseURL:(null==e?void 0:e.baseURL)||Eh["BFF_URL_".concat(Eh.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}(_h);class Sh{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 Rh="undefined"==typeof window||"Deno"in window;function Th(){}function Ah(e){return"number"==typeof e&&e>=0&&e!==1/0}function Oh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ih(e,t,n){return Gh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function zh(e,t,n){return Gh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Lh(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:i,queryKey:r,stale:s}=e;if(Gh(r))if(o){if(t.queryHash!==Dh(r,t.options))return!1}else if(!Nh(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===a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function Ph(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:i}=e;if(Gh(i)){if(!t.options.mutationKey)return!1;if(n){if(qh(t.options.mutationKey)!==qh(i))return!1}else if(!Nh(t.options.mutationKey,i))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function Dh(e,t){return((null==t?void 0:t.queryKeyHashFn)||qh)(e)}function qh(e){return JSON.stringify(e,((e,t)=>Hh(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Nh(e,t){return Mh(e,t)}function Mh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Mh(e[n],t[n]))))}function Fh(e,t){if(e===t)return e;const n=Uh(e)&&Uh(t);if(n||Hh(e)&&Hh(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,r=n?[]:{};let s=0;for(let o=0;o<i;o++){const i=n?o:a[o];r[i]=Fh(e[i],t[i]),r[i]===e[i]&&s++}return o===i&&s===o?e:r}return t}function Bh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Uh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hh(e){if(!Wh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Wh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Wh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Gh(e){return Array.isArray(e)}function Vh(e){return new Promise((t=>{setTimeout(t,e)}))}function $h(e){Vh(0).then(e)}function Kh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Fh(e,t):t}const Qh=new class extends Sh{constructor(){super(),this.setup=e=>{if(!Rh&&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)}},Jh=["online","offline"];const Xh=new class extends Sh{constructor(){super(),this.setup=e=>{if(!Rh&&window.addEventListener){const t=()=>e();return Jh.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Jh.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 Yh(e){return Math.min(1e3*2**e,3e4)}function Zh(e){return"online"!==(null!=e?e:"online")||Xh.isOnline()}class ef{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function tf(e){return e instanceof ef}function nf(e){let t,n,o,a=!1,i=0,r=!1;const s=new Promise(((e,t)=>{n=e,o=t})),c=()=>!Qh.isFocused()||"always"!==e.networkMode&&!Xh.isOnline(),u=o=>{r||(r=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),o(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,o;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Yh,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!a&&h?(i++,null==e.onFail||e.onFail(i,t),Vh(m).then((()=>{if(c())return p()})).then((()=>{a?l(t):d()}))):l(t)}))};return Zh(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new ef(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const of=console;const af=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):$h((()=>{n(o)}))},i=()=>{const t=e;e=[],t.length&&$h((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class rf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ah(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Rh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sf extends rf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||of,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,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o: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=Kh(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(Th).catch(Th):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||!Oh(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,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.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==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,o,a;(tf(e)&&e.silent||this.dispatch({type:"error",error:e}),tf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=nf({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,o,a;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==(o=(a=this.cache.config).onSettled)||o.call(a,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,o;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:Zh(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return tf(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),af.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class cf extends Sh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,i=null!=(o=t.queryHash)?o:Dh(a,t);let r=this.get(i);return r||(r=new sf({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),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(){af.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=zh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Lh(n,e)))}findAll(e,t){const[n]=zh(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Lh(n,e))):this.queries}notify(e){af.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){af.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){af.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class uf extends rf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||of,this.observers=[],this.state=e.state||lf(),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=nf({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,o,a,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=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,h,this.state.variables,this.state.context,this)),await(null==(a=(i=this.options).onSuccess)?void 0:a.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,k,x;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==(k=(x=this.options).onSettled)?void 0:k.call(x,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:!Zh(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),af.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function lf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class pf extends Sh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new uf({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(o),o}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(){af.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=>Ph(e,t)))}findAll(e){return this.mutations.filter((t=>Ph(e,t)))}notify(e){af.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 af.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Th)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function df(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.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,o)=>(h=o?[t,...h]:[...h,t],o?[n,...e]:[...e,n]),v=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:o,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,o,e,a)))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:mf(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==u,n=t?u:(k=e.options,x=d,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(x[0],x));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((o=>{if(!s||!d[n]||s(d[n],n,d)){const a=t?m[n]:mf(e.options,o);return v(o,t,a)}return Promise.resolve(y(o,m[n],d[n]))}))}else b=v([]);var k,x;const w=b.then((e=>({pages:e,pageParams:h})));return w}}}}function mf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class hf extends Sh{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),ff(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gf(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,o=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"),Bh(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 a=this.hasListeners();a&&yf(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===o&&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(!Bh(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(Th)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Rh||this.currentResult.isStale||!Ah(this.options.staleTime))return;const e=Oh(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,!Rh&&!1!==this.options.enabled&&Ah(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Qh.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,o=this.options,a=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 a=this.hasListeners(),i=!a&&ff(e,t),r=a&&yf(e,n,t,o);(i||r)&&(f=Zh(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(a&&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=Kh(null==a?void 0:a.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!=a&&a.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=a.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=Kh(null==a?void 0:a.data,e,t),v=!0)}this.selectError&&(m=this.selectError,p=this.selectResult,h=Date.now(),g="error");const b="fetching"===f,k="loading"===g,x="error"===g;return{status:g,fetchStatus:f,isLoading:k,isSuccess:"success"===g,isError:x,isInitialLoading:k&&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&&!k,isLoadingError:x&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:v,isPreviousData:y,isRefetchError:x&&0!==l.dataUpdatedAt,isStale:vf(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,Bh(n,t))return;this.currentResult=n;const o={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 o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...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||tf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){af.batch((()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,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 ff(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&&gf(e,t,t.refetchOnMount)}function gf(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&vf(e,t)}return!1}function yf(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&vf(e,n)}function vf(e,t){return e.isStaleByTime(t.staleTime)}class bf extends Sh{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),Bh(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={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){af.batch((()=>{var t,n,o,a;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==(o=(a=this.mutateOptions).onSettled)||o.call(a,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 kf,xf={exports:{}},wf={};var jf,_f={};
|
|
214
|
+
!function(e){var t,n,o,a=Fi,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&&a[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 o=e.charset(n);o&&(n+="; charset="+o.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),o=n&&e.extensions[n[1].toLowerCase()];if(!o||!o.length)return!1;return o[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,o=["nginx","apache",void 0,"iana"],Object.keys(a).forEach((function(e){var i=a[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=o.indexOf(a[n[c]].source),l=o.indexOf(i.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))}(Mi);var Bi=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Ui=function(e){var t=!1;return Bi((function(){t=!0})),function(n,o){t?e(n,o):Bi((function(){e(n,o)}))}};var Hi=function(e){Object.keys(e.jobs).forEach(Wi.bind(e)),e.jobs={}};function Wi(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Gi=Ui,Vi=Hi,$i=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,o){var a;a=2==e.length?e(n,Gi(o)):e(n,t,Gi(o));return a}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?Vi(n):n.results[a]=t,o(e,n.results))}))};var Ki=function(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&o.keyedList.sort(n?t:function(n,o){return t(e[n],e[o])});return o};var Qi=Hi,Ji=Ui,Xi=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Qi(this),Ji(e)(null,this.results)};var Yi=$i,Zi=Ki,er=Xi,tr=function(e,t,n){var o=Zi(e);for(;o.index<(o.keyedList||e).length;)Yi(e,t,o,(function(e,t){e?n(e,t):0!==Object.keys(o.jobs).length||n(null,o.results)})),o.index++;return er.bind(o,n)};var nr={exports:{}},or=$i,ar=Ki,ir=Xi;function rr(e,t){return e<t?-1:e>t?1:0}nr.exports=function(e,t,n,o){var a=ar(e,n);return or(e,t,a,(function n(i,r){i?o(i,r):(a.index++,a.index<(a.keyedList||e).length?or(e,t,a,n):o(null,a.results))})),ir.bind(a,o)},nr.exports.ascending=rr,nr.exports.descending=function(e,t){return-1*rr(e,t)};var sr=nr.exports,cr=sr,ur=function(e,t,n){return cr(e,t,null,n)};var lr={parallel:tr,serial:ur,serialOrdered:sr},pr=Object,dr=Error,mr=EvalError,hr=RangeError,fr=ReferenceError,gr=SyntaxError,yr=TypeError,vr=URIError,br=Math.abs,kr=Math.floor,xr=Math.max,wr=Math.min,jr=Math.pow,_r=Math.round,Er=Number.isNaN||function(e){return e!=e},Cr=Object.getOwnPropertyDescriptor;if(Cr)try{Cr([],"length")}catch(e){Cr=null}var Sr=Cr,Rr=Object.defineProperty||!1;if(Rr)try{Rr({},"a",{value:1})}catch(e){Rr=!1}var Tr,Ar,Or,Ir,zr,Lr,Pr,Dr,qr,Nr,Mr,Fr,Br,Ur,Hr,Wr,Gr=Rr;function Vr(){return Ar?Tr:(Ar=1,Tr=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 o 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 a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[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 $r(){return Lr?zr:(Lr=1,zr="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Kr(){return Dr?Pr:(Dr=1,Pr=pr.getPrototypeOf||null)}function Qr(){if(Nr)return qr;Nr=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return qr=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var i,r=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=a.apply(this,n(r,arguments));return Object(e)===e?e:this}return a.apply(o,n(r,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,i.prototype=new l,l.prototype=null}return i},qr}function Jr(){if(Fr)return Mr;Fr=1;var e=Qr();return Mr=Function.prototype.bind||e}function Xr(){return Ur?Br:(Ur=1,Br=Function.prototype.call)}function Yr(){return Wr?Hr:(Wr=1,Hr=Function.prototype.apply)}var Zr,es,ts,ns,os="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,as=Jr(),is=Yr(),rs=Xr(),ss=os||as.call(rs,is),cs=Jr(),us=yr,ls=Xr(),ps=ss,ds=function(e){if(e.length<1||"function"!=typeof e[0])throw new us("a function is required");return ps(cs,ls,e)};var ms,hs=Function.prototype.call,fs=Object.prototype.hasOwnProperty,gs=Jr().call(hs,fs),ys=pr,vs=dr,bs=mr,ks=hr,xs=fr,ws=gr,js=yr,_s=vr,Es=br,Cs=kr,Ss=xr,Rs=wr,Ts=jr,As=_r,Os=function(e){return Er(e)||0===e?e:e<0?-1:1},Is=Function,zs=function(e){try{return Is('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ls=Sr,Ps=Gr,Ds=function(){throw new js},qs=Ls?function(){try{return Ds}catch(e){try{return Ls(arguments,"callee").get}catch(e){return Ds}}}():Ds,Ns=function(){if(Ir)return Or;Ir=1;var e="undefined"!=typeof Symbol&&Symbol,t=Vr();return Or=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Ms=function(){if(ns)return ts;ns=1;var e=$r(),t=Kr(),n=function(){if(es)return Zr;es=1;var e,t=ds,n=Sr;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return Zr=o&&"function"==typeof o.get?t([o.get]):"function"==typeof i&&function(e){return i(null==e?e:a(e))}}();return ts=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}(),Fs=Kr(),Bs=$r(),Us=Yr(),Hs=Xr(),Ws={},Gs="undefined"!=typeof Uint8Array&&Ms?Ms(Uint8Array):ms,Vs={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ms:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ms:ArrayBuffer,"%ArrayIteratorPrototype%":Ns&&Ms?Ms([][Symbol.iterator]()):ms,"%AsyncFromSyncIteratorPrototype%":ms,"%AsyncFunction%":Ws,"%AsyncGenerator%":Ws,"%AsyncGeneratorFunction%":Ws,"%AsyncIteratorPrototype%":Ws,"%Atomics%":"undefined"==typeof Atomics?ms:Atomics,"%BigInt%":"undefined"==typeof BigInt?ms:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ms:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ms:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ms:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":vs,"%eval%":eval,"%EvalError%":bs,"%Float16Array%":"undefined"==typeof Float16Array?ms:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ms:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ms:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ms:FinalizationRegistry,"%Function%":Is,"%GeneratorFunction%":Ws,"%Int8Array%":"undefined"==typeof Int8Array?ms:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ms:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ms:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ns&&Ms?Ms(Ms([][Symbol.iterator]())):ms,"%JSON%":"object"==typeof JSON?JSON:ms,"%Map%":"undefined"==typeof Map?ms:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ns&&Ms?Ms((new Map)[Symbol.iterator]()):ms,"%Math%":Math,"%Number%":Number,"%Object%":ys,"%Object.getOwnPropertyDescriptor%":Ls,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ms:Promise,"%Proxy%":"undefined"==typeof Proxy?ms:Proxy,"%RangeError%":ks,"%ReferenceError%":xs,"%Reflect%":"undefined"==typeof Reflect?ms:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ms:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ns&&Ms?Ms((new Set)[Symbol.iterator]()):ms,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ms:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ns&&Ms?Ms(""[Symbol.iterator]()):ms,"%Symbol%":Ns?Symbol:ms,"%SyntaxError%":ws,"%ThrowTypeError%":qs,"%TypedArray%":Gs,"%TypeError%":js,"%Uint8Array%":"undefined"==typeof Uint8Array?ms:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ms:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ms:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ms:Uint32Array,"%URIError%":_s,"%WeakMap%":"undefined"==typeof WeakMap?ms:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ms:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ms:WeakSet,"%Function.prototype.call%":Hs,"%Function.prototype.apply%":Us,"%Object.defineProperty%":Ps,"%Object.getPrototypeOf%":Fs,"%Math.abs%":Es,"%Math.floor%":Cs,"%Math.max%":Ss,"%Math.min%":Rs,"%Math.pow%":Ts,"%Math.round%":As,"%Math.sign%":Os,"%Reflect.getPrototypeOf%":Bs};if(Ms)try{null.error}catch(e){var $s=Ms(Ms(e));Vs["%Error.prototype%"]=$s}var Ks,Qs,Js=function e(t){var n;if("%AsyncFunction%"===t)n=zs("async function () {}");else if("%GeneratorFunction%"===t)n=zs("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=zs("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&Ms&&(n=Ms(a.prototype))}return Vs[t]=n,n},Xs={__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"]},Ys=Jr(),Zs=gs,ec=Ys.call(Hs,Array.prototype.concat),tc=Ys.call(Us,Array.prototype.splice),nc=Ys.call(Hs,String.prototype.replace),oc=Ys.call(Hs,String.prototype.slice),ac=Ys.call(Hs,RegExp.prototype.exec),ic=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rc=/\\(\\)?/g,sc=function(e,t){var n,o=e;if(Zs(Xs,o)&&(o="%"+(n=Xs[o])[0]+"%"),Zs(Vs,o)){var a=Vs[o];if(a===Ws&&(a=Js(o)),void 0===a&&!t)throw new js("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new ws("intrinsic "+e+" does not exist!")},cc=function(e,t){if("string"!=typeof e||0===e.length)throw new js("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new js('"allowMissing" argument must be a boolean');if(null===ac(/^%?[^%]*%?$/,e))throw new ws("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=oc(e,0,1),n=oc(e,-1);if("%"===t&&"%"!==n)throw new ws("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new ws("invalid intrinsic syntax, expected opening `%`");var o=[];return nc(e,ic,(function(e,t,n,a){o[o.length]=n?nc(a,rc,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=sc("%"+o+"%",t),i=a.name,r=a.value,s=!1,c=a.alias;c&&(o=c[0],tc(n,ec([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=oc(p,0,1),m=oc(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new ws("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Zs(Vs,i="%"+(o+="."+p)+"%"))r=Vs[i];else if(null!=r){if(!(p in r)){if(!t)throw new js("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ls&&u+1>=n.length){var h=Ls(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Zs(r,p),r=r[p];l&&!s&&(Vs[i]=r)}}return r};var uc=cc("%Object.defineProperty%",!0),lc=function(){if(Qs)return Ks;Qs=1;var e=Vr();return Ks=function(){return e()&&!!Symbol.toStringTag}}()(),pc=gs,dc=yr,mc=lc?Symbol.toStringTag:null,hc=qi,fc=r,gc=u,yc=l,vc=p,bc=d.parse,kc=m,xc=s.Stream,wc=h,jc=Mi,_c=lr,Ec=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==o&&"boolean"!=typeof o)throw new dc("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!mc||!n&&pc(e,mc)||(uc?uc(e,mc,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[mc]=t)},Cc=gs,Sc=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e};function Rc(e){if(!(this instanceof Rc))return new Rc(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],hc.call(this),e=e||{})this[t]=e[t]}fc.inherits(Rc,hc),Rc.LINE_BREAK="\r\n",Rc.DEFAULT_CONTENT_TYPE="application/octet-stream",Rc.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=hc.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 a=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(a),o(t),o(i),this._trackLength(a,t,n)}},Rc.prototype._trackLength=function(e,t,n){var o=0;null!=n.knownLength?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:"string"==typeof t&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+Rc.LINE_BREAK.length,t&&(t.path||t.readable&&Cc(t,"httpVersion")||t instanceof xc)&&(n.knownLength||this._valuesToMeasure.push(t))},Rc.prototype._lengthRetriever=function(e,t){Cc(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):kc.stat(e.path,(function(n,o){if(n)t(n);else{var a=o.size-(e.start?e.start:0);t(null,a)}})):Cc(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Cc(e,"httpModule")?(e.on("response",(function(n){e.pause(),t(null,Number(n.headers["content-length"]))})),e.resume()):t("Unknown stream")},Rc.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var o,a=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&Sc(s,n.header),s)if(Cc(s,c)){if(null==(o=s[c]))continue;Array.isArray(o)||(o=[o]),o.length&&(r+=c+": "+o.join("; ")+Rc.LINE_BREAK)}return"--"+this.getBoundary()+Rc.LINE_BREAK+r+Rc.LINE_BREAK},Rc.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=gc.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=gc.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Cc(e,"httpVersion")&&(n=gc.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},Rc.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=jc.lookup(e.name)),!n&&e&&e.path&&(n=jc.lookup(e.path)),!n&&e&&e.readable&&Cc(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=jc.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=Rc.DEFAULT_CONTENT_TYPE),n},Rc.prototype._multiPartFooter=function(){return function(e){var t=Rc.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Rc.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Rc.LINE_BREAK},Rc.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Cc(e,t)&&(n[t.toLowerCase()]=e[t]);return n},Rc.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},Rc.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Rc.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;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(Rc.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Rc.prototype._generateBoundary=function(){this._boundary="--------------------------"+wc.randomBytes(12).toString("hex")},Rc.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},Rc.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Rc.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?_c.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,o){n?e(n):(o.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},Rc.prototype.submit=function(e,t){var n,o,a={method:"post"};return"string"==typeof e?(e=bc(e),o=Sc({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(o=Sc(e,a)).port||(o.port="https:"===o.protocol?443:80),o.headers=this.getHeaders(e.headers),n="https:"===o.protocol?vc.request(o):yc.request(o),this.getLength(function(e,o){if(e&&"Unknown stream"!==e)this._error(e);else if(o&&n.setHeader("Content-Length",o),this.pipe(n),t){var a,i=function(e,o){return n.removeListener("error",i),n.removeListener("response",a),t.call(this,e,o)};a=i.bind(this,null),n.on("error",i),n.on("response",a)}}.bind(this)),n},Rc.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Rc.prototype.toString=function(){return"[object FormData]"},Ec(Rc,"FormData");var Tc=Ai(Rc);function Ac(e){return Ei.isPlainObject(e)||Ei.isArray(e)}function Oc(e){return Ei.endsWith(e,"[]")?e.slice(0,-2):e}function Ic(e,t,n){return e?e.concat(t).map((function(e,t){return e=Oc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const zc=Ei.toFlatObject(Ei,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Lc(e,t,n){if(!Ei.isObject(e))throw new TypeError("target must be an object");t=t||new(Tc||FormData);const o=(n=Ei.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ei.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ei.isSpecCompliantForm(t);if(!Ei.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ei.isDate(e))return e.toISOString();if(Ei.isBoolean(e))return e.toString();if(!s&&Ei.isBlob(e))throw new Ci("Blob is not supported. Use a Buffer instead.");return Ei.isArrayBuffer(e)||Ei.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(Ei.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ei.isArray(e)&&function(e){return Ei.isArray(e)&&!e.some(Ac)}(e)||(Ei.isFileList(e)||Ei.endsWith(n,"[]"))&&(s=Ei.toArray(e)))return n=Oc(n),s.forEach((function(e,o){!Ei.isUndefined(e)&&null!==e&&t.append(!0===r?Ic([n],o,i):null===r?n:n+"[]",c(e))})),!1;return!!Ac(e)||(t.append(Ic(a,n,i),c(e)),!1)}const l=[],p=Object.assign(zc,{defaultVisitor:u,convertValue:c,isVisitable:Ac});if(!Ei.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!Ei.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),Ei.forEach(n,(function(n,i){!0===(!(Ei.isUndefined(n)||null===n)&&a.call(t,n,Ei.isString(i)?i.trim():i,o,p))&&e(n,o?o.concat(i):[i])})),l.pop()}}(e),t}function Pc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Dc(e,t){this._pairs=[],e&&Lc(e,this,t)}const qc=Dc.prototype;function Nc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Mc(e,t,n){if(!t)return e;const o=n&&n.encode||Nc;Ei.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):Ei.isURLSearchParams(t)?t.toString():new Dc(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}qc.append=function(e,t){this._pairs.push([e,t])},qc.toString=function(e){const t=e?function(t){return e.call(this,t,Pc)}:Pc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Fc=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){Ei.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uc=d.URLSearchParams;const Hc="abcdefghijklmnopqrstuvwxyz",Wc="0123456789",Gc={DIGIT:Wc,ALPHA:Hc,ALPHA_DIGIT:Hc+Hc.toUpperCase()+Wc};var Vc={isNode:!0,classes:{URLSearchParams:Uc,FormData:Tc,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Gc,generateString:(e=16,t=Gc.ALPHA_DIGIT)=>{let n="";const{length:o}=t,a=new Uint32Array(e);h.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%o];return n},protocols:["http","https","file","data"]};const $c="undefined"!=typeof window&&"undefined"!=typeof document,Kc="object"==typeof navigator&&navigator||void 0,Qc=$c&&(!Kc||["ReactNative","NativeScript","NS"].indexOf(Kc.product)<0),Jc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Xc=$c&&window.location.href||"http://localhost";var Yc={...Object.freeze({__proto__:null,hasBrowserEnv:$c,hasStandardBrowserEnv:Qc,hasStandardBrowserWebWorkerEnv:Jc,navigator:Kc,origin:Xc}),...Vc};function Zc(e){function t(e,n,o,a){let i=e[a++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=a>=e.length;if(i=!i&&Ei.isArray(o)?o.length:i,s)return Ei.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!r;o[i]&&Ei.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],a)&&Ei.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let i;for(o=0;o<a;o++)i=n[o],t[i]=e[i];return t}(o[i])),!r}if(Ei.isFormData(e)&&Ei.isFunction(e.entries)){const n={};return Ei.forEachEntry(e,((e,o)=>{t(function(e){return Ei.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const eu={transitional:Bc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=Ei.isObject(e);a&&Ei.isHTMLForm(e)&&(e=new FormData(e));if(Ei.isFormData(e))return o?JSON.stringify(Zc(e)):e;if(Ei.isArrayBuffer(e)||Ei.isBuffer(e)||Ei.isStream(e)||Ei.isFile(e)||Ei.isBlob(e)||Ei.isReadableStream(e))return e;if(Ei.isArrayBufferView(e))return e.buffer;if(Ei.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Lc(e,new Yc.classes.URLSearchParams,{visitor:function(e,t,n,o){return Yc.isNode&&Ei.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Ei.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Lc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(Ei.isString(e))try{return(t||JSON.parse)(e),Ei.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||eu.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Ei.isResponse(e)||Ei.isReadableStream(e))return e;if(e&&Ei.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Ci.from(e,Ci.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:Yc.classes.FormData,Blob:Yc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ei.forEach(["delete","get","head","post","put","patch"],(e=>{eu.headers[e]={}}));var tu=eu;const nu=Ei.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 ou=Symbol("internals");function au(e){return e&&String(e).trim().toLowerCase()}function iu(e){return!1===e||null==e?e:Ei.isArray(e)?e.map(iu):String(e)}function ru(e,t,n,o,a){return Ei.isFunction(o)?o.call(this,t,n):(a&&(t=n),Ei.isString(t)?Ei.isString(o)?-1!==t.indexOf(o):Ei.isRegExp(o)?o.test(t):void 0:void 0)}class su{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=au(t);if(!a)throw new Error("header name must be a non-empty string");const i=Ei.findKey(o,a);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=iu(e))}const i=(e,t)=>Ei.forEach(e,((e,n)=>a(e,n,t)));if(Ei.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ei.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&nu[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(Ei.isObject(e)&&Ei.isIterable(e)){let n,o,a={};for(const t of e){if(!Ei.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?Ei.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=au(e)){const n=Ei.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 o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(Ei.isFunction(t))return t.call(this,e,n);if(Ei.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=au(e)){const n=Ei.findKey(this,e);return!(!n||void 0===this[n]||t&&!ru(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=au(e)){const a=Ei.findKey(n,e);!a||t&&!ru(0,n[a],a,t)||(delete n[a],o=!0)}}return Ei.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!ru(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return Ei.forEach(this,((o,a)=>{const i=Ei.findKey(n,a);if(i)return t[i]=iu(o),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();r!==a&&delete t[a],t[r]=iu(o),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ei.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Ei.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[ou]=this[ou]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=au(e);t[o]||(!function(e,t){const n=Ei.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return Ei.isArray(e)?e.forEach(o):o(e),this}}su.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ei.reduceDescriptors(su.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ei.freezeMethods(su);var cu=su;function uu(e,t){const n=this||tu,o=t||n,a=cu.from(o.headers);let i=o.data;return Ei.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function lu(e){return!(!e||!e.__CANCEL__)}function pu(e,t,n){Ci.call(this,null==e?"canceled":e,Ci.ERR_CANCELED,t,n),this.name="CanceledError"}function du(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Ci("Request failed with status code "+n.status,[Ci.ERR_BAD_REQUEST,Ci.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function mu(e,t,n){let o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}Ei.inherits(pu,Ci,{__CANCEL__:!0});var hu={},fu=d.parse,gu={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},yu=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function vu(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}hu.getProxyForUrl=function(e){var t="string"==typeof e?fu(e):e||{},n=t.protocol,o=t.host,a=t.port;if("string"!=typeof o||!o||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(vu("npm_config_no_proxy")||vu("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,i=o?parseInt(o[2]):0;return!(!i||i===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!yu.call(e,a)):e!==a)}))}(o=o.replace(/:\d*$/,""),a=parseInt(a)||gu[n]||0))return"";var i=vu("npm_config_"+n+"_proxy")||vu(n+"_proxy")||vu("npm_config_proxy")||vu("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var bu,ku,xu,wu,ju,_u={exports:{}},Eu={exports:{}},Cu={exports:{}};function Su(){if(ku)return bu;ku=1;var e=1e3,t=60*e,n=60*t,o=24*n,a=7*o,i=365.25*o;function r(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}return bu=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*a;case"days":case"day":case"d":return c*o;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(a){var i=Math.abs(a);if(i>=o)return r(a,i,o,"day");if(i>=n)return r(a,i,n,"hour");if(i>=t)return r(a,i,t,"minute");if(i>=e)return r(a,i,e,"second");return a+" ms"}(s):function(a){var i=Math.abs(a);if(i>=o)return Math.round(a/o)+"d";if(i>=n)return Math.round(a/n)+"h";if(i>=t)return Math.round(a/t)+"m";if(i>=e)return Math.round(a/e)+"s";return a+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},bu}function Ru(){if(wu)return xu;return wu=1,xu=function(e){function t(e){let o,a,i,r=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date),i=a-(o||a);n.diff=i,n.prev=o,n.curr=a,o=a,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,((o,a)=>{if("%%"===o)return"%";r++;const i=t.formatters[a];if("function"==typeof i){const t=e[r];o=i.call(n,t),e.splice(r,1),r--}return o})),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:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function o(e,t){let n=0,o=0,a=-1,i=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(a=o,i=n,o++):(n++,o++);else{if(-1===a)return!1;o=a+1,i++,n=i}for(;o<t.length&&"*"===t[o];)o++;return o===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(" ",",").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(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=Su(),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},xu}var Tu,Au,Ou,Iu,zu,Lu,Pu,Du={exports:{}};function qu(){return Au?Tu:(Au=1,Tu=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(n+e),a=t.indexOf("--");return-1!==o&&(-1===a||o<a)})}function Nu(){return zu||(zu=1,function(e,t){const n=g,o=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++)e.inspectOpts[n[o]]=t.inspectOpts[n[o]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:o,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),i=` ${a};1m${o} [0m`;n[0]=i+n[0].split("\n").join("\n"+i),n.push(a+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+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=o.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(Iu)return Ou;Iu=1;const e=y,t=g,n=qu(),{env:o}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===a)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===a)return 0;const r=a||0;if("dumb"===o.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 o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?a=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),Ou={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},Ou}();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 o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[n]=o,e}),{}),e.exports=Ru()(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(Du,Du.exports)),Du.exports}function Mu(){return Lu||(Lu=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Eu.exports=(ju||(ju=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 o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))})),t.splice(a,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")}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=Ru()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Cu,Cu.exports)),Cu.exports):Eu.exports=Nu()),Eu.exports}var Fu,Bu,Uu,Hu=d,Wu=Hu.URL,Gu=l,Vu=p,$u=s.Writable,Ku=f,Qu=function(){if(!Pu){try{Pu=Mu()("follow-redirects")}catch(e){}"function"!=typeof Pu&&(Pu=function(){})}Pu.apply(null,arguments)};Fu="undefined"!=typeof process,Bu="undefined"!=typeof window&&"undefined"!=typeof document,Uu=gl(Error.captureStackTrace),Fu||!Bu&&Uu||console.warn("The follow-redirects package should be excluded from browser builds.");var Ju=!1;try{Ku(new Wu(""))}catch(eo){Ju="ERR_INVALID_URL"===eo.code}var Xu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Yu=["abort","aborted","connect","error","socket","timeout"],Zu=Object.create(null);Yu.forEach((function(e){Zu[e]=function(t,n,o){this._redirectable.emit(e,t,n,o)}}));var el=ml("ERR_INVALID_URL","Invalid URL",TypeError),tl=ml("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),nl=ml("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",tl),ol=ml("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),al=ml("ERR_STREAM_WRITE_AFTER_END","write after end"),il=$u.prototype.destroy||cl;function rl(e,t){$u.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 tl?e:new tl({cause:e}))}},this._performRequest()}function sl(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var a=o+":",i=n[a]=e[o],r=t[o]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,o,i){var r;return r=e,Wu&&r instanceof Wu?e=pl(e):fl(e)?e=pl(ul(e)):(i=o,o=ll(e),e={protocol:a}),gl(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,fl(o.host)||fl(o.hostname)||(o.hostname="::1"),Ku.equal(o.protocol,a,"protocol mismatch"),Qu("options",o),new rl(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var o=r.request(e,t,n);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})})),t}function cl(){}function ul(e){var t;if(Ju)t=new Wu(e);else if(!fl((t=ll(Hu.parse(e))).protocol))throw new el({input:e});return t}function ll(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new el({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new el({input:e.href||e});return e}function pl(e,t){var n=t||{};for(var o of Xu)n[o]=e[o];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 dl(e,t){var n;for(var o in t)e.test(o)&&(n=t[o],delete t[o]);return null==n?void 0:String(n).trim()}function ml(e,t,n){function o(n){gl(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return o.prototype=new(n||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),o}function hl(e,t){for(var n of Yu)e.removeListener(n,Zu[n]);e.on("error",cl),e.destroy(t)}function fl(e){return"string"==typeof e||e instanceof String}function gl(e){return"function"==typeof e}rl.prototype=Object.create($u.prototype),rl.prototype.abort=function(){hl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},rl.prototype.destroy=function(e){return hl(this._currentRequest,e),il.call(this,e),this},rl.prototype.write=function(e,t,n){if(this._ending)throw new al;if(!fl(e)&&("object"!=typeof(o=e)||!("length"in o)))throw new TypeError("data should be a string, Buffer or Uint8Array");var o;gl(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 ol),this.abort()):n&&n()},rl.prototype.end=function(e,t,n){if(gl(e)?(n=e,e=t=null):gl(t)&&(n=t,t=null),e){var o=this,a=this._currentRequest;this.write(e,t,(function(){o._ended=!0,a.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},rl.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},rl.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},rl.prototype.setTimeout=function(e,t){var n=this;function o(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),i()}),e),o(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",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",o),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){rl.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(rl.prototype,e,{get:function(){return this._currentRequest[e]}})})),rl.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))}},rl.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 o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(o._redirectable=this,Yu))o.on(a,Zu[a]);if(this._currentUrl=/^\//.test(this._options.path)?Hu.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(o===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];o.finished||o.write(n.data,n.encoding,e)}else r._ended&&o.end()}()}},rl.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!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(hl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new nl;var a=this._options.beforeRedirect;a&&(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=[],dl(/^content-/i,this._options.headers));var r,s,c=dl(/^host$/i,this._options.headers),u=ul(this._currentUrl),l=c||u.host,p=/^\w+:/.test(o)?this._currentUrl:Hu.format(Object.assign(u,{host:l})),d=(r=o,s=p,Ju?new Wu(r,s):ul(Hu.resolve(s,r)));if(Qu("redirecting to",d.href),this._isRedirect=!0,pl(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Ku(fl(e)&&fl(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&dl(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),gl(a)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};a(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},_u.exports=sl({http:Gu,https:Vu}),_u.exports.wrap=sl;var yl=Ai(_u.exports);const vl="1.12.2";function bl(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const kl=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const xl=Symbol("internals");class wl extends s.Transform{constructor(e){super({readableHighWaterMark:(e=Ei.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!Ei.isUndefined(t[e])))).chunkSize});const t=this[xl]={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[xl];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const o=this[xl],a=o.maxRate,i=this.readableHighWaterMark,r=o.timeWindow,s=a/(1e3/r),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);o.bytesSeen+=n,o.bytes+=n,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(e)?process.nextTick(t):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(a){const e=Date.now();(!o.ts||(m=e-o.ts)>=r)&&(o.ts=e,l=s-o.bytes,o.bytes=l<0?-l:0,m=0),l=s-o.bytes}if(a){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,o){if(t)return n(t);o?l(o,e):n(null)}))}}var jl=wl;const{asyncIterator:_l}=Symbol;var El=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[_l]?yield*e[_l]():yield e};const Cl=Yc.ALPHABET.ALPHA_DIGIT+"-_",Sl="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Rl="\r\n",Tl=Sl.encode(Rl);class Al{constructor(e,t){const{escapeName:n}=this.constructor,o=Ei.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!o&&t.name?`; filename="${n(t.name)}"`:""}${Rl}`;o?t=Sl.encode(String(t).replace(/\r?\n|\r\n?/g,Rl)):a+=`Content-Type: ${t.type||"application/octet-stream"}${Rl}`,this.headers=Sl.encode(a+Rl),this.contentLength=o?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;Ei.isTypedArray(e)?yield e:yield*El(e),yield Tl}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}var Ol=(e,t,n)=>{const{tag:o="form-data-boundary",size:a=25,boundary:i=o+"-"+Yc.generateString(a,Cl)}=n||{};if(!Ei.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=Sl.encode("--"+i+Rl),s=Sl.encode("--"+i+"--"+Rl);let u=s.byteLength;const l=Array.from(e.entries()).map((([e,t])=>{const n=new Al(e,t);return u+=n.size,n}));u+=r.byteLength*l.length,u=Ei.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 Il 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 zl=Il;var Ll=(e,t)=>Ei.isAsyncFn(e)?function(...n){const o=n.pop();e.apply(this,n).then((e=>{try{t?o(null,...t(e)):o(null,e)}catch(e){o(e)}}),o)}:e;const Pl=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[r];a||(a=c),n[i]=s,o[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-a<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,a=0,i=1e3/t;const r=(t,i=Date.now())=>{a=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?r(e,t):(n=e,o||(o=setTimeout((()=>{o=null,r(n)}),i-s)))},()=>n&&r(n)]}((n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-o,c=a(s);o=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)},Dl=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},ql=e=>(...t)=>Ei.asap((()=>e(...t)));const Nl={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Ml={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},Fl=Ei.isFunction(v.createBrotliDecompress),{http:Bl,https:Ul}=yl,Hl=/https:?/,Wl=Yc.protocols.map((e=>e+":")),Gl=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Vl(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function $l(e,t,n){let o=t;if(!o&&!1!==o){const e=hu.getProxyForUrl(n);e&&(o=new URL(e))}if(o){if(o.username&&(o.auth=(o.username||"")+":"+(o.password||"")),o.auth){(o.auth.username||o.auth.password)&&(o.auth=(o.auth.username||"")+":"+(o.auth.password||""));const t=Buffer.from(o.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=o.hostname||o.host;e.hostname=t,e.host=t,e.port=o.port,e.path=n,o.protocol&&(e.protocol=o.protocol.includes(":")?o.protocol:`${o.protocol}:`)}e.beforeRedirects.proxy=function(e){$l(e,t,e.href)}}const Kl="undefined"!=typeof process&&"process"===Ei.kindOf(process),Ql=(e,t)=>(({address:e,family:t})=>{if(!Ei.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(Ei.isObject(e)?e:{address:e,family:t});var Jl=Kl&&function(e){return t=async function(t,n,o){let{data:a,lookup:i,family:c}=e;const{responseType:u,responseEncoding:d}=e,m=e.method.toUpperCase();let h,f,g=!1;if(i){const e=Ll(i,(e=>Ei.isArray(e)?e:[e]));i=(t,n,o)=>{e(t,n,((e,t,a)=>{if(e)return o(e);const i=Ei.isArray(t)?t.map((e=>Ql(e))):[Ql(t,a)];n.all?o(e,i):o(e,i[0].address,i[0].family)}))}}const y=new b,k=()=>{e.cancelToken&&e.cancelToken.unsubscribe(x),e.signal&&e.signal.removeEventListener("abort",x),y.removeAllListeners()};function x(t){y.emit("abort",!t||t.type?new pu(null,e,f):t)}o(((e,t)=>{h=!0,t&&(g=!0,k())})),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(x),e.signal&&(e.signal.aborted?x():e.signal.addEventListener("abort",x)));const w=mu(e.baseURL,e.url,e.allowAbsoluteUrls),j=new URL(w,Yc.hasBrowserEnv?Yc.origin:void 0),_=j.protocol||Wl[0];if("data:"===_){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),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),a=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));a>=0&&(61===o.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===o.charCodeAt(a)||i(a))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(o,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return n(new Ci("maxContentLength size of "+e.maxContentLength+" exceeded",Ci.ERR_BAD_RESPONSE,e))}let o;if("GET"!==m)return du(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{o=function(e,t,n){const o=n&&n.Blob||Yc.classes.Blob,a=bl(e);if(void 0===t&&o&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=kl.exec(e);if(!n)throw new Ci("Invalid URL",Ci.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!o)throw new Ci("Blob is not supported",Ci.ERR_NOT_SUPPORT);return new o([c],{type:i})}return c}throw new Ci("Unsupported protocol "+a,Ci.ERR_NOT_SUPPORT)}(e.url,"blob"===u,{Blob:e.env&&e.env.Blob})}catch(t){throw Ci.from(t,Ci.ERR_BAD_REQUEST,e)}return"text"===u?(o=o.toString(d),d&&"utf8"!==d||(o=Ei.stripBOM(o))):"stream"===u&&(o=s.Readable.from(o)),du(t,n,{data:o,status:200,statusText:"OK",headers:new cu,config:e})}if(-1===Wl.indexOf(_))return n(new Ci("Unsupported protocol "+_,Ci.ERR_BAD_REQUEST,e));const E=cu.from(e.headers).normalize();E.set("User-Agent","axios/"+vl,!1);const{onUploadProgress:C,onDownloadProgress:S}=e,R=e.maxRate;let T,A;if(Ei.isSpecCompliantForm(a)){const e=E.getContentType(/boundary=([-_\w\d]{10,70})/i);a=Ol(a,(e=>{E.set(e)}),{tag:`axios-${vl}-boundary`,boundary:e&&e[1]||void 0})}else if(Ei.isFormData(a)&&Ei.isFunction(a.getHeaders)){if(E.set(a.getHeaders()),!E.hasContentLength())try{const e=await r.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&E.setContentLength(e)}catch(e){}}else if(Ei.isBlob(a)||Ei.isFile(a))a.size&&E.setContentType(a.type||"application/octet-stream"),E.setContentLength(a.size||0),a=s.Readable.from(El(a));else if(a&&!Ei.isStream(a)){if(Buffer.isBuffer(a));else if(Ei.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Ei.isString(a))return n(new Ci("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Ci.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(E.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return n(new Ci("Request body larger than maxBodyLength limit",Ci.ERR_BAD_REQUEST,e))}const O=Ei.toFiniteNumber(E.getContentLength());let I,z;Ei.isArray(R)?(T=R[0],A=R[1]):T=A=R,a&&(C||T)&&(Ei.isStream(a)||(a=s.Readable.from(a,{objectMode:!1})),a=s.pipeline([a,new jl({maxRate:Ei.toFiniteNumber(T)})],Ei.noop),C&&a.on("progress",Gl(a,Dl(O,Pl(ql(C),!1,3))))),e.auth&&(I=(e.auth.username||"")+":"+(e.auth.password||"")),!I&&j.username&&(I=j.username+":"+j.password),I&&E.delete("authorization");try{z=Mc(j.pathname+j.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const o=new Error(t.message);return o.config=e,o.url=e.url,o.exists=!0,n(o)}E.set("Accept-Encoding","gzip, compress, deflate"+(Fl?", br":""),!1);const L={path:z,method:m,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:I,protocol:_,family:c,beforeRedirect:Vl,beforeRedirects:{}};let P;!Ei.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=j.hostname.startsWith("[")?j.hostname.slice(1,-1):j.hostname,L.port=j.port,$l(L,e.proxy,_+"//"+j.hostname+(j.port?":"+j.port:"")+L.path));const D=Hl.test(L.protocol);if(L.agent=D?e.httpsAgent:e.httpAgent,e.transport?P=e.transport:0===e.maxRedirects?P=D?p:l:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),P=D?Ul:Bl),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=P.request(L,(function(o){if(f.destroyed)return;const a=[o],i=+o.headers["content-length"];if(S||A){const e=new jl({maxRate:Ei.toFiniteNumber(A)});S&&e.on("progress",Gl(e,Dl(i,Pl(ql(S),!0,3)))),a.push(e)}let r=o;const c=o.req||f;if(!1!==e.decompress&&o.headers["content-encoding"])switch("HEAD"!==m&&204!==o.statusCode||delete o.headers["content-encoding"],(o.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(v.createUnzip(Nl)),delete o.headers["content-encoding"];break;case"deflate":a.push(new zl),a.push(v.createUnzip(Nl)),delete o.headers["content-encoding"];break;case"br":Fl&&(a.push(v.createBrotliDecompress(Ml)),delete o.headers["content-encoding"])}r=a.length>1?s.pipeline(a,Ei.noop):a[0];const l=s.finished(r,(()=>{l(),k()})),p={status:o.statusCode,statusText:o.statusMessage,headers:new cu(o.headers),config:e,request:c};if("stream"===u)p.data=r,du(t,n,p);else{const o=[];let a=0;r.on("data",(function(t){o.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(g=!0,r.destroy(),n(new Ci("maxContentLength size of "+e.maxContentLength+" exceeded",Ci.ERR_BAD_RESPONSE,e,c)))})),r.on("aborted",(function(){if(g)return;const t=new Ci("stream has been aborted",Ci.ERR_BAD_RESPONSE,e,c);r.destroy(t),n(t)})),r.on("error",(function(t){f.destroyed||n(Ci.from(t,null,e,c))})),r.on("end",(function(){try{let e=1===o.length?o[0]:Buffer.concat(o);"arraybuffer"!==u&&(e=e.toString(d),d&&"utf8"!==d||(e=Ei.stripBOM(e))),p.data=e}catch(t){return n(Ci.from(t,null,e,p.request,p))}du(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(Ci.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 Ci("error trying to parse `config.timeout` to int",Ci.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 o=e.transitional||Bc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ci(t,o.clarifyTimeoutError?Ci.ETIMEDOUT:Ci.ECONNABORTED,e,f)),x()}))}if(Ei.isStream(a)){let t=!1,n=!1;a.on("end",(()=>{t=!0})),a.once("error",(e=>{n=!0,f.destroy(e)})),a.on("close",(()=>{t||n||x(new pu("Request stream has been aborted",e,f))})),a.pipe(f)}else f.end(a)},new Promise(((e,n)=>{let o,a;const i=(e,t)=>{a||(a=!0,o&&o(e,t))},r=e=>{i(e,!0),n(e)};t((t=>{i(t),e(t)}),r,(e=>o=e)).catch(r)}));var t},Xl=Yc.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yc.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yc.origin),Yc.navigator&&/(msie|trident)/i.test(Yc.navigator.userAgent)):()=>!0,Yl=Yc.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const r=[e+"="+encodeURIComponent(t)];Ei.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),Ei.isString(o)&&r.push("path="+o),Ei.isString(a)&&r.push("domain="+a),!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 Zl=e=>e instanceof cu?{...e}:e;function ep(e,t){t=t||{};const n={};function o(e,t,n,o){return Ei.isPlainObject(e)&&Ei.isPlainObject(t)?Ei.merge.call({caseless:o},e,t):Ei.isPlainObject(t)?Ei.merge({},t):Ei.isArray(t)?t.slice():t}function a(e,t,n,a){return Ei.isUndefined(t)?Ei.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function i(e,t){if(!Ei.isUndefined(t))return o(void 0,t)}function r(e,t){return Ei.isUndefined(t)?Ei.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,i){return i in t?o(n,a):i in e?o(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)=>a(Zl(e),Zl(t),0,!0)};return Ei.forEach(Object.keys({...e,...t}),(function(o){const i=c[o]||a,r=i(e[o],t[o],o);Ei.isUndefined(r)&&i!==s||(n[o]=r)})),n}var tp=e=>{const t=ep({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=cu.from(r),t.url=Mc(mu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ei.isFormData(n))if(Yc.hasStandardBrowserEnv||Yc.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(Ei.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(Yc.hasStandardBrowserEnv&&(o&&Ei.isFunction(o)&&(o=o(t)),o||!1!==o&&Xl(t.url))){const e=a&&i&&Yl.read(i);e&&r.set(a,e)}return t};var np="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=tp(e);let a=o.data;const i=cu.from(o.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=o;function h(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(r),o.signal&&o.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=cu.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());du((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:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.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 Ci("Request aborted",Ci.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new Ci(t&&t.message?t.message:"Network Error",Ci.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||Bc;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Ci(t,a.clarifyTimeoutError?Ci.ETIMEDOUT:Ci.ECONNABORTED,e,f)),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&Ei.forEach(i.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),Ei.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),m&&([c,l]=Pl(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=Pl(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(r=t=>{f&&(n(!t||t.type?new pu(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(r),o.signal&&(o.signal.aborted?r():o.signal.addEventListener("abort",r)));const y=bl(o.url);y&&-1===Yc.protocols.indexOf(y)?n(new Ci("Unsupported protocol "+y+":",Ci.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var op=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Ci?t:new pu(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,a(new Ci(`timeout ${t} of ms exceeded`,Ci.ETIMEDOUT))}),t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>Ei.asap(r),s}};const ap=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},ip=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()}},rp=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of ip(e))yield*ap(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let i=o.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:sp}=Ei,cp=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ei.global),{ReadableStream:up,TextEncoder:lp}=Ei.global,pp=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dp=e=>{e=Ei.merge.call({skipUndefined:!0},cp,e);const{fetch:t,Request:n,Response:o}=e,a=t?sp(t):"function"==typeof fetch,i=sp(n),r=sp(o);if(!a)return!1;const s=a&&sp(up),c=a&&("function"==typeof lp?(e=>t=>e.encode(t))(new lp):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&pp((()=>{let e=!1;const t=new n(Yc.origin,{body:new up,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=r&&s&&pp((()=>Ei.isReadableStream(new o("").body))),p={stream:l&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new Ci(`Response type '${e}' is not supported`,Ci.ERR_NOT_SUPPORT,n)})}));const d=async(e,t)=>{const o=Ei.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(Ei.isBlob(e))return e.size;if(Ei.isSpecCompliantForm(e)){const t=new n(Yc.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ei.isArrayBufferView(e)||Ei.isArrayBuffer(e)?e.byteLength:(Ei.isURLSearchParams(e)&&(e+=""),Ei.isString(e)?(await c(e)).byteLength:void 0)})(t):o};return async e=>{let{url:a,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=tp(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let w=op([c,m&&m.toAbortSignal()],h),j=null;const _=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(g&&u&&"get"!==r&&"head"!==r&&0!==(E=await d(v,s))){let e,t=new n(a,{method:"POST",body:s,duplex:"half"});if(Ei.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Dl(E,Pl(ql(g)));s=rp(t.body,65536,e,n)}}Ei.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...k,signal:w,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};j=i&&new n(a,c);let m=await(i?x(j,k):x(a,c));const h=l&&("stream"===y||"response"===y);if(l&&(f||h&&_)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=m[t]}));const t=Ei.toFiniteNumber(m.headers.get("content-length")),[n,a]=f&&Dl(t,Pl(ql(f),!0))||[];m=new o(rp(m.body,65536,n,(()=>{a&&a(),_&&_()})),e)}y=y||"text";let C=await p[Ei.findKey(p,y)||"text"](m,e);return!h&&_&&_(),await new Promise(((t,n)=>{du(t,n,{data:C,headers:cu.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:j})}))}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Ci("Network Error",Ci.ERR_NETWORK,e,j),{cause:t.cause||t});throw Ci.from(t,t&&t.code,e,j)}}},mp=new Map,hp=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:a}=t,i=[o,a,n];let r,s,c=i.length,u=mp;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:dp(t)),u=s;return s};hp();const fp={http:Jl,xhr:np,fetch:{get:hp}};Ei.forEach(fp,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const gp=e=>`- ${e}`,yp=e=>Ei.isFunction(e)||null===e||!1===e;var vp=(e,t)=>{e=Ei.isArray(e)?e:[e];const{length:n}=e;let o,a;const i={};for(let r=0;r<n;r++){let n;if(o=e[r],a=o,!yp(o)&&(a=fp[(n=String(o)).toLowerCase()],void 0===a))throw new Ci(`Unknown adapter '${n}'`);if(a&&(Ei.isFunction(a)||(a=a.get(t))))break;i[n||"#"+r]=a}if(!a){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 Ci("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(gp).join("\n"):" "+gp(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pu(null,e)}function kp(e){bp(e),e.headers=cu.from(e.headers),e.data=uu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vp(e.adapter||tu.adapter,e)(e).then((function(t){return bp(e),t.data=uu.call(e,e.transformResponse,t),t.headers=cu.from(t.headers),t}),(function(t){return lu(t)||(bp(e),t&&t.response&&(t.response.data=uu.call(e,e.transformResponse,t.response),t.response.headers=cu.from(t.response.headers))),Promise.reject(t)}))}const xp={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{xp[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const wp={};xp.transitional=function(e,t,n){function o(e,t){return"[Axios v"+vl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new Ci(o(a," has been removed"+(t?" in "+t:"")),Ci.ERR_DEPRECATED);return t&&!wp[a]&&(wp[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},xp.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var jp={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ci("options must be an object",Ci.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new Ci("option "+i+" must be "+n,Ci.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ci("Unknown option "+i,Ci.ERR_BAD_OPTION)}},validators:xp};const _p=jp.validators;let Ep=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Fc,response:new Fc}}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=ep(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&jp.assertOptions(n,{silentJSONParsing:_p.transitional(_p.boolean),forcedJSONParsing:_p.transitional(_p.boolean),clarifyTimeoutError:_p.transitional(_p.boolean)},!1),null!=o&&(Ei.isFunction(o)?t.paramsSerializer={serialize:o}:jp.assertOptions(o,{encode:_p.function,serialize:_p.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),jp.assertOptions(t,{baseUrl:_p.spelling("baseURL"),withXsrfToken:_p.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&Ei.merge(a.common,a[t.method]);a&&Ei.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=cu.concat(i,a);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=[kp.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=kp.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 Mc(mu((e=ep(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Ei.forEach(["delete","get","head","options"],(function(e){Ep.prototype[e]=function(t,n){return this.request(ep(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ei.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(ep(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Ep.prototype[e]=t(),Ep.prototype[e+"Form"]=t(!0)}));var Cp=Ep;class Sp{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 o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new pu(e,o,a),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 Sp((function(t){e=t})),cancel:e}}}var Rp=Sp;const Tp={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(Tp).forEach((([e,t])=>{Tp[t]=e}));var Ap=Tp;const Op=function e(t){const n=new Cp(t),o=Da(Cp.prototype.request,n);return Ei.extend(o,Cp.prototype,n,{allOwnKeys:!0}),Ei.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ep(t,n))},o}(tu);Op.Axios=Cp,Op.CanceledError=pu,Op.CancelToken=Rp,Op.isCancel=lu,Op.VERSION=vl,Op.toFormData=Lc,Op.AxiosError=Ci,Op.Cancel=Op.CanceledError,Op.all=function(e){return Promise.all(e)},Op.spread=function(e){return function(t){return e.apply(null,t)}},Op.isAxiosError=function(e){return Ei.isObject(e)&&!0===e.isAxiosError},Op.mergeConfig=ep,Op.AxiosHeaders=cu,Op.formToJSON=e=>Zc(Ei.isHTMLForm(e)?new FormData(e):e),Op.getAdapter=vp,Op.HttpStatusCode=Ap,Op.default=Op;var Ip=Op,zp=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];Array.isArray(o)?o.forEach((function(e){return t.append(n,e)})):null!=o&&t.append(n,String(o))})),t.toString()},Lp=function(e){function t(t){var n,o,i,r,s=this;return(s=e.call(this,t)||this).token="",null===(o=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===o||o.request.use((function(e){return a(a({},e),{defaults:{headers:a(a({},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 a({},e)}),(function(e){return Promise.reject(e)})),s}return o(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=Ip.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=Ip.create(e)})),Pp=r.inspect,Dp="function"==typeof Map&&Map.prototype,qp=Object.getOwnPropertyDescriptor&&Dp?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Np=Dp&&qp&&"function"==typeof qp.get?qp.get:null,Mp=Dp&&Map.prototype.forEach,Fp="function"==typeof Set&&Set.prototype,Bp=Object.getOwnPropertyDescriptor&&Fp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Up=Fp&&Bp&&"function"==typeof Bp.get?Bp.get:null,Hp=Fp&&Set.prototype.forEach,Wp="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Gp="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Vp="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,$p=Boolean.prototype.valueOf,Kp=Object.prototype.toString,Qp=Function.prototype.toString,Jp=String.prototype.match,Xp=String.prototype.slice,Yp=String.prototype.replace,Zp=String.prototype.toUpperCase,ed=String.prototype.toLowerCase,td=RegExp.prototype.test,nd=Array.prototype.concat,od=Array.prototype.join,ad=Array.prototype.slice,id=Math.floor,rd="function"==typeof BigInt?BigInt.prototype.valueOf:null,sd=Object.getOwnPropertySymbols,cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ud="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ld="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ud||"symbol")?Symbol.toStringTag:null,pd=Object.prototype.propertyIsEnumerable,dd=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function md(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||td.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-id(-e):id(e);if(o!==e){var a=String(o),i=Xp.call(t,a.length+1);return Yp.call(a,n,"$&_")+"."+Yp.call(Yp.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Yp.call(t,n,"$&_")}var hd=Pp,fd=hd.custom,gd=Ed(fd)?fd:null,yd={__proto__:null,double:'"',single:"'"},vd={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},bd=function e(t,n,o,a){var i=n||{};if(Sd(i,"quoteStyle")&&!Sd(yd,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Sd(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=!Sd(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Sd(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(Sd(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 Ad(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?md(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?md(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return jd(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=od.call(Array(e.indent+1)," ")}return{base:n,prev:od.call(Array(t+1),n)}}(i,o);if(void 0===a)a=[];else if(Td(a,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(a=ad.call(a)).push(n),r){var s={depth:i.depth};return Sd(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,o+1,a)}return e(t,i,o+1,a)}if("function"==typeof t&&!_d(t)){var m=function(e){if(e.name)return e.name;var t=Jp.call(Qp.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Dd(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+od.call(h,", ")+" }":"")}if(Ed(t)){var f=ud?Yp.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):cd.call(t);return"object"!=typeof t||ud?f:Id(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="<"+ed.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+kd(xd(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+ed.call(String(t.nodeName))+">"}if(jd(t)){if(0===t.length)return"[]";var b=Dd(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Td(e[t],"\n")>=0)return!1;return!0}(b)?"["+Pd(b,p)+"]":"[ "+od.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Rd(e)&&wd(e)}(t)){var k=Dd(t,d);return"cause"in Error.prototype||!("cause"in t)||pd.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+od.call(k,", ")+" }":"{ ["+String(t)+"] "+od.call(nd.call("[cause]: "+d(t.cause),k),", ")+" }"}if("object"==typeof t&&r){if(gd&&"function"==typeof t[gd]&&hd)return hd(t,{depth:l-o});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Np||!e||"object"!=typeof e)return!1;try{Np.call(e);try{Up.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return Mp&&Mp.call(t,(function(e,n){x.push(d(n,t,!0)+" => "+d(e,t))})),Ld("Map",Np.call(t),x,p)}if(function(e){if(!Up||!e||"object"!=typeof e)return!1;try{Up.call(e);try{Np.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Hp&&Hp.call(t,(function(e){w.push(d(e,t))})),Ld("Set",Up.call(t),w,p)}if(function(e){if(!Wp||!e||"object"!=typeof e)return!1;try{Wp.call(e,Wp);try{Gp.call(e,Gp)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return zd("WeakMap");if(function(e){if(!Gp||!e||"object"!=typeof e)return!1;try{Gp.call(e,Gp);try{Wp.call(e,Wp)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return zd("WeakSet");if(function(e){if(!Vp||!e||"object"!=typeof e)return!1;try{return Vp.call(e),!0}catch(e){}return!1}(t))return zd("WeakRef");if(function(e){return"[object Number]"===Rd(e)&&wd(e)}(t))return Id(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!rd)return!1;try{return rd.call(e),!0}catch(e){}return!1}(t))return Id(d(rd.call(t)));if(function(e){return"[object Boolean]"===Rd(e)&&wd(e)}(t))return Id($p.call(t));if(function(e){return"[object String]"===Rd(e)&&wd(e)}(t))return Id(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ti&&t===Ti)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Rd(e)&&wd(e)}(t)&&!_d(t)){var j=Dd(t,d),_=dd?dd(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",C=!_&&ld&&Object(t)===t&&ld in t?Xp.call(Rd(t),8,-1):E?"Object":"",S=(_||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||E?"["+od.call(nd.call([],C||[],E||[]),": ")+"] ":"");return 0===j.length?S+"{}":p?S+"{"+Pd(j,p)+"}":S+"{ "+od.call(j,", ")+" }"}return String(t)};function kd(e,t,n){var o=n.quoteStyle||t,a=yd[o];return a+e+a}function xd(e){return Yp.call(String(e),/"/g,""")}function wd(e){return!ld||!("object"==typeof e&&(ld in e||void 0!==e[ld]))}function jd(e){return"[object Array]"===Rd(e)&&wd(e)}function _d(e){return"[object RegExp]"===Rd(e)&&wd(e)}function Ed(e){if(ud)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!cd)return!1;try{return cd.call(e),!0}catch(e){}return!1}var Cd=Object.prototype.hasOwnProperty||function(e){return e in this};function Sd(e,t){return Cd.call(e,t)}function Rd(e){return Kp.call(e)}function Td(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Ad(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Ad(Xp.call(e,0,t.maxStringLength),t)+o}var a=vd[t.quoteStyle||"single"];return a.lastIndex=0,kd(Yp.call(Yp.call(e,a,"\\$1"),/[\x00-\x1f]/g,Od),"single",t)}function Od(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":"")+Zp.call(t.toString(16))}function Id(e){return"Object("+e+")"}function zd(e){return e+" { ? }"}function Ld(e,t,n,o){return e+" ("+t+") {"+(o?Pd(n,o):od.call(n,", "))+"}"}function Pd(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+od.call(e,","+n)+"\n"+t.prev}function Dd(e,t){var n=jd(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=Sd(e,a)?t(e[a],e):""}var i,r="function"==typeof sd?sd(e):[];if(ud){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)Sd(e,c)&&(n&&String(Number(c))===c&&c<e.length||ud&&i["$"+c]instanceof Symbol||(td.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof sd)for(var u=0;u<r.length;u++)pd.call(e,r[u])&&o.push("["+t(r[u])+"]: "+t(e[r[u]],e));return o}var qd,Nd,Md,Fd,Bd,Ud,Hd,Wd,Gd,Vd,$d,Kd,Qd=bd,Jd=yr,Xd=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},Yd=cc,Zd=ds,em=Zd([Yd("%String.prototype.indexOf%")]),tm=function(e,t){var n=Yd(e,!!t);return"function"==typeof n&&em(e,".prototype.")>-1?Zd([n]):n},nm=tm,om=bd,am=yr,im=cc("%Map%",!0),rm=nm("Map.prototype.get",!0),sm=nm("Map.prototype.set",!0),cm=nm("Map.prototype.has",!0),um=nm("Map.prototype.delete",!0),lm=nm("Map.prototype.size",!0),pm=!!im&&function(){var e,t={assert:function(e){if(!t.has(e))throw new am("Side channel does not contain "+om(e))},delete:function(t){if(e){var n=um(e,t);return 0===lm(e)&&(e=void 0),n}return!1},get:function(t){if(e)return rm(e,t)},has:function(t){return!!e&&cm(e,t)},set:function(t,n){e||(e=new im),sm(e,t,n)}};return t},dm=tm,mm=bd,hm=pm,fm=yr,gm=cc("%WeakMap%",!0),ym=dm("WeakMap.prototype.get",!0),vm=dm("WeakMap.prototype.set",!0),bm=dm("WeakMap.prototype.has",!0),km=dm("WeakMap.prototype.delete",!0),xm=yr,wm=bd,jm=function(){var e,t={assert:function(e){if(!t.has(e))throw new Jd("Side channel does not contain "+Qd(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Xd(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Xd(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Xd(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Xd(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},_m=(gm?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new fm("Side channel does not contain "+mm(e))},delete:function(n){if(gm&&n&&("object"==typeof n||"function"==typeof n)){if(e)return km(e,n)}else if(hm&&t)return t.delete(n);return!1},get:function(n){return gm&&n&&("object"==typeof n||"function"==typeof n)&&e?ym(e,n):t&&t.get(n)},has:function(n){return gm&&n&&("object"==typeof n||"function"==typeof n)&&e?bm(e,n):!!t&&t.has(n)},set:function(n,o){gm&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new gm),vm(e,n,o)):hm&&(t||(t=hm()),t.set(n,o))}};return n}:hm)||pm||jm,Em=String.prototype.replace,Cm=/%20/g,Sm="RFC3986",Rm={default:Sm,formatters:{RFC1738:function(e){return Em.call(e,Cm,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Sm},Tm=Rm,Am=Object.prototype.hasOwnProperty,Om=Array.isArray,Im=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),zm=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Lm=1024,Pm={arrayToObject:zm,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=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.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(Om(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){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+=Lm){for(var c=i.length>=Lm?i.slice(s,s+Lm):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||a===Tm.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Im[p]:p<2048?u[u.length]=Im[192|p>>6]+Im[128|63&p]:p<55296||p>=57344?u[u.length]=Im[224|p>>12]+Im[128|p>>6&63]+Im[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Im[240|p>>18]+Im[128|p>>12&63]+Im[128|p>>6&63]+Im[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(Om(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Om(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Am.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Om(t)&&!Om(n)&&(a=zm(t,o)),Om(t)&&Om(n)?(n.forEach((function(n,a){if(Am.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return Am.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),a)}},Dm=function(){var e,t={assert:function(e){if(!t.has(e))throw new xm("Side channel does not contain "+wm(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=_m()),e.set(t,n)}};return t},qm=Pm,Nm=Rm,Mm=Object.prototype.hasOwnProperty,Fm={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Bm=Array.isArray,Um=Array.prototype.push,Hm=function(e,t){Um.apply(e,Bm(t)?t:[t])},Wm=Date.prototype.toISOString,Gm=Nm.default,Vm={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:qm.encode,encodeValuesOnly:!1,format:Gm,formatter:Nm.formatters[Gm],indices:!1,serializeDate:function(e){return Wm.call(e)},skipNulls:!1,strictNullHandling:!1},$m={},Km=function e(t,n,o,a,i,r,s,c,u,l,p,d,m,h,f,g,y,v){for(var b,k=t,x=v,w=0,j=!1;void 0!==(x=x.get($m))&&!j;){var _=x.get(t);if(w+=1,void 0!==_){if(_===w)throw new RangeError("Cyclic object value");j=!0}void 0===x.get($m)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=m(k):"comma"===o&&Bm(k)&&(k=qm.maybeMap(k,(function(e){return e instanceof Date?m(e):e}))),null===k){if(r)return u&&!g?u(n,Vm.encoder,y,"key",h):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||qm.isBuffer(k))return u?[f(g?n:u(n,Vm.encoder,y,"key",h))+"="+f(u(k,Vm.encoder,y,"value",h))]:[f(n)+"="+f(String(k))];var E,C=[];if(void 0===k)return C;if("comma"===o&&Bm(k))g&&u&&(k=qm.maybeMap(k,u)),E=[{value:k.length>0?k.join(",")||null:void 0}];else if(Bm(l))E=l;else{var S=Object.keys(k);E=p?S.sort(p):S}var R=c?n.replace(/\./g,"%2E"):n,T=a&&Bm(k)&&1===k.length?R+"[]":R;if(i&&Bm(k)&&0===k.length)return T+"[]";for(var A=0;A<E.length;++A){var O=E[A],I="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==I){var z=d&&c?O.replace(/\./g,"%2E"):O,L=Bm(k)?"function"==typeof o?o(T,z):T:T+(d?"."+z:"["+z+"]");v.set(t,w);var P=Dm();P.set($m,v),Hm(C,e(I,L,o,a,i,r,s,c,"comma"===o&&g&&Bm(k)?null:u,l,p,d,m,h,f,g,y,P))}}return C},Qm=Pm,Jm=Object.prototype.hasOwnProperty,Xm=Array.isArray,Ym={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Qm.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Zm=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},eh=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},th=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=r?a.slice(0,r.index):a,c=[];if(s){if(!n.plainObjects&&Jm.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&Jm.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("["+a.slice(r.index)+"]")}return function(e,t,n,o){for(var a=o?t:eh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);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]=a:"__proto__"!==u&&(r[u]=a):r={0:a}}a=r}return a}(c,t,n,o)}},nh=function(e,t){var n,o=e,a=function(e){if(!e)return Vm;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||Vm.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=Nm.default;if(void 0!==e.format){if(!Mm.call(Nm.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=Nm.formatters[n],i=Vm.filter;if(("function"==typeof e.filter||Bm(e.filter))&&(i=e.filter),o=e.arrayFormat in Fm?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Vm.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||Vm.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Vm.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Vm.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Vm.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Vm.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Vm.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Vm.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Vm.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Vm.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Vm.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Vm.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Vm.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):Bm(a.filter)&&(n=a.filter);var i=[];if("object"!=typeof o||null===o)return"";var r=Fm[a.arrayFormat],s="comma"===r&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var c=Dm(),u=0;u<n.length;++u){var l=n[u];a.skipNulls&&null===o[l]||Hm(i,Km(o[l],l,r,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,c))}var p=i.join(a.delimiter),d=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},oh=function(e,t){var n=function(e){if(!e)return Ym;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?Ym.charset:e.charset,n=void 0===e.duplicates?Ym.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||Ym.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Ym.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ym.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Ym.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ym.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ym.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ym.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Ym.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Ym.decoder,delimiter:"string"==typeof e.delimiter||Qm.isRegExp(e.delimiter)?e.delimiter:Ym.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ym.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ym.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ym.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ym.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Ym.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ym.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<r.length;++a)0===r[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[a]?c="utf-8":"utf8=%26%2310003%3B"===r[a]&&(c="iso-8859-1"),s=a,a=r.length);for(a=0;a<r.length;++a)if(a!==s){var u,l,p=r[a],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Ym.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Ym.decoder,c,"key"),l=Qm.maybeMap(eh(p.slice(m+1),t),(function(e){return t.decoder(e,Ym.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Zm(l)),p.indexOf("[]=")>-1&&(l=Xm(l)?[l]:l);var h=Jm.call(n,u);h&&"combine"===t.duplicates?n[u]=Qm.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},i=Object.keys(o),r=0;r<i.length;++r){var s=i[r],c=th(s,o[s],n,"string"==typeof e);a=Qm.merge(a,c,n)}return!0===n.allowSparse?a:Qm.compact(a)},ah={formats:Rm,parse:oh,stringify:nh},ih={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 ah.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"}(qd||(qd={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Nd||(Nd={})),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"}(Md||(Md={})),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"}(Fd||(Fd={})),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"}(Bd||(Bd={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Ud||(Ud={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Hd||(Hd={})),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"}(Wd||(Wd={})),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={}))}(Gd||(Gd={})),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"}(Vd||(Vd={})),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"}($d||($d={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Kd||(Kd={}));var rh=["PAUSED","ACTIVE"],sh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},ch="DELETED",uh={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},lh=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},ph=[{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"}],dh=[{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"}],mh=[{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"}],hh=[{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:""}}],fh=[{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"}],gh={docs_url:"https://docs.y.uno/reference/api-reference-overview"},yh={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}]},vh=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const bh=[];for(let e=0;e<256;++e)bh.push((e+256).toString(16).slice(1));let kh;const xh=new Uint8Array(16);var wh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jh(e,t,n){if(wh.randomUUID&&!t&&!e)return wh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!kh){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");kh=crypto.getRandomValues.bind(crypto)}return kh(xh)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[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]=o[e];return t}return function(e,t=0){return(bh[e[t+0]]+bh[e[t+1]]+bh[e[t+2]]+bh[e[t+3]]+"-"+bh[e[t+4]]+bh[e[t+5]]+"-"+bh[e[t+6]]+bh[e[t+7]]+"-"+bh[e[t+8]]+bh[e[t+9]]+"-"+bh[e[t+10]]+bh[e[t+11]]+bh[e[t+12]]+bh[e[t+13]]+bh[e[t+14]]+bh[e[t+15]]).toLowerCase()}(o)}var _h=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},Eh=function(e){function r(t){var n=t?a(a({},ih),t):ih;return e.call(this,n)||this}return o(r,e),r.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},r.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Vd.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},r.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Vd.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},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,o=e.country,a=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:i})},r.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},r.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),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,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":jh()}})},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,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},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,o){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(o))]}))}))},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,o="/connections/change-status";if(t.status==ch)return delete t.status,this.delete(o,{data:t});Object.values(rh).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(sh[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},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,o=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(o),a({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,o=i(t,["account_code"]),a={account_codes:n};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:zp})},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,o=i(t,["account_code"]),a={account_codes:n};return this.post("/v2/api-logs/organization",a,{params:o})},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 o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},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,o=e.connection_name,a=i(e,["account_code","connection_name"]),r=_h(n);return o&&(r.connection_name=o.split(",")),this.post("/insights/conversion-rate/".concat(t),r,{params:a})},r.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,o=i(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),_h(n),{params:o})},r.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",_h(t),{params:n})},r.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,o=i(t,["connection_name"]),r={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(r=a(a({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",r,{params:o})},r.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var o=n.connection_name,r=i(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(s=a(a({},s),{connection_name:null==o?void 0:o.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,o=i(e,["account_code","connection_name"]),r=_h(t);return n&&(r=a(a({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",r,{params:o})},r.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,o=e.connection_name,r=i(e,["account_code","connection_name"]),s=_h(n);return o&&(s=a(a({},s),{connection_name:null==o?void 0:o.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"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},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,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},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,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},r.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload,i={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",a,{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.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},r.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},r.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},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.getImpersonationUsers=function(){return this.get("/impersonation/user")},r.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},r.prototype.getUsersToImpersonate=function(e,t){var n={account_codes:t||[]};return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),n)},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 o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},r.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},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,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{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,o=e.email,a=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:a,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,o=e.id;return this.patch("/teams/roles/".concat(o),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 o=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",o?{headers:{"x-account-code":o}}:{})];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,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),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,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},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,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(i+="&search=".concat(a)),this.get(i,o?{headers:{"x-account-code":o}}:{})},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,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(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,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},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",a({},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,o=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:o.token}),cancel:function(){return o.cancel()}}},r.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},r.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",a({},t))},r.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",a({},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 o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},r.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},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(uh[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(uh[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}(Lp),Ch={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},Sh=function(e){function i(t){return e.call(this,t)||this}return o(i,e),i.refreshInstance=function(e){var t;return this.classInstance=new i(a(a({},e),{baseURL:Ch["BFF_URL_".concat(Ch.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 o=localStorage.getItem("account");if(o){var r=null===(n=null===(t=JSON.parse(o))||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(a(a({},e),{baseURL:(null==e?void 0:e.baseURL)||Ch["BFF_URL_".concat(Ch.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}(Eh);class Rh{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 Th="undefined"==typeof window||"Deno"in window;function Ah(){}function Oh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ih(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zh(e,t,n){return Vh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lh(e,t,n){return Vh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ph(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:i,queryKey:r,stale:s}=e;if(Vh(r))if(o){if(t.queryHash!==qh(r,t.options))return!1}else if(!Mh(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===a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function Dh(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:i}=e;if(Vh(i)){if(!t.options.mutationKey)return!1;if(n){if(Nh(t.options.mutationKey)!==Nh(i))return!1}else if(!Mh(t.options.mutationKey,i))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function qh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Nh)(e)}function Nh(e){return JSON.stringify(e,((e,t)=>Wh(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Mh(e,t){return Fh(e,t)}function Fh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Fh(e[n],t[n]))))}function Bh(e,t){if(e===t)return e;const n=Hh(e)&&Hh(t);if(n||Wh(e)&&Wh(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,r=n?[]:{};let s=0;for(let o=0;o<i;o++){const i=n?o:a[o];r[i]=Bh(e[i],t[i]),r[i]===e[i]&&s++}return o===i&&s===o?e:r}return t}function Uh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Hh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wh(e){if(!Gh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Gh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Gh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Vh(e){return Array.isArray(e)}function $h(e){return new Promise((t=>{setTimeout(t,e)}))}function Kh(e){$h(0).then(e)}function Qh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Bh(e,t):t}const Jh=new class extends Rh{constructor(){super(),this.setup=e=>{if(!Th&&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)}},Xh=["online","offline"];const Yh=new class extends Rh{constructor(){super(),this.setup=e=>{if(!Th&&window.addEventListener){const t=()=>e();return Xh.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Xh.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 Zh(e){return Math.min(1e3*2**e,3e4)}function ef(e){return"online"!==(null!=e?e:"online")||Yh.isOnline()}class tf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function nf(e){return e instanceof tf}function of(e){let t,n,o,a=!1,i=0,r=!1;const s=new Promise(((e,t)=>{n=e,o=t})),c=()=>!Jh.isFocused()||"always"!==e.networkMode&&!Yh.isOnline(),u=o=>{r||(r=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),o(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,o;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Zh,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!a&&h?(i++,null==e.onFail||e.onFail(i,t),$h(m).then((()=>{if(c())return p()})).then((()=>{a?l(t):d()}))):l(t)}))};return ef(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new tf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const af=console;const rf=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Kh((()=>{n(o)}))},i=()=>{const t=e;e=[],t.length&&Kh((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class sf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oh(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Th?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class cf extends sf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||af,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,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o: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=Qh(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(Ah).catch(Ah):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||!Ih(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,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.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==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,o,a;(nf(e)&&e.silent||this.dispatch({type:"error",error:e}),nf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=of({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,o,a;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==(o=(a=this.cache.config).onSettled)||o.call(a,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,o;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:ef(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return nf(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),rf.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class uf extends Rh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,i=null!=(o=t.queryHash)?o:qh(a,t);let r=this.get(i);return r||(r=new cf({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),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(){rf.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Lh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Ph(n,e)))}findAll(e,t){const[n]=Lh(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Ph(n,e))):this.queries}notify(e){rf.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){rf.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){rf.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class lf extends sf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||af,this.observers=[],this.state=e.state||pf(),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=of({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,o,a,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=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,h,this.state.variables,this.state.context,this)),await(null==(a=(i=this.options).onSuccess)?void 0:a.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,k,x;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==(k=(x=this.options).onSettled)?void 0:k.call(x,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:!ef(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),rf.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function pf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class df extends Rh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new lf({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(o),o}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(){rf.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=>Dh(e,t)))}findAll(e){return this.mutations.filter((t=>Dh(e,t)))}notify(e){rf.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 rf.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Ah)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function mf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.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,o)=>(h=o?[t,...h]:[...h,t],o?[n,...e]:[...e,n]),v=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:o,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,o,e,a)))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:hf(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==u,n=t?u:(k=e.options,x=d,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(x[0],x));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((o=>{if(!s||!d[n]||s(d[n],n,d)){const a=t?m[n]:hf(e.options,o);return v(o,t,a)}return Promise.resolve(y(o,m[n],d[n]))}))}else b=v([]);var k,x;const w=b.then((e=>({pages:e,pageParams:h})));return w}}}}function hf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class ff extends Rh{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),gf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yf(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,o=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"),Uh(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 a=this.hasListeners();a&&vf(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===o&&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(!Uh(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(Ah)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Th||this.currentResult.isStale||!Oh(this.options.staleTime))return;const e=Ih(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,!Th&&!1!==this.options.enabled&&Oh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Jh.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,o=this.options,a=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 a=this.hasListeners(),i=!a&&gf(e,t),r=a&&vf(e,n,t,o);(i||r)&&(f=ef(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(a&&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=Qh(null==a?void 0:a.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!=a&&a.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=a.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=Qh(null==a?void 0:a.data,e,t),v=!0)}this.selectError&&(m=this.selectError,p=this.selectResult,h=Date.now(),g="error");const b="fetching"===f,k="loading"===g,x="error"===g;return{status:g,fetchStatus:f,isLoading:k,isSuccess:"success"===g,isError:x,isInitialLoading:k&&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&&!k,isLoadingError:x&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:v,isPreviousData:y,isRefetchError:x&&0!==l.dataUpdatedAt,isStale:bf(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,Uh(n,t))return;this.currentResult=n;const o={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 o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...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||nf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){rf.batch((()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,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 gf(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&&yf(e,t,t.refetchOnMount)}function yf(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&bf(e,t)}return!1}function vf(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&bf(e,n)}function bf(e,t){return e.isStaleByTime(t.staleTime)}class kf extends Rh{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),Uh(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={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){rf.batch((()=>{var t,n,o,a;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==(o=(a=this.mutateOptions).onSettled)||o.call(a,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 xf,wf={exports:{}},jf={};var _f,Ef={};
|
|
215
215
|
/**
|
|
216
216
|
* @license React
|
|
217
217
|
* use-sync-external-store-shim.development.js
|
|
@@ -220,7 +220,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
220
220
|
*
|
|
221
221
|
* This source code is licensed under the MIT license found in the
|
|
222
222
|
* LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/"production"===process.env.NODE_ENV?xf.exports=function(){if(kf)return wf;kf=1;var e=x,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,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}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 a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return wf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,wf}():xf.exports=(jf||(jf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}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=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=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=o({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]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};_f.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())}()),_f);var Ef=xf.exports;const Cf=Ef.useSyncExternalStore,Sf=k.createContext(void 0),Rf=k.createContext(!1);function Tf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Sf),window.ReactQueryClientContext):Sf)}const Af=({context:e}={})=>{const t=k.useContext(Tf(e,k.useContext(Rf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Of=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Tf(n,o);return k.createElement(Rf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},If=k.createContext(!1);If.Provider;const zf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Lf(e,t){return"function"==typeof e?e(...t):!!e}function Pf(e,t){const n=Af({context:e.context}),o=k.useContext(If),a=k.useContext(zf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=af.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=af.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=af.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(Cf(k.useCallback((e=>{const t=o?()=>{}:r.subscribe(af.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.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,o))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,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Lf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Df(e,t,n){return Pf(Ih(e,t,n),hf)}function qf(e,t,n){const o=function(e,t,n){return Gh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Af({context:o.context}),[i]=k.useState((()=>new bf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=Cf(k.useCallback((e=>i.subscribe(af.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(Nf)}),[i]);if(r.error&&Lf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function Nf(){}function Mf(e){return qf((function(e){var t=e.payload;return Ch.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ff(e){return qf((function(e){var t=e.code,n=e.accountCode;return Ch.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bf(e){return qf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Ch.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Uf(){return qf((function(e){var t=e.name,n=e.principal;return Ch.getInstance().postAccount(t,n)}))}function Hf(){return qf((function(e){var t=e.name,n=e.code,o=e.principal;return Ch.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Wf(){return qf((function(e){var t=e.account_code;return Ch.getInstance().putAccountPrincipal({account_code:t})}))}function Gf(){return qf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Ch.getInstance().putAccountsUserMassive(t,n,o)}))}function Vf(){return qf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Ch.getInstance().deleteAccountsUserMassive(t,n,o)}))}function $f(){return qf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Ch.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Kf(){return qf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Ch.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Qf(){return qf((function(e){return Ch.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Jf(){return qf(["post-connection"],(function(e){var t=e.payload;return Ch.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return qf(["new-post-connection-validate"],(function(){return Ch.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Yf(){return qf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Ch.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Zf(){return qf((function(e){var t=e.payload;return Ch.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return qf((function(e){return Ch.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tg(e){var o=this;return Df(["network-tokens-onboarding",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))}),{enabled:!!e,useErrorBoundary:!1})}function ng(){var e=this;return qf((function(o){var a=o.payload,i=o.organizationCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Ch.getInstance().postNetworkTokensOnboarding(a,i)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function og(){return qf(["patch-organizations"],(function(){return Ch.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function ag(){return qf((function(e){return Ch.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ig(){var e=this;return qf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Ch.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function rg(e){return qf((function(e){return Ch.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function sg(){return qf((function(e){return Ch.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function cg(){return qf((function(e){var t=e.userCode,n=e.organizationCode;return Ch.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function ug(){return qf((function(e){return Ch.getInstance().createUserAuth0(e)}))}function lg(){return qf((function(e){return Ch.getInstance().postCall(e)}))}function pg(){return qf((function(e){return Ch.getInstance().changeLoginMethods(e)}))}function dg(e){return qf((function(e){return Ch.getInstance().updateIsActiveCheckout(e)}),e)}function mg(){return qf((function(e){var t=e.accountCode,n=e.template;return Ch.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function hg(){return qf((function(e){var t=e.accountCode,n=e.theme;return Ch.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function fg(){return qf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Ch.getInstance().createOperationTransaction(t,n,o,a)}))}function gg(){return qf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Ch.getInstance().uploadChargebacks(t,n,o,a)}))}var yg=new cf({}),vg=new class{constructor(e={}){this.queryCache=e.queryCache||new cf,this.mutationCache=e.mutationCache||new pf,this.logger=e.logger||of,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=Qh.subscribe((()=>{Qh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Xh.subscribe((()=>{Xh.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]=zh(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 o=Ih(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=Ih(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return af.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]=zh(e,t),o=this.queryCache;af.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=zh(e,t,n),i=this.queryCache,r={type:"active",...o};return af.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=zh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=af.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(Th).catch(Th)}invalidateQueries(e,t,n){const[o,a]=zh(e,t,n);return af.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=zh(e,t,n),i=af.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(Th);return null!=a&&a.throwOnError||(r=r.catch(Th)),r}fetchQuery(e,t,n){const o=Ih(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Th).catch(Th)}fetchInfiniteQuery(e,t,n){const o=Ih(e,t,n);return o.behavior=df(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Th).catch(Th)}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=>qh(e)===qh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Nh(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>Nh(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=>qh(e)===qh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Nh(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>Nh(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=Dh(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:yg});function bg(){return qf((function(e){return Ch.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function kg(){return qf((function(e){return Ch.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function xg(){return qf((function(e){return Ch.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function wg(){return qf((function(e){return Ch.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function jg(o){var a=this;return qf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Ch.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,vg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=vg.getQueryData(["GET/reports/templates"]),vg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){vg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){vg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _g(e){return qf((function(){return Ch.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function Eg(e,o,a){var i=this;return void 0===a&&(a=null),qf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Cg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),qf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Ch.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Sg(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),qf((function(){return Ch.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Rg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qf((function(){return Ch.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Tg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qf((function(){return Ch.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Ag(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),qf((function(){return Ch.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Og(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),qf((function(e){return void 0===e&&(e=null),Ch.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ig(e){var t=e.accountCode;return qf((function(e){return void 0===e&&(e=null),Ch.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function zg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qf((function(e){return void 0===e&&(e=!1),Ch.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),qf((function(){return Ch.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),qf((function(e){return Ch.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e,t){return void 0===t&&(t=null),qf((function(t){return Ch.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function qg(e,t){return void 0===t&&(t={}),qf((function(t){var n=t.declinedGroupCode;return Ch.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Ng(e,t){return void 0===t&&(t={}),qf((function(t){var n=t.payload;return Ch.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Mg=function(e){return qf((function(t){return Ch.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Fg=function(e){return qf((function(t){return Ch.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Bg(){return qf((function(e){var t=e.payload;return Ch.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Ug(){return qf((function(e){var t=e.userCode,n=e.organizationCode;return Ch.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Hg(){return qf((function(){return Ch.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Wg(){return qf((function(e){var t=e.payload,n=e.accountCode;return Ch.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Gg(){var e=this;return qf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Vg(){return qf((function(e){return Ch.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return qf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Ch.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return qf(["post-delete-payment-link"],(function(e){var t=e.code;return Ch.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){return qf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Ch.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Jg(){return qf((function(e){var t=e.payload;return Ch.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Xg(){return qf((function(e){return Ch.getInstance().postUserThemeSettings(e)}))}function Yg(){return qf((function(e){var t=e.payload,n=e.section;return Ch.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=vg.getQueryData(["fetch-profile"]);e.data&&vg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function Zg(e){return qf(["pinned-sections"],(function(e){var t=e.payload;return Ch.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function ey(){return qf((function(e){var t=e.password,n=e.otp;return Ch.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function ty(){return qf((function(){return Ch.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function ny(){return qf((function(e){return Ch.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return qf((function(e){return Ch.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function ay(){return qf((function(){return Ch.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function iy(){return qf(["post-get-allowlist-items"],(function(e){var t=e.payload;return Ch.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ry(){return qf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Ch.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sy(){return qf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Ch.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cy(){return qf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Ch.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uy(){return qf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Ch.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ly(){return qf(["post-add-allowlist-items"],(function(e){var t=e.payload;return Ch.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function py(){return qf(["patch-allowlist"],(function(e){var t=e.payload;return Ch.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dy(){return qf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Ch.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function my(){return qf(["put-blacklist"],(function(e){return Ch.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hy(){return qf(["change-blacklist"],(function(e){return Ch.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function fy(){return qf(["change-blacklist-item"],(function(e){return Ch.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gy(){return qf(["post-blacklist-items"],(function(e){var t=e.payload;return Ch.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yy(){return qf(["delete-blacklist"],(function(e){var t=e.black_list_code;return Ch.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function vy(e){var t=e.handleSetProgress;return qf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Ch.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function by(){return qf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Ch.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ky(){return qf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Ch.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xy(){return qf(["valiate-blacklist-items"],(function(e){return Ch.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function wy(){return qf(["delete-allowlist-item"],(function(e){return Ch.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jy(){return qf(["validate-allowlist-items"],(function(e){return Ch.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function _y(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=qf(["upload-file-chargeback",t],(function(e){var t=Ch.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function Ey(){return qf((function(e){return Ch.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Cy(){var e=this;return qf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Ch.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Sy(){var e=this;return qf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Ch.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ry(){var e=this;return qf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Ch.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ty(){var e=j({cancel:function(){return null}}),t=qf(["upload-file"],(function(t){var n=Ch.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Ay(){return qf((function(e){var t=e.payload,n=e.organizationCode;return Ch.getInstance().updateMFAConfig(t,n)}))}function Oy(){return qf((function(e){var t=e.payload,n=e.organizationCode;return Ch.getInstance().mfaExcludeUsers(t,n)}))}function Iy(e){return Df(["GET/scheduled-reports",e],(function(){return Ch.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 zy(){return qf((function(e){var t=e.payload;return Ch.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Ly(){return qf((function(e){var t=e.reportCode,n=e.payload;return Ch.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return qf((function(e){return Ch.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return qf((function(e){return Ch.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(){return qf((function(e){return Ch.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ny(){return qf((function(e){var t=e.payload,n=e.accountCode;return Ch.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function My(){return qf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Ch.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fy(){return qf((function(e){var t=e.payload;return Ch.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return qf((function(e){var t=e.payload,n=e.code;return Ch.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Uy(){return qf((function(e){var t=e.code,n=e.password;return Ch.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Hy(){return qf((function(e){var t=e.passwordOtp;return Ch.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Wy(){return qf((function(e){var t=e.code;return Ch.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Gy(){return qf((function(e){var t=e.payload,n=e.code;return Ch.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function Vy(){return qf((function(e){var t=e.payload,n=e.code,o=e.password;return Ch.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function $y(){return qf((function(e){var t=e.password,n=e.accountCode;return Ch.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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 Ky(e){return qf((function(e){var t=e.payload;return Ch.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Qy(){return qf((function(e){var t=e.codes;return Ch.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function Jy(){return qf((function(e){return Ch.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Xy(o){var a=this;return qf((function(){return Ch.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,vg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=vg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,vg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){vg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){vg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Yy(e){return qf((function(){return Ch.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Zy(){return qf(["POST/reconciliation/alerts"],(function(e){return Ch.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ev(){return qf(["DELETE/reconciliation/alerts"],(function(e){return Ch.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function tv(){return qf(["UPDATE/reconciliation/alerts"],(function(e){return Ch.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function nv(){return qf((function(e){var t=e.payload;return Ch.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ov(){return qf((function(e){return Ch.getInstance().createSamlConfig(e)}))}function av(){return qf((function(e){return Ch.getInstance().updateSamlConfig(e)}))}function iv(){return qf((function(){return Ch.getInstance().deleteSamlConfig()}))}function rv(e,t){return void 0===t&&(t={}),qf((function(t){return Ch.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function sv(e){return void 0===e&&(e={}),qf((function(e){return Ch.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function cv(){return qf((function(e){return Ch.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function uv(){return qf((function(e){return Ch.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function lv(){return qf((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,i=void 0===a?"":a;return Ch.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:i}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function pv(){var e=this;return qf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l,p,d=this;return n(this,(function(m){switch(m.label){case 0:return[4,(e=Ch.getInstance()).createChartGPTChart(o)];case 1:if(a=m.sent(),!(i=null!==(l=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id)&&void 0!==l?l:null===(p=null==a?void 0:a.data)||void 0===p?void 0:p.chart_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(d,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),"DRAFT"===(null==o?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=m.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=m.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var dv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return _((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function mv(e){var o=this;return Df(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.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 hv(e){return Df(["fetch-payments-evaluated",e],(function(){return Ch.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 fv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Ch.getInstance();return Df(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:r,cacheTime:500,useErrorBoundary:!1})}function gv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=Ch.getInstance();return Df(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function yv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Ch.getInstance();return Df(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function vv(e){var t=dv();return Df(["payment-methods",e],(function(){return Ch.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 bv(){return Df({queryKey:["/payment-methods/providers"],queryFn:function(){return Ch.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function kv(){return Df(["GET/catalog/card-brands"],(function(){return Ch.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function xv(e,t){return void 0===e&&(e=!0),void 0===t&&(t=qd.PAYMENTS),Df(["payment-filters",e,t],(function(){return Ch.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function wv(){return Df(["payment-metrics-filters"],(function(){return Ch.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jv(e){var t=e.transaction_code,n=e.enabled;return Df(["payment-transaction-details",t],(function(){return Ch.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function _v(e){var t=e.payment_code,n=e.enabled;return Df(["transaction-history",t],(function(){return Ch.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ev(e){var o=this;return Df(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Cv(e){var o=this;return Df(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.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 Sv(e){return Df(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Ch.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 Rv(e){return Df(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Ch.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 Tv(e){var t=dv();return Df(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Ch.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 Av(e,o){var a=this,i=dv();return Df(["GET/useGetProofOfCancel",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getProofOfCancel(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Ov(e,o){var a=this,i=dv();return Df(["GET/useGetProofOfPayment",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getProofOfPayment(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Iv(e,o,a){var i=this,r=Ch.getInstance();return Df(["send-payment-notification",e,o],(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,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function zv(e){return Df(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Ch.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 Lv(e){var o=this;void 0===e&&(e=!0);var a=dv();return Df(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Ch.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Pv(e){var t=e.password,n=e.accountCode;return Df(["developers"],(function(){return Ch.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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 Dv(){return Df(["fetch-customized-api-keys-members"],(function(){return Ch.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function qv(){return Df(["developers-get-allowed-ips"],(function(){return Ch.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function Nv(){return Df(["fetch-customized-api-keys-accounts"],(function(){return Ch.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Mv(e){return Df(["fetch-customized-api-keys",e],(function(){return Ch.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 Fv(){return Df(["fetch-customized-api-keys-products"],(function(){return Ch.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function Bv(){return qf(["developers-patch-allowed-ips"],(function(e){return Ch.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function Uv(){return Df(["fetch-organizations"],(function(){return Ch.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Hv(){return Df(["fetch-all-organizations",dv()],(function(){return Ch.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Wv(e){var t=dv();return Df(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Ch.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 Gv(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Df(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Ch.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function Vv(e){var t=e.accountCode,n=e.organizationCode,o=dv();return Df(["organizations-account-integrations",t,n],(function(){return Ch.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function $v(e){var t=e.accountCode,n=e.paymentMethod;return Df(["fetch-connections-by-payment-method",n,t],(function(){return Ch.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Kv(){var e=this;return Df(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Ch.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Qv(){return Df(["connections"],(function(){return Ch.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Jv(){return Df(["dialogs"],(function(){return Ch.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Xv(){return Df(["params-catalog"],(function(){return Ch.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Yv(e){var t=e.accountCode,n=e.name;return Df(["webhooks",t,n],(function(){return Ch.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Zv(e){var t=e.accountCode,n=e.enabled;return Df(["webhooks-detail",t],(function(){return Ch.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function eb(e){var t,n=dv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Df({queryKey:["accounts",o],queryFn:function(){return Ch.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function tb(e){return Df(["accountsV2",e],(function(){return Ch.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function nb(e){return Df(["accountsV2-by-user",e],(function(){return e?Ch.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 ob(e,o){var a=this;return Df({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.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:o?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 ab(){return Df(["menu"],(function(){return Ch.getInstance().getMenu().then((function(e){return uh(e)?gh:null==e?void 0:e.data})).catch((function(){return gh}))}))}function ib(){return Df(["/payment/statuses/style"],(function(){return Ch.getInstance().useGetPaymentStatusesStyles().then((function(e){return uh(e)?lh:null==e?void 0:e.data})).catch((function(){return lh}))}))}function rb(){return Df(["/transaction/statuses/style"],(function(){return Ch.getInstance().useGetTransactionStatusesStyles().then((function(e){return uh(e)?ph:null==e?void 0:e.data})).catch((function(){return ph}))}),{cacheTime:36e5,useErrorBoundary:!1})}function sb(){return Df(["/reconciliation/transaction/statuses/style"],(function(){return Ch.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return uh(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}))}function cb(){return Df(["timezone-catalog"],(function(){return Ch.getInstance().useGetTimeZoneCatalog().then((function(e){return uh(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}))}function ub(){return Df(["/cms/audit-logs-filters"],(function(){return Ch.getInstance().useGetAuditLogsFilters().then((function(e){return uh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}))}function lb(){return Df(["/cms/static-contents"],(function(){return Ch.getInstance().getDashboardStaticContents().then((function(e){var t,n;return uh(e)?fh:(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 pb(){return Df(["/cms/locales"],(function(){return Ch.getInstance().getLocales().then((function(e){return uh(e)?yh:e.data})).catch((function(){return yh}))}))}var db=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return _((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function mb(e){return Df(["smart-routing-methods",e],(function(){return Ch.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function hb(e,t){return Df(["smart-routing-workflow",t,e],(function(){return Ch.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 fb(e,t){return Df(["smart-routing-condition-types",e,t],(function(){return Ch.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function gb(e,t){return Df(["smart-routing-condition-payment-method",e,t],(function(){return Ch.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 yb(e,t){return Df(["smart-routing-condition-types-values",t,e],(function(){return Ch.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function vb(e){var t=e.accountCode,n=e.workflowVersionId;return Df(["smart-routing-workflow-version",n,t],(function(){return Ch.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 bb(e,t,n){return Df(["smart-routing-next-route",e,n,t],(function(){return Ch.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function kb(e){return Df(["smart-routing-decline-groups",e],(function(){return Ch.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function xb(e,t){return Df(["smart-routing-payment-route",e,t],(function(){return Ch.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 wb(e){return Df(["smart-routing-simulate-condition-type-values",e],(function(){return Ch.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function jb(e){var t=e.text,n=e.conditionType;return Df(["smart-routing-search-condition-values",t,n],(function(){return Ch.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 _b(){return Df(["smart-routing-conversion-rates"],(function(){return Ch.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Eb(){var e=this;return Df({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,Ch.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Cb(){var e=this;return Df({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,Ch.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Sb(e){return Df(["fetch-routing-monitors-templates",e],(function(){return Ch.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Rb(e,t){return Df(["fetch-routing-monitors-template",e],(function(){return Ch.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 Tb(e){var t=e.accountCode;return Df(["checkouts",t],(function(){return Ch.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function Ab(e){var t=e.accountCode;return Df(["checkouts-template"],(function(){return Ch.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var Ob=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Ib=function(e,t){var n=e.paymentMethodType,o=e.type;return Df(Ob({paymentMethodType:n,type:o}),(function(){return Ch.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},zb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Lb=function(e,t){var n=e.paymentMethodType,o=e.type;return Df(zb({paymentMethodType:n,type:o}),(function(){return Ch.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function Pb(e){var t=e.accountCode;return Df(["styling-sdk-dynamic",t],(function(){return Ch.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 Db(e){var t=e.accountCode;return Df(["styling-theme",t],(function(){return Ch.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 qb(e){var t=e.accountCode;return Df(["styling-settings",t],(function(){return Ch.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 Nb(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Df(["styling-settings-v2",t],(function(){return Ch.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Mb(){return qf((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Ch.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Fb(){return Df(["fetch-profile"],(function(){return Ch.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 Bb(e,t){return Df(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);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 Ub(e){return Df(["email-verification",e],(function(){return Ch.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Hb(){return Df({queryKey:["get-login-methods"],queryFn:function(){return Ch.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function Wb(){return Df(["fetch-impersonation-users"],(function(){return Ch.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 Gb(){return Df(["fetch-impersonation-enabled"],(function(){return Ch.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Vb(e,o){var a=this;return Df(["get-users-to-impersonate",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getUsersToImpersonate(e,o).then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function $b(e){var t;return Df(["fetch-communications",e],(function(){return Ch.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 Kb(){return Df(["fetch-communications-filters"],(function(){return Ch.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Qb(e,t){return Df(["fetch-communication-details",e],(function(){return Ch.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Jb(e){return Df(["notifications-customer",e],(function(){return Ch.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Xb(e){return Df(["validate-opsgenie-key",e],(function(){return Ch.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Yb(){return Df(["notifications-merged"],(function(){return Ch.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Zb(){return qf((function(e){return Ch.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ek(){var e=this;return qf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var tk={key:"metadata_fields",name:"metadata_fields"};function nk(){return Df(["reports"],(function(){return Ch.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ok(e){return void 0===e&&(e=!0),Df(["reports-multi-env"],(function(){return Ch.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function ak(e,t,n){return void 0===t&&(t=!1),Df(["reports/".concat(e)],(function(){return Ch.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function ik(e){return Df(["GET/reports/templates"],(function(){return Ch.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function rk(o,a,i){var r=this;return Df(["GET/reports/columns/".concat(a,"/").concat(i)],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getReportColumns(a,i).then((function(t){return a===Ud.ALL&&i===Bd.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[tk],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function sk(e,o){var a=this,i=dv();return Df(["getRefundPdf",e,i,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getRefundPdf(e,i,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!i,useErrorBoundary:!1})}function ck(){var e=dv();return Df(["teams-filters-members"],(function(){return Ch.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function uk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=dv();return Df(["fetch-post-members-v2",t,n,o,a,i],(function(){return Ch.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function lk(){return Df(["fetch-roles"],(function(){return Ch.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function pk(){return Df(["fetch-rolespermissions"],(function(){return Ch.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function dk(){return Df(["fetch-permissions-catalog"],(function(){return Ch.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function mk(e){return Df(["data-report",e],(function(){return Ch.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function hk(e,t,n){return void 0===n&&(n=!0),Df(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Ch.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 fk(e,t){return Df(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Ch.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 gk(e){return Df(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Ch.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 yk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Df(["get-insights-volume-metrics",t,e],(function(){return Ch.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function vk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Df(["get-insights-volume-metrics-v2",t,e,n],(function(){return Ch.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function bk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Df(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Ch.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function kk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Df(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Ch.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function xk(e){return Df(["get-insights-overview",e],(function(){return Ch.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 wk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Df(["get-insights-overview-v3",e,t],(function(){return Ch.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function jk(e){return Df(["get-insights-home-metrics",e],(function(){return Ch.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 _k(e){return Df(["get-insights-reports",e],(function(){return Ch.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 Ek(e){return Df(["get-insights-reports-again",e],(function(){return Ch.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 Ck(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Sk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Rk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Tk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ik(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Df({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fk(e,t){return Df(["fetch-reconciliation-transaction",e],(function(){return Ch.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Bk(e,t){return Df(["fetch-reconciliation-settlements",e],(function(){return Ch.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Uk(e,t){return Df(["fetch-reconciliation-metrics",e],(function(){return Ch.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Hk(){return Df(["GET-reconciliation-filters"],(function(){return Ch.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Wk(e){return Df(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Ch.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Gk(){return Df(["GET/v1/reconciliation/active"],(function(){return Ch.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Vk(e,t,n){return Df(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Ch.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 $k(e){return Df(["GET/reconciliation/reports/templates"],(function(){return Ch.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Kk(e){var t=e.body,n=e.params,o=e.enabled;return Df(["GET/reconciliation/alerts/list",t,n],(function(){return Ch.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Qk(e){var t=e.body,n=e.params,o=e.enabled;return Df(["GET/reconciliation/agenda/list",t,n],(function(){return Ch.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Jk(e){var t=e.body,n=e.params,o=e.enabled;return Df(["GET/reconciliation/agenda/insights",t,n],(function(){return Ch.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Xk(e){var t=e.body,n=e.params,o=e.enabled;return Df(["GET/reconciliation/sales/list",t,n],(function(){return Ch.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Yk(e){var t=e.body,n=e.params,o=e.enabled;return Df(["GET/reconciliation/advancements/list",t,n],(function(){return Ch.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Zk(e){var t=e.body,n=e.params,o=e.enabled;return Df(["GET/reconciliation/fees/list",t,n],(function(){return Ch.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function ex(e){var o=this,a=Object.values(e).filter(Boolean);return Df(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function tx(e){var o=this,a=Df({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.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=Af();return _((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function nx(e){var t,n,o=Af(),i=o.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=Df({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=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return a(a({},s),{isLoading:r})}function ox(e){return Df(["events",e],(function(){return Ch.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 ax(e){return Df(["audit-monitor-event-detail",e],(function(){return Ch.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 ix(e){return Df(["api-logs",e],(function(){return Ch.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function rx(e){var t=e.params;return Df(["webhook-logs",t],(function(){return Ch.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function sx(e){return Df(["api-logs-detail",e],(function(){return Ch.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function cx(e,t){return Df(["fetch-payment-links",e,t],(function(){return Ch.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function ux(e){return Df(["payment-link"],(function(){return Ch.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function lx(e){return void 0===e&&(e=!0),Df(["countries",e],(function(){return Ch.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function px(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Df(["countries-v2",n],(function(){return Ch.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function dx(e){return Df(["timezone"],(function(){return Ch.getInstance().getTimezone(e).then((function(e){return uh(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}),{enabled:!0,keepPreviousData:!0})}function mx(e){return qf((function(e){var t=e.payload;return Ch.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function hx(e,t){return Df(["get-cofig-allow-list",e],(function(){return Ch.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 fx(e){return Df(["get-black-list",e],(function(){return Ch.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function gx(e,t,n,o){var a;return Df(["post-black-list",e],(function(){return Ch.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function yx(e,t,n){return Df(["get-block-list-summary",e,t,n],(function(){var o=Ch.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function vx(e,t,n,o,a,i){return Df(["black-list-detail",e,t,o,a,i],(function(){return Ch.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function bx(e,t,n){return Df(["allow-list-detail",e],(function(){return Ch.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function kx(e){return Df(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Ch.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 xx(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Df(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Ch.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function wx(e){return Df(["velocity-rules",e],(function(){var t=Ch.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 jx(){return Df(["config-rules"],(function(){return Ch.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function _x(e,t){var n=e.organizationCode;return Df(["mfa-excluded-users",n],(function(){return Ch.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function Ex(e,t){var n=e.organizationCode;return Df(["mfa-config",n],(function(){return Ch.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function Cx(e,t){return Df(["mfa-enforcement-status",e.accountCode],(function(){return Ch.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function Sx(e){return Df(["fetch-organization-saml-config",e],(function(){return Ch.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Rx(e){return Df(["chartgpt-chart-execute",e],(function(){return Ch.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Tx(){return Df(["chartgpt-user-charts"],(function(){return Ch.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Ax(){var e=this;return Df(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Ch.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){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(o.code)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:o.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:o.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(o.chart_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function Ox(e,o,a){var i=this;return void 0===a&&(a=!0),Df(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var t,a,i,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Ch.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),i=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function Ix(){return Df(["languages"],(function(){return Ch.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function zx(){var e=localStorage.getItem("lang")||"en";return Df(["translations",e],(function(){return Ch.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function Lx(e){var o=this;return Df({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Ch.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1})}function Px(){return Px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Px.apply(this,arguments)}
|
|
223
|
+
*/"production"===process.env.NODE_ENV?wf.exports=function(){if(xf)return jf;xf=1;var e=x,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,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}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 a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return jf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,jf}():wf.exports=(_f||(_f=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}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=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=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=o({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]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};Ef.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())}()),Ef);var Cf=wf.exports;const Sf=Cf.useSyncExternalStore,Rf=k.createContext(void 0),Tf=k.createContext(!1);function Af(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Rf),window.ReactQueryClientContext):Rf)}const Of=({context:e}={})=>{const t=k.useContext(Af(e,k.useContext(Tf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},If=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Af(n,o);return k.createElement(Tf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},zf=k.createContext(!1);zf.Provider;const Lf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Pf(e,t){return"function"==typeof e?e(...t):!!e}function Df(e,t){const n=Of({context:e.context}),o=k.useContext(zf),a=k.useContext(Lf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=rf.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=rf.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=rf.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(Sf(k.useCallback((e=>{const t=o?()=>{}:r.subscribe(rf.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.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,o))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,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Pf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function qf(e,t,n){return Df(zh(e,t,n),ff)}function Nf(e,t,n){const o=function(e,t,n){return Vh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Of({context:o.context}),[i]=k.useState((()=>new kf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=Sf(k.useCallback((e=>i.subscribe(rf.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(Mf)}),[i]);if(r.error&&Pf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function Mf(){}function Ff(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bf(e){return Nf((function(e){var t=e.code,n=e.accountCode;return Sh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Uf(e){return Nf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Hf(){return Nf((function(e){var t=e.name,n=e.principal;return Sh.getInstance().postAccount(t,n)}))}function Wf(){return Nf((function(e){var t=e.name,n=e.code,o=e.principal;return Sh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gf(){return Nf((function(e){var t=e.account_code;return Sh.getInstance().putAccountPrincipal({account_code:t})}))}function Vf(){return Nf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sh.getInstance().putAccountsUserMassive(t,n,o)}))}function $f(){return Nf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Kf(){return Nf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Qf(){return Nf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Jf(){return Nf((function(e){return Sh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Xf(){return Nf(["post-connection"],(function(e){var t=e.payload;return Sh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Nf(["new-post-connection-validate"],(function(){return Sh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Zf(){return Nf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function eg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tg(){return Nf((function(e){return Sh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function ng(e){var o=this;return qf(["network-tokens-onboarding",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))}),{enabled:!!e,useErrorBoundary:!1})}function og(){var e=this;return Nf((function(o){var a=o.payload,i=o.organizationCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().postNetworkTokensOnboarding(a,i)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function ag(){return Nf(["patch-organizations"],(function(){return Sh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function ig(){return Nf((function(e){return Sh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function rg(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function sg(e){return Nf((function(e){return Sh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function cg(){return Nf((function(e){return Sh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ug(){return Nf((function(e){var t=e.userCode,n=e.organizationCode;return Sh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lg(){return Nf((function(e){return Sh.getInstance().createUserAuth0(e)}))}function pg(){return Nf((function(e){return Sh.getInstance().postCall(e)}))}function dg(){return Nf((function(e){return Sh.getInstance().changeLoginMethods(e)}))}function mg(e){return Nf((function(e){return Sh.getInstance().updateIsActiveCheckout(e)}),e)}function hg(){return Nf((function(e){var t=e.accountCode,n=e.template;return Sh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function fg(){return Nf((function(e){var t=e.accountCode,n=e.theme;return Sh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function gg(){return Nf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sh.getInstance().createOperationTransaction(t,n,o,a)}))}function yg(){return Nf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sh.getInstance().uploadChargebacks(t,n,o,a)}))}var vg=new uf({}),bg=new class{constructor(e={}){this.queryCache=e.queryCache||new uf,this.mutationCache=e.mutationCache||new df,this.logger=e.logger||af,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=Jh.subscribe((()=>{Jh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Yh.subscribe((()=>{Yh.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]=Lh(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 o=zh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=zh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return rf.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]=Lh(e,t),o=this.queryCache;rf.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=Lh(e,t,n),i=this.queryCache,r={type:"active",...o};return rf.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=Lh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=rf.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(Ah).catch(Ah)}invalidateQueries(e,t,n){const[o,a]=Lh(e,t,n);return rf.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=Lh(e,t,n),i=rf.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(Ah);return null!=a&&a.throwOnError||(r=r.catch(Ah)),r}fetchQuery(e,t,n){const o=zh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Ah).catch(Ah)}fetchInfiniteQuery(e,t,n){const o=zh(e,t,n);return o.behavior=mf(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Ah).catch(Ah)}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=>Nh(e)===Nh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Mh(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>Mh(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=>Nh(e)===Nh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Mh(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>Mh(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=qh(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:vg});function kg(){return Nf((function(e){return Sh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function xg(){return Nf((function(e){return Sh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(){return Nf((function(e){return Sh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function jg(){return Nf((function(e){return Sh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function _g(o){var a=this;return Nf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,bg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=bg.getQueryData(["GET/reports/templates"]),bg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){bg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){bg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Eg(e){return Nf((function(){return Sh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function Cg(e,o,a){var i=this;return void 0===a&&(a=null),Nf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Sg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Nf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Rg(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Tg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Ag(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Og(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Ig(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Nf((function(e){return void 0===e&&(e=null),Sh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e){var t=e.accountCode;return Nf((function(e){return void 0===e&&(e=null),Sh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Lg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(e){return void 0===e&&(e=!1),Sh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Nf((function(e){return Sh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function qg(e,t){return void 0===t&&(t=null),Nf((function(t){return Sh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Ng(e,t){return void 0===t&&(t={}),Nf((function(t){var n=t.declinedGroupCode;return Sh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Mg(e,t){return void 0===t&&(t={}),Nf((function(t){var n=t.payload;return Sh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Fg=function(e){return Nf((function(t){return Sh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Bg=function(e){return Nf((function(t){return Sh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Ug(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Hg(){return Nf((function(e){var t=e.userCode,n=e.organizationCode;return Sh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Wg(){return Nf((function(){return Sh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Gg(){return Nf((function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Vg(){var e=this;return Nf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function $g(){return Nf((function(e){return Sh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Nf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){return Nf(["post-delete-payment-link"],(function(e){var t=e.code;return Sh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Jg(){return Nf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Xg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Yg(){return Nf((function(e){return Sh.getInstance().postUserThemeSettings(e)}))}function Zg(){return Nf((function(e){var t=e.payload,n=e.section;return Sh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=bg.getQueryData(["fetch-profile"]);e.data&&bg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function ey(e){return Nf(["pinned-sections"],(function(e){var t=e.payload;return Sh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function ty(){return Nf((function(e){var t=e.password,n=e.otp;return Sh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Nf((function(){return Sh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Nf((function(e){return Sh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function ay(){return Nf((function(e){return Sh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function iy(){return Nf((function(){return Sh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ry(){return Nf(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sy(){return Nf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cy(){return Nf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uy(){return Nf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ly(){return Nf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function py(){return Nf(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dy(){return Nf(["patch-allowlist"],(function(e){var t=e.payload;return Sh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function my(){return Nf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function hy(){return Nf(["put-blacklist"],(function(e){return Sh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function fy(){return Nf(["change-blacklist"],(function(e){return Sh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gy(){return Nf(["change-blacklist-item"],(function(e){return Sh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yy(){return Nf(["post-blacklist-items"],(function(e){var t=e.payload;return Sh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function vy(){return Nf(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function by(e){var t=e.handleSetProgress;return Nf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ky(){return Nf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xy(){return Nf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function wy(){return Nf(["valiate-blacklist-items"],(function(e){return Sh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function jy(){return Nf(["delete-allowlist-item"],(function(e){return Sh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _y(){return Nf(["validate-allowlist-items"],(function(e){return Sh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Ey(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Nf(["upload-file-chargeback",t],(function(e){var t=Sh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function Cy(){return Nf((function(e){return Sh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sy(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ry(){var e=this;return Nf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ty(){var e=this;return Nf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ay(){var e=j({cancel:function(){return null}}),t=Nf(["upload-file"],(function(t){var n=Sh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Oy(){return Nf((function(e){var t=e.payload,n=e.organizationCode;return Sh.getInstance().updateMFAConfig(t,n)}))}function Iy(){return Nf((function(e){var t=e.payload,n=e.organizationCode;return Sh.getInstance().mfaExcludeUsers(t,n)}))}function zy(e){return qf(["GET/scheduled-reports",e],(function(){return Sh.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 Ly(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Py(){return Nf((function(e){var t=e.reportCode,n=e.payload;return Sh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Nf((function(e){return Sh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(){return Nf((function(e){return Sh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ny(){return Nf((function(e){return Sh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Nf((function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Fy(){return Nf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function By(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Uy(){return Nf((function(e){var t=e.payload,n=e.code;return Sh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Hy(){return Nf((function(e){var t=e.code,n=e.password;return Sh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Wy(){return Nf((function(e){var t=e.passwordOtp;return Sh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Gy(){return Nf((function(e){var t=e.code;return Sh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Vy(){return Nf((function(e){var t=e.payload,n=e.code;return Sh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function $y(){return Nf((function(e){var t=e.payload,n=e.code,o=e.password;return Sh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Ky(){return Nf((function(e){var t=e.password,n=e.accountCode;return Sh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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 Qy(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Jy(){return Nf((function(e){var t=e.codes;return Sh.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function Xy(){return Nf((function(e){return Sh.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function Yy(o){var a=this;return Nf((function(){return Sh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,bg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=bg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,bg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){bg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){bg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Zy(e){return Nf((function(){return Sh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function ev(){return Nf(["POST/reconciliation/alerts"],(function(e){return Sh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){bg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function tv(){return Nf(["DELETE/reconciliation/alerts"],(function(e){return Sh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){bg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function nv(){return Nf(["UPDATE/reconciliation/alerts"],(function(e){return Sh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){bg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ov(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function av(){return Nf((function(e){return Sh.getInstance().createSamlConfig(e)}))}function iv(){return Nf((function(e){return Sh.getInstance().updateSamlConfig(e)}))}function rv(){return Nf((function(){return Sh.getInstance().deleteSamlConfig()}))}function sv(e,t){return void 0===t&&(t={}),Nf((function(t){return Sh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function cv(e){return void 0===e&&(e={}),Nf((function(e){return Sh.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function uv(){return Nf((function(e){return Sh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function lv(){return Nf((function(e){return Sh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function pv(){return Nf((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,i=void 0===a?"":a;return Sh.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:i}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function dv(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l,p,d=this;return n(this,(function(m){switch(m.label){case 0:return[4,(e=Sh.getInstance()).createChartGPTChart(o)];case 1:if(a=m.sent(),!(i=null!==(l=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id)&&void 0!==l?l:null===(p=null==a?void 0:a.data)||void 0===p?void 0:p.chart_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(d,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),"DRAFT"===(null==o?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=m.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=m.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var mv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return _((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function hv(e){var o=this;return qf(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.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 fv(e){return qf(["fetch-payments-evaluated",e],(function(){return Sh.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 gv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:r,cacheTime:500,useErrorBoundary:!1})}function yv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function vv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function bv(e){var t=mv();return qf(["payment-methods",e],(function(){return Sh.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 kv(){return qf({queryKey:["/payment-methods/providers"],queryFn:function(){return Sh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function xv(){return qf(["GET/catalog/card-brands"],(function(){return Sh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wv(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Nd.PAYMENTS),qf(["payment-filters",e,t],(function(){return Sh.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function jv(){return qf(["payment-metrics-filters"],(function(){return Sh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _v(e){var t=e.transaction_code,n=e.enabled;return qf(["payment-transaction-details",t],(function(){return Sh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ev(e){var t=e.payment_code,n=e.enabled;return qf(["transaction-history",t],(function(){return Sh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Cv(e){var o=this;return qf(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Sv(e){var o=this;return qf(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.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 Rv(e){return qf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sh.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 Tv(e){return qf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sh.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 Av(e){var t=mv();return qf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sh.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 Ov(e,o){var a=this,i=mv();return qf(["GET/useGetProofOfCancel",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getProofOfCancel(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Iv(e,o){var a=this,i=mv();return qf(["GET/useGetProofOfPayment",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getProofOfPayment(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function zv(e,o,a){var i=this,r=Sh.getInstance();return qf(["send-payment-notification",e,o],(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,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Lv(e){return qf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sh.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 Pv(e){var o=this;void 0===e&&(e=!0);var a=mv();return qf(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Dv(e){var t=e.password,n=e.accountCode;return qf(["developers"],(function(){return Sh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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 qv(){return qf(["fetch-customized-api-keys-members"],(function(){return Sh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Nv(){return qf(["developers-get-allowed-ips"],(function(){return Sh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function Mv(){return qf(["fetch-customized-api-keys-accounts"],(function(){return Sh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Fv(e){return qf(["fetch-customized-api-keys",e],(function(){return Sh.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 Bv(){return qf(["fetch-customized-api-keys-products"],(function(){return Sh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function Uv(){return Nf(["developers-patch-allowed-ips"],(function(e){return Sh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function Hv(){return qf(["fetch-organizations"],(function(){return Sh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Wv(){return qf(["fetch-all-organizations",mv()],(function(){return Sh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Gv(e){var t=mv();return qf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sh.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 Vv(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return qf(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sh.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function $v(e){var t=e.accountCode,n=e.organizationCode,o=mv();return qf(["organizations-account-integrations",t,n],(function(){return Sh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Kv(e){var t=e.accountCode,n=e.paymentMethod;return qf(["fetch-connections-by-payment-method",n,t],(function(){return Sh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Qv(){var e=this;return qf(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Jv(){return qf(["connections"],(function(){return Sh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Xv(){return qf(["dialogs"],(function(){return Sh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Yv(){return qf(["params-catalog"],(function(){return Sh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Zv(e){var t=e.accountCode,n=e.name;return qf(["webhooks",t,n],(function(){return Sh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function eb(e){var t=e.accountCode,n=e.enabled;return qf(["webhooks-detail",t],(function(){return Sh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function tb(e){var t,n=mv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return qf({queryKey:["accounts",o],queryFn:function(){return Sh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function nb(e){return qf(["accountsV2",e],(function(){return Sh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ob(e){return qf(["accountsV2-by-user",e],(function(){return e?Sh.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 ab(e,o){var a=this;return qf({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.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:o?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 ib(){return qf(["menu"],(function(){return Sh.getInstance().getMenu().then((function(e){return lh(e)?yh:null==e?void 0:e.data})).catch((function(){return yh}))}))}function rb(){return qf(["/payment/statuses/style"],(function(){return Sh.getInstance().useGetPaymentStatusesStyles().then((function(e){return lh(e)?ph:null==e?void 0:e.data})).catch((function(){return ph}))}))}function sb(){return qf(["/transaction/statuses/style"],(function(){return Sh.getInstance().useGetTransactionStatusesStyles().then((function(e){return lh(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}),{cacheTime:36e5,useErrorBoundary:!1})}function cb(){return qf(["/reconciliation/transaction/statuses/style"],(function(){return Sh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return lh(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}))}function ub(){return qf(["timezone-catalog"],(function(){return Sh.getInstance().useGetTimeZoneCatalog().then((function(e){return lh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}))}function lb(){return qf(["/cms/audit-logs-filters"],(function(){return Sh.getInstance().useGetAuditLogsFilters().then((function(e){return lh(e)?fh:null==e?void 0:e.data})).catch((function(){return fh}))}))}function pb(){return qf(["/cms/static-contents"],(function(){return Sh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return lh(e)?gh:(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 db(){return qf(["/cms/locales"],(function(){return Sh.getInstance().getLocales().then((function(e){return lh(e)?vh:e.data})).catch((function(){return vh}))}))}var mb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return _((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function hb(e){return qf(["smart-routing-methods",e],(function(){return Sh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function fb(e,t){return qf(["smart-routing-workflow",t,e],(function(){return Sh.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 gb(e,t){return qf(["smart-routing-condition-types",e,t],(function(){return Sh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function yb(e,t){return qf(["smart-routing-condition-payment-method",e,t],(function(){return Sh.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 vb(e,t){return qf(["smart-routing-condition-types-values",t,e],(function(){return Sh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function bb(e){var t=e.accountCode,n=e.workflowVersionId;return qf(["smart-routing-workflow-version",n,t],(function(){return Sh.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 kb(e,t,n){return qf(["smart-routing-next-route",e,n,t],(function(){return Sh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function xb(e){return qf(["smart-routing-decline-groups",e],(function(){return Sh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function wb(e,t){return qf(["smart-routing-payment-route",e,t],(function(){return Sh.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 jb(e){return qf(["smart-routing-simulate-condition-type-values",e],(function(){return Sh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function _b(e){var t=e.text,n=e.conditionType;return qf(["smart-routing-search-condition-values",t,n],(function(){return Sh.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 Eb(){return qf(["smart-routing-conversion-rates"],(function(){return Sh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Cb(){var e=this;return qf({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,Sh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Sb(){var e=this;return qf({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,Sh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Rb(e){return qf(["fetch-routing-monitors-templates",e],(function(){return Sh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Tb(e,t){return qf(["fetch-routing-monitors-template",e],(function(){return Sh.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 Ab(e){var t=e.accountCode;return qf(["checkouts",t],(function(){return Sh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function Ob(e){var t=e.accountCode;return qf(["checkouts-template"],(function(){return Sh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var Ib=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},zb=function(e,t){var n=e.paymentMethodType,o=e.type;return qf(Ib({paymentMethodType:n,type:o}),(function(){return Sh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Lb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Pb=function(e,t){var n=e.paymentMethodType,o=e.type;return qf(Lb({paymentMethodType:n,type:o}),(function(){return Sh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function Db(e){var t=e.accountCode;return qf(["styling-sdk-dynamic",t],(function(){return Sh.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 qb(e){var t=e.accountCode;return qf(["styling-theme",t],(function(){return Sh.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 Nb(e){var t=e.accountCode;return qf(["styling-settings",t],(function(){return Sh.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 Mb(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return qf(["styling-settings-v2",t],(function(){return Sh.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Fb(){return Nf((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sh.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Bb(){return qf(["fetch-profile"],(function(){return Sh.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 Ub(e,t){return qf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);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 Hb(e){return qf(["email-verification",e],(function(){return Sh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Wb(){return qf({queryKey:["get-login-methods"],queryFn:function(){return Sh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function Gb(){return qf(["fetch-impersonation-users"],(function(){return Sh.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 Vb(){return qf(["fetch-impersonation-enabled"],(function(){return Sh.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function $b(e,o){var a=this;return qf(["get-users-to-impersonate",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getUsersToImpersonate(e,o).then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Kb(e){var t;return qf(["fetch-communications",e],(function(){return Sh.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 Qb(){return qf(["fetch-communications-filters"],(function(){return Sh.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Jb(e,t){return qf(["fetch-communication-details",e],(function(){return Sh.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Xb(e){return qf(["notifications-customer",e],(function(){return Sh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Yb(e){return qf(["validate-opsgenie-key",e],(function(){return Sh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Zb(){return qf(["notifications-merged"],(function(){return Sh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function ek(){return Nf((function(e){return Sh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function tk(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var nk={key:"metadata_fields",name:"metadata_fields"};function ok(){return qf(["reports"],(function(){return Sh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ak(e){return void 0===e&&(e=!0),qf(["reports-multi-env"],(function(){return Sh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function ik(e,t,n){return void 0===t&&(t=!1),qf(["reports/".concat(e)],(function(){return Sh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function rk(e){return qf(["GET/reports/templates"],(function(){return Sh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function sk(o,a,i){var r=this;return qf(["GET/reports/columns/".concat(a,"/").concat(i)],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getReportColumns(a,i).then((function(t){return a===Hd.ALL&&i===Ud.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[nk],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function ck(e,o){var a=this,i=mv();return qf(["getRefundPdf",e,i,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getRefundPdf(e,i,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!i,useErrorBoundary:!1})}function uk(){var e=mv();return qf(["teams-filters-members"],(function(){return Sh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function lk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=mv();return qf(["fetch-post-members-v2",t,n,o,a,i],(function(){return Sh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function pk(){return qf(["fetch-roles"],(function(){return Sh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function dk(){return qf(["fetch-rolespermissions"],(function(){return Sh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function mk(){return qf(["fetch-permissions-catalog"],(function(){return Sh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function hk(e){return qf(["data-report",e],(function(){return Sh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function fk(e,t,n){return void 0===n&&(n=!0),qf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sh.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 gk(e,t){return qf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sh.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 yk(e){return qf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sh.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 vk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-volume-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function bk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,qf(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function kk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function xk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function wk(e){return qf(["get-insights-overview",e],(function(){return Sh.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 qf(["get-insights-overview-v3",e,t],(function(){return Sh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function _k(e){return qf(["get-insights-home-metrics",e],(function(){return Sh.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 Ek(e){return qf(["get-insights-reports",e],(function(){return Sh.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 Ck(e){return qf(["get-insights-reports-again",e],(function(){return Sh.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 Sk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Rk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Tk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ik(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bk(e,t){return qf(["fetch-reconciliation-transaction",e],(function(){return Sh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Uk(e,t){return qf(["fetch-reconciliation-settlements",e],(function(){return Sh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Hk(e,t){return qf(["fetch-reconciliation-metrics",e],(function(){return Sh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Wk(){return qf(["GET-reconciliation-filters"],(function(){return Sh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Gk(e){return qf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Vk(){return qf(["GET/v1/reconciliation/active"],(function(){return Sh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function $k(e,t,n){return qf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sh.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 Kk(e){return qf(["GET/reconciliation/reports/templates"],(function(){return Sh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Qk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/alerts/list",t,n],(function(){return Sh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Jk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/agenda/list",t,n],(function(){return Sh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Xk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/agenda/insights",t,n],(function(){return Sh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Yk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/sales/list",t,n],(function(){return Sh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Zk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/advancements/list",t,n],(function(){return Sh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function ex(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/fees/list",t,n],(function(){return Sh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function tx(e){var o=this,a=Object.values(e).filter(Boolean);return qf(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function nx(e){var o=this,a=qf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.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=Of();return _((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function ox(e){var t,n,o=Of(),i=o.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=qf({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=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return a(a({},s),{isLoading:r})}function ax(e){return qf(["events",e],(function(){return Sh.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 ix(e){return qf(["audit-monitor-event-detail",e],(function(){return Sh.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 rx(e){return qf(["api-logs",e],(function(){return Sh.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function sx(e){var t=e.params;return qf(["webhook-logs",t],(function(){return Sh.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function cx(e){return qf(["api-logs-detail",e],(function(){return Sh.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function ux(e,t){return qf(["fetch-payment-links",e,t],(function(){return Sh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function lx(e){return qf(["payment-link"],(function(){return Sh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function px(e){return void 0===e&&(e=!0),qf(["countries",e],(function(){return Sh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function dx(e){var t=localStorage.getItem("lang")||"en",n=e||t;return qf(["countries-v2",n],(function(){return Sh.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function mx(e){return qf(["timezone"],(function(){return Sh.getInstance().getTimezone(e).then((function(e){return lh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}),{enabled:!0,keepPreviousData:!0})}function hx(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function fx(e,t){return qf(["get-cofig-allow-list",e],(function(){return Sh.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 gx(e){return qf(["get-black-list",e],(function(){return Sh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function yx(e,t,n,o){var a;return qf(["post-black-list",e],(function(){return Sh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function vx(e,t,n){return qf(["get-block-list-summary",e,t,n],(function(){var o=Sh.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function bx(e,t,n,o,a,i){return qf(["black-list-detail",e,t,o,a,i],(function(){return Sh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function kx(e,t,n){return qf(["allow-list-detail",e],(function(){return Sh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function xx(e){return qf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sh.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 wx(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),qf(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function jx(e){return qf(["velocity-rules",e],(function(){var t=Sh.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 _x(){return qf(["config-rules"],(function(){return Sh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function Ex(e,t){var n=e.organizationCode;return qf(["mfa-excluded-users",n],(function(){return Sh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function Cx(e,t){var n=e.organizationCode;return qf(["mfa-config",n],(function(){return Sh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function Sx(e,t){return qf(["mfa-enforcement-status",e.accountCode],(function(){return Sh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function Rx(e){return qf(["fetch-organization-saml-config",e],(function(){return Sh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Tx(e){return qf(["chartgpt-chart-execute",e],(function(){return Sh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Ax(){return qf(["chartgpt-user-charts"],(function(){return Sh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Ox(){var e=this;return qf(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){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(o.code)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:o.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:o.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(o.chart_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function Ix(e,o,a){var i=this;return void 0===a&&(a=!0),qf(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var t,a,i,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sh.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),i=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function zx(){return qf(["languages"],(function(){return Sh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function Lx(){var e=localStorage.getItem("lang")||"en";return qf(["translations",e],(function(){return Sh.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function Px(e){var o=this;return qf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1})}function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Dx.apply(this,arguments)}
|
|
224
224
|
/**
|
|
225
225
|
* match-sorter-utils
|
|
226
226
|
*
|
|
@@ -230,12 +230,12 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
230
230
|
* LICENSE.md file in the root directory of this source tree.
|
|
231
231
|
*
|
|
232
232
|
* @license MIT
|
|
233
|
-
*/const
|
|
233
|
+
*/const qx={"À":"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"},Nx=Object.keys(qx).join("|"),Mx=new RegExp(Nx,"g");
|
|
234
234
|
/**
|
|
235
235
|
* @name match-sorter
|
|
236
236
|
* @license MIT license.
|
|
237
237
|
* @copyright (c) 2099 Kent C. Dodds
|
|
238
238
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
239
239
|
*/
|
|
240
|
-
const Mx=7,Fx=6,Bx=5,Ux=4,Hx=3,Wx=2,Gx=1,Vx=0;function $x(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Gx,!n.accessors){const o=Kx(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=Yx(a),r=Jx(e,a);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:Vx,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=Kx(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=Gx?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=o.itemValue)}return i}function Kx(e,t,n){return e=Qx(e,n),(t=Qx(t,n)).length>e.length?Vx:e===t?Mx:(e=e.toLowerCase())===(t=t.toLowerCase())?Fx:e.startsWith(t)?Bx:e.includes(` ${t}`)?Ux:e.includes(t)?Hx:1===t.length?Vx:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Wx:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return Gx+a*o}const r=a(t[0],e,0);if(r<0)return Vx;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Vx}const s=o-r;return i(s)}(e,t)}function Qx(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Nx,(e=>Dx[e]))),e}function Jx(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const Xx={maxRanking:1/0,minRanking:-1/0};function Yx(e){return"function"==typeof e?Xx:{...Xx,...e}}function Zx(e,t){const[n,o]=k.useState();k.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,k.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var ew,tw=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}(),nw=function(){function e(e){this.generateIdentifier=e,this.kv=new tw}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}(),ow=(ew=function(e,t){return ew=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])},ew(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}ew(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aw=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return ow(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}(nw),iw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function rw(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 o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function sw(e,t){Object.entries(e).forEach((function(e){var n=iw(e,2),o=n[0],a=n[1];return t(a,o)}))}function cw(e,t){return-1!==e.indexOf(t)}function uw(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var lw=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return rw(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),pw=function(e){return void 0===e},dw=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},mw=function(e){return dw(e)&&0===Object.keys(e).length},hw=function(e){return Array.isArray(e)},fw=function(e){return e instanceof Map},gw=function(e){return e instanceof Set},yw=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},vw=function(e){return"number"==typeof e&&isNaN(e)},bw=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||pw(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||yw(e)},kw=function(e){return e.replace(/\./g,"\\.")},xw=function(e){return e.map(String).map(kw).join(".")},ww=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},jw=function(){return jw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},jw.apply(this,arguments)},_w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Ew=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Cw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Sw=[Cw(pw,"undefined",(function(){return null}),(function(){})),Cw((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)})),Cw((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),Cw((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})),Cw((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)})),Cw(gw,"set",(function(e){return Ew([],_w(e.values()))}),(function(e){return new Set(e)})),Cw(fw,"map",(function(e){return Ew([],_w(e.entries()))}),(function(e){return new Map(e)})),Cw((function(e){return vw(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return vw(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),Cw((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),Cw((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Rw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Tw=Rw((function(e,t){return!!yw(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),Aw=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Ow=Rw((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return Ew([],_w(e))}),(function(e,t){var n=Aw[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Iw(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var zw=Rw(Iw,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return jw({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),Lw=Rw((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 o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),Pw=[zw,Tw,Lw,Ow],Dw=function(e,t){var n=uw(Pw,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=uw(Sw,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},qw={};Sw.forEach((function(e){qw[e.annotation]=e}));var Nw=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Mw(e){if(cw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(cw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(cw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Fw=function(e,t,n){if(Mw(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(hw(o))o=o[+i];else if(dw(o))o=o[i];else if(gw(o)){o=Nw(o,r=+i)}else if(fw(o)){if(a===t.length-2)break;var r=+i,s=0==+t[++a]?"key":"value",c=Nw(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(hw(o)?o[+u]=n(o[+u]):dw(o)&&(o[u]=n(o[u])),gw(o)){var l=Nw(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(fw(o)){r=+t[t.length-2];var d=Nw(o,r);switch(s=0==+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},Bw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Uw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Hw(e,t,n){if(void 0===n&&(n=[]),e)if(hw(e)){var o=Bw(e,2),a=o[0],i=o[1];i&&sw(i,(function(e,o){Hw(e,t,Uw(Uw([],Bw(n)),Bw(ww(o))))})),t(a,n)}else sw(e,(function(e,o){return Hw(e,t,Uw(Uw([],Bw(n)),Bw(ww(o))))}))}function Ww(e,t,n){return Hw(t,(function(t,o){e=Fw(e,o,(function(e){return function(e,t,n){if(!hw(t)){var o=qw[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Tw.untransform(e,t,n);case"class":return zw.untransform(e,t,n);case"custom":return Lw.untransform(e,t,n);case"typed-array":return Ow.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Gw(e,t){function n(t,n){var o=function(e,t){Mw(t);for(var n=0;n<t.length;n++){var o=t[n];if(gw(e))e=Nw(e,+o);else if(fw(e)){var a=+o,i=0==+t[++n]?"key":"value",r=Nw(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,ww(n));t.map(ww).forEach((function(t){e=Fw(e,t,(function(){return o}))}))}if(hw(t)){var o=Bw(t,2),a=o[0],i=o[1];a.forEach((function(t){e=Fw(e,ww(t),(function(){return e}))})),i&&sw(i,n)}else sw(t,n);return e}var Vw=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=bw(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return dw(e)||hw(e)||fw(e)||gw(e)||Iw(e,t)}(e,n)){var l=Dw(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(cw(i,e))return{transformedValue:null};var d=Dw(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=hw(m)?[]:{},f={};sw(m,(function(s,c){var u=Vw(s,t,n,o,Uw(Uw([],Bw(a)),[c]),Uw(Uw([],Bw(i)),[e]),r);h[c]=u.transformedValue,hw(u.annotations)?f[c]=u.annotations:dw(u.annotations)&&sw(u.annotations,(function(e,t){f[kw(c)+"."+t]=e}))}));var g=mw(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 $w(e){return Object.prototype.toString.call(e).slice(8,-1)}function Kw(e){return"Array"===$w(e)}function Qw(e,t={}){if(Kw(e))return e.map((e=>Qw(e,t)));if(!function(e){if("Object"!==$w(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,o)=>{if(Kw(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Qw(e[o],t),e,t.nonenumerable),n}),{})}var Jw=function(){return Jw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Jw.apply(this,arguments)},Xw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Yw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Zw=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new aw,this.symbolRegistry=new nw((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new lw,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Vw(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Jw(Jw({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.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=Bw(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(xw):r[xw(n)]=o.map(xw)}})),s?mw(r)?[s]:[s,r]:mw(r)?void 0:r);return c&&(o.meta=Jw(Jw({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Qw(t);return(null==n?void 0:n.values)&&(o=Ww(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Gw(o,n.referentialEqualities)),o},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(Jw({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,Yw([],Xw(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 ej={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},tj=k.createContext(ej);function nj({theme:e,...t}){return k.createElement(tj.Provider,Px({value:e},t))}function oj({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function aj(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function ij(e,t,n={}){return k.forwardRef((({style:o,...a},i)=>{const r=k.useContext(tj),s=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=k.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return k.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e),{});return k.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})}))}const rj=(e,t=!1)=>{const{json:n}=Zw.serialize(e);return JSON.stringify(n,null,t?2:void 0)},sj=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,cj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,uj={"Status > Last Updated":(e,t)=>sj(e)===sj(t)?cj(e,t):sj(e)>sj(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":cj},lj=500,pj={top:"bottom",bottom:"top",left:"right",right:"left"};function dj(e){return["left","right"].includes(e)}function mj(e){return pj[e]}function hj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function fj(e="bottom"){const t=dj(e),n=mj(e),o=hj("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const gj=ij("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"}}),yj=ij("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),vj=ij("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"}))),bj=ij("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),kj=ij("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),xj=ij("code",{fontSize:".9em",color:"inherit",background:"inherit"}),wj=ij("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),jj=ij("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 _j({text:e}){return k.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Ej=ij("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Cj=ij("span",{color:"white"}),Sj=ij("button",{cursor:"pointer",color:"white"}),Rj=ij("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Tj=({value:e})=>{const[t,n]=k.useState("NoCopy");return k.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Zw.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?k.createElement(Lj,null):"SuccessCopy"===t?k.createElement(Dj,null):k.createElement(Pj,null))},Aj=ij("span",((e,t)=>({color:t.danger}))),Oj=ij("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ij=ij("span",{color:"grey",fontSize:".7em"}),zj=({expanded:e,style:t={}})=>k.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Lj=()=>k.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},k.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"}),k.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"}))),Pj=()=>k.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},k.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"})),k.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Dj=()=>k.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},k.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},k.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 qj=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=k.useState([]);return k.createElement(Ej,{key:t},a.length?k.createElement(k.Fragment,null,k.createElement(Rj,{onClick:()=>c()},k.createElement(zj,{expanded:r})," ",t," ",k.createElement(Ij,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?k.createElement(Tj,{value:n}):null,r?1===a.length?k.createElement(Oj,null,o.map(e)):k.createElement(Oj,null,a.map(((t,n)=>k.createElement("div",{key:n},k.createElement(Ej,null,k.createElement(Sj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},k.createElement(zj,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?k.createElement(Oj,null,t.map(e)):null))))):null):k.createElement(k.Fragment,null,k.createElement(Cj,null,t,":")," ",k.createElement(Aj,null,rj(n))))};function Nj({value:e,defaultExpanded:t,renderer:n=qj,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=k.useState(Boolean(t)),c=k.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 o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>k.createElement(Nj,Px({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Mj(e){return k.createElement("svg",Px({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),k.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},k.createElement("g",{transform:"translate(-33.000000, 0.000000)"},k.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) "}),k.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"}),k.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 Fj=(e,t,n=!1)=>Ef.useSyncExternalStore(k.useCallback((t=>n?()=>{}:e.subscribe(af.batchCalls(t))),[e,n]),t,t),Bj=k.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Af({context:i}),g=f.getQueryCache(),[y,v]=Zx("reactQueryDevtoolsSortFn",Object.keys(uj)[0]),[b,x]=Zx("reactQueryDevtoolsFilter",""),[w,j]=Zx("reactQueryDevtoolsBaseSort",1),_=k.useMemo((()=>uj[y]),[y]),E=Fj(g,(()=>g.getAll().length),!n),[C,S]=Zx("reactQueryDevtoolsActiveQueryHash",""),R=k.useMemo((()=>{const e=g.getAll();if(0===E)return[];const t=b?e.filter((e=>$x(e.queryHash,b).passed)):[...e];return _?t.sort(((e,t)=>_(e,t)*w)):t}),[w,_,b,E,g]),[T,A]=k.useState(!1);return k.createElement(nj,{theme:ej},k.createElement(gj,Px({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:lj,position:"relative",...d.style}}),k.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+ej.backgroundAlt+" "+ej.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: "+ej.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+ej.gray+";\n border-radius: .5em;\n border: 3px solid "+ej.backgroundAlt+";\n }\n "}}),k.createElement("div",{style:fj(u),onMouseDown:r}),n&&k.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+ej.grayAlt,display:"flex",flexDirection:"column"}},k.createElement("div",{style:{padding:".5em",background:ej.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},k.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},k.createElement(Mj,{"aria-hidden":!0}),k.createElement(_j,{text:"Close React Query Devtools"})),k.createElement("div",{style:{display:"flex",flexDirection:"column"}},k.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},k.createElement(Hj,{queryCache:g}),u&&s?k.createElement(jj,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},k.createElement("option",{value:"left"},"Left"),k.createElement("option",{value:"right"},"Right"),k.createElement("option",{value:"top"},"Top"),k.createElement("option",{value:"bottom"},"Bottom")):null),k.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},k.createElement(wj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),k.createElement(jj,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(uj).map((e=>k.createElement("option",{key:e,value:e},"Sort by ",e)))),k.createElement(vj,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),k.createElement(vj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),k.createElement(vj,{type:"button",onClick:()=>{T?(Xh.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(Xh.setOnline(!1),A(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?ej.danger:"currentColor",fill:"none"},T?k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.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"}),k.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"}),k.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),k.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),k.createElement(_j,{text:T?"Restore offline mock":"Mock offline behavior"}))))),k.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>k.createElement(Wj,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:S,key:e.queryHash,queryCache:g}))))),C&&n?k.createElement(Uj,{activeQueryHash:C,queryCache:g,queryClient:f,errorTypes:p}):null,c?k.createElement(vj,Px({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=>{a(!1),null==m||m(e)}}),"Close"):null))})),Uj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=Fj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),s=Fj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=Fj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=Fj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=E((()=>{if(r&&null!=s&&s.error){const e=o.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,o]);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"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return k.createElement(yj,null,k.createElement("div",{style:{padding:".5em",background:ej.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),k.createElement("div",{style:{padding:".5em"}},k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},k.createElement(xj,{style:{lineHeight:"1.8em"}},k.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},rj(r.queryKey,!0))),k.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:oj({queryState:s,isStale:c,observerCount:u,theme:ej}),flexShrink:0}},aj(r))),k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",k.createElement(xj,null,u)),k.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",k.createElement(xj,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),k.createElement("div",{style:{background:ej.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),k.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},k.createElement(vj,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(Gj)},disabled:"fetching"===s.fetchStatus,style:{background:ej.active}},"Refetch")," ",k.createElement(vj,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:ej.warning,color:ej.inputTextColor}},"Invalidate")," ",k.createElement(vj,{type:"button",onClick:()=>n.resetQueries(r),style:{background:ej.gray}},"Reset")," ",k.createElement(vj,{type:"button",onClick:()=>n.removeQueries(r),style:{background:ej.danger}},"Remove")," ",k.createElement(vj,{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:ej.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?k.createElement(vj,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:ej.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):k.createElement("label",null,"Trigger error:",k.createElement(jj,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},k.createElement("option",{key:"",value:""}),o.map((e=>k.createElement("option",{key:e.name,value:e.name},e.name)))))),k.createElement("div",{style:{background:ej.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Nj,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),k.createElement("div",{style:{background:ej.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Nj,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},Hj=({queryCache:e})=>{const t=Fj(e,(()=>e.getAll().filter((e=>"fresh"===aj(e))).length)),n=Fj(e,(()=>e.getAll().filter((e=>"fetching"===aj(e))).length)),o=Fj(e,(()=>e.getAll().filter((e=>"paused"===aj(e))).length)),a=Fj(e,(()=>e.getAll().filter((e=>"stale"===aj(e))).length)),i=Fj(e,(()=>e.getAll().filter((e=>"inactive"===aj(e))).length));return k.createElement(bj,null,k.createElement(kj,{style:{background:ej.success,opacity:t?1:.3}},"fresh ",k.createElement(xj,null,"(",t,")"))," ",k.createElement(kj,{style:{background:ej.active,opacity:n?1:.3}},"fetching ",k.createElement(xj,null,"(",n,")"))," ",k.createElement(kj,{style:{background:ej.paused,opacity:o?1:.3}},"paused ",k.createElement(xj,null,"(",o,")"))," ",k.createElement(kj,{style:{background:ej.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",k.createElement(xj,null,"(",a,")"))," ",k.createElement(kj,{style:{background:ej.gray,opacity:i?1:.3}},"inactive ",k.createElement(xj,null,"(",i,")")))},Wj=k.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=Fj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=Fj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=Fj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(r=Fj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&r,d=null!=(s=Fj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?s:0;return u?k.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+ej.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},k.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:oj({queryState:u,isStale:l,observerCount:d,theme:ej}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?k.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:ej.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,k.createElement(xj,{style:{padding:".5em"}},""+c)):null}));function Gj(){}Wj.displayName="QueryRow";const Vj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=k.useRef(null),p=k.useRef(null),[d,m]=Zx("reactQueryDevtoolsOpen",e),[h,f]=Zx("reactQueryDevtoolsHeight",lj),[g,y]=Zx("reactQueryDevtoolsWidth",lj),[v="bottom",b]=Zx("reactQueryDevtoolsPanelPosition",c),[x,w]=k.useState(!1),[j,_]=k.useState(!1),E=function(){const e=k.useRef(!1),t=k.useCallback((()=>e.current),[]);return k.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();k.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),k.useEffect((()=>{const e=p.current;if(e){const t=()=>{x&&(e.style.visibility="visible")},n=()=>{x||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[x]),k.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=hj("padding",v),n=dj(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{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(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[x,v,h,g]);const{style:C={},...S}=t,{style:R={},onClick:T,...A}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=mj(e),c=hj("border",s),u=dj(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{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:lj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:lj}}}({position:v,devtoolsTheme:ej,isOpen:x,height:h,width:g,isResizing:j,panelStyle:C});return E()?k.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},k.createElement(nj,{theme:ej},k.createElement(Bj,Px({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},S,{style:O,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=dj(v);_(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=o+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{j&&_(!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}))),x?null:k.createElement("button",Px({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==T||T(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"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),k.createElement(Mj,{"aria-hidden":!0}),k.createElement(_j,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var $j,Kj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Qj(e){var o=this,i=e.children,r=process.env.ENVIRONMENT,s=E((function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"}),[r]),c=w(!1),u=c[0],l=c[1],p=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=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,Ch.refreshInstance({headers:a(a({},o),{"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]);_((function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}}),[p]);var d=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c,u,p;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=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,Ch.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),vg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}}))}))}),[s,l]);return _((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(Of,{client:vg},i,React.createElement(Vj,{initialIsOpen:!1})):React.createElement("div",{style:Kj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}($j||($j={}));var Jj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Jj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!Pa())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,Ia.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{$d as AI,_h as Api,$j as ApiErrorCodes,Qj as ApiProvider,Ch as ApiSingleton,Fd as Cms,Md as Country,Wd as DataReport,Nd as Organization,qd as PaymentFiltersSection,Vd as ReconciliationAgendaInsight,Gd as ReconciliationReportType,Bd as ReportType,Dd as SendPaymentNotification,Hd as SmartRouting,Ud as TemplateType,Ob as getQueryKeyGetNameAndIcon,zb as getQueryKeyRequiredFields,yg as queryCache,vg as queryClient,Eb as use3DSExemptions,rv as useAICreateWorkflow,tx as useAllFeatureFlags,bx as useAllowListDetail,vx as useBlackListDetail,nx as useCachedFeatureFlag,wg as useCancelReport,ig as useChangePasswordV2,by as useChangePaymentsWebhook,hy as useChangeStatusBlackList,fy as useChangeStatusItemBlackList,Mb as useChangeStylingSettings,gg as useChargebacksUpload,Rx as useChartExecute,Qb as useCommunicationDetails,$b as useCommunications,Kb as useCommunicationsFilters,ny as useConfirmedOtpMfa,xg as useCountRowsForReport,pv as useCreateAndExecuteChart,cv as useCreateChart,Fg as useCreateMonitorTemplate,Mg as useCreateMonitorThreshold,fg as useCreateOperationTransaction,$g as useCreatePaymentLinks,Zy as useCreateReconciliationAlert,Xy as useCreateReconciliationReportTemplate,bg as useCreateReconciliationsReportV2,jg as useCreateReportTemplate,kg as useCreateReportV2,Wg as useCreateRoles,ov as useCreateSamlConfig,zy as useCreateScheduledReport,ug as useCreateUserAuth0,Eg as useCreateWorkflow,Vf as useDeleteAccountsUserMassive,wy as useDeleteAllowlistItem,yy as useDeleteBlackListType,ky as useDeleteBlockListItem,uv as useDeleteChart,Wy as useDeleteCustomizedApiKeys,Kg as useDeletePaymentLink,ev as useDeleteReconciliationAlert,Vg as useDeleteRoles,iv as useDeleteSamlConfig,Py as useDeleteScheduledReport,Ug as useDeleteUserTeamV2,Rg as useDeleteVersion,Ff as useDeleteWebhookV2,Tg as useDuplicateVersion,Qg as useEditPaymentLinks,Gg as useEditRoles,Ub as useEmailVerification,Oy as useExcludeUsers,Jy as useExportApiLogs,ex as useFeatureFlags,mx as useFirebaseUserSubscribe,sv as useGenerateFeedback,eb as useGetAccounts,nb as useGetAccountsByUser,ob as useGetAccountsForImpersonation,tb as useGetAccountsV2,jx as useGetAllConfigRules,Hv as useGetAllOrganizations,Yk as useGetAllReconciliationsAdvancements,Qk as useGetAllReconciliationsAgenda,Kk as useGetAllReconciliationsAlerts,Zk as useGetAllReconciliationsFees,Xk as useGetAllReconciliationsSales,Wk as useGetAllTableColumns,qv as useGetAllowedIps,sx as useGetApiLogsDetailByPaymentCode,ox as useGetAuditEvents,ub as useGetAuditLogsFilters,ax as useGetAuditMonitorEventDetail,Sy as useGetBatchRefundProcessedFileDownload,Ry as useGetBatchRefundUserFileDownload,xx as useGetBatchRefunds,fx as useGetBlackList,yx as useGetBlockListSummary,kv as useGetCardBrands,Tx as useGetChartsByUser,Ax as useGetChartsByUserWithResults,Ab as useGetCheckoutTemplate,Tb as useGetCheckouts,Dy as useGetConditionalConfigRules,hx as useGetConfigAllowlist,Qv as useGetConnections,$v as useGetConnectionsByPaymentMethod,lx as useGetCountriesConfigPaymentLink,px as useGetCountriesConfigPaymentLinkV2,Pv as useGetCredentials,$y as useGetCredentialsMFA,Mv as useGetCustomizedApiKeys,Nv as useGetCustomizedApiKeysAccounts,Dv as useGetCustomizedApiKeysMembers,Fv as useGetCustomizedApiKeysProducts,Uy as useGetCustomizedApiKeysToken,lb as useGetDashboardStaticContents,Jv as useGetDialogs,ak as useGetDownloadReport,ty as useGetEmailOtp,Kv as useGetHashPylon,Gb as useGetImpersonationEnabled,Wb as useGetImpersonationUsers,_k as useGetInsightsReport,Ek as useGetInsightsReportAgain,Vv as useGetIntegrationByAccountV2,Gv as useGetIntegrationParams,Ix as useGetLanguages,pb as useGetLocales,Hb as useGetLoginMethods,Ex as useGetMFAConfig,_x as useGetMFAExcludedUsers,Cx as useGetMFAStatus,ab as useGetMenu,Yb as useGetMergedNotifications,Ib as useGetNameAndIcon,tg as useGetNetworkTokensOnboarding,Lx as useGetNetworkTokensOnboardingByOrganization,Jb as useGetNotificationsCustomer,Zb as useGetNotificationsNumberMutation,Uv as useGetOrganization,xv as useGetPaymentFilters,ux as useGetPaymentLinkByCode,cx as useGetPaymentLinks,bv as useGetPaymentMethodsAndProviders,wv as useGetPaymentMetricsFilters,ib as useGetPaymentStatusesStyles,jv as useGetPaymentTransactionsDetails,fv as useGetPaymentV2,vv as useGetPaymentsMethodsByCountry,Sv as useGetPayoutDetail,Tv as useGetPayoutHistoryDetail,Rv as useGetPayoutTransactionDetail,Bb as useGetPermissions,dk as useGetPermissionsCatalog,Fb as useGetProfile,Av as useGetProofOfCancel,Ov as useGetProofOfPayment,Wv as useGetProviderParams,Gk as useGetReconciliationActive,Jk as useGetReconciliationAgendaInsightsByKey,Hk as useGetReconciliationFilters,Uk as useGetReconciliationMetrics,sb as useGetReconciliationTransactionStatusesStyles,Fk as useGetReconciliationTransactions,Vk as useGetReconciliationsReportColumns,$k as useGetReconciliationsReportTemplates,sk as useGetRefundPdf,rk as useGetReportColumns,ik as useGetReportTemplates,nk as useGetReportsList,ok as useGetReportsListMultiEnv,Lb as useGetRequiredFields,lk as useGetRoles,pk as useGetRolesPermissions,Rb as useGetRoutingMonitorsTemplate,Sb as useGetRoutingMonitorsTemplates,qy as useGetRule,Sx as useGetSamlConfig,Iy as useGetScheduledReportsList,Bk as useGetSettlements,gb as useGetSmartRoutingConditionPaymentMethod,fb as useGetSmartRoutingConditionTypes,yb as useGetSmartRoutingConditionTypesValues,mk as useGetSmartRoutingDataReport,kb as useGetSmartRoutingDeclineGroups,mb as useGetSmartRoutingMethods,bb as useGetSmartRoutingNextRoute,xb as useGetSmartRoutingPaymentRoute,jb as useGetSmartRoutingSearchConditionValues,wb as useGetSmartRoutingSimulateConditionTypeValues,hb as useGetSmartRoutingWorkflow,vb as useGetSmartRoutingWorkflowVersion,Pb as useGetStylingSdkDynamic,qb as useGetStylingSettings,Nb as useGetStylingSettingsV2,Db as useGetStylingTheme,ck as useGetTeamsFiltersMembers,cb as useGetTimeZoneCatalog,dx as useGetTimezonePaymentLink,ey as useGetTokenValidation,gv as useGetTransactionDetailsV2,_v as useGetTransactionHistoryByPaymentCode,yv as useGetTransactionRawResponse,rb as useGetTransactionStatusesStyles,zx as useGetTranslations,Vb as useGetUsersToImpersonate,Xb as useGetValidateOpsgenieKey,Xv as useGetWebhookParamsV2,Zv as useGetWebhooksV2Detail,Yv as useGetWebhooksV3,Tk as useInsights3dsConversionRateAndEvolution,Ak as useInsights3dsDeclineReasons,Ok as useInsights3dsFrictionlessVsChallenge,Rk as useInsights3dsVolumeAndCountTx,Mk as useInsightsChargebacksByCardBrand,Dk as useInsightsChargebacksByProviderAndCardBrand,Pk as useInsightsChargebacksDisputed,qk as useInsightsChargebacksReasonsDistribution,Nk as useInsightsChargebacksStatusDistribution,zk as useInsightsChargebacksTotalRateAndEvolution,Ik as useInsightsChargebacksVolumeAndCountTx,Lk as useInsightsChargebacksWinRate,hk as useInsightsConversionRateMetricsV2,kk as useInsightsCustomerPaymentsAndFraudMetrics,gk as useInsightsFallbackMetrics,Sk as useInsightsFraudScreeningConversionRate,Ck as useInsightsFraudScreeningVolumeAndCountTx,jk as useInsightsHomeMetrics,xk as useInsightsOverviewMetrics,wk as useInsightsOverviewMetricsV3,bk as useInsightsTotalPaymentsAndFraudMetrics,yk as useInsightsVolumeMetrics,vk as useInsightsVolumeMetricsV2,sg as useInviteUsersMultiaccountMassive,db as useIsTesting,pg as useLoginMethods,Cb as useNetworkTokensOnboarding,Xf as useNewPostConnectionValidate,Hf as usePatchAccountV2,ly as usePatchAddAllowlistItems,Bv as usePatchAllowedIps,py as usePatchAllowlist,Ox as usePatchAndExecuteChart,Gy as usePatchApiKeysEditNote,cy as usePatchChangeStatusAllowlist,uy as usePatchChangeStatusAllowlistItem,lv as usePatchChartName,Yf as usePatchConnection,By as usePathCreateCustomizedApiKeys,ek as usePathNotifications,Lv as usePayoutsFilters,zv as usePayoutsList,Uf as usePostAccount,kx as usePostAllowlistMultiAccount,Vy as usePostApiKeysRoll,ix as usePostApiLogs,Ky as usePostAuditMonitors,Cy as usePostBatchRefundByFile,vy as usePostBlackListBatch,gy as usePostBlackListItems,dy as usePostBlackListMultiAccount,gx as usePostBlockList,lg as usePostCall,Kf as usePostChangeStatusConnection,Jf as usePostConnectionMultiAccount,sy as usePostCreateAllowlistMultiAccount,Fy as usePostCreateCustomizedApiKeys,nv as usePostCreateInsightsReport,Ny as usePostCreateRuleMultiAccount,Hy as usePostCredentialsValidatePassword,Zf as usePostDefaultRoutes,My as usePostEditRule,Cv as usePostFraudTransactions,iy as usePostGetAllowlistItems,ry as usePostGetAllowlistMultiAccount,uk as usePostMembersPaginatedV2,ng as usePostNetworkTokensOnboarding,hv as usePostPaymentsEvaluated,mv as usePostPaymentsLazy,Bg as usePostSlackMessageChannel,Ev as usePostTransactions,Jg as usePostUserSettings,Zg as usePostUserSettingsPinned,Yg as usePostUserSettingsTables,Xg as usePostUserThemeSettings,$f as usePostValideStatusConnection,wx as usePostVelocityRules,rx as usePostWebhookLogs,Mf as usePostWebhookMultiAccount,_b as useProviderConversionRatesData,Cg as usePublishVersion,Wf as usePutAccountPrincipal,Gf as usePutAccountsUserMassive,my as usePutBlackListType,Qf as usePutCosts,Qy as useResendWebhooks,Sg as useSaveVersion,Iv as useSendPaymentNotification,Hg as useSetCustodian,Ig as useSmartRoutingCreateDeclinedGroup,Lg as useSmartRoutingEditWorkflowName,Ng as useSmartRoutingMultiAccountDeclinedGroupCreate,qg as useSmartRoutingRemoveDeclinedGroup,Pg as useSmartRoutingSimulateTransaction,zg as useSmartRoutingToggleFavorite,Og as useSmartRoutingUpdateDeclinedGroup,Dg as useSmartRoutingUpdateMonitorRedistribution,Ag as useToggleMethod,cg as useUnInviteUsersV2,oy as useUnrollUserV2,mg as useUpdateCheckoutTemplate,dg as useUpdateIsActiveCheckout,Ay as useUpdateMFAConfig,og as useUpdateOrganizationStatus,rg as useUpdateProfile,tv as useUpdateReconciliationAlert,Yy as useUpdateReconciliationReportTemplate,_g as useUpdateReportTemplate,av as useUpdateSamlConfig,Ly as useUpdateScheduledReport,hg as useUpdateStylingTheme,Bf as useUpdateWebhookV2,_y as useUploadBatchRefundsFileV2,Ey as useUploadBatchRefundsV2,Ty as useUploadFileS3ClientBatchRefunds,jy as useValiateAllowlistItems,xy as useValidateBlockListItems,eg as useValidateCredentials,ag as useValidateOrgName,ay as useValidatePasswordStatus,fk as useViewMoreMetrics};
|
|
240
|
+
const Fx=7,Bx=6,Ux=5,Hx=4,Wx=3,Gx=2,Vx=1,$x=0;function Kx(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Vx,!n.accessors){const o=Qx(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=Zx(a),r=Xx(e,a);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:$x,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=Qx(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=Vx?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=o.itemValue)}return i}function Qx(e,t,n){return e=Jx(e,n),(t=Jx(t,n)).length>e.length?$x:e===t?Fx:(e=e.toLowerCase())===(t=t.toLowerCase())?Bx:e.startsWith(t)?Ux:e.includes(` ${t}`)?Hx:e.includes(t)?Wx:1===t.length?$x:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Gx:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return Vx+a*o}const r=a(t[0],e,0);if(r<0)return $x;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return $x}const s=o-r;return i(s)}(e,t)}function Jx(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Mx,(e=>qx[e]))),e}function Xx(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const Yx={maxRanking:1/0,minRanking:-1/0};function Zx(e){return"function"==typeof e?Yx:{...Yx,...e}}function ew(e,t){const[n,o]=k.useState();k.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,k.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var tw,nw=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}(),ow=function(){function e(e){this.generateIdentifier=e,this.kv=new nw}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}(),aw=(tw=function(e,t){return tw=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])},tw(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}tw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),iw=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return aw(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}(ow),rw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function sw(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 o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function cw(e,t){Object.entries(e).forEach((function(e){var n=rw(e,2),o=n[0],a=n[1];return t(a,o)}))}function uw(e,t){return-1!==e.indexOf(t)}function lw(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var pw=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return sw(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),dw=function(e){return void 0===e},mw=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},hw=function(e){return mw(e)&&0===Object.keys(e).length},fw=function(e){return Array.isArray(e)},gw=function(e){return e instanceof Map},yw=function(e){return e instanceof Set},vw=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},bw=function(e){return"number"==typeof e&&isNaN(e)},kw=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||dw(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||vw(e)},xw=function(e){return e.replace(/\./g,"\\.")},ww=function(e){return e.map(String).map(xw).join(".")},jw=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},_w=function(){return _w=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},_w.apply(this,arguments)},Ew=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Cw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Sw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Rw=[Sw(dw,"undefined",(function(){return null}),(function(){})),Sw((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)})),Sw((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),Sw((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})),Sw((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)})),Sw(yw,"set",(function(e){return Cw([],Ew(e.values()))}),(function(e){return new Set(e)})),Sw(gw,"map",(function(e){return Cw([],Ew(e.entries()))}),(function(e){return new Map(e)})),Sw((function(e){return bw(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return bw(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),Sw((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),Sw((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Tw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Aw=Tw((function(e,t){return!!vw(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),Ow=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Iw=Tw((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return Cw([],Ew(e))}),(function(e,t){var n=Ow[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function zw(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Lw=Tw(zw,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return _w({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),Pw=Tw((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 o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),Dw=[Lw,Aw,Pw,Iw],qw=function(e,t){var n=lw(Dw,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=lw(Rw,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Nw={};Rw.forEach((function(e){Nw[e.annotation]=e}));var Mw=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Fw(e){if(uw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(uw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(uw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Bw=function(e,t,n){if(Fw(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(fw(o))o=o[+i];else if(mw(o))o=o[i];else if(yw(o)){o=Mw(o,r=+i)}else if(gw(o)){if(a===t.length-2)break;var r=+i,s=0==+t[++a]?"key":"value",c=Mw(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(fw(o)?o[+u]=n(o[+u]):mw(o)&&(o[u]=n(o[u])),yw(o)){var l=Mw(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(gw(o)){r=+t[t.length-2];var d=Mw(o,r);switch(s=0==+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},Uw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Hw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Ww(e,t,n){if(void 0===n&&(n=[]),e)if(fw(e)){var o=Uw(e,2),a=o[0],i=o[1];i&&cw(i,(function(e,o){Ww(e,t,Hw(Hw([],Uw(n)),Uw(jw(o))))})),t(a,n)}else cw(e,(function(e,o){return Ww(e,t,Hw(Hw([],Uw(n)),Uw(jw(o))))}))}function Gw(e,t,n){return Ww(t,(function(t,o){e=Bw(e,o,(function(e){return function(e,t,n){if(!fw(t)){var o=Nw[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Aw.untransform(e,t,n);case"class":return Lw.untransform(e,t,n);case"custom":return Pw.untransform(e,t,n);case"typed-array":return Iw.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Vw(e,t){function n(t,n){var o=function(e,t){Fw(t);for(var n=0;n<t.length;n++){var o=t[n];if(yw(e))e=Mw(e,+o);else if(gw(e)){var a=+o,i=0==+t[++n]?"key":"value",r=Mw(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,jw(n));t.map(jw).forEach((function(t){e=Bw(e,t,(function(){return o}))}))}if(fw(t)){var o=Uw(t,2),a=o[0],i=o[1];a.forEach((function(t){e=Bw(e,jw(t),(function(){return e}))})),i&&cw(i,n)}else cw(t,n);return e}var $w=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=kw(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return mw(e)||fw(e)||gw(e)||yw(e)||zw(e,t)}(e,n)){var l=qw(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(uw(i,e))return{transformedValue:null};var d=qw(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=fw(m)?[]:{},f={};cw(m,(function(s,c){var u=$w(s,t,n,o,Hw(Hw([],Uw(a)),[c]),Hw(Hw([],Uw(i)),[e]),r);h[c]=u.transformedValue,fw(u.annotations)?f[c]=u.annotations:mw(u.annotations)&&cw(u.annotations,(function(e,t){f[xw(c)+"."+t]=e}))}));var g=hw(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 Kw(e){return Object.prototype.toString.call(e).slice(8,-1)}function Qw(e){return"Array"===Kw(e)}function Jw(e,t={}){if(Qw(e))return e.map((e=>Jw(e,t)));if(!function(e){if("Object"!==Kw(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,o)=>{if(Qw(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Jw(e[o],t),e,t.nonenumerable),n}),{})}var Xw=function(){return Xw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Xw.apply(this,arguments)},Yw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Zw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},ej=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new iw,this.symbolRegistry=new ow((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new pw,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=$w(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Xw(Xw({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.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=Uw(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(ww):r[ww(n)]=o.map(ww)}})),s?hw(r)?[s]:[s,r]:hw(r)?void 0:r);return c&&(o.meta=Xw(Xw({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Jw(t);return(null==n?void 0:n.values)&&(o=Gw(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Vw(o,n.referentialEqualities)),o},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(Xw({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,Zw([],Yw(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 tj={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},nj=k.createContext(tj);function oj({theme:e,...t}){return k.createElement(nj.Provider,Dx({value:e},t))}function aj({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function ij(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function rj(e,t,n={}){return k.forwardRef((({style:o,...a},i)=>{const r=k.useContext(nj),s=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=k.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return k.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e),{});return k.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})}))}const sj=(e,t=!1)=>{const{json:n}=ej.serialize(e);return JSON.stringify(n,null,t?2:void 0)},cj=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,uj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,lj={"Status > Last Updated":(e,t)=>cj(e)===cj(t)?uj(e,t):cj(e)>cj(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":uj},pj=500,dj={top:"bottom",bottom:"top",left:"right",right:"left"};function mj(e){return["left","right"].includes(e)}function hj(e){return dj[e]}function fj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function gj(e="bottom"){const t=mj(e),n=hj(e),o=fj("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const yj=rj("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"}}),vj=rj("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),bj=rj("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"}))),kj=rj("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),xj=rj("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),wj=rj("code",{fontSize:".9em",color:"inherit",background:"inherit"}),jj=rj("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),_j=rj("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 Ej({text:e}){return k.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Cj=rj("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Sj=rj("span",{color:"white"}),Rj=rj("button",{cursor:"pointer",color:"white"}),Tj=rj("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Aj=({value:e})=>{const[t,n]=k.useState("NoCopy");return k.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(ej.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?k.createElement(Pj,null):"SuccessCopy"===t?k.createElement(qj,null):k.createElement(Dj,null))},Oj=rj("span",((e,t)=>({color:t.danger}))),Ij=rj("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),zj=rj("span",{color:"grey",fontSize:".7em"}),Lj=({expanded:e,style:t={}})=>k.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Pj=()=>k.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},k.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"}),k.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"}))),Dj=()=>k.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},k.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"})),k.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),qj=()=>k.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},k.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},k.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 Nj=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=k.useState([]);return k.createElement(Cj,{key:t},a.length?k.createElement(k.Fragment,null,k.createElement(Tj,{onClick:()=>c()},k.createElement(Lj,{expanded:r})," ",t," ",k.createElement(zj,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?k.createElement(Aj,{value:n}):null,r?1===a.length?k.createElement(Ij,null,o.map(e)):k.createElement(Ij,null,a.map(((t,n)=>k.createElement("div",{key:n},k.createElement(Cj,null,k.createElement(Rj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},k.createElement(Lj,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?k.createElement(Ij,null,t.map(e)):null))))):null):k.createElement(k.Fragment,null,k.createElement(Sj,null,t,":")," ",k.createElement(Oj,null,sj(n))))};function Mj({value:e,defaultExpanded:t,renderer:n=Nj,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=k.useState(Boolean(t)),c=k.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 o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>k.createElement(Mj,Dx({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Fj(e){return k.createElement("svg",Dx({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),k.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},k.createElement("g",{transform:"translate(-33.000000, 0.000000)"},k.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) "}),k.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"}),k.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 Bj=(e,t,n=!1)=>Cf.useSyncExternalStore(k.useCallback((t=>n?()=>{}:e.subscribe(rf.batchCalls(t))),[e,n]),t,t),Uj=k.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Of({context:i}),g=f.getQueryCache(),[y,v]=ew("reactQueryDevtoolsSortFn",Object.keys(lj)[0]),[b,x]=ew("reactQueryDevtoolsFilter",""),[w,j]=ew("reactQueryDevtoolsBaseSort",1),_=k.useMemo((()=>lj[y]),[y]),E=Bj(g,(()=>g.getAll().length),!n),[C,S]=ew("reactQueryDevtoolsActiveQueryHash",""),R=k.useMemo((()=>{const e=g.getAll();if(0===E)return[];const t=b?e.filter((e=>Kx(e.queryHash,b).passed)):[...e];return _?t.sort(((e,t)=>_(e,t)*w)):t}),[w,_,b,E,g]),[T,A]=k.useState(!1);return k.createElement(oj,{theme:tj},k.createElement(yj,Dx({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:pj,position:"relative",...d.style}}),k.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+tj.backgroundAlt+" "+tj.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: "+tj.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+tj.gray+";\n border-radius: .5em;\n border: 3px solid "+tj.backgroundAlt+";\n }\n "}}),k.createElement("div",{style:gj(u),onMouseDown:r}),n&&k.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+tj.grayAlt,display:"flex",flexDirection:"column"}},k.createElement("div",{style:{padding:".5em",background:tj.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},k.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},k.createElement(Fj,{"aria-hidden":!0}),k.createElement(Ej,{text:"Close React Query Devtools"})),k.createElement("div",{style:{display:"flex",flexDirection:"column"}},k.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},k.createElement(Wj,{queryCache:g}),u&&s?k.createElement(_j,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},k.createElement("option",{value:"left"},"Left"),k.createElement("option",{value:"right"},"Right"),k.createElement("option",{value:"top"},"Top"),k.createElement("option",{value:"bottom"},"Bottom")):null),k.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},k.createElement(jj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),k.createElement(_j,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(lj).map((e=>k.createElement("option",{key:e,value:e},"Sort by ",e)))),k.createElement(bj,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),k.createElement(bj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),k.createElement(bj,{type:"button",onClick:()=>{T?(Yh.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(Yh.setOnline(!1),A(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?tj.danger:"currentColor",fill:"none"},T?k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.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"}),k.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"}),k.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),k.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),k.createElement(Ej,{text:T?"Restore offline mock":"Mock offline behavior"}))))),k.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>k.createElement(Gj,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:S,key:e.queryHash,queryCache:g}))))),C&&n?k.createElement(Hj,{activeQueryHash:C,queryCache:g,queryClient:f,errorTypes:p}):null,c?k.createElement(bj,Dx({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=>{a(!1),null==m||m(e)}}),"Close"):null))})),Hj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=Bj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),s=Bj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=Bj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=Bj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=E((()=>{if(r&&null!=s&&s.error){const e=o.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,o]);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"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return k.createElement(vj,null,k.createElement("div",{style:{padding:".5em",background:tj.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),k.createElement("div",{style:{padding:".5em"}},k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},k.createElement(wj,{style:{lineHeight:"1.8em"}},k.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},sj(r.queryKey,!0))),k.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:aj({queryState:s,isStale:c,observerCount:u,theme:tj}),flexShrink:0}},ij(r))),k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",k.createElement(wj,null,u)),k.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",k.createElement(wj,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),k.createElement("div",{style:{background:tj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),k.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},k.createElement(bj,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(Vj)},disabled:"fetching"===s.fetchStatus,style:{background:tj.active}},"Refetch")," ",k.createElement(bj,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:tj.warning,color:tj.inputTextColor}},"Invalidate")," ",k.createElement(bj,{type:"button",onClick:()=>n.resetQueries(r),style:{background:tj.gray}},"Reset")," ",k.createElement(bj,{type:"button",onClick:()=>n.removeQueries(r),style:{background:tj.danger}},"Remove")," ",k.createElement(bj,{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:tj.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?k.createElement(bj,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:tj.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):k.createElement("label",null,"Trigger error:",k.createElement(_j,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},k.createElement("option",{key:"",value:""}),o.map((e=>k.createElement("option",{key:e.name,value:e.name},e.name)))))),k.createElement("div",{style:{background:tj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Mj,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),k.createElement("div",{style:{background:tj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Mj,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},Wj=({queryCache:e})=>{const t=Bj(e,(()=>e.getAll().filter((e=>"fresh"===ij(e))).length)),n=Bj(e,(()=>e.getAll().filter((e=>"fetching"===ij(e))).length)),o=Bj(e,(()=>e.getAll().filter((e=>"paused"===ij(e))).length)),a=Bj(e,(()=>e.getAll().filter((e=>"stale"===ij(e))).length)),i=Bj(e,(()=>e.getAll().filter((e=>"inactive"===ij(e))).length));return k.createElement(kj,null,k.createElement(xj,{style:{background:tj.success,opacity:t?1:.3}},"fresh ",k.createElement(wj,null,"(",t,")"))," ",k.createElement(xj,{style:{background:tj.active,opacity:n?1:.3}},"fetching ",k.createElement(wj,null,"(",n,")"))," ",k.createElement(xj,{style:{background:tj.paused,opacity:o?1:.3}},"paused ",k.createElement(wj,null,"(",o,")"))," ",k.createElement(xj,{style:{background:tj.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",k.createElement(wj,null,"(",a,")"))," ",k.createElement(xj,{style:{background:tj.gray,opacity:i?1:.3}},"inactive ",k.createElement(wj,null,"(",i,")")))},Gj=k.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=Bj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=Bj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=Bj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(r=Bj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&r,d=null!=(s=Bj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?s:0;return u?k.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+tj.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},k.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:aj({queryState:u,isStale:l,observerCount:d,theme:tj}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?k.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:tj.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,k.createElement(wj,{style:{padding:".5em"}},""+c)):null}));function Vj(){}Gj.displayName="QueryRow";const $j="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=k.useRef(null),p=k.useRef(null),[d,m]=ew("reactQueryDevtoolsOpen",e),[h,f]=ew("reactQueryDevtoolsHeight",pj),[g,y]=ew("reactQueryDevtoolsWidth",pj),[v="bottom",b]=ew("reactQueryDevtoolsPanelPosition",c),[x,w]=k.useState(!1),[j,_]=k.useState(!1),E=function(){const e=k.useRef(!1),t=k.useCallback((()=>e.current),[]);return k.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();k.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),k.useEffect((()=>{const e=p.current;if(e){const t=()=>{x&&(e.style.visibility="visible")},n=()=>{x||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[x]),k.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=fj("padding",v),n=mj(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{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(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[x,v,h,g]);const{style:C={},...S}=t,{style:R={},onClick:T,...A}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=hj(e),c=fj("border",s),u=mj(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{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:pj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:pj}}}({position:v,devtoolsTheme:tj,isOpen:x,height:h,width:g,isResizing:j,panelStyle:C});return E()?k.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},k.createElement(oj,{theme:tj},k.createElement(Uj,Dx({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},S,{style:O,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=mj(v);_(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=o+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{j&&_(!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}))),x?null:k.createElement("button",Dx({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==T||T(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"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),k.createElement(Fj,{"aria-hidden":!0}),k.createElement(Ej,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Kj,Qj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Jj(e){var o=this,i=e.children,r=process.env.ENVIRONMENT,s=E((function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"}),[r]),c=w(!1),u=c[0],l=c[1],p=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=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,Sh.refreshInstance({headers:a(a({},o),{"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]);_((function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}}),[p]);var d=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c,u,p;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=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,Sh.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),bg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}}))}))}),[s,l]);return _((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(If,{client:bg},i,React.createElement($j,{initialIsOpen:!1})):React.createElement("div",{style:Qj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Kj||(Kj={}));var Xj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Xj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!Pa())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,Ia.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{Kd as AI,Eh as Api,Kj as ApiErrorCodes,Jj as ApiProvider,Sh as ApiSingleton,Bd as Cms,Fd as Country,Gd as DataReport,Md as Organization,Nd as PaymentFiltersSection,$d as ReconciliationAgendaInsight,Vd as ReconciliationReportType,Ud as ReportType,qd as SendPaymentNotification,Wd as SmartRouting,Hd as TemplateType,Ib as getQueryKeyGetNameAndIcon,Lb as getQueryKeyRequiredFields,vg as queryCache,bg as queryClient,Cb as use3DSExemptions,sv as useAICreateWorkflow,nx as useAllFeatureFlags,kx as useAllowListDetail,bx as useBlackListDetail,ox as useCachedFeatureFlag,jg as useCancelReport,rg as useChangePasswordV2,ky as useChangePaymentsWebhook,fy as useChangeStatusBlackList,gy as useChangeStatusItemBlackList,Fb as useChangeStylingSettings,yg as useChargebacksUpload,Tx as useChartExecute,Jb as useCommunicationDetails,Kb as useCommunications,Qb as useCommunicationsFilters,oy as useConfirmedOtpMfa,wg as useCountRowsForReport,dv as useCreateAndExecuteChart,uv as useCreateChart,Bg as useCreateMonitorTemplate,Fg as useCreateMonitorThreshold,gg as useCreateOperationTransaction,Kg as useCreatePaymentLinks,ev as useCreateReconciliationAlert,Yy as useCreateReconciliationReportTemplate,kg as useCreateReconciliationsReportV2,_g as useCreateReportTemplate,xg as useCreateReportV2,Gg as useCreateRoles,av as useCreateSamlConfig,Ly as useCreateScheduledReport,lg as useCreateUserAuth0,Cg as useCreateWorkflow,$f as useDeleteAccountsUserMassive,jy as useDeleteAllowlistItem,vy as useDeleteBlackListType,xy as useDeleteBlockListItem,lv as useDeleteChart,Gy as useDeleteCustomizedApiKeys,Qg as useDeletePaymentLink,tv as useDeleteReconciliationAlert,$g as useDeleteRoles,rv as useDeleteSamlConfig,Dy as useDeleteScheduledReport,Hg as useDeleteUserTeamV2,Tg as useDeleteVersion,Bf as useDeleteWebhookV2,Ag as useDuplicateVersion,Jg as useEditPaymentLinks,Vg as useEditRoles,Hb as useEmailVerification,Iy as useExcludeUsers,Xy as useExportApiLogs,tx as useFeatureFlags,hx as useFirebaseUserSubscribe,cv as useGenerateFeedback,tb as useGetAccounts,ob as useGetAccountsByUser,ab as useGetAccountsForImpersonation,nb as useGetAccountsV2,_x as useGetAllConfigRules,Wv as useGetAllOrganizations,Zk as useGetAllReconciliationsAdvancements,Jk as useGetAllReconciliationsAgenda,Qk as useGetAllReconciliationsAlerts,ex as useGetAllReconciliationsFees,Yk as useGetAllReconciliationsSales,Gk as useGetAllTableColumns,Nv as useGetAllowedIps,cx as useGetApiLogsDetailByPaymentCode,ax as useGetAuditEvents,lb as useGetAuditLogsFilters,ix as useGetAuditMonitorEventDetail,Ry as useGetBatchRefundProcessedFileDownload,Ty as useGetBatchRefundUserFileDownload,wx as useGetBatchRefunds,gx as useGetBlackList,vx as useGetBlockListSummary,xv as useGetCardBrands,Ax as useGetChartsByUser,Ox as useGetChartsByUserWithResults,Ob as useGetCheckoutTemplate,Ab as useGetCheckouts,qy as useGetConditionalConfigRules,fx as useGetConfigAllowlist,Jv as useGetConnections,Kv as useGetConnectionsByPaymentMethod,px as useGetCountriesConfigPaymentLink,dx as useGetCountriesConfigPaymentLinkV2,Dv as useGetCredentials,Ky as useGetCredentialsMFA,Fv as useGetCustomizedApiKeys,Mv as useGetCustomizedApiKeysAccounts,qv as useGetCustomizedApiKeysMembers,Bv as useGetCustomizedApiKeysProducts,Hy as useGetCustomizedApiKeysToken,pb as useGetDashboardStaticContents,Xv as useGetDialogs,ik as useGetDownloadReport,ny as useGetEmailOtp,Qv as useGetHashPylon,Vb as useGetImpersonationEnabled,Gb as useGetImpersonationUsers,Ek as useGetInsightsReport,Ck as useGetInsightsReportAgain,$v as useGetIntegrationByAccountV2,Vv as useGetIntegrationParams,zx as useGetLanguages,db as useGetLocales,Wb as useGetLoginMethods,Cx as useGetMFAConfig,Ex as useGetMFAExcludedUsers,Sx as useGetMFAStatus,ib as useGetMenu,Zb as useGetMergedNotifications,zb as useGetNameAndIcon,ng as useGetNetworkTokensOnboarding,Px as useGetNetworkTokensOnboardingByOrganization,Xb as useGetNotificationsCustomer,ek as useGetNotificationsNumberMutation,Hv as useGetOrganization,wv as useGetPaymentFilters,lx as useGetPaymentLinkByCode,ux as useGetPaymentLinks,kv as useGetPaymentMethodsAndProviders,jv as useGetPaymentMetricsFilters,rb as useGetPaymentStatusesStyles,_v as useGetPaymentTransactionsDetails,gv as useGetPaymentV2,bv as useGetPaymentsMethodsByCountry,Rv as useGetPayoutDetail,Av as useGetPayoutHistoryDetail,Tv as useGetPayoutTransactionDetail,Ub as useGetPermissions,mk as useGetPermissionsCatalog,Bb as useGetProfile,Ov as useGetProofOfCancel,Iv as useGetProofOfPayment,Gv as useGetProviderParams,Vk as useGetReconciliationActive,Xk as useGetReconciliationAgendaInsightsByKey,Wk as useGetReconciliationFilters,Hk as useGetReconciliationMetrics,cb as useGetReconciliationTransactionStatusesStyles,Bk as useGetReconciliationTransactions,$k as useGetReconciliationsReportColumns,Kk as useGetReconciliationsReportTemplates,ck as useGetRefundPdf,sk as useGetReportColumns,rk as useGetReportTemplates,ok as useGetReportsList,ak as useGetReportsListMultiEnv,Pb as useGetRequiredFields,pk as useGetRoles,dk as useGetRolesPermissions,Tb as useGetRoutingMonitorsTemplate,Rb as useGetRoutingMonitorsTemplates,Ny as useGetRule,Rx as useGetSamlConfig,zy as useGetScheduledReportsList,Uk as useGetSettlements,yb as useGetSmartRoutingConditionPaymentMethod,gb as useGetSmartRoutingConditionTypes,vb as useGetSmartRoutingConditionTypesValues,hk as useGetSmartRoutingDataReport,xb as useGetSmartRoutingDeclineGroups,hb as useGetSmartRoutingMethods,kb as useGetSmartRoutingNextRoute,wb as useGetSmartRoutingPaymentRoute,_b as useGetSmartRoutingSearchConditionValues,jb as useGetSmartRoutingSimulateConditionTypeValues,fb as useGetSmartRoutingWorkflow,bb as useGetSmartRoutingWorkflowVersion,Db as useGetStylingSdkDynamic,Nb as useGetStylingSettings,Mb as useGetStylingSettingsV2,qb as useGetStylingTheme,uk as useGetTeamsFiltersMembers,ub as useGetTimeZoneCatalog,mx as useGetTimezonePaymentLink,ty as useGetTokenValidation,yv as useGetTransactionDetailsV2,Ev as useGetTransactionHistoryByPaymentCode,vv as useGetTransactionRawResponse,sb as useGetTransactionStatusesStyles,Lx as useGetTranslations,$b as useGetUsersToImpersonate,Yb as useGetValidateOpsgenieKey,Yv as useGetWebhookParamsV2,eb as useGetWebhooksV2Detail,Zv as useGetWebhooksV3,Ak as useInsights3dsConversionRateAndEvolution,Ok as useInsights3dsDeclineReasons,Ik as useInsights3dsFrictionlessVsChallenge,Tk as useInsights3dsVolumeAndCountTx,Fk as useInsightsChargebacksByCardBrand,qk as useInsightsChargebacksByProviderAndCardBrand,Dk as useInsightsChargebacksDisputed,Nk as useInsightsChargebacksReasonsDistribution,Mk as useInsightsChargebacksStatusDistribution,Lk as useInsightsChargebacksTotalRateAndEvolution,zk as useInsightsChargebacksVolumeAndCountTx,Pk as useInsightsChargebacksWinRate,fk as useInsightsConversionRateMetricsV2,xk as useInsightsCustomerPaymentsAndFraudMetrics,yk as useInsightsFallbackMetrics,Rk as useInsightsFraudScreeningConversionRate,Sk as useInsightsFraudScreeningVolumeAndCountTx,_k as useInsightsHomeMetrics,wk as useInsightsOverviewMetrics,jk as useInsightsOverviewMetricsV3,kk as useInsightsTotalPaymentsAndFraudMetrics,vk as useInsightsVolumeMetrics,bk as useInsightsVolumeMetricsV2,cg as useInviteUsersMultiaccountMassive,mb as useIsTesting,dg as useLoginMethods,Sb as useNetworkTokensOnboarding,Yf as useNewPostConnectionValidate,Wf as usePatchAccountV2,py as usePatchAddAllowlistItems,Uv as usePatchAllowedIps,dy as usePatchAllowlist,Ix as usePatchAndExecuteChart,Vy as usePatchApiKeysEditNote,uy as usePatchChangeStatusAllowlist,ly as usePatchChangeStatusAllowlistItem,pv as usePatchChartName,Zf as usePatchConnection,Uy as usePathCreateCustomizedApiKeys,tk as usePathNotifications,Pv as usePayoutsFilters,Lv as usePayoutsList,Hf as usePostAccount,xx as usePostAllowlistMultiAccount,$y as usePostApiKeysRoll,rx as usePostApiLogs,Qy as usePostAuditMonitors,Sy as usePostBatchRefundByFile,by as usePostBlackListBatch,yy as usePostBlackListItems,my as usePostBlackListMultiAccount,yx as usePostBlockList,pg as usePostCall,Qf as usePostChangeStatusConnection,Xf as usePostConnectionMultiAccount,cy as usePostCreateAllowlistMultiAccount,By as usePostCreateCustomizedApiKeys,ov as usePostCreateInsightsReport,My as usePostCreateRuleMultiAccount,Wy as usePostCredentialsValidatePassword,eg as usePostDefaultRoutes,Fy as usePostEditRule,Sv as usePostFraudTransactions,ry as usePostGetAllowlistItems,sy as usePostGetAllowlistMultiAccount,lk as usePostMembersPaginatedV2,og as usePostNetworkTokensOnboarding,fv as usePostPaymentsEvaluated,hv as usePostPaymentsLazy,Ug as usePostSlackMessageChannel,Cv as usePostTransactions,Xg as usePostUserSettings,ey as usePostUserSettingsPinned,Zg as usePostUserSettingsTables,Yg as usePostUserThemeSettings,Kf as usePostValideStatusConnection,jx as usePostVelocityRules,sx as usePostWebhookLogs,Ff as usePostWebhookMultiAccount,Eb as useProviderConversionRatesData,Sg as usePublishVersion,Gf as usePutAccountPrincipal,Vf as usePutAccountsUserMassive,hy as usePutBlackListType,Jf as usePutCosts,Jy as useResendWebhooks,Rg as useSaveVersion,zv as useSendPaymentNotification,Wg as useSetCustodian,zg as useSmartRoutingCreateDeclinedGroup,Pg as useSmartRoutingEditWorkflowName,Mg as useSmartRoutingMultiAccountDeclinedGroupCreate,Ng as useSmartRoutingRemoveDeclinedGroup,Dg as useSmartRoutingSimulateTransaction,Lg as useSmartRoutingToggleFavorite,Ig as useSmartRoutingUpdateDeclinedGroup,qg as useSmartRoutingUpdateMonitorRedistribution,Og as useToggleMethod,ug as useUnInviteUsersV2,ay as useUnrollUserV2,hg as useUpdateCheckoutTemplate,mg as useUpdateIsActiveCheckout,Oy as useUpdateMFAConfig,ag as useUpdateOrganizationStatus,sg as useUpdateProfile,nv as useUpdateReconciliationAlert,Zy as useUpdateReconciliationReportTemplate,Eg as useUpdateReportTemplate,iv as useUpdateSamlConfig,Py as useUpdateScheduledReport,fg as useUpdateStylingTheme,Uf as useUpdateWebhookV2,Ey as useUploadBatchRefundsFileV2,Cy as useUploadBatchRefundsV2,Ay as useUploadFileS3ClientBatchRefunds,_y as useValiateAllowlistItems,wy as useValidateBlockListItems,tg as useValidateCredentials,ig as useValidateOrgName,iy as useValidatePasswordStatus,gk as useViewMoreMetrics};
|
|
241
241
|
//# sourceMappingURL=index.js.map
|