@yuno-payments/dashboard-api-mfe 0.34.27-beta.1 → 0.34.29

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.
@@ -211,7 +211,7 @@ function Jo(e){const t=Qo.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,a,i=xi,s=o.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),n=t&&i[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},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=s("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=e.types,a=["nginx","apache",void 0,"iana"],Object.keys(i).forEach((function(e){var o=i[e],s=o.extensions;if(s&&s.length){t[e]=s;for(var r=0;r<s.length;r++){var c=s[r];if(n[c]){var u=a.indexOf(i[n[c]].source),l=a.indexOf(o.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))}(ki);var wi=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},ji=function(e){var t=!1;return wi((function(){t=!0})),function(n,o){t?e(n,o):wi((function(){e(n,o)}))}};var Ci=function(e){Object.keys(e.jobs).forEach(Ei.bind(e)),e.jobs={}};function Ei(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var _i=ji,Si=Ci,Ri=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,_i(o)):e(n,t,_i(o));return a}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?Si(n):n.results[a]=t,o(e,n.results))}))};var Ti=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 Ai=Ci,Ii=ji,Oi=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Ai(this),Ii(e)(null,this.results)};var zi=Ri,Pi=Ti,Li=Oi,Di=function(e,t,n){var o=Pi(e);for(;o.index<(o.keyedList||e).length;)zi(e,t,o,(function(e,t){e?n(e,t):0!==Object.keys(o.jobs).length||n(null,o.results)})),o.index++;return Li.bind(o,n)};var qi={exports:{}},Mi=Ri,Ni=Ti,Fi=Oi;function Ui(e,t){return e<t?-1:e>t?1:0}qi.exports=function(e,t,n,o){var a=Ni(e,n);return Mi(e,t,a,(function n(i,s){i?o(i,s):(a.index++,a.index<(a.keyedList||e).length?Mi(e,t,a,n):o(null,a.results))})),Fi.bind(a,o)},qi.exports.ascending=Ui,qi.exports.descending=function(e,t){return-1*Ui(e,t)};var Bi=qi.exports,Gi=Bi,Vi=function(e,t,n){return Gi(e,t,null,n)};var Wi={parallel:Di,serial:Vi,serialOrdered:Bi},Hi=Object,$i=Error,Ki=EvalError,Qi=RangeError,Ji=ReferenceError,Yi=SyntaxError,Xi=TypeError,Zi=URIError,es=Math.abs,ts=Math.floor,ns=Math.max,os=Math.min,as=Math.pow,is=Math.round,ss=Number.isNaN||function(e){return e!=e},rs=Object.getOwnPropertyDescriptor;if(rs)try{rs([],"length")}catch(e){rs=null}var cs=rs,us=Object.defineProperty||!1;if(us)try{us({},"a",{value:1})}catch(e){us=!1}var ls,ps,ds,ms,hs,fs,gs,ys,vs,bs,ks,xs,ws,js,Cs,Es,_s=us;function Ss(){return ps?ls:(ps=1,ls=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 Rs(){return fs?hs:(fs=1,hs="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Ts(){return ys?gs:(ys=1,gs=Hi.getPrototypeOf||null)}function As(){if(bs)return vs;bs=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 vs=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,s=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),r=t(0,a.length-s.length),c=[],u=0;u<r;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(s,arguments));return Object(e)===e?e:this}return a.apply(o,n(s,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,i.prototype=new l,l.prototype=null}return i},vs}function Is(){if(xs)return ks;xs=1;var e=As();return ks=Function.prototype.bind||e}function Os(){return js?ws:(js=1,ws=Function.prototype.call)}function zs(){return Es?Cs:(Es=1,Cs=Function.prototype.apply)}var Ps,Ls,Ds,qs,Ms,Ns,Fs,Us="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Bs=Is(),Gs=zs(),Vs=Os(),Ws=Us||Bs.call(Vs,Gs),Hs=Is(),$s=Xi,Ks=Os(),Qs=Ws,Js=function(e){if(e.length<1||"function"!=typeof e[0])throw new $s("a function is required");return Qs(Hs,Ks,e)};function Ys(){if(Ns)return Ms;Ns=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Is();return Ms=n.call(e,t)}var Xs=Hi,Zs=$i,er=Ki,tr=Qi,nr=Ji,or=Yi,ar=Xi,ir=Zi,sr=es,rr=ts,cr=ns,ur=os,lr=as,pr=is,dr=function(e){return ss(e)||0===e?e:e<0?-1:1},mr=Function,hr=function(e){try{return mr('"use strict"; return ('+e+").constructor;")()}catch(e){}},fr=cs,gr=_s,yr=function(){throw new ar},vr=fr?function(){try{return yr}catch(e){try{return fr(arguments,"callee").get}catch(e){return yr}}}():yr,br=function(){if(ms)return ds;ms=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ss();return ds=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),kr=function(){if(qs)return Ds;qs=1;var e=Rs(),t=Ts(),n=function(){if(Ls)return Ps;Ls=1;var e,t=Js,n=cs;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 Ps=o&&"function"==typeof o.get?t([o.get]):"function"==typeof i&&function(e){return i(null==e?e:a(e))}}();return Ds=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}(),xr=Ts(),wr=Rs(),jr=zs(),Cr=Os(),Er={},_r="undefined"!=typeof Uint8Array&&kr?kr(Uint8Array):Fs,Sr={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Fs:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Fs:ArrayBuffer,"%ArrayIteratorPrototype%":br&&kr?kr([][Symbol.iterator]()):Fs,"%AsyncFromSyncIteratorPrototype%":Fs,"%AsyncFunction%":Er,"%AsyncGenerator%":Er,"%AsyncGeneratorFunction%":Er,"%AsyncIteratorPrototype%":Er,"%Atomics%":"undefined"==typeof Atomics?Fs:Atomics,"%BigInt%":"undefined"==typeof BigInt?Fs:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Fs:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Fs:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Fs:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Zs,"%eval%":eval,"%EvalError%":er,"%Float16Array%":"undefined"==typeof Float16Array?Fs:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Fs:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Fs:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Fs:FinalizationRegistry,"%Function%":mr,"%GeneratorFunction%":Er,"%Int8Array%":"undefined"==typeof Int8Array?Fs:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Fs:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Fs:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":br&&kr?kr(kr([][Symbol.iterator]())):Fs,"%JSON%":"object"==typeof JSON?JSON:Fs,"%Map%":"undefined"==typeof Map?Fs:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&br&&kr?kr((new Map)[Symbol.iterator]()):Fs,"%Math%":Math,"%Number%":Number,"%Object%":Xs,"%Object.getOwnPropertyDescriptor%":fr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Fs:Promise,"%Proxy%":"undefined"==typeof Proxy?Fs:Proxy,"%RangeError%":tr,"%ReferenceError%":nr,"%Reflect%":"undefined"==typeof Reflect?Fs:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Fs:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&br&&kr?kr((new Set)[Symbol.iterator]()):Fs,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Fs:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":br&&kr?kr(""[Symbol.iterator]()):Fs,"%Symbol%":br?Symbol:Fs,"%SyntaxError%":or,"%ThrowTypeError%":vr,"%TypedArray%":_r,"%TypeError%":ar,"%Uint8Array%":"undefined"==typeof Uint8Array?Fs:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Fs:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Fs:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Fs:Uint32Array,"%URIError%":ir,"%WeakMap%":"undefined"==typeof WeakMap?Fs:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Fs:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Fs:WeakSet,"%Function.prototype.call%":Cr,"%Function.prototype.apply%":jr,"%Object.defineProperty%":gr,"%Object.getPrototypeOf%":xr,"%Math.abs%":sr,"%Math.floor%":rr,"%Math.max%":cr,"%Math.min%":ur,"%Math.pow%":lr,"%Math.round%":pr,"%Math.sign%":dr,"%Reflect.getPrototypeOf%":wr};if(kr)try{null.error}catch(e){var Rr=kr(kr(e));Sr["%Error.prototype%"]=Rr}var Tr,Ar,Ir=function e(t){var n;if("%AsyncFunction%"===t)n=hr("async function () {}");else if("%GeneratorFunction%"===t)n=hr("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=hr("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&kr&&(n=kr(a.prototype))}return Sr[t]=n,n},Or={__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"]},zr=Is(),Pr=Ys(),Lr=zr.call(Cr,Array.prototype.concat),Dr=zr.call(jr,Array.prototype.splice),qr=zr.call(Cr,String.prototype.replace),Mr=zr.call(Cr,String.prototype.slice),Nr=zr.call(Cr,RegExp.prototype.exec),Fr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ur=/\\(\\)?/g,Br=function(e,t){var n,o=e;if(Pr(Or,o)&&(o="%"+(n=Or[o])[0]+"%"),Pr(Sr,o)){var a=Sr[o];if(a===Er&&(a=Ir(o)),void 0===a&&!t)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new or("intrinsic "+e+" does not exist!")},Gr=function(e,t){if("string"!=typeof e||0===e.length)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ar('"allowMissing" argument must be a boolean');if(null===Nr(/^%?[^%]*%?$/,e))throw new or("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Mr(e,0,1),n=Mr(e,-1);if("%"===t&&"%"!==n)throw new or("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new or("invalid intrinsic syntax, expected opening `%`");var o=[];return qr(e,Fr,(function(e,t,n,a){o[o.length]=n?qr(a,Ur,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=Br("%"+o+"%",t),i=a.name,s=a.value,r=!1,c=a.alias;c&&(o=c[0],Dr(n,Lr([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=Mr(p,0,1),m=Mr(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new or("property names with quotes must have matching quotes");if("constructor"!==p&&l||(r=!0),Pr(Sr,i="%"+(o+="."+p)+"%"))s=Sr[i];else if(null!=s){if(!(p in s)){if(!t)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(fr&&u+1>=n.length){var h=fr(s,p);s=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:s[p]}else l=Pr(s,p),s=s[p];l&&!r&&(Sr[i]=s)}}return s};var Vr=Gr("%Object.defineProperty%",!0),Wr=function(){if(Ar)return Tr;Ar=1;var e=Ss();return Tr=function(){return e()&&!!Symbol.toStringTag}}()(),Hr=Ys(),$r=Xi,Kr=Wr?Symbol.toStringTag:null,Qr=vi,Jr=t,Yr=o,Xr=a,Zr=i,ec=s.parse,tc=r,nc=n.Stream,oc=ki,ac=Wi,ic=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 $r("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!Kr||!n&&Hr(e,Kr)||(Vr?Vr(e,Kr,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[Kr]=t)},sc=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e},rc=cc;function cc(e){if(!(this instanceof cc))return new cc(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Qr.call(this),e=e||{})this[t]=e[t]}Jr.inherits(cc,Qr),cc.LINE_BREAK="\r\n",cc.DEFAULT_CONTENT_TYPE="application/octet-stream",cc.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=Qr.prototype.append.bind(this);if("number"==typeof t&&(t=""+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)}},cc.prototype._trackLength=function(e,t,n){var o=0;null!=n.knownLength?o+=+n.knownLength:Buffer.isBuffer(t)?o=t.length:"string"==typeof t&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+cc.LINE_BREAK.length,t&&(t.path||t.readable&&Object.prototype.hasOwnProperty.call(t,"httpVersion")||t instanceof nc)&&(n.knownLength||this._valuesToMeasure.push(t))},cc.prototype._lengthRetriever=function(e,t){Object.prototype.hasOwnProperty.call(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):tc.stat(e.path,(function(n,o){var a;n?t(n):(a=o.size-(e.start?e.start:0),t(null,a))})):Object.prototype.hasOwnProperty.call(e,"httpVersion")?t(null,+e.headers["content-length"]):Object.prototype.hasOwnProperty.call(e,"httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},cc.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),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&sc(r,n.header),r)if(Object.prototype.hasOwnProperty.call(r,c)){if(null==(o=r[c]))continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+cc.LINE_BREAK)}return"--"+this.getBoundary()+cc.LINE_BREAK+s+cc.LINE_BREAK},cc.prototype._getContentDisposition=function(e,t){var n,o;return"string"==typeof t.filepath?n=Yr.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=Yr.basename(t.filename||e.name||e.path):e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(n=Yr.basename(e.client._httpMessage.path||"")),n&&(o='filename="'+n+'"'),o},cc.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=oc.lookup(e.name)),!n&&e.path&&(n=oc.lookup(e.path)),!n&&e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=oc.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=cc.DEFAULT_CONTENT_TYPE),n},cc.prototype._multiPartFooter=function(){return function(e){var t=cc.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},cc.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+cc.LINE_BREAK},cc.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t.toLowerCase()]=e[t]);return n},cc.prototype.setBoundary=function(e){this._boundary=e},cc.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},cc.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(cc.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},cc.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},cc.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},cc.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},cc.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?ac.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))},cc.prototype.submit=function(e,t){var n,o,a={method:"post"};return"string"==typeof e?(e=ec(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?Zr.request(o):Xr.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},cc.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},cc.prototype.toString=function(){return"[object FormData]"},ic(cc,"FormData");var uc=pi(rc);function lc(e){return si.isPlainObject(e)||si.isArray(e)}function pc(e){return si.endsWith(e,"[]")?e.slice(0,-2):e}function dc(e,t,n){return e?e.concat(t).map((function(e,t){return e=pc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const mc=si.toFlatObject(si,{},null,(function(e){return/^is[A-Z]/.test(e)}));function hc(e,t,n){if(!si.isObject(e))throw new TypeError("target must be an object");t=t||new(uc||FormData);const o=(n=si.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!si.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,i=n.dots,s=n.indexes,r=(n.Blob||"undefined"!=typeof Blob&&Blob)&&si.isSpecCompliantForm(t);if(!si.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(si.isDate(e))return e.toISOString();if(!r&&si.isBlob(e))throw new ri("Blob is not supported. Use a Buffer instead.");return si.isArrayBuffer(e)||si.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let r=e;if(e&&!a&&"object"==typeof e)if(si.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(si.isArray(e)&&function(e){return si.isArray(e)&&!e.some(lc)}(e)||(si.isFileList(e)||si.endsWith(n,"[]"))&&(r=si.toArray(e)))return n=pc(n),r.forEach((function(e,o){!si.isUndefined(e)&&null!==e&&t.append(!0===s?dc([n],o,i):null===s?n:n+"[]",c(e))})),!1;return!!lc(e)||(t.append(dc(a,n,i),c(e)),!1)}const l=[],p=Object.assign(mc,{defaultVisitor:u,convertValue:c,isVisitable:lc});if(!si.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!si.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),si.forEach(n,(function(n,i){!0===(!(si.isUndefined(n)||null===n)&&a.call(t,n,si.isString(i)?i.trim():i,o,p))&&e(n,o?o.concat(i):[i])})),l.pop()}}(e),t}function fc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function gc(e,t){this._pairs=[],e&&hc(e,this,t)}const yc=gc.prototype;function vc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bc(e,t,n){if(!t)return e;const o=n&&n.encode||vc;si.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):si.isURLSearchParams(t)?t.toString():new gc(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}yc.append=function(e,t){this._pairs.push([e,t])},yc.toString=function(e){const t=e?function(t){return e.call(this,t,fc)}:fc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var kc=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){si.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wc=s.URLSearchParams;const jc="abcdefghijklmnopqrstuvwxyz",Cc="0123456789",Ec={DIGIT:Cc,ALPHA:jc,ALPHA_DIGIT:jc+jc.toUpperCase()+Cc};var _c={isNode:!0,classes:{URLSearchParams:wc,FormData:uc,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Ec,generateString:(e=16,t=Ec.ALPHA_DIGIT)=>{let n="";const{length:o}=t,a=new Uint32Array(e);c.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%o];return n},protocols:["http","https","file","data"]};const Sc="undefined"!=typeof window&&"undefined"!=typeof document,Rc="object"==typeof navigator&&navigator||void 0,Tc=Sc&&(!Rc||["ReactNative","NativeScript","NS"].indexOf(Rc.product)<0),Ac="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ic=Sc&&window.location.href||"http://localhost";var Oc={...Object.freeze({__proto__:null,hasBrowserEnv:Sc,hasStandardBrowserEnv:Tc,hasStandardBrowserWebWorkerEnv:Ac,navigator:Rc,origin:Ic}),..._c};function zc(e){function t(e,n,o,a){let i=e[a++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),r=a>=e.length;if(i=!i&&si.isArray(o)?o.length:i,r)return si.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s;o[i]&&si.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],a)&&si.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])),!s}if(si.isFormData(e)&&si.isFunction(e.entries)){const n={};return si.forEachEntry(e,((e,o)=>{t(function(e){return si.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const Pc={transitional:xc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=si.isObject(e);a&&si.isHTMLForm(e)&&(e=new FormData(e));if(si.isFormData(e))return o?JSON.stringify(zc(e)):e;if(si.isArrayBuffer(e)||si.isBuffer(e)||si.isStream(e)||si.isFile(e)||si.isBlob(e)||si.isReadableStream(e))return e;if(si.isArrayBufferView(e))return e.buffer;if(si.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 hc(e,new Oc.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return Oc.isNode&&si.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=si.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return hc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(si.isString(e))try{return(t||JSON.parse)(e),si.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pc.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(si.isResponse(e)||si.isReadableStream(e))return e;if(e&&si.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ri.from(e,ri.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:Oc.classes.FormData,Blob:Oc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};si.forEach(["delete","get","head","post","put","patch"],(e=>{Pc.headers[e]={}}));var Lc=Pc;const Dc=si.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 qc=Symbol("internals");function Mc(e){return e&&String(e).trim().toLowerCase()}function Nc(e){return!1===e||null==e?e:si.isArray(e)?e.map(Nc):String(e)}function Fc(e,t,n,o,a){return si.isFunction(o)?o.call(this,t,n):(a&&(t=n),si.isString(t)?si.isString(o)?-1!==t.indexOf(o):si.isRegExp(o)?o.test(t):void 0:void 0)}class Uc{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Mc(t);if(!a)throw new Error("header name must be a non-empty string");const i=si.findKey(o,a);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=Nc(e))}const i=(e,t)=>si.forEach(e,((e,n)=>a(e,n,t)));if(si.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(si.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]&&Dc[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(si.isObject(e)&&si.isIterable(e)){let n,o,a={};for(const t of e){if(!si.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?si.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=Mc(e)){const n=si.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(si.isFunction(t))return t.call(this,e,n);if(si.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mc(e)){const n=si.findKey(this,e);return!(!n||void 0===this[n]||t&&!Fc(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Mc(e)){const a=si.findKey(n,e);!a||t&&!Fc(0,n[a],a,t)||(delete n[a],o=!0)}}return si.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&&!Fc(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return si.forEach(this,((o,a)=>{const i=si.findKey(n,a);if(i)return t[i]=Nc(o),void delete t[a];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();s!==a&&delete t[a],t[s]=Nc(o),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return si.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&si.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[qc]=this[qc]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Mc(e);t[o]||(!function(e,t){const n=si.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 si.isArray(e)?e.forEach(o):o(e),this}}Uc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),si.reduceDescriptors(Uc.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),si.freezeMethods(Uc);var Bc=Uc;function Gc(e,t){const n=this||Lc,o=t||n,a=Bc.from(o.headers);let i=o.data;return si.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function Vc(e){return!(!e||!e.__CANCEL__)}function Wc(e,t,n){ri.call(this,null==e?"canceled":e,ri.ERR_CANCELED,t,n),this.name="CanceledError"}function Hc(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new ri("Request failed with status code "+n.status,[ri.ERR_BAD_REQUEST,ri.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function $c(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}si.inherits(Wc,ri,{__CANCEL__:!0});var Kc={},Qc=s.parse,Jc={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Yc=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Xc(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Kc.getProxyForUrl=function(e){var t="string"==typeof e?Qc(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=(Xc("npm_config_no_proxy")||Xc("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)),!Yc.call(e,a)):e!==a)}))}(o=o.replace(/:\d*$/,""),a=parseInt(a)||Jc[n]||0))return"";var i=Xc("npm_config_"+n+"_proxy")||Xc(n+"_proxy")||Xc("npm_config_proxy")||Xc("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var Zc,eu,tu,nu,ou,au={exports:{}},iu={exports:{}},su={exports:{}};function ru(){if(eu)return Zc;eu=1;var e=1e3,t=60*e,n=60*t,o=24*n,a=7*o,i=365.25*o;function s(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}return Zc=function(r,c){c=c||{};var u=typeof r;if("string"===u&&r.length>0)return function(s){if((s=String(s)).length>100)return;var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!r)return;var c=parseFloat(r[1]);switch((r[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}}(r);if("number"===u&&isFinite(r))return c.long?function(a){var i=Math.abs(a);if(i>=o)return s(a,i,o,"day");if(i>=n)return s(a,i,n,"hour");if(i>=t)return s(a,i,t,"minute");if(i>=e)return s(a,i,e,"second");return a+" ms"}(r):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"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))},Zc}function cu(){if(nu)return tu;return nu=1,tu=function(e){function t(e){let o,a,i,s=null;function r(...e){if(!r.enabled)return;const n=r,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 s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,a)=>{if("%%"===o)return"%";s++;const i=t.formatters[a];if("function"==typeof i){const t=e[s];o=i.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=n,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(r),r}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=ru(),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},tu}var uu,lu,pu,du,mu,hu,fu,gu={exports:{}};function yu(){return lu?uu:(lu=1,uu=(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 vu(){return mu||(mu=1,function(e,n){const o=l,a=t;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let o=0;o<t.length;o++)e.inspectOpts[t[o]]=n.inspectOpts[t[o]]},n.log=function(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+"\n")},n.formatArgs=function(t){const{namespace:o,useColors:a}=this;if(a){const n=this.color,a="[3"+(n<8?n:"8;5;"+n),i=` ${a};1m${o} `;t[0]=i+t[0].split("\n").join("\n"+i),t.push(a+"m+"+e.exports.humanize(this.diff)+"")}else t[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+t[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):o.isatty(process.stderr.fd)},n.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{const e=function(){if(du)return pu;du=1;const e=p,t=l,n=yu(),{env:o}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(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 s=a||0;if("dumb"===o.TERM)return s;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:s;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:s}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)),pu={supportsColor:function(e){return i(s(e,e&&e.isTTY))},stdout:i(s(!0,t.isatty(1))),stderr:i(s(!0,t.isatty(2)))},pu}();e&&(e.stderr||e).level>=2&&(n.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){}n.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=cu()(n);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(gu,gu.exports)),gu.exports}function bu(){return hu||(hu=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?iu.exports=(ou||(ou=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=cu()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(su,su.exports)),su.exports):iu.exports=vu()),iu.exports}var ku,xu,wu,ju=s,Cu=ju.URL,Eu=a,_u=i,Su=n.Writable,Ru=u,Tu=function(){if(!fu){try{fu=bu()("follow-redirects")}catch(e){}"function"!=typeof fu&&(fu=function(){})}fu.apply(null,arguments)};ku="undefined"!=typeof process,xu="undefined"!=typeof window&&"undefined"!=typeof document,wu=Ju(Error.captureStackTrace),ku||!xu&&wu||console.warn("The follow-redirects package should be excluded from browser builds.");var Au=!1;try{Ru(new Cu(""))}catch(Vn){Au="ERR_INVALID_URL"===Vn.code}var Iu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ou=["abort","aborted","connect","error","socket","timeout"],zu=Object.create(null);Ou.forEach((function(e){zu[e]=function(t,n,o){this._redirectable.emit(e,t,n,o)}}));var Pu=$u("ERR_INVALID_URL","Invalid URL",TypeError),Lu=$u("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Du=$u("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lu),qu=$u("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Mu=$u("ERR_STREAM_WRITE_AFTER_END","write after end"),Nu=Su.prototype.destroy||Bu;function Fu(e,t){Su.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 Lu?e:new Lu({cause:e}))}},this._performRequest()}function Uu(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var a=o+":",i=n[a]=e[o],s=t[o]=Object.create(i);Object.defineProperties(s,{request:{value:function(e,o,i){var s;return s=e,Cu&&s instanceof Cu?e=Wu(e):Qu(e)?e=Wu(Gu(e)):(i=o,o=Vu(e),e={protocol:a}),Ju(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,Qu(o.host)||Qu(o.hostname)||(o.hostname="::1"),Ru.equal(o.protocol,a,"protocol mismatch"),Tu("options",o),new Fu(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var o=s.request(e,t,n);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})})),t}function Bu(){}function Gu(e){var t;if(Au)t=new Cu(e);else if(!Qu((t=Vu(ju.parse(e))).protocol))throw new Pu({input:e});return t}function Vu(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Pu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Pu({input:e.href||e});return e}function Wu(e,t){var n=t||{};for(var o of Iu)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 Hu(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 $u(e,t,n){function o(n){Ju(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 Ku(e,t){for(var n of Ou)e.removeListener(n,zu[n]);e.on("error",Bu),e.destroy(t)}function Qu(e){return"string"==typeof e||e instanceof String}function Ju(e){return"function"==typeof e}Fu.prototype=Object.create(Su.prototype),Fu.prototype.abort=function(){Ku(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Fu.prototype.destroy=function(e){return Ku(this._currentRequest,e),Nu.call(this,e),this},Fu.prototype.write=function(e,t,n){if(this._ending)throw new Mu;if(!Qu(e)&&("object"!=typeof(o=e)||!("length"in o)))throw new TypeError("data should be a string, Buffer or Uint8Array");var o;Ju(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 qu),this.abort()):n&&n()},Fu.prototype.end=function(e,t,n){if(Ju(e)?(n=e,e=t=null):Ju(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)},Fu.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Fu.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Fu.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){Fu.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Fu.prototype,e,{get:function(){return this._currentRequest[e]}})})),Fu.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))}},Fu.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,Ou))o.on(a,zu[a]);if(this._currentUrl=/^\//.test(this._options.path)?ju.format(this._options):this._options.path,this._isRedirect){var i=0,s=this,r=this._requestBodyBuffers;!function e(t){if(o===s._currentRequest)if(t)s.emit("error",t);else if(i<r.length){var n=r[i++];o.finished||o.write(n.data,n.encoding,e)}else s._ended&&o.end()}()}},Fu.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(Ku(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Du;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=[],Hu(/^content-/i,this._options.headers));var s,r,c=Hu(/^host$/i,this._options.headers),u=Gu(this._currentUrl),l=c||u.host,p=/^\w+:/.test(o)?this._currentUrl:ju.format(Object.assign(u,{host:l})),d=(s=o,r=p,Au?new Cu(s,r):Gu(ju.resolve(r,s)));if(Tu("redirecting to",d.href),this._isRedirect=!0,Wu(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Ru(Qu(e)&&Qu(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&Hu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Ju(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()},au.exports=Uu({http:Eu,https:_u}),au.exports.wrap=Uu;var Yu=pi(au.exports);const Xu="1.9.0";function Zu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const el=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const tl=Symbol("internals");class nl extends n.Transform{constructor(e){super({readableHighWaterMark:(e=si.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!si.isUndefined(t[e])))).chunkSize});const t=this[tl]={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[tl];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const o=this[tl],a=o.maxRate,i=this.readableHighWaterMark,s=o.timeWindow,r=a/(1e3/s),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*r):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)>=s)&&(o.ts=e,l=r-o.bytes,o.bytes=l<0?-l:0,m=0),l=r-o.bytes}if(a){if(l<=0)return setTimeout((()=>{t(null,e)}),s-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 ol=nl;const{asyncIterator:al}=Symbol;var il=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[al]?yield*e[al]():yield e};const sl=Oc.ALPHABET.ALPHA_DIGIT+"-_",rl="function"==typeof TextEncoder?new TextEncoder:new t.TextEncoder,cl="\r\n",ul=rl.encode(cl);class ll{constructor(e,t){const{escapeName:n}=this.constructor,o=si.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!o&&t.name?`; filename="${n(t.name)}"`:""}${cl}`;o?t=rl.encode(String(t).replace(/\r?\n|\r\n?/g,cl)):a+=`Content-Type: ${t.type||"application/octet-stream"}${cl}`,this.headers=rl.encode(a+cl),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;si.isTypedArray(e)?yield e:yield*il(e),yield ul}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}var pl=(e,t,o)=>{const{tag:a="form-data-boundary",size:i=25,boundary:s=a+"-"+Oc.generateString(i,sl)}=o||{};if(!si.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const r=rl.encode("--"+s+cl),c=rl.encode("--"+s+"--"+cl);let u=c.byteLength;const l=Array.from(e.entries()).map((([e,t])=>{const n=new ll(e,t);return u+=n.size,n}));u+=r.byteLength*l.length,u=si.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),n.Readable.from(async function*(){for(const e of l)yield r,yield*e.encode();yield c}())};class dl extends n.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 ml=dl;var hl=(e,t)=>si.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 fl=(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,s=0;return t=void 0!==t?t:1e3,function(r){const c=Date.now(),u=o[s];a||(a=c),n[i]=r,o[i]=c;let l=s,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+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 s=(t,i=Date.now())=>{a=i,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),r=t-a;r>=i?s(e,t):(n=e,o||(o=setTimeout((()=>{o=null,s(n)}),i-r)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,r=i-o,c=a(r);o=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:r,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},gl=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},yl=e=>(...t)=>si.asap((()=>e(...t))),vl={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},bl={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},kl=si.isFunction(d.createBrotliDecompress),{http:xl,https:wl}=Yu,jl=/https:?/,Cl=Oc.protocols.map((e=>e+":")),El=(e,[t,n])=>(e.on("end",n).on("error",n),t);function _l(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Sl(e,t,n){let o=t;if(!o&&!1!==o){const e=Kc.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){Sl(e,t,e.href)}}const Rl="undefined"!=typeof process&&"process"===si.kindOf(process),Tl=(e,t)=>(({address:e,family:t})=>{if(!si.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(si.isObject(e)?e:{address:e,family:t});var Al=Rl&&function(e){return o=async function(o,s,r){let{data:c,lookup:u,family:l}=e;const{responseType:p,responseEncoding:h}=e,f=e.method.toUpperCase();let g,y,v=!1;if(u){const e=hl(u,(e=>si.isArray(e)?e:[e]));u=(t,n,o)=>{e(t,n,((e,t,a)=>{if(e)return o(e);const i=si.isArray(t)?t.map((e=>Tl(e))):[Tl(t,a)];n.all?o(e,i):o(e,i[0].address,i[0].family)}))}}const b=new m.EventEmitter,k=()=>{e.cancelToken&&e.cancelToken.unsubscribe(x),e.signal&&e.signal.removeEventListener("abort",x),b.removeAllListeners()};function x(t){b.emit("abort",!t||t.type?new Wc(null,e,y):t)}r(((e,t)=>{g=!0,t&&(v=!0,k())})),b.once("abort",s),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(x),e.signal&&(e.signal.aborted?x():e.signal.addEventListener("abort",x)));const w=$c(e.baseURL,e.url,e.allowAbsoluteUrls),j=new URL(w,Oc.hasBrowserEnv?Oc.origin:void 0),C=j.protocol||Cl[0];if("data:"===C){let t;if("GET"!==f)return Hc(o,s,{status:405,statusText:"method not allowed",headers:{},config:e});try{t=function(e,t,n){const o=n&&n.Blob||Oc.classes.Blob,a=Zu(e);if(void 0===t&&o&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=el.exec(e);if(!n)throw new ri("Invalid URL",ri.ERR_INVALID_URL);const i=n[1],s=n[2],r=n[3],c=Buffer.from(decodeURIComponent(r),s?"base64":"utf8");if(t){if(!o)throw new ri("Blob is not supported",ri.ERR_NOT_SUPPORT);return new o([c],{type:i})}return c}throw new ri("Unsupported protocol "+a,ri.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw ri.from(t,ri.ERR_BAD_REQUEST,e)}return"text"===p?(t=t.toString(h),h&&"utf8"!==h||(t=si.stripBOM(t))):"stream"===p&&(t=n.Readable.from(t)),Hc(o,s,{data:t,status:200,statusText:"OK",headers:new Bc,config:e})}if(-1===Cl.indexOf(C))return s(new ri("Unsupported protocol "+C,ri.ERR_BAD_REQUEST,e));const E=Bc.from(e.headers).normalize();E.set("User-Agent","axios/"+Xu,!1);const{onUploadProgress:_,onDownloadProgress:S}=e,R=e.maxRate;let T,A;if(si.isSpecCompliantForm(c)){const e=E.getContentType(/boundary=([-_\w\d]{10,70})/i);c=pl(c,(e=>{E.set(e)}),{tag:`axios-${Xu}-boundary`,boundary:e&&e[1]||void 0})}else if(si.isFormData(c)&&si.isFunction(c.getHeaders)){if(E.set(c.getHeaders()),!E.hasContentLength())try{const e=await t.promisify(c.getLength).call(c);Number.isFinite(e)&&e>=0&&E.setContentLength(e)}catch(e){}}else if(si.isBlob(c)||si.isFile(c))c.size&&E.setContentType(c.type||"application/octet-stream"),E.setContentLength(c.size||0),c=n.Readable.from(il(c));else if(c&&!si.isStream(c)){if(Buffer.isBuffer(c));else if(si.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!si.isString(c))return s(new ri("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",ri.ERR_BAD_REQUEST,e));c=Buffer.from(c,"utf-8")}if(E.setContentLength(c.length,!1),e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(new ri("Request body larger than maxBodyLength limit",ri.ERR_BAD_REQUEST,e))}const I=si.toFiniteNumber(E.getContentLength());let O,z;si.isArray(R)?(T=R[0],A=R[1]):T=A=R,c&&(_||T)&&(si.isStream(c)||(c=n.Readable.from(c,{objectMode:!1})),c=n.pipeline([c,new ol({maxRate:si.toFiniteNumber(T)})],si.noop),_&&c.on("progress",El(c,gl(I,fl(yl(_),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&j.username&&(O=j.username+":"+j.password),O&&E.delete("authorization");try{z=bc(j.pathname+j.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,s(n)}E.set("Accept-Encoding","gzip, compress, deflate"+(kl?", br":""),!1);const P={path:z,method:f,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:C,family:l,beforeRedirect:_l,beforeRedirects:{}};let L;!si.isUndefined(u)&&(P.lookup=u),e.socketPath?P.socketPath=e.socketPath:(P.hostname=j.hostname.startsWith("[")?j.hostname.slice(1,-1):j.hostname,P.port=j.port,Sl(P,e.proxy,C+"//"+j.hostname+(j.port?":"+j.port:"")+P.path));const D=jl.test(P.protocol);if(P.agent=D?e.httpsAgent:e.httpAgent,e.transport?L=e.transport:0===e.maxRedirects?L=D?i:a:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),e.beforeRedirect&&(P.beforeRedirects.config=e.beforeRedirect),L=D?wl:xl),e.maxBodyLength>-1?P.maxBodyLength=e.maxBodyLength:P.maxBodyLength=1/0,e.insecureHTTPParser&&(P.insecureHTTPParser=e.insecureHTTPParser),y=L.request(P,(function(t){if(y.destroyed)return;const a=[t],i=+t.headers["content-length"];if(S||A){const e=new ol({maxRate:si.toFiniteNumber(A)});S&&e.on("progress",El(e,gl(i,fl(yl(S),!0,3)))),a.push(e)}let r=t;const c=t.req||y;if(!1!==e.decompress&&t.headers["content-encoding"])switch("HEAD"!==f&&204!==t.statusCode||delete t.headers["content-encoding"],(t.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(d.createUnzip(vl)),delete t.headers["content-encoding"];break;case"deflate":a.push(new ml),a.push(d.createUnzip(vl)),delete t.headers["content-encoding"];break;case"br":kl&&(a.push(d.createBrotliDecompress(bl)),delete t.headers["content-encoding"])}r=a.length>1?n.pipeline(a,si.noop):a[0];const u=n.finished(r,(()=>{u(),k()})),l={status:t.statusCode,statusText:t.statusMessage,headers:new Bc(t.headers),config:e,request:c};if("stream"===p)l.data=r,Hc(o,s,l);else{const t=[];let n=0;r.on("data",(function(o){t.push(o),n+=o.length,e.maxContentLength>-1&&n>e.maxContentLength&&(v=!0,r.destroy(),s(new ri("maxContentLength size of "+e.maxContentLength+" exceeded",ri.ERR_BAD_RESPONSE,e,c)))})),r.on("aborted",(function(){if(v)return;const t=new ri("stream has been aborted",ri.ERR_BAD_RESPONSE,e,c);r.destroy(t),s(t)})),r.on("error",(function(t){y.destroyed||s(ri.from(t,null,e,c))})),r.on("end",(function(){try{let e=1===t.length?t[0]:Buffer.concat(t);"arraybuffer"!==p&&(e=e.toString(h),h&&"utf8"!==h||(e=si.stripBOM(e))),l.data=e}catch(t){return s(ri.from(t,null,e,l.request,l))}Hc(o,s,l)}))}b.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),b.once("abort",(e=>{s(e),y.destroy(e)})),y.on("error",(function(t){s(ri.from(t,null,e,y))})),y.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void s(new ri("error trying to parse `config.timeout` to int",ri.ERR_BAD_OPTION_VALUE,e,y));y.setTimeout(t,(function(){if(g)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||xc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),s(new ri(t,n.clarifyTimeoutError?ri.ETIMEDOUT:ri.ECONNABORTED,e,y)),x()}))}if(si.isStream(c)){let t=!1,n=!1;c.on("end",(()=>{t=!0})),c.once("error",(e=>{n=!0,y.destroy(e)})),c.on("close",(()=>{t||n||x(new Wc("Request stream has been aborted",e,y))})),c.pipe(y)}else y.end(c)},new Promise(((e,t)=>{let n,a;const i=(e,t)=>{a||(a=!0,n&&n(e,t))},s=e=>{i(e,!0),t(e)};o((t=>{i(t),e(t)}),s,(e=>n=e)).catch(s)}));var o},Il=Oc.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Oc.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Oc.origin),Oc.navigator&&/(msie|trident)/i.test(Oc.navigator.userAgent)):()=>!0,Ol=Oc.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const s=[e+"="+encodeURIComponent(t)];si.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),si.isString(o)&&s.push("path="+o),si.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.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 Bc?{...e}:e;function Pl(e,t){t=t||{};const n={};function o(e,t,n,o){return si.isPlainObject(e)&&si.isPlainObject(t)?si.merge.call({caseless:o},e,t):si.isPlainObject(t)?si.merge({},t):si.isArray(t)?t.slice():t}function a(e,t,n,a){return si.isUndefined(t)?si.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function i(e,t){if(!si.isUndefined(t))return o(void 0,t)}function s(e,t){return si.isUndefined(t)?si.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function r(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,t,n)=>a(zl(e),zl(t),0,!0)};return si.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||a,s=i(e[o],t[o],o);si.isUndefined(s)&&i!==r||(n[o]=s)})),n}var Ll=e=>{const t=Pl({},e);let n,{data:o,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:s,headers:r,auth:c}=t;if(t.headers=r=Bc.from(r),t.url=bc($c(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),si.isFormData(o))if(Oc.hasStandardBrowserEnv||Oc.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(!1!==(n=r.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}if(Oc.hasStandardBrowserEnv&&(a&&si.isFunction(a)&&(a=a(t)),a||!1!==a&&Il(t.url))){const e=i&&s&&Ol.read(s);e&&r.set(i,e)}return t};var Dl="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=Ll(e);let a=o.data;const i=Bc.from(o.headers).normalize();let s,r,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=o;function h(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Bc.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Hc((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 ri("Request aborted",ri.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new ri("Network Error",ri.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||xc;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new ri(t,a.clarifyTimeoutError?ri.ETIMEDOUT:ri.ECONNABORTED,e,f)),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&si.forEach(i.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),si.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),m&&([c,l]=fl(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([r,u]=fl(d),f.upload.addEventListener("progress",r),f.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(s=t=>{f&&(n(!t||t.type?new Wc(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const y=Zu(o.url);y&&-1===Oc.protocols.indexOf(y)?n(new ri("Unsupported protocol "+y+":",ri.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var ql=(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,s();const t=e instanceof Error?e:this.reason;o.abort(t instanceof ri?t:new Wc(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,a(new ri(`timeout ${t} of ms exceeded`,ri.ETIMEDOUT))}),t);const s=()=>{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:r}=o;return r.unsubscribe=()=>si.asap(s),r}};const Ml=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},Nl=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()}},Fl=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of Nl(e))yield*Ml(n,t)}(e,t);let i,s=0,r=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 r(),void e.close();let i=o.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw r(e),e}},cancel:e=>(r(e),a.return())},{highWaterMark:2})},Ul="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Bl=Ul&&"function"==typeof ReadableStream,Gl=Ul&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vl=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Wl=Bl&&Vl((()=>{let e=!1;const t=new Request(Oc.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Hl=Bl&&Vl((()=>si.isReadableStream(new Response("").body))),$l={stream:Hl&&(e=>e.body)};var Kl;Ul&&(Kl=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$l[e]&&($l[e]=si.isFunction(Kl[e])?t=>t[e]():(t,n)=>{throw new ri(`Response type '${e}' is not supported`,ri.ERR_NOT_SUPPORT,n)})})));const Ql=async(e,t)=>{const n=si.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(si.isBlob(e))return e.size;if(si.isSpecCompliantForm(e)){const t=new Request(Oc.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return si.isArrayBufferView(e)||si.isArrayBuffer(e)?e.byteLength:(si.isURLSearchParams(e)&&(e+=""),si.isString(e)?(await Gl(e)).byteLength:void 0)})(t):n};var Jl=Ul&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:i,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Ll(e);u=u?(u+"").toLowerCase():"text";let m,h=ql([a,i&&i.toAbortSignal()],s);const f=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&Wl&&"get"!==n&&"head"!==n&&0!==(g=await Ql(l,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(si.isFormData(o)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=gl(g,fl(yl(c)));o=Fl(n.body,65536,e,t)}}si.isString(p)||(p=p?"include":"omit");const a="credentials"in Request.prototype;m=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:a?p:void 0});let i=await fetch(m);const s=Hl&&("stream"===u||"response"===u);if(Hl&&(r||s&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=si.toFiniteNumber(i.headers.get("content-length")),[n,o]=r&&gl(t,fl(yl(r),!0))||[];i=new Response(Fl(i.body,65536,n,(()=>{o&&o(),f&&f()})),e)}u=u||"text";let y=await $l[si.findKey($l,u)||"text"](i,e);return!s&&f&&f(),await new Promise(((t,n)=>{Hc(t,n,{data:y,headers:Bc.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:m})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ri("Network Error",ri.ERR_NETWORK,e,m),{cause:t.cause||t});throw ri.from(t,t&&t.code,e,m)}});const Yl={http:Al,xhr:Dl,fetch:Jl};si.forEach(Yl,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xl=e=>`- ${e}`,Zl=e=>si.isFunction(e)||null===e||!1===e;var ep=e=>{e=si.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let i=0;i<t;i++){let t;if(n=e[i],o=n,!Zl(n)&&(o=Yl[(t=String(n)).toLowerCase()],void 0===o))throw new ri(`Unknown adapter '${t}'`);if(o)break;a[t||"#"+i]=o}if(!o){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ri("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xl).join("\n"):" "+Xl(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function tp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wc(null,e)}function np(e){tp(e),e.headers=Bc.from(e.headers),e.data=Gc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ep(e.adapter||Lc.adapter)(e).then((function(t){return tp(e),t.data=Gc.call(e,e.transformResponse,t),t.headers=Bc.from(t.headers),t}),(function(t){return Vc(t)||(tp(e),t&&t.response&&(t.response.data=Gc.call(e,e.transformResponse,t.response),t.response.headers=Bc.from(t.response.headers))),Promise.reject(t)}))}const op={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{op[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ap={};op.transitional=function(e,t,n){function o(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new ri(o(a," has been removed"+(t?" in "+t:"")),ri.ERR_DEPRECATED);return t&&!ap[a]&&(ap[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)}},op.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ip={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ri("options must be an object",ri.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ri("option "+i+" must be "+n,ri.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ri("Unknown option "+i,ri.ERR_BAD_OPTION)}},validators:op};const sp=ip.validators;let rp=class{constructor(e){this.defaults=e||{},this.interceptors={request:new kc,response:new kc}}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=Pl(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&ip.assertOptions(n,{silentJSONParsing:sp.transitional(sp.boolean),forcedJSONParsing:sp.transitional(sp.boolean),clarifyTimeoutError:sp.transitional(sp.boolean)},!1),null!=o&&(si.isFunction(o)?t.paramsSerializer={serialize:o}:ip.assertOptions(o,{encode:sp.function,serialize:sp.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ip.assertOptions(t,{baseUrl:sp.spelling("baseURL"),withXsrfToken:sp.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&si.merge(a.common,a[t.method]);a&&si.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Bc.concat(i,a);const s=[];let r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,s.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(!r){const e=[np.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let d=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=np.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 bc($c((e=Pl(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};si.forEach(["delete","get","head","options"],(function(e){rp.prototype[e]=function(t,n){return this.request(Pl(n||{},{method:e,url:t,data:(n||{}).data}))}})),si.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(Pl(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}rp.prototype[e]=t(),rp.prototype[e+"Form"]=t(!0)}));var cp=rp;class up{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 Wc(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 up((function(t){e=t})),cancel:e}}}var lp=up;const pp={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(pp).forEach((([e,t])=>{pp[t]=e}));var dp=pp;const mp=function e(t){const n=new cp(t),o=va(cp.prototype.request,n);return si.extend(o,cp.prototype,n,{allOwnKeys:!0}),si.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Pl(t,n))},o}(Lc);mp.Axios=cp,mp.CanceledError=Wc,mp.CancelToken=lp,mp.isCancel=Vc,mp.VERSION=Xu,mp.toFormData=hc,mp.AxiosError=ri,mp.Cancel=mp.CanceledError,mp.all=function(e){return Promise.all(e)},mp.spread=function(e){return function(t){return e.apply(null,t)}},mp.isAxiosError=function(e){return si.isObject(e)&&!0===e.isAxiosError},mp.mergeConfig=Pl,mp.AxiosHeaders=Bc,mp.formToJSON=e=>zc(si.isHTMLForm(e)?new FormData(e):e),mp.getAdapter=ep,mp.HttpStatusCode=dp,mp.default=mp;var hp=mp,fp=function(t){function n(n){var o,a,i,s,r=this;return(r=t.call(this,n)||this).token="",null===(a=null===(o=r.instance)||void 0===o?void 0:o.interceptors)||void 0===a||a.request.use((function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.headers),{Authorization:"Bearer ".concat(r.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(s=null===(i=r.instance)||void 0===i?void 0:i.interceptors)||void 0===s||s.response.use((function(t){return e.__assign({},t)}),(function(e){return Promise.reject(e)})),r}return e.__extends(n,t),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=hp.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}((function(e){this.instance=hp.create(e)})),gp=t.inspect,yp="function"==typeof Map&&Map.prototype,vp=Object.getOwnPropertyDescriptor&&yp?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bp=yp&&vp&&"function"==typeof vp.get?vp.get:null,kp=yp&&Map.prototype.forEach,xp="function"==typeof Set&&Set.prototype,wp=Object.getOwnPropertyDescriptor&&xp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,jp=xp&&wp&&"function"==typeof wp.get?wp.get:null,Cp=xp&&Set.prototype.forEach,Ep="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,_p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Sp="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Rp=Boolean.prototype.valueOf,Tp=Object.prototype.toString,Ap=Function.prototype.toString,Ip=String.prototype.match,Op=String.prototype.slice,zp=String.prototype.replace,Pp=String.prototype.toUpperCase,Lp=String.prototype.toLowerCase,Dp=RegExp.prototype.test,qp=Array.prototype.concat,Mp=Array.prototype.join,Np=Array.prototype.slice,Fp=Math.floor,Up="function"==typeof BigInt?BigInt.prototype.valueOf:null,Bp=Object.getOwnPropertySymbols,Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Vp="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Wp="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vp||"symbol")?Symbol.toStringTag:null,Hp=Object.prototype.propertyIsEnumerable,$p=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Kp(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-Fp(-e):Fp(e);if(o!==e){var a=String(o),i=Op.call(t,a.length+1);return zp.call(a,n,"$&_")+"."+zp.call(zp.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zp.call(t,n,"$&_")}var Qp=gp,Jp=Qp.custom,Yp=sd(Jp)?Jp:null,Xp={__proto__:null,double:'"',single:"'"},Zp={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},ed=function e(t,n,o,a){var i=n||{};if(cd(i,"quoteStyle")&&!cd(Xp,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 s=!cd(i,"customInspect")||i.customInspect;if("boolean"!=typeof s&&"symbol"!==s)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 r=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 pd(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return r?Kp(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return r?Kp(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 ad(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=Mp.call(Array(e.indent+1)," ")}return{base:n,prev:Mp.call(Array(t+1),n)}}(i,o);if(void 0===a)a=[];else if(ld(a,t)>=0)return"[Circular]";function d(t,n,s){if(n&&(a=Np.call(a)).push(n),s){var r={depth:i.depth};return cd(i,"quoteStyle")&&(r.quoteStyle=i.quoteStyle),e(t,r,o+1,a)}return e(t,i,o+1,a)}if("function"==typeof t&&!id(t)){var m=function(e){if(e.name)return e.name;var t=Ip.call(Ap.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=yd(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Mp.call(h,", ")+" }":"")}if(sd(t)){var f=Vp?zp.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gp.call(t);return"object"!=typeof t||Vp?f:md(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="<"+Lp.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+td(nd(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Lp.call(String(t.nodeName))+">"}if(ad(t)){if(0===t.length)return"[]";var b=yd(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(ld(e[t],"\n")>=0)return!1;return!0}(b)?"["+gd(b,p)+"]":"[ "+Mp.call(b,", ")+" ]"}if(function(e){return"[object Error]"===ud(e)&&od(e)}(t)){var k=yd(t,d);return"cause"in Error.prototype||!("cause"in t)||Hp.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Mp.call(k,", ")+" }":"{ ["+String(t)+"] "+Mp.call(qp.call("[cause]: "+d(t.cause),k),", ")+" }"}if("object"==typeof t&&s){if(Yp&&"function"==typeof t[Yp]&&Qp)return Qp(t,{depth:l-o});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!bp||!e||"object"!=typeof e)return!1;try{bp.call(e);try{jp.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return kp&&kp.call(t,(function(e,n){x.push(d(n,t,!0)+" => "+d(e,t))})),fd("Map",bp.call(t),x,p)}if(function(e){if(!jp||!e||"object"!=typeof e)return!1;try{jp.call(e);try{bp.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Cp&&Cp.call(t,(function(e){w.push(d(e,t))})),fd("Set",jp.call(t),w,p)}if(function(e){if(!Ep||!e||"object"!=typeof e)return!1;try{Ep.call(e,Ep);try{_p.call(e,_p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return hd("WeakMap");if(function(e){if(!_p||!e||"object"!=typeof e)return!1;try{_p.call(e,_p);try{Ep.call(e,Ep)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return hd("WeakSet");if(function(e){if(!Sp||!e||"object"!=typeof e)return!1;try{return Sp.call(e),!0}catch(e){}return!1}(t))return hd("WeakRef");if(function(e){return"[object Number]"===ud(e)&&od(e)}(t))return md(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Up)return!1;try{return Up.call(e),!0}catch(e){}return!1}(t))return md(d(Up.call(t)));if(function(e){return"[object Boolean]"===ud(e)&&od(e)}(t))return md(Rp.call(t));if(function(e){return"[object String]"===ud(e)&&od(e)}(t))return md(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==li&&t===li)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===ud(e)&&od(e)}(t)&&!id(t)){var j=yd(t,d),C=$p?$p(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",_=!C&&Wp&&Object(t)===t&&Wp in t?Op.call(ud(t),8,-1):E?"Object":"",S=(C||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(_||E?"["+Mp.call(qp.call([],_||[],E||[]),": ")+"] ":"");return 0===j.length?S+"{}":p?S+"{"+gd(j,p)+"}":S+"{ "+Mp.call(j,", ")+" }"}return String(t)};function td(e,t,n){var o=n.quoteStyle||t,a=Xp[o];return a+e+a}function nd(e){return zp.call(String(e),/"/g,"&quot;")}function od(e){return!Wp||!("object"==typeof e&&(Wp in e||void 0!==e[Wp]))}function ad(e){return"[object Array]"===ud(e)&&od(e)}function id(e){return"[object RegExp]"===ud(e)&&od(e)}function sd(e){if(Vp)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Gp)return!1;try{return Gp.call(e),!0}catch(e){}return!1}var rd=Object.prototype.hasOwnProperty||function(e){return e in this};function cd(e,t){return rd.call(e,t)}function ud(e){return Tp.call(e)}function ld(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 pd(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return pd(Op.call(e,0,t.maxStringLength),t)+o}var a=Zp[t.quoteStyle||"single"];return a.lastIndex=0,td(zp.call(zp.call(e,a,"\\$1"),/[\x00-\x1f]/g,dd),"single",t)}function dd(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":"")+Pp.call(t.toString(16))}function md(e){return"Object("+e+")"}function hd(e){return e+" { ? }"}function fd(e,t,n,o){return e+" ("+t+") {"+(o?gd(n,o):Mp.call(n,", "))+"}"}function gd(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Mp.call(e,","+n)+"\n"+t.prev}function yd(e,t){var n=ad(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,s="function"==typeof Bp?Bp(e):[];if(Vp){i={};for(var r=0;r<s.length;r++)i["$"+s[r]]=s[r]}for(var c in e)cd(e,c)&&(n&&String(Number(c))===c&&c<e.length||Vp&&i["$"+c]instanceof Symbol||(Dp.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof Bp)for(var u=0;u<s.length;u++)Hp.call(e,s[u])&&o.push("["+t(s[u])+"]: "+t(e[s[u]],e));return o}var vd,bd,kd,xd,wd,jd,Cd,Ed,_d,Sd,Rd,Td,Ad,Id,Od,zd,Pd=ed,Ld=Xi,Dd=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},qd=Gr,Md=Js,Nd=Md([qd("%String.prototype.indexOf%")]),Fd=function(e,t){var n=qd(e,!!t);return"function"==typeof n&&Nd(e,".prototype.")>-1?Md([n]):n},Ud=Fd,Bd=ed,Gd=Xi,Vd=Gr("%Map%",!0),Wd=Ud("Map.prototype.get",!0),Hd=Ud("Map.prototype.set",!0),$d=Ud("Map.prototype.has",!0),Kd=Ud("Map.prototype.delete",!0),Qd=Ud("Map.prototype.size",!0),Jd=!!Vd&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Gd("Side channel does not contain "+Bd(e))},delete:function(t){if(e){var n=Kd(e,t);return 0===Qd(e)&&(e=void 0),n}return!1},get:function(t){if(e)return Wd(e,t)},has:function(t){return!!e&&$d(e,t)},set:function(t,n){e||(e=new Vd),Hd(e,t,n)}};return t},Yd=Fd,Xd=ed,Zd=Jd,em=Xi,tm=Gr("%WeakMap%",!0),nm=Yd("WeakMap.prototype.get",!0),om=Yd("WeakMap.prototype.set",!0),am=Yd("WeakMap.prototype.has",!0),im=Yd("WeakMap.prototype.delete",!0),sm=Xi,rm=ed,cm=function(){var e,t={assert:function(e){if(!t.has(e))throw new Ld("Side channel does not contain "+Pd(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Dd(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=Dd(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Dd(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Dd(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},um=(tm?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new em("Side channel does not contain "+Xd(e))},delete:function(n){if(tm&&n&&("object"==typeof n||"function"==typeof n)){if(e)return im(e,n)}else if(Zd&&t)return t.delete(n);return!1},get:function(n){return tm&&n&&("object"==typeof n||"function"==typeof n)&&e?nm(e,n):t&&t.get(n)},has:function(n){return tm&&n&&("object"==typeof n||"function"==typeof n)&&e?am(e,n):!!t&&t.has(n)},set:function(n,o){tm&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new tm),om(e,n,o)):Zd&&(t||(t=Zd()),t.set(n,o))}};return n}:Zd)||Jd||cm,lm=String.prototype.replace,pm=/%20/g,dm="RFC3986",mm={default:dm,formatters:{RFC1738:function(e){return lm.call(e,pm,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:dm},hm=mm,fm=Object.prototype.hasOwnProperty,gm=Array.isArray,ym=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),vm=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},bm=1024,km={arrayToObject:vm,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],s=Object.keys(i),r=0;r<s.length;++r){var c=s[r],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(gm(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 s="",r=0;r<i.length;r+=bm){for(var c=i.length>=bm?i.slice(r,r+bm):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===hm.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=ym[p]:p<2048?u[u.length]=ym[192|p>>6]+ym[128|63&p]:p<55296||p>=57344?u[u.length]=ym[224|p>>12]+ym[128|p>>6&63]+ym[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=ym[240|p>>18]+ym[128|p>>12&63]+ym[128|p>>6&63]+ym[128|63&p])}s+=u.join("")}return s},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(gm(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(gm(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!fm.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return gm(t)&&!gm(n)&&(a=vm(t,o)),gm(t)&&gm(n)?(n.forEach((function(n,a){if(fm.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 fm.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),a)}},xm=function(){var e,t={assert:function(e){if(!t.has(e))throw new sm("Side channel does not contain "+rm(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=um()),e.set(t,n)}};return t},wm=km,jm=mm,Cm=Object.prototype.hasOwnProperty,Em={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},_m=Array.isArray,Sm=Array.prototype.push,Rm=function(e,t){Sm.apply(e,_m(t)?t:[t])},Tm=Date.prototype.toISOString,Am=jm.default,Im={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:wm.encode,encodeValuesOnly:!1,format:Am,formatter:jm.formatters[Am],indices:!1,serializeDate:function(e){return Tm.call(e)},skipNulls:!1,strictNullHandling:!1},Om={},zm=function e(t,n,o,a,i,s,r,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(Om))&&!j;){var C=x.get(t);if(w+=1,void 0!==C){if(C===w)throw new RangeError("Cyclic object value");j=!0}void 0===x.get(Om)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=m(k):"comma"===o&&_m(k)&&(k=wm.maybeMap(k,(function(e){return e instanceof Date?m(e):e}))),null===k){if(s)return u&&!g?u(n,Im.encoder,y,"key",h):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||wm.isBuffer(k))return u?[f(g?n:u(n,Im.encoder,y,"key",h))+"="+f(u(k,Im.encoder,y,"value",h))]:[f(n)+"="+f(String(k))];var E,_=[];if(void 0===k)return _;if("comma"===o&&_m(k))g&&u&&(k=wm.maybeMap(k,u)),E=[{value:k.length>0?k.join(",")||null:void 0}];else if(_m(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&&_m(k)&&1===k.length?R+"[]":R;if(i&&_m(k)&&0===k.length)return T+"[]";for(var A=0;A<E.length;++A){var I=E[A],O="object"==typeof I&&void 0!==I.value?I.value:k[I];if(!r||null!==O){var z=d&&c?I.replace(/\./g,"%2E"):I,P=_m(k)?"function"==typeof o?o(T,z):T:T+(d?"."+z:"["+z+"]");v.set(t,w);var L=xm();L.set(Om,v),Rm(_,e(O,P,o,a,i,s,r,c,"comma"===o&&g&&_m(k)?null:u,l,p,d,m,h,f,g,y,L))}}return _},Pm=km,Lm=Object.prototype.hasOwnProperty,Dm=Array.isArray,qm={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Pm.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Mm=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Nm=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Fm=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),r=s?a.slice(0,s.index):a,c=[];if(r){if(!n.plainObjects&&Lm.call(Object.prototype,r)&&!n.allowPrototypes)return;c.push(r)}for(var u=0;n.depth>0&&null!==(s=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&Lm.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+a.slice(s.index)+"]")}return function(e,t,n,o){for(var a=o?t:Nm(t,n),i=e.length-1;i>=0;--i){var s,r=e[i];if("[]"===r&&n.parseArrays)s=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);else{s=n.plainObjects?Object.create(null):{};var c="["===r.charAt(0)&&"]"===r.charAt(r.length-1)?r.slice(1,-1):r,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&r!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=a:"__proto__"!==u&&(s[u]=a):s={0:a}}a=s}return a}(c,t,n,o)}},Um=function(e,t){var n,o=e,a=function(e){if(!e)return Im;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||Im.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=jm.default;if(void 0!==e.format){if(!Cm.call(jm.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=jm.formatters[n],i=Im.filter;if(("function"==typeof e.filter||_m(e.filter))&&(i=e.filter),o=e.arrayFormat in Em?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Im.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=void 0===e.allowDots?!0===e.encodeDotInKeys||Im.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Im.addQueryPrefix,allowDots:s,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Im.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Im.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Im.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Im.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Im.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Im.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Im.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Im.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Im.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Im.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):_m(a.filter)&&(n=a.filter);var i=[];if("object"!=typeof o||null===o)return"";var s=Em[a.arrayFormat],r="comma"===s&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var c=xm(),u=0;u<n.length;++u){var l=n[u];a.skipNulls&&null===o[l]||Rm(i,zm(o[l],l,s,r,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:""},Bm=function(e,t){var n=function(e){if(!e)return qm;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?qm.charset:e.charset,n=void 0===e.duplicates?qm.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||qm.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:qm.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:qm.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:qm.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:qm.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qm.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:qm.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:qm.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:qm.decoder,delimiter:"string"==typeof e.delimiter||Pm.isRegExp(e.delimiter)?e.delimiter:qm.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:qm.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:qm.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:qm.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:qm.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:qm.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qm.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,s=o.split(t.delimiter,i),r=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<s.length;++a)0===s[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[a]?c="utf-8":"utf8=%26%2310003%3B"===s[a]&&(c="iso-8859-1"),r=a,a=s.length);for(a=0;a<s.length;++a)if(a!==r){var u,l,p=s[a],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,qm.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),qm.decoder,c,"key"),l=Pm.maybeMap(Nm(p.slice(m+1),t),(function(e){return t.decoder(e,qm.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Mm(l)),p.indexOf("[]=")>-1&&(l=Dm(l)?[l]:l);var h=Lm.call(n,u);h&&"combine"===t.duplicates?n[u]=Pm.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),s=0;s<i.length;++s){var r=i[s],c=Fm(r,o[r],n,"string"==typeof e);a=Pm.merge(a,c,n)}return!0===n.allowSparse?a:Pm.compact(a)},Gm={formats:mm,parse:Bm,stringify:Um},Vm={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 Gm.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,vd=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(bd=vd.NotificationStatus||(vd.NotificationStatus={})).SETTLED="SETTLED",bd.NOT_SETTLED="NOT_SETTLED",(kd=vd.NotificationReason||(vd.NotificationReason={})).REFUNDED="REFUNDED",kd.RESOLVED="RESOLVED",kd.CANCELLED="CANCELLED",kd.SERVICE_SUSPENDED="SERVICE_SUSPENDED",kd.ORDER_STOPPED="ORDER_STOPPED",kd.DISMISS="DISMISS",exports.Organization=void 0,xd=exports.Organization||(exports.Organization={}),(wd=xd.CustomClaims||(xd.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",wd.USER_CODE="https://dashboard.dev.y.uno/user_code",wd.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,jd=exports.Country||(exports.Country={}),(Cd=jd.CountryCode||(jd.CountryCode={})).COLOMBIA="CO",Cd.MEXICO="MX",Cd.BRAZIL="BR",Cd.ARGENTINA="AR",Cd.CHILE="CL",Cd.PERU="PE",Cd.URUGUAY="UR",Cd.ECUADOR="EC",exports.Cms=void 0,Ed=exports.Cms||(exports.Cms={}),(_d=Ed.Locale||(Ed.Locale={})).EN="en",_d.ES="es",_d.PT="pt",(Sd=Ed.Target||(Ed.Target={})).BLANK="_blank",Sd.PARENT="_parent",Sd.SELF="_self",Sd.TOP="_top",exports.ReportType=void 0,(Rd=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",Rd.TRANSACTIONS="TRANSACTIONS",Rd.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",Rd.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Td=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Td.DEFAULT="DEFAULT",Td.CUSTOM="CUSTOM",exports.DataReport=void 0,Ad=exports.DataReport||(exports.DataReport={}),(Id=Ad.InsightsVolumeMetricsV2Path||(Ad.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Id.APPROVED_PAYMENTS="approved-payments",Id.PAYMENT_METHODS="payment-methods",Id.PROVIDERS="providers",Id.COUNTRIES="countries",Id.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Id.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Ad.OverviewMetricType||(Ad.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(Od=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",Od.SETTLEMENTS="SETTLEMENTS",Od.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",Od.AGENDA="AGENDA",Od.SALES_CONCILIATION="SALES_CONCILIATION",Od.ADVANCEMENTS="ADVANCEMENTS",Od.FEES="FEES",exports.ReconciliationAgendaInsight=void 0,(zd=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",zd.DAILY="AGENDA_DAILY_DISTRIBUTION",zd.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",zd.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION";var Wm=["PAUSED","ACTIVE"],Hm={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},$m="DELETED",Km={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},Qm=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},Jm=[{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"}],Ym=[{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"}],Xm=[{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"}],Zm=[{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:""}}],eh=[{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"}],th={docs_url:"https://docs.y.uno/reference/api-reference-overview"},nh={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}]},oh=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const ah=[];for(let e=0;e<256;++e)ah.push((e+256).toString(16).slice(1));let ih;const sh=new Uint8Array(16);var rh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ch(e,t,n){if(rh.randomUUID&&!t&&!e)return rh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!ih){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ih=crypto.getRandomValues.bind(crypto)}return ih(sh)}();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(ah[e[t+0]]+ah[e[t+1]]+ah[e[t+2]]+ah[e[t+3]]+"-"+ah[e[t+4]]+ah[e[t+5]]+"-"+ah[e[t+6]]+ah[e[t+7]]+"-"+ah[e[t+8]]+ah[e[t+9]]+"-"+ah[e[t+10]]+ah[e[t+11]]+ah[e[t+12]]+ah[e[t+13]]+ah[e[t+14]]+ah[e[t+15]]).toLowerCase()}(o)}var uh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},lh=function(t){function n(n){var o=n?e.__assign(e.__assign({},Vm),n):Vm;return t.call(this,o)||this}return e.__extends(n,t),n.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},n.prototype.updateReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},n.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})},n.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})},n.prototype.getReconciliationSettlementsHeader=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements/header",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},n.prototype.getReconciliationSettlementsBody=function(e){return this.get("/reconciliation/settlements/body",{params:e})},n.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})},n.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},n.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},n.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},n.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},n.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},n.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},n.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},n.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},n.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},n.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},n.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},n.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},n.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},n.prototype.getPayments=function(e){return this.get("/payments",{params:e})},n.prototype.postPaymentsLazy=function(t){var n=t.account_code;return delete t.account_code,t.start_date||(t=e.__assign(e.__assign({},t),{start_date:new Date})),t.end_date||(t=e.__assign(e.__assign({},t),{end_date:new Date})),this.post("/payments/lazy",{account_codes:(null==n?void 0:n.split(","))||[]},{params:t})},n.prototype.postPayouts=function(t){var n=t.account_code;return delete t.account_code,t.start_date||(t=e.__assign(e.__assign({},t),{start_date:new Date})),t.end_date||(t=e.__assign(e.__assign({},t),{end_date:new Date})),this.post("/payouts",{account_codes:(null==n?void 0:n.split(","))||[]},{params:t})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.postPaymentsEvaluated=function(t){return delete t.account_code,t.start_date||(t=e.__assign(e.__assign({},t),{start_date:new Date})),t.end_date||(t=e.__assign(e.__assign({},t),{end_date:new Date})),this.post("/payments/evaluated",e.__assign({},t))},n.prototype.getPayment=function(e){return this.get("/payments/".concat(e.payment_code))},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.getPaymentTransactions=function(e,t){return this.get("/payments/".concat(e,"/transactions"),{params:t})},n.prototype.getPaymentTransactionsLazy=function(e){return this.get("/payments/".concat(e,"/transactions/lazy"))},n.prototype.getTransactions=function(e){return this.get("/transactions",{params:e})},n.prototype.postTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},n.prototype.postFraudTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},n.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},n.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})},n.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},n.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})},n.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},n.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},n.prototype.getPaymentMethodsByProvider=function(e){return this.get("/payments/payment-methods/provider/".concat(e.provider))},n.prototype.getPaymentMethodsAndProvidersActive=function(){return this.get("/payments/payment-methods/providers/active")},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},n.prototype.useGetPaymentAndTrxStatuses=function(){return this.get("/payments/transaction/statuses")},n.prototype.getTransactionDetails=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/").concat(e.transaction_code))},n.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},n.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},n.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":ch()}})},n.prototype.getTransactionHistory=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/history"))},n.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},n.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},n.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},n.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},n.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},n.prototype.getAllOrganization=function(){return this.get("/organizations/all")},n.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})},n.prototype.getIntegrationByAccount=function(e){var t=e.accountCode,n=e.organizationCode,o={"x-organization-code":n};return this.get("/organizations/account-integrations/".concat(t),n?{headers:o}:{})},n.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})},n.prototype.putCosts=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.put("/connections/costs",{costs:[t]})]}))}))},n.prototype.updateOrganizationStatus=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},n.prototype.getIntegrationParams=function(e){var t=e.integration_code;return this.get("/connections/integration-params/".concat(t))},n.prototype.getConnectionsByPaymentMethod=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n))]}))}))},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},n.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==$m)return delete t.status,this.delete(o,{data:t});Object.values(Wm).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(Hm[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},n.prototype.postConnection=function(e){var t=e.payload,n=e.accountCode;return this.post("/connections/create/".concat(n),t)},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.newPostConnection=function(e){var t=e.payload,n=e.accountCode;return this.post("/connections/v3/".concat(n),t)},n.prototype.patchConnection=function(t){var n,o=t.payload,a=t.connectionCode,i=localStorage.getItem("account"),s=i?null===(n=JSON.parse(i).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(a),e.__assign({account_code:s},o))},n.prototype.deleteConnection=function(e){return this.delete("/connections/".concat(e))},n.prototype.postArchiveConnection=function(e){var t=e.payload,n=e.connectionCode;return this.post("/connections/archive/".concat(n),t)},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getDialogs=function(){return this.get("/dialogs")},n.prototype.getWebhookParams=function(){return this.get("/accounts/webhooks/params-catalog")},n.prototype.getWebhooks=function(e){var t=e.accountCode;return this.get("/accounts/webhooks/".concat(t))},n.prototype.postWebhook=function(e){var t=e.payload,n=e.accountCode;return this.post("/accounts/webhooks/".concat(n),t)},n.prototype.deleteWebhook=function(e){return this.delete("/accounts/webhooks/".concat(e))},n.prototype.updateWebhook=function(e,t){return this.patch("/accounts/webhooks/".concat(e),t)},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},n.prototype.getWebhooksV2=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/".concat(t))},n.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}})},n.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},n.prototype.postWebhookV2=function(e){var t=e.payload,n=e.accountCode;return this.post("/accounts/webhooks-v2/".concat(n),t)},n.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},n.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},n.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},n.prototype.getMenu=function(){return this.get("/cms/menu")},n.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},n.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},n.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},n.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},n.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},n.prototype.getLocales=function(){return this.get("/cms/locales")},n.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},n.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},n.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},n.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})},n.prototype.postSmartRoutingValidateConnection=function(e){return this.post("/smart-routing/connections/".concat(e))},n.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},n.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},n.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},n.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},n.prototype.getSmartRoutingTutorial=function(e){return this.get("/smart-routing/tutorial/".concat(e))},n.prototype.updateSmartRoutingTutorial=function(e,t){return this.put("/smart-routing/tutorial/".concat(e,"/").concat(t),{})},n.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},n.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},n.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},n.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},n.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},n.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},n.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},n.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},n.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},n.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},n.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},n.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},n.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},n.prototype.getDashboardInsights=function(e){return this.get("/data-report/dashboard/insights",{params:e})},n.prototype.getInsightsMetricsConversionRate=function(e){var t=e.account_code;return delete e.account_code,this.post("/insights/conversion-rate/metrics",uh(t),{params:e})},n.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,o=e.connection_name,a=uh(n);return o&&(a.connection_name=o.split(","),delete e.connection_name),delete e.account_code,this.post("/insights/conversion-rate/".concat(t),a,{params:e})},n.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code;return delete e.account_code,this.post("/insights/conversion-rate/cards/metrics/".concat(t),uh(n),{params:e})},n.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/insights/conversion-rate/fallback",uh(t),{params:e})},n.prototype.getInsightsMetricsVolume=function(t,n){var o,a={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return n.connection_name&&(a=e.__assign(e.__assign({},a),{connection_name:null===(o=n.connection_name)||void 0===o?void 0:o.split(",")}),delete n.connection_name),this.post("/insights/volume/metrics",a,{params:n})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var a,i={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o.connection_name&&(i=e.__assign(e.__assign({},i),{connection_name:null===(a=o.connection_name)||void 0===a?void 0:a.split(",")}),delete o.connection_name),this.post("/insights/volume/".concat(n),i,{params:o})},n.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},n.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},n.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},n.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},n.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},n.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},n.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},n.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},n.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},n.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},n.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.getInsightOverview=function(t){var n=t.account_code,o=t.connection_name,a=uh(n);return o&&(a=e.__assign(e.__assign({},a),{connection_name:null==o?void 0:o.split(",")}),delete t.connection_name),delete t.account_code,this.post("/insights/overview",a,{params:t})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,a=t.connection_name,i=uh(o);return a&&(i=e.__assign(e.__assign({},i),{connection_name:null==a?void 0:a.split(",")}),delete t.connection_name),delete t.account_code,this.post("/insights/overview/".concat(n),i,{params:t})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.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})},n.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})},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},n.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},n.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},n.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},n.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},n.prototype.updateIsActivePaymentMethod=function(e,t){return this.patch("/checkouts/payment-methods",{checkoutCode:e,paymentMethods:t})},n.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}})},n.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},n.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})},n.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.changePassword=function(t){return this.patch("/user/change-password/".concat(t.user_id),e.__assign({},t.payload))},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReport=function(e){return this.post("/reports/create",e)},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReportV2=function(e){return this.post("/reports",e)},n.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},n.prototype.reportsList=function(){return this.get("/reports")},n.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},n.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},n.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},n.prototype.getReportTemplates=function(){return this.get("/reports/templates")},n.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},n.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.getRefundPdf=function(e,t){var n={"x-organization-code":t};return this.get("/refund-pdf/".concat(e),{headers:n})},n.prototype.getProofOfCancel=function(e,t){var n={"x-organization-code":t};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:n})},n.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},n.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},n.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},n.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},n.prototype.getProfile=function(){return this.get("/user")},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsers=function(e){return this.post("/user/invite",e)},n.prototype.inviteUsersV2=function(e,t){var n={"x-organization-code":t};return this.post("v2/user/invite",e,{headers:n})},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.unInviteUsers=function(e){var t=e.userCode;return this.delete("/user/uninvite/".concat(t))},n.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},n.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},n.prototype.getAccountsV2=function(){return this.get("/accounts-user")},n.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},n.prototype.putAccountsUser=function(e,t,n){var o={"x-organization-code":e,"x-user-code":t};return this.put("/accounts-user/role",n,{headers:o})},n.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})},n.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})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},n.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}})},n.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},n.prototype.createNotificacion=function(e){return this.post("/notifications",e)},n.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},n.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},n.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},n.prototype.getNotificationsAccount=function(e){return this.get("/notifications/".concat(e))},n.prototype.getNotification=function(){return this.patch("/notifications")},n.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},n.prototype.pathNotification=function(e){return this.patch("/notifications",e)},n.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},n.prototype.getMembers=function(e){var t={"x-organization-code":e};return this.get("/teams",e&&{headers:t})},n.prototype.getMembersV3=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/v3/teams",{headers:t})},n.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.getMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o={"x-organization-code":t};return this.get("/v4/teams?accountCodes=".concat(n),{headers:o})},n.prototype.postMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o={"x-organization-code":t};return this.post("/v4/teams",{account_codes:n},{headers:o})},n.prototype.postMembersPaginated=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,page:o,page_size:a},{headers:i})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,s={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:a,page_size:i},{headers:s})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setRoles=function(e){return this.patch("/teams",e)},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},n.prototype.deleteUserTeam=function(e){var t=e.userCode;return this.delete("/teams/".concat(t))},n.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},n.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},n.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}})},n.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},n.prototype.getFeatureFlagId=function(t){var n=t.name,o=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:o})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.names,o=t.body;return e.__awaiter(this,void 0,void 0,(function(){var t,a,i,s=this;return e.__generator(this,(function(e){switch(e.label){case 0:t=n.map((function(e){var t={name:e,parameters:o};return s.post("/feature-flags/evaluate",t)})),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.all(t)];case 2:return a=e.sent(),i={},a.forEach((function(e,t){var o=n[t];i[o]=e.data.result})),[2,{data:i,status:200,statusText:"OK",headers:{},config:{}}];case 3:throw e.sent();case 4:return[2]}}))}))},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(){return this.get("/payments/filters")},n.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},n.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},n.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},n.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},n.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})},n.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},n.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},n.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},n.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)},n.prototype.postCreateProducts=function(e){var t=e.payload;return this.post("/v2/catalog/products",t)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.getProductsByAccount=function(e){var t=e.accountCode;return this.get("/v2/catalog/products/account/".concat(t))},n.prototype.getPaymentsByPaymentLink=function(e,t){return this.get("/payments",{params:e,headers:{"x-organization-code":t}})},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},n.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},n.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},n.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},n.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},n.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},n.prototype.getMfaToken=function(e){return this.post("/mfa/token",{password:e})},n.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.validateOtp=function(e){return this.post("/mfa/confirm/otp",{otp:e})},n.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.confirmOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},n.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},n.prototype.getMFAStatus=function(){return this.get("/mfa/status")},n.prototype.postValidatePassword=function(e){return this.post("/mfa/validate/password",{password:e})},n.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},n.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},n.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},n.prototype.getOneBlackListType=function(e){return this.get("/blacklist/get-one/".concat(e))},n.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}}:{})},n.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}}:{})},n.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}}:{})},n.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}})},n.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},n.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},n.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}})},n.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})},n.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}})},n.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})},n.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}})},n.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}})},n.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.postBlackListType=function(e){var t=e.payload;return this.post("/blacklist/create",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},n.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},n.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},n.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},n.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)}})},n.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},n.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}})},n.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}})},n.prototype.getGeographicCoordinates=function(e){var t=e.params;return this.get("/coordinates",{params:t})},n.prototype.deleteBlackListItem=function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return this.delete("/blacklist/delete/item/".concat(n,"/").concat(t,"?item=").concat(o))},n.prototype.getVelocityRules=function(t){return this.post("/yuno-fraud-screening-int/velocity-rules-list",e.__assign({},t))},n.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})},n.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()}}},n.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()}}},n.prototype.batchRefundByFile=function(t){var n=t.payload;return this.post("/batch-refund-by-file",e.__assign({},n))},n.prototype.uploadBatchRefundsV2=function(t){var n=t.payload;return this.post("/batch-refunds",e.__assign({},n))},n.prototype.uploadBatchRefunds=function(t){var n=t.payload,o=t.handleSetProgress;return this.post("/batch-refunds",e.__assign({},n),{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},n.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},n.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},n.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},n.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},n.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},n.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},n.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},n.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}})},n.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},n.prototype.postCreateRule=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules",e,{headers:{"x-account-code":t}})},n.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},n.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},n.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},n.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},n.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},n.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},n.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},n.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},n.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},n.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.getCustomizedApiKeysShowToken=function(e){return this.get("/credentials-manager/keys/show-token/".concat(e))},n.prototype.getLoginSSO=function(e){return this.get("/saml/metadata?email=".concat(e))},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(Km[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(Km[null==e?void 0:e.type],"/export");return this.post(t,e)},n.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},n.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},n.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},n.prototype.getSamlConfig=function(){return this.get("/saml-config")},n.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},n.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},n.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},n.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},n.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},n.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},n.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},n.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},n.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},n.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n}(fp),ph={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},dh=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.refreshInstance=function(t){var o;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:ph["BFF_URL_".concat(ph.ENVIRONMENT)]})),null===(o=this.classInstance.instance.interceptors)||void 0===o||o.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},n.getInstance=function(t){var o,a;if(this.classInstance){var i=localStorage.getItem("account");if(i){var s=null===(a=null===(o=JSON.parse(i))||void 0===o?void 0:o.value)||void 0===a?void 0:a.code,r=this.classInstance.instance.defaults.headers["x-account-code"];!!s&&""!==s&&s!==r&&(this.classInstance.instance.defaults.headers["x-account-code"]=s)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||ph["BFF_URL_".concat(ph.ENVIRONMENT)]})),this.classInstance},n.setMode=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return this.classInstance.instance.interceptors.request.use((function(e){return e.headers&&(e.headers["X-Environment"]=t),e}),(function(e){return Promise.reject(e)})),[2]}))}))},n}(lh);class mh{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 hh="undefined"==typeof window||"Deno"in window;function fh(){}function gh(e){return"number"==typeof e&&e>=0&&e!==1/0}function yh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vh(e,t,n){return Ih(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function bh(e,t,n){return Ih(e)?[{...t,queryKey:e},n]:[e||{},t]}function kh(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:i,queryKey:s,stale:r}=e;if(Ih(s))if(o){if(t.queryHash!==wh(s,t.options))return!1}else if(!Ch(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof r||t.isStale()===r)&&((void 0===a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function xh(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:i}=e;if(Ih(i)){if(!t.options.mutationKey)return!1;if(n){if(jh(t.options.mutationKey)!==jh(i))return!1}else if(!Ch(t.options.mutationKey,i))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function wh(e,t){return((null==t?void 0:t.queryKeyHashFn)||jh)(e)}function jh(e){return JSON.stringify(e,((e,t)=>Th(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Ch(e,t){return Eh(e,t)}function Eh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Eh(e[n],t[n]))))}function _h(e,t){if(e===t)return e;const n=Rh(e)&&Rh(t);if(n||Th(e)&&Th(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{};let r=0;for(let o=0;o<i;o++){const i=n?o:a[o];s[i]=_h(e[i],t[i]),s[i]===e[i]&&r++}return o===i&&r===o?e:s}return t}function Sh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Rh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Th(e){if(!Ah(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ah(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ah(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ih(e){return Array.isArray(e)}function Oh(e){return new Promise((t=>{setTimeout(t,e)}))}function zh(e){Oh(0).then(e)}function Ph(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?_h(e,t):t}const Lh=new class extends mh{constructor(){super(),this.setup=e=>{if(!hh&&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)}},Dh=["online","offline"];const qh=new class extends mh{constructor(){super(),this.setup=e=>{if(!hh&&window.addEventListener){const t=()=>e();return Dh.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Dh.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 Mh(e){return Math.min(1e3*2**e,3e4)}function Nh(e){return"online"!==(null!=e?e:"online")||qh.isOnline()}class Fh{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Uh(e){return e instanceof Fh}function Bh(e){let t,n,o,a=!1,i=0,s=!1;const r=new Promise(((e,t)=>{n=e,o=t})),c=()=>!Lh.isFocused()||"always"!==e.networkMode&&!qh.isOnline(),u=o=>{s||(s=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},p=()=>new Promise((n=>{t=e=>{const t=s||!c();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,s||null==e.onContinue||e.onContinue()})),d=()=>{if(s)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{var n,o;if(s)return;const r=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Mh,m="function"==typeof u?u(i,t):u,h=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);!a&&h?(i++,null==e.onFail||e.onFail(i,t),Oh(m).then((()=>{if(c())return p()})).then((()=>{a?l(t):d()}))):l(t)}))};return Nh(e.networkMode)?d():p().then(d),{promise:r,cancel:t=>{s||(l(new Fh(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?r:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const Gh=console;const Vh=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):zh((()=>{n(o)}))},i=()=>{const t=e;e=[],t.length&&zh((()=>{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 Wh{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gh(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:hh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Hh extends Wh{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Gh,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=Ph(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(fh).catch(fh):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||!yh(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}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};r(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(r(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;(Uh(e)&&e.silent||this.dispatch({type:"error",error:e}),Uh(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=Bh({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:Nh(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 Uh(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),Vh.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class $h extends mh{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:wh(a,t);let s=this.get(i);return s||(s=new Hh({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}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(){Vh.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=bh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>kh(n,e)))}findAll(e,t){const[n]=bh(e,t);return Object.keys(n).length>0?this.queries.filter((e=>kh(n,e))):this.queries}notify(e){Vh.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){Vh.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){Vh.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Kh extends Wh{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Gh,this.observers=[],this.state=e.state||Qh(),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=Bh({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,s,r,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==(s=(r=this.mutationCache.config).onSettled)?void 0:s.call(r,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:!Nh(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),Vh.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Qh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Jh extends mh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new Kh({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(){Vh.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=>xh(e,t)))}findAll(e){return this.mutations.filter((t=>xh(e,t)))}notify(e){Vh.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 Vh.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(fh)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Yh(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,i,s;const r=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==(s=e.state.data)?void 0:s.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 s;s=i,Object.defineProperty(s,"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 r=g(i);return Promise.resolve(r).then((e=>y(t,o,e,a)))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:Xh(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=!r||!d[0]||r(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(!r||!d[n]||r(d[n],n,d)){const a=t?m[n]:Xh(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 Xh(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Zh extends mh{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),ef(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tf(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"),Sh(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&&nf(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(!Sh(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(fh)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),hh||this.currentResult.isStale||!gh(this.options.staleTime))return;const e=yh(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,!hh&&!1!==this.options.enabled&&gh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Lh.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,s=this.currentResultOptions,r=e!==n,c=r?e.state:this.currentQueryInitialState,u=r?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&&ef(e,t),s=a&&nf(e,n,t,o);(i||s)&&(f=Nh(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=Ph(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==s?void 0:s.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=Ph(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:of(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,Sh(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||Uh(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Vh.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,s,r,c;null==(i=(s=this.options).onError)||i.call(s,this.currentResult.error),null==(r=(c=this.options).onSettled)||r.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 ef(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&&tf(e,t,t.refetchOnMount)}function tf(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&of(e,t)}return!1}function nf(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&of(e,n)}function of(e,t){return e.isStaleByTime(t.staleTime)}class af extends mh{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),Sh(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){Vh.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,s,r,c;null==(i=(s=this.mutateOptions).onError)||i.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(r=(c=this.mutateOptions).onSettled)||r.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var sf,rf={exports:{}},cf={};var uf,lf={};
214
+ !function(e){var t,n,a,i=xi,s=o.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),n=t&&i[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},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=s("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=e.types,a=["nginx","apache",void 0,"iana"],Object.keys(i).forEach((function(e){var o=i[e],s=o.extensions;if(s&&s.length){t[e]=s;for(var r=0;r<s.length;r++){var c=s[r];if(n[c]){var u=a.indexOf(i[n[c]].source),l=a.indexOf(o.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))}(ki);var wi=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},ji=function(e){var t=!1;return wi((function(){t=!0})),function(n,o){t?e(n,o):wi((function(){e(n,o)}))}};var Ci=function(e){Object.keys(e.jobs).forEach(Ei.bind(e)),e.jobs={}};function Ei(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var _i=ji,Si=Ci,Ri=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,_i(o)):e(n,t,_i(o));return a}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?Si(n):n.results[a]=t,o(e,n.results))}))};var Ti=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 Ai=Ci,Ii=ji,Oi=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Ai(this),Ii(e)(null,this.results)};var zi=Ri,Pi=Ti,Li=Oi,Di=function(e,t,n){var o=Pi(e);for(;o.index<(o.keyedList||e).length;)zi(e,t,o,(function(e,t){e?n(e,t):0!==Object.keys(o.jobs).length||n(null,o.results)})),o.index++;return Li.bind(o,n)};var qi={exports:{}},Mi=Ri,Ni=Ti,Fi=Oi;function Ui(e,t){return e<t?-1:e>t?1:0}qi.exports=function(e,t,n,o){var a=Ni(e,n);return Mi(e,t,a,(function n(i,s){i?o(i,s):(a.index++,a.index<(a.keyedList||e).length?Mi(e,t,a,n):o(null,a.results))})),Fi.bind(a,o)},qi.exports.ascending=Ui,qi.exports.descending=function(e,t){return-1*Ui(e,t)};var Bi=qi.exports,Gi=Bi,Vi=function(e,t,n){return Gi(e,t,null,n)};var Wi={parallel:Di,serial:Vi,serialOrdered:Bi},Hi=Object,$i=Error,Ki=EvalError,Qi=RangeError,Ji=ReferenceError,Yi=SyntaxError,Xi=TypeError,Zi=URIError,es=Math.abs,ts=Math.floor,ns=Math.max,os=Math.min,as=Math.pow,is=Math.round,ss=Number.isNaN||function(e){return e!=e},rs=Object.getOwnPropertyDescriptor;if(rs)try{rs([],"length")}catch(e){rs=null}var cs=rs,us=Object.defineProperty||!1;if(us)try{us({},"a",{value:1})}catch(e){us=!1}var ls,ps,ds,ms,hs,fs,gs,ys,vs,bs,ks,xs,ws,js,Cs,Es,_s=us;function Ss(){return ps?ls:(ps=1,ls=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 Rs(){return fs?hs:(fs=1,hs="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Ts(){return ys?gs:(ys=1,gs=Hi.getPrototypeOf||null)}function As(){if(bs)return vs;bs=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 vs=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,s=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),r=t(0,a.length-s.length),c=[],u=0;u<r;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(s,arguments));return Object(e)===e?e:this}return a.apply(o,n(s,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,i.prototype=new l,l.prototype=null}return i},vs}function Is(){if(xs)return ks;xs=1;var e=As();return ks=Function.prototype.bind||e}function Os(){return js?ws:(js=1,ws=Function.prototype.call)}function zs(){return Es?Cs:(Es=1,Cs=Function.prototype.apply)}var Ps,Ls,Ds,qs,Ms,Ns,Fs,Us="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Bs=Is(),Gs=zs(),Vs=Os(),Ws=Us||Bs.call(Vs,Gs),Hs=Is(),$s=Xi,Ks=Os(),Qs=Ws,Js=function(e){if(e.length<1||"function"!=typeof e[0])throw new $s("a function is required");return Qs(Hs,Ks,e)};function Ys(){if(Ns)return Ms;Ns=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Is();return Ms=n.call(e,t)}var Xs=Hi,Zs=$i,er=Ki,tr=Qi,nr=Ji,or=Yi,ar=Xi,ir=Zi,sr=es,rr=ts,cr=ns,ur=os,lr=as,pr=is,dr=function(e){return ss(e)||0===e?e:e<0?-1:1},mr=Function,hr=function(e){try{return mr('"use strict"; return ('+e+").constructor;")()}catch(e){}},fr=cs,gr=_s,yr=function(){throw new ar},vr=fr?function(){try{return yr}catch(e){try{return fr(arguments,"callee").get}catch(e){return yr}}}():yr,br=function(){if(ms)return ds;ms=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ss();return ds=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),kr=function(){if(qs)return Ds;qs=1;var e=Rs(),t=Ts(),n=function(){if(Ls)return Ps;Ls=1;var e,t=Js,n=cs;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 Ps=o&&"function"==typeof o.get?t([o.get]):"function"==typeof i&&function(e){return i(null==e?e:a(e))}}();return Ds=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}(),xr=Ts(),wr=Rs(),jr=zs(),Cr=Os(),Er={},_r="undefined"!=typeof Uint8Array&&kr?kr(Uint8Array):Fs,Sr={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Fs:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Fs:ArrayBuffer,"%ArrayIteratorPrototype%":br&&kr?kr([][Symbol.iterator]()):Fs,"%AsyncFromSyncIteratorPrototype%":Fs,"%AsyncFunction%":Er,"%AsyncGenerator%":Er,"%AsyncGeneratorFunction%":Er,"%AsyncIteratorPrototype%":Er,"%Atomics%":"undefined"==typeof Atomics?Fs:Atomics,"%BigInt%":"undefined"==typeof BigInt?Fs:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Fs:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Fs:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Fs:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Zs,"%eval%":eval,"%EvalError%":er,"%Float16Array%":"undefined"==typeof Float16Array?Fs:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Fs:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Fs:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Fs:FinalizationRegistry,"%Function%":mr,"%GeneratorFunction%":Er,"%Int8Array%":"undefined"==typeof Int8Array?Fs:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Fs:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Fs:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":br&&kr?kr(kr([][Symbol.iterator]())):Fs,"%JSON%":"object"==typeof JSON?JSON:Fs,"%Map%":"undefined"==typeof Map?Fs:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&br&&kr?kr((new Map)[Symbol.iterator]()):Fs,"%Math%":Math,"%Number%":Number,"%Object%":Xs,"%Object.getOwnPropertyDescriptor%":fr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Fs:Promise,"%Proxy%":"undefined"==typeof Proxy?Fs:Proxy,"%RangeError%":tr,"%ReferenceError%":nr,"%Reflect%":"undefined"==typeof Reflect?Fs:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Fs:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&br&&kr?kr((new Set)[Symbol.iterator]()):Fs,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Fs:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":br&&kr?kr(""[Symbol.iterator]()):Fs,"%Symbol%":br?Symbol:Fs,"%SyntaxError%":or,"%ThrowTypeError%":vr,"%TypedArray%":_r,"%TypeError%":ar,"%Uint8Array%":"undefined"==typeof Uint8Array?Fs:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Fs:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Fs:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Fs:Uint32Array,"%URIError%":ir,"%WeakMap%":"undefined"==typeof WeakMap?Fs:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Fs:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Fs:WeakSet,"%Function.prototype.call%":Cr,"%Function.prototype.apply%":jr,"%Object.defineProperty%":gr,"%Object.getPrototypeOf%":xr,"%Math.abs%":sr,"%Math.floor%":rr,"%Math.max%":cr,"%Math.min%":ur,"%Math.pow%":lr,"%Math.round%":pr,"%Math.sign%":dr,"%Reflect.getPrototypeOf%":wr};if(kr)try{null.error}catch(e){var Rr=kr(kr(e));Sr["%Error.prototype%"]=Rr}var Tr,Ar,Ir=function e(t){var n;if("%AsyncFunction%"===t)n=hr("async function () {}");else if("%GeneratorFunction%"===t)n=hr("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=hr("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&kr&&(n=kr(a.prototype))}return Sr[t]=n,n},Or={__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"]},zr=Is(),Pr=Ys(),Lr=zr.call(Cr,Array.prototype.concat),Dr=zr.call(jr,Array.prototype.splice),qr=zr.call(Cr,String.prototype.replace),Mr=zr.call(Cr,String.prototype.slice),Nr=zr.call(Cr,RegExp.prototype.exec),Fr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ur=/\\(\\)?/g,Br=function(e,t){var n,o=e;if(Pr(Or,o)&&(o="%"+(n=Or[o])[0]+"%"),Pr(Sr,o)){var a=Sr[o];if(a===Er&&(a=Ir(o)),void 0===a&&!t)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new or("intrinsic "+e+" does not exist!")},Gr=function(e,t){if("string"!=typeof e||0===e.length)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ar('"allowMissing" argument must be a boolean');if(null===Nr(/^%?[^%]*%?$/,e))throw new or("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Mr(e,0,1),n=Mr(e,-1);if("%"===t&&"%"!==n)throw new or("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new or("invalid intrinsic syntax, expected opening `%`");var o=[];return qr(e,Fr,(function(e,t,n,a){o[o.length]=n?qr(a,Ur,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=Br("%"+o+"%",t),i=a.name,s=a.value,r=!1,c=a.alias;c&&(o=c[0],Dr(n,Lr([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=Mr(p,0,1),m=Mr(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new or("property names with quotes must have matching quotes");if("constructor"!==p&&l||(r=!0),Pr(Sr,i="%"+(o+="."+p)+"%"))s=Sr[i];else if(null!=s){if(!(p in s)){if(!t)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(fr&&u+1>=n.length){var h=fr(s,p);s=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:s[p]}else l=Pr(s,p),s=s[p];l&&!r&&(Sr[i]=s)}}return s};var Vr=Gr("%Object.defineProperty%",!0),Wr=function(){if(Ar)return Tr;Ar=1;var e=Ss();return Tr=function(){return e()&&!!Symbol.toStringTag}}()(),Hr=Ys(),$r=Xi,Kr=Wr?Symbol.toStringTag:null,Qr=vi,Jr=t,Yr=o,Xr=a,Zr=i,ec=s.parse,tc=r,nc=n.Stream,oc=ki,ac=Wi,ic=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 $r("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!Kr||!n&&Hr(e,Kr)||(Vr?Vr(e,Kr,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[Kr]=t)},sc=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e},rc=cc;function cc(e){if(!(this instanceof cc))return new cc(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Qr.call(this),e=e||{})this[t]=e[t]}Jr.inherits(cc,Qr),cc.LINE_BREAK="\r\n",cc.DEFAULT_CONTENT_TYPE="application/octet-stream",cc.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=Qr.prototype.append.bind(this);if("number"==typeof t&&(t=""+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)}},cc.prototype._trackLength=function(e,t,n){var o=0;null!=n.knownLength?o+=+n.knownLength:Buffer.isBuffer(t)?o=t.length:"string"==typeof t&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+cc.LINE_BREAK.length,t&&(t.path||t.readable&&Object.prototype.hasOwnProperty.call(t,"httpVersion")||t instanceof nc)&&(n.knownLength||this._valuesToMeasure.push(t))},cc.prototype._lengthRetriever=function(e,t){Object.prototype.hasOwnProperty.call(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):tc.stat(e.path,(function(n,o){var a;n?t(n):(a=o.size-(e.start?e.start:0),t(null,a))})):Object.prototype.hasOwnProperty.call(e,"httpVersion")?t(null,+e.headers["content-length"]):Object.prototype.hasOwnProperty.call(e,"httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},cc.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),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&sc(r,n.header),r)if(Object.prototype.hasOwnProperty.call(r,c)){if(null==(o=r[c]))continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+cc.LINE_BREAK)}return"--"+this.getBoundary()+cc.LINE_BREAK+s+cc.LINE_BREAK},cc.prototype._getContentDisposition=function(e,t){var n,o;return"string"==typeof t.filepath?n=Yr.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=Yr.basename(t.filename||e.name||e.path):e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(n=Yr.basename(e.client._httpMessage.path||"")),n&&(o='filename="'+n+'"'),o},cc.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=oc.lookup(e.name)),!n&&e.path&&(n=oc.lookup(e.path)),!n&&e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=oc.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=cc.DEFAULT_CONTENT_TYPE),n},cc.prototype._multiPartFooter=function(){return function(e){var t=cc.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},cc.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+cc.LINE_BREAK},cc.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t.toLowerCase()]=e[t]);return n},cc.prototype.setBoundary=function(e){this._boundary=e},cc.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},cc.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(cc.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},cc.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},cc.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},cc.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},cc.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?ac.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))},cc.prototype.submit=function(e,t){var n,o,a={method:"post"};return"string"==typeof e?(e=ec(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?Zr.request(o):Xr.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},cc.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},cc.prototype.toString=function(){return"[object FormData]"},ic(cc,"FormData");var uc=pi(rc);function lc(e){return si.isPlainObject(e)||si.isArray(e)}function pc(e){return si.endsWith(e,"[]")?e.slice(0,-2):e}function dc(e,t,n){return e?e.concat(t).map((function(e,t){return e=pc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const mc=si.toFlatObject(si,{},null,(function(e){return/^is[A-Z]/.test(e)}));function hc(e,t,n){if(!si.isObject(e))throw new TypeError("target must be an object");t=t||new(uc||FormData);const o=(n=si.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!si.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,i=n.dots,s=n.indexes,r=(n.Blob||"undefined"!=typeof Blob&&Blob)&&si.isSpecCompliantForm(t);if(!si.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(si.isDate(e))return e.toISOString();if(!r&&si.isBlob(e))throw new ri("Blob is not supported. Use a Buffer instead.");return si.isArrayBuffer(e)||si.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let r=e;if(e&&!a&&"object"==typeof e)if(si.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(si.isArray(e)&&function(e){return si.isArray(e)&&!e.some(lc)}(e)||(si.isFileList(e)||si.endsWith(n,"[]"))&&(r=si.toArray(e)))return n=pc(n),r.forEach((function(e,o){!si.isUndefined(e)&&null!==e&&t.append(!0===s?dc([n],o,i):null===s?n:n+"[]",c(e))})),!1;return!!lc(e)||(t.append(dc(a,n,i),c(e)),!1)}const l=[],p=Object.assign(mc,{defaultVisitor:u,convertValue:c,isVisitable:lc});if(!si.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!si.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),si.forEach(n,(function(n,i){!0===(!(si.isUndefined(n)||null===n)&&a.call(t,n,si.isString(i)?i.trim():i,o,p))&&e(n,o?o.concat(i):[i])})),l.pop()}}(e),t}function fc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function gc(e,t){this._pairs=[],e&&hc(e,this,t)}const yc=gc.prototype;function vc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bc(e,t,n){if(!t)return e;const o=n&&n.encode||vc;si.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):si.isURLSearchParams(t)?t.toString():new gc(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}yc.append=function(e,t){this._pairs.push([e,t])},yc.toString=function(e){const t=e?function(t){return e.call(this,t,fc)}:fc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var kc=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){si.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wc=s.URLSearchParams;const jc="abcdefghijklmnopqrstuvwxyz",Cc="0123456789",Ec={DIGIT:Cc,ALPHA:jc,ALPHA_DIGIT:jc+jc.toUpperCase()+Cc};var _c={isNode:!0,classes:{URLSearchParams:wc,FormData:uc,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Ec,generateString:(e=16,t=Ec.ALPHA_DIGIT)=>{let n="";const{length:o}=t,a=new Uint32Array(e);c.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%o];return n},protocols:["http","https","file","data"]};const Sc="undefined"!=typeof window&&"undefined"!=typeof document,Rc="object"==typeof navigator&&navigator||void 0,Tc=Sc&&(!Rc||["ReactNative","NativeScript","NS"].indexOf(Rc.product)<0),Ac="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ic=Sc&&window.location.href||"http://localhost";var Oc={...Object.freeze({__proto__:null,hasBrowserEnv:Sc,hasStandardBrowserEnv:Tc,hasStandardBrowserWebWorkerEnv:Ac,navigator:Rc,origin:Ic}),..._c};function zc(e){function t(e,n,o,a){let i=e[a++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),r=a>=e.length;if(i=!i&&si.isArray(o)?o.length:i,r)return si.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s;o[i]&&si.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],a)&&si.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])),!s}if(si.isFormData(e)&&si.isFunction(e.entries)){const n={};return si.forEachEntry(e,((e,o)=>{t(function(e){return si.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const Pc={transitional:xc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=si.isObject(e);a&&si.isHTMLForm(e)&&(e=new FormData(e));if(si.isFormData(e))return o?JSON.stringify(zc(e)):e;if(si.isArrayBuffer(e)||si.isBuffer(e)||si.isStream(e)||si.isFile(e)||si.isBlob(e)||si.isReadableStream(e))return e;if(si.isArrayBufferView(e))return e.buffer;if(si.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 hc(e,new Oc.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return Oc.isNode&&si.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=si.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return hc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(si.isString(e))try{return(t||JSON.parse)(e),si.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pc.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(si.isResponse(e)||si.isReadableStream(e))return e;if(e&&si.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ri.from(e,ri.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:Oc.classes.FormData,Blob:Oc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};si.forEach(["delete","get","head","post","put","patch"],(e=>{Pc.headers[e]={}}));var Lc=Pc;const Dc=si.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 qc=Symbol("internals");function Mc(e){return e&&String(e).trim().toLowerCase()}function Nc(e){return!1===e||null==e?e:si.isArray(e)?e.map(Nc):String(e)}function Fc(e,t,n,o,a){return si.isFunction(o)?o.call(this,t,n):(a&&(t=n),si.isString(t)?si.isString(o)?-1!==t.indexOf(o):si.isRegExp(o)?o.test(t):void 0:void 0)}class Uc{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Mc(t);if(!a)throw new Error("header name must be a non-empty string");const i=si.findKey(o,a);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=Nc(e))}const i=(e,t)=>si.forEach(e,((e,n)=>a(e,n,t)));if(si.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(si.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]&&Dc[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(si.isObject(e)&&si.isIterable(e)){let n,o,a={};for(const t of e){if(!si.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?si.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=Mc(e)){const n=si.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(si.isFunction(t))return t.call(this,e,n);if(si.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mc(e)){const n=si.findKey(this,e);return!(!n||void 0===this[n]||t&&!Fc(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Mc(e)){const a=si.findKey(n,e);!a||t&&!Fc(0,n[a],a,t)||(delete n[a],o=!0)}}return si.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&&!Fc(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return si.forEach(this,((o,a)=>{const i=si.findKey(n,a);if(i)return t[i]=Nc(o),void delete t[a];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();s!==a&&delete t[a],t[s]=Nc(o),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return si.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&si.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[qc]=this[qc]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Mc(e);t[o]||(!function(e,t){const n=si.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 si.isArray(e)?e.forEach(o):o(e),this}}Uc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),si.reduceDescriptors(Uc.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),si.freezeMethods(Uc);var Bc=Uc;function Gc(e,t){const n=this||Lc,o=t||n,a=Bc.from(o.headers);let i=o.data;return si.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function Vc(e){return!(!e||!e.__CANCEL__)}function Wc(e,t,n){ri.call(this,null==e?"canceled":e,ri.ERR_CANCELED,t,n),this.name="CanceledError"}function Hc(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new ri("Request failed with status code "+n.status,[ri.ERR_BAD_REQUEST,ri.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function $c(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}si.inherits(Wc,ri,{__CANCEL__:!0});var Kc={},Qc=s.parse,Jc={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Yc=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Xc(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Kc.getProxyForUrl=function(e){var t="string"==typeof e?Qc(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=(Xc("npm_config_no_proxy")||Xc("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)),!Yc.call(e,a)):e!==a)}))}(o=o.replace(/:\d*$/,""),a=parseInt(a)||Jc[n]||0))return"";var i=Xc("npm_config_"+n+"_proxy")||Xc(n+"_proxy")||Xc("npm_config_proxy")||Xc("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var Zc,eu,tu,nu,ou,au={exports:{}},iu={exports:{}},su={exports:{}};function ru(){if(eu)return Zc;eu=1;var e=1e3,t=60*e,n=60*t,o=24*n,a=7*o,i=365.25*o;function s(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}return Zc=function(r,c){c=c||{};var u=typeof r;if("string"===u&&r.length>0)return function(s){if((s=String(s)).length>100)return;var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!r)return;var c=parseFloat(r[1]);switch((r[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}}(r);if("number"===u&&isFinite(r))return c.long?function(a){var i=Math.abs(a);if(i>=o)return s(a,i,o,"day");if(i>=n)return s(a,i,n,"hour");if(i>=t)return s(a,i,t,"minute");if(i>=e)return s(a,i,e,"second");return a+" ms"}(r):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"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))},Zc}function cu(){if(nu)return tu;return nu=1,tu=function(e){function t(e){let o,a,i,s=null;function r(...e){if(!r.enabled)return;const n=r,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 s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,a)=>{if("%%"===o)return"%";s++;const i=t.formatters[a];if("function"==typeof i){const t=e[s];o=i.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=n,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(r),r}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=ru(),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},tu}var uu,lu,pu,du,mu,hu,fu,gu={exports:{}};function yu(){return lu?uu:(lu=1,uu=(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 vu(){return mu||(mu=1,function(e,n){const o=l,a=t;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let o=0;o<t.length;o++)e.inspectOpts[t[o]]=n.inspectOpts[t[o]]},n.log=function(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+"\n")},n.formatArgs=function(t){const{namespace:o,useColors:a}=this;if(a){const n=this.color,a="[3"+(n<8?n:"8;5;"+n),i=` ${a};1m${o} `;t[0]=i+t[0].split("\n").join("\n"+i),t.push(a+"m+"+e.exports.humanize(this.diff)+"")}else t[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+t[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):o.isatty(process.stderr.fd)},n.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{const e=function(){if(du)return pu;du=1;const e=p,t=l,n=yu(),{env:o}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(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 s=a||0;if("dumb"===o.TERM)return s;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:s;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:s}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)),pu={supportsColor:function(e){return i(s(e,e&&e.isTTY))},stdout:i(s(!0,t.isatty(1))),stderr:i(s(!0,t.isatty(2)))},pu}();e&&(e.stderr||e).level>=2&&(n.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){}n.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=cu()(n);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(gu,gu.exports)),gu.exports}function bu(){return hu||(hu=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?iu.exports=(ou||(ou=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=cu()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(su,su.exports)),su.exports):iu.exports=vu()),iu.exports}var ku,xu,wu,ju=s,Cu=ju.URL,Eu=a,_u=i,Su=n.Writable,Ru=u,Tu=function(){if(!fu){try{fu=bu()("follow-redirects")}catch(e){}"function"!=typeof fu&&(fu=function(){})}fu.apply(null,arguments)};ku="undefined"!=typeof process,xu="undefined"!=typeof window&&"undefined"!=typeof document,wu=Ju(Error.captureStackTrace),ku||!xu&&wu||console.warn("The follow-redirects package should be excluded from browser builds.");var Au=!1;try{Ru(new Cu(""))}catch(Vn){Au="ERR_INVALID_URL"===Vn.code}var Iu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ou=["abort","aborted","connect","error","socket","timeout"],zu=Object.create(null);Ou.forEach((function(e){zu[e]=function(t,n,o){this._redirectable.emit(e,t,n,o)}}));var Pu=$u("ERR_INVALID_URL","Invalid URL",TypeError),Lu=$u("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Du=$u("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lu),qu=$u("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Mu=$u("ERR_STREAM_WRITE_AFTER_END","write after end"),Nu=Su.prototype.destroy||Bu;function Fu(e,t){Su.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 Lu?e:new Lu({cause:e}))}},this._performRequest()}function Uu(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var a=o+":",i=n[a]=e[o],s=t[o]=Object.create(i);Object.defineProperties(s,{request:{value:function(e,o,i){var s;return s=e,Cu&&s instanceof Cu?e=Wu(e):Qu(e)?e=Wu(Gu(e)):(i=o,o=Vu(e),e={protocol:a}),Ju(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,Qu(o.host)||Qu(o.hostname)||(o.hostname="::1"),Ru.equal(o.protocol,a,"protocol mismatch"),Tu("options",o),new Fu(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var o=s.request(e,t,n);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})})),t}function Bu(){}function Gu(e){var t;if(Au)t=new Cu(e);else if(!Qu((t=Vu(ju.parse(e))).protocol))throw new Pu({input:e});return t}function Vu(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Pu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Pu({input:e.href||e});return e}function Wu(e,t){var n=t||{};for(var o of Iu)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 Hu(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 $u(e,t,n){function o(n){Ju(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 Ku(e,t){for(var n of Ou)e.removeListener(n,zu[n]);e.on("error",Bu),e.destroy(t)}function Qu(e){return"string"==typeof e||e instanceof String}function Ju(e){return"function"==typeof e}Fu.prototype=Object.create(Su.prototype),Fu.prototype.abort=function(){Ku(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Fu.prototype.destroy=function(e){return Ku(this._currentRequest,e),Nu.call(this,e),this},Fu.prototype.write=function(e,t,n){if(this._ending)throw new Mu;if(!Qu(e)&&("object"!=typeof(o=e)||!("length"in o)))throw new TypeError("data should be a string, Buffer or Uint8Array");var o;Ju(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 qu),this.abort()):n&&n()},Fu.prototype.end=function(e,t,n){if(Ju(e)?(n=e,e=t=null):Ju(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)},Fu.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Fu.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Fu.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){Fu.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Fu.prototype,e,{get:function(){return this._currentRequest[e]}})})),Fu.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))}},Fu.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,Ou))o.on(a,zu[a]);if(this._currentUrl=/^\//.test(this._options.path)?ju.format(this._options):this._options.path,this._isRedirect){var i=0,s=this,r=this._requestBodyBuffers;!function e(t){if(o===s._currentRequest)if(t)s.emit("error",t);else if(i<r.length){var n=r[i++];o.finished||o.write(n.data,n.encoding,e)}else s._ended&&o.end()}()}},Fu.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(Ku(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Du;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=[],Hu(/^content-/i,this._options.headers));var s,r,c=Hu(/^host$/i,this._options.headers),u=Gu(this._currentUrl),l=c||u.host,p=/^\w+:/.test(o)?this._currentUrl:ju.format(Object.assign(u,{host:l})),d=(s=o,r=p,Au?new Cu(s,r):Gu(ju.resolve(r,s)));if(Tu("redirecting to",d.href),this._isRedirect=!0,Wu(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Ru(Qu(e)&&Qu(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&Hu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Ju(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()},au.exports=Uu({http:Eu,https:_u}),au.exports.wrap=Uu;var Yu=pi(au.exports);const Xu="1.9.0";function Zu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const el=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const tl=Symbol("internals");class nl extends n.Transform{constructor(e){super({readableHighWaterMark:(e=si.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!si.isUndefined(t[e])))).chunkSize});const t=this[tl]={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[tl];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const o=this[tl],a=o.maxRate,i=this.readableHighWaterMark,s=o.timeWindow,r=a/(1e3/s),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*r):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)>=s)&&(o.ts=e,l=r-o.bytes,o.bytes=l<0?-l:0,m=0),l=r-o.bytes}if(a){if(l<=0)return setTimeout((()=>{t(null,e)}),s-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 ol=nl;const{asyncIterator:al}=Symbol;var il=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[al]?yield*e[al]():yield e};const sl=Oc.ALPHABET.ALPHA_DIGIT+"-_",rl="function"==typeof TextEncoder?new TextEncoder:new t.TextEncoder,cl="\r\n",ul=rl.encode(cl);class ll{constructor(e,t){const{escapeName:n}=this.constructor,o=si.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!o&&t.name?`; filename="${n(t.name)}"`:""}${cl}`;o?t=rl.encode(String(t).replace(/\r?\n|\r\n?/g,cl)):a+=`Content-Type: ${t.type||"application/octet-stream"}${cl}`,this.headers=rl.encode(a+cl),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;si.isTypedArray(e)?yield e:yield*il(e),yield ul}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}var pl=(e,t,o)=>{const{tag:a="form-data-boundary",size:i=25,boundary:s=a+"-"+Oc.generateString(i,sl)}=o||{};if(!si.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const r=rl.encode("--"+s+cl),c=rl.encode("--"+s+"--"+cl);let u=c.byteLength;const l=Array.from(e.entries()).map((([e,t])=>{const n=new ll(e,t);return u+=n.size,n}));u+=r.byteLength*l.length,u=si.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),n.Readable.from(async function*(){for(const e of l)yield r,yield*e.encode();yield c}())};class dl extends n.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 ml=dl;var hl=(e,t)=>si.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 fl=(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,s=0;return t=void 0!==t?t:1e3,function(r){const c=Date.now(),u=o[s];a||(a=c),n[i]=r,o[i]=c;let l=s,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+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 s=(t,i=Date.now())=>{a=i,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),r=t-a;r>=i?s(e,t):(n=e,o||(o=setTimeout((()=>{o=null,s(n)}),i-r)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,r=i-o,c=a(r);o=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:r,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},gl=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},yl=e=>(...t)=>si.asap((()=>e(...t))),vl={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},bl={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},kl=si.isFunction(d.createBrotliDecompress),{http:xl,https:wl}=Yu,jl=/https:?/,Cl=Oc.protocols.map((e=>e+":")),El=(e,[t,n])=>(e.on("end",n).on("error",n),t);function _l(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Sl(e,t,n){let o=t;if(!o&&!1!==o){const e=Kc.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){Sl(e,t,e.href)}}const Rl="undefined"!=typeof process&&"process"===si.kindOf(process),Tl=(e,t)=>(({address:e,family:t})=>{if(!si.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(si.isObject(e)?e:{address:e,family:t});var Al=Rl&&function(e){return o=async function(o,s,r){let{data:c,lookup:u,family:l}=e;const{responseType:p,responseEncoding:h}=e,f=e.method.toUpperCase();let g,y,v=!1;if(u){const e=hl(u,(e=>si.isArray(e)?e:[e]));u=(t,n,o)=>{e(t,n,((e,t,a)=>{if(e)return o(e);const i=si.isArray(t)?t.map((e=>Tl(e))):[Tl(t,a)];n.all?o(e,i):o(e,i[0].address,i[0].family)}))}}const b=new m.EventEmitter,k=()=>{e.cancelToken&&e.cancelToken.unsubscribe(x),e.signal&&e.signal.removeEventListener("abort",x),b.removeAllListeners()};function x(t){b.emit("abort",!t||t.type?new Wc(null,e,y):t)}r(((e,t)=>{g=!0,t&&(v=!0,k())})),b.once("abort",s),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(x),e.signal&&(e.signal.aborted?x():e.signal.addEventListener("abort",x)));const w=$c(e.baseURL,e.url,e.allowAbsoluteUrls),j=new URL(w,Oc.hasBrowserEnv?Oc.origin:void 0),C=j.protocol||Cl[0];if("data:"===C){let t;if("GET"!==f)return Hc(o,s,{status:405,statusText:"method not allowed",headers:{},config:e});try{t=function(e,t,n){const o=n&&n.Blob||Oc.classes.Blob,a=Zu(e);if(void 0===t&&o&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=el.exec(e);if(!n)throw new ri("Invalid URL",ri.ERR_INVALID_URL);const i=n[1],s=n[2],r=n[3],c=Buffer.from(decodeURIComponent(r),s?"base64":"utf8");if(t){if(!o)throw new ri("Blob is not supported",ri.ERR_NOT_SUPPORT);return new o([c],{type:i})}return c}throw new ri("Unsupported protocol "+a,ri.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw ri.from(t,ri.ERR_BAD_REQUEST,e)}return"text"===p?(t=t.toString(h),h&&"utf8"!==h||(t=si.stripBOM(t))):"stream"===p&&(t=n.Readable.from(t)),Hc(o,s,{data:t,status:200,statusText:"OK",headers:new Bc,config:e})}if(-1===Cl.indexOf(C))return s(new ri("Unsupported protocol "+C,ri.ERR_BAD_REQUEST,e));const E=Bc.from(e.headers).normalize();E.set("User-Agent","axios/"+Xu,!1);const{onUploadProgress:_,onDownloadProgress:S}=e,R=e.maxRate;let T,A;if(si.isSpecCompliantForm(c)){const e=E.getContentType(/boundary=([-_\w\d]{10,70})/i);c=pl(c,(e=>{E.set(e)}),{tag:`axios-${Xu}-boundary`,boundary:e&&e[1]||void 0})}else if(si.isFormData(c)&&si.isFunction(c.getHeaders)){if(E.set(c.getHeaders()),!E.hasContentLength())try{const e=await t.promisify(c.getLength).call(c);Number.isFinite(e)&&e>=0&&E.setContentLength(e)}catch(e){}}else if(si.isBlob(c)||si.isFile(c))c.size&&E.setContentType(c.type||"application/octet-stream"),E.setContentLength(c.size||0),c=n.Readable.from(il(c));else if(c&&!si.isStream(c)){if(Buffer.isBuffer(c));else if(si.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!si.isString(c))return s(new ri("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",ri.ERR_BAD_REQUEST,e));c=Buffer.from(c,"utf-8")}if(E.setContentLength(c.length,!1),e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(new ri("Request body larger than maxBodyLength limit",ri.ERR_BAD_REQUEST,e))}const I=si.toFiniteNumber(E.getContentLength());let O,z;si.isArray(R)?(T=R[0],A=R[1]):T=A=R,c&&(_||T)&&(si.isStream(c)||(c=n.Readable.from(c,{objectMode:!1})),c=n.pipeline([c,new ol({maxRate:si.toFiniteNumber(T)})],si.noop),_&&c.on("progress",El(c,gl(I,fl(yl(_),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&j.username&&(O=j.username+":"+j.password),O&&E.delete("authorization");try{z=bc(j.pathname+j.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,s(n)}E.set("Accept-Encoding","gzip, compress, deflate"+(kl?", br":""),!1);const P={path:z,method:f,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:C,family:l,beforeRedirect:_l,beforeRedirects:{}};let L;!si.isUndefined(u)&&(P.lookup=u),e.socketPath?P.socketPath=e.socketPath:(P.hostname=j.hostname.startsWith("[")?j.hostname.slice(1,-1):j.hostname,P.port=j.port,Sl(P,e.proxy,C+"//"+j.hostname+(j.port?":"+j.port:"")+P.path));const D=jl.test(P.protocol);if(P.agent=D?e.httpsAgent:e.httpAgent,e.transport?L=e.transport:0===e.maxRedirects?L=D?i:a:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),e.beforeRedirect&&(P.beforeRedirects.config=e.beforeRedirect),L=D?wl:xl),e.maxBodyLength>-1?P.maxBodyLength=e.maxBodyLength:P.maxBodyLength=1/0,e.insecureHTTPParser&&(P.insecureHTTPParser=e.insecureHTTPParser),y=L.request(P,(function(t){if(y.destroyed)return;const a=[t],i=+t.headers["content-length"];if(S||A){const e=new ol({maxRate:si.toFiniteNumber(A)});S&&e.on("progress",El(e,gl(i,fl(yl(S),!0,3)))),a.push(e)}let r=t;const c=t.req||y;if(!1!==e.decompress&&t.headers["content-encoding"])switch("HEAD"!==f&&204!==t.statusCode||delete t.headers["content-encoding"],(t.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(d.createUnzip(vl)),delete t.headers["content-encoding"];break;case"deflate":a.push(new ml),a.push(d.createUnzip(vl)),delete t.headers["content-encoding"];break;case"br":kl&&(a.push(d.createBrotliDecompress(bl)),delete t.headers["content-encoding"])}r=a.length>1?n.pipeline(a,si.noop):a[0];const u=n.finished(r,(()=>{u(),k()})),l={status:t.statusCode,statusText:t.statusMessage,headers:new Bc(t.headers),config:e,request:c};if("stream"===p)l.data=r,Hc(o,s,l);else{const t=[];let n=0;r.on("data",(function(o){t.push(o),n+=o.length,e.maxContentLength>-1&&n>e.maxContentLength&&(v=!0,r.destroy(),s(new ri("maxContentLength size of "+e.maxContentLength+" exceeded",ri.ERR_BAD_RESPONSE,e,c)))})),r.on("aborted",(function(){if(v)return;const t=new ri("stream has been aborted",ri.ERR_BAD_RESPONSE,e,c);r.destroy(t),s(t)})),r.on("error",(function(t){y.destroyed||s(ri.from(t,null,e,c))})),r.on("end",(function(){try{let e=1===t.length?t[0]:Buffer.concat(t);"arraybuffer"!==p&&(e=e.toString(h),h&&"utf8"!==h||(e=si.stripBOM(e))),l.data=e}catch(t){return s(ri.from(t,null,e,l.request,l))}Hc(o,s,l)}))}b.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),b.once("abort",(e=>{s(e),y.destroy(e)})),y.on("error",(function(t){s(ri.from(t,null,e,y))})),y.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void s(new ri("error trying to parse `config.timeout` to int",ri.ERR_BAD_OPTION_VALUE,e,y));y.setTimeout(t,(function(){if(g)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||xc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),s(new ri(t,n.clarifyTimeoutError?ri.ETIMEDOUT:ri.ECONNABORTED,e,y)),x()}))}if(si.isStream(c)){let t=!1,n=!1;c.on("end",(()=>{t=!0})),c.once("error",(e=>{n=!0,y.destroy(e)})),c.on("close",(()=>{t||n||x(new Wc("Request stream has been aborted",e,y))})),c.pipe(y)}else y.end(c)},new Promise(((e,t)=>{let n,a;const i=(e,t)=>{a||(a=!0,n&&n(e,t))},s=e=>{i(e,!0),t(e)};o((t=>{i(t),e(t)}),s,(e=>n=e)).catch(s)}));var o},Il=Oc.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Oc.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Oc.origin),Oc.navigator&&/(msie|trident)/i.test(Oc.navigator.userAgent)):()=>!0,Ol=Oc.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const s=[e+"="+encodeURIComponent(t)];si.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),si.isString(o)&&s.push("path="+o),si.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.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 Bc?{...e}:e;function Pl(e,t){t=t||{};const n={};function o(e,t,n,o){return si.isPlainObject(e)&&si.isPlainObject(t)?si.merge.call({caseless:o},e,t):si.isPlainObject(t)?si.merge({},t):si.isArray(t)?t.slice():t}function a(e,t,n,a){return si.isUndefined(t)?si.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function i(e,t){if(!si.isUndefined(t))return o(void 0,t)}function s(e,t){return si.isUndefined(t)?si.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function r(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,t,n)=>a(zl(e),zl(t),0,!0)};return si.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||a,s=i(e[o],t[o],o);si.isUndefined(s)&&i!==r||(n[o]=s)})),n}var Ll=e=>{const t=Pl({},e);let n,{data:o,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:s,headers:r,auth:c}=t;if(t.headers=r=Bc.from(r),t.url=bc($c(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),si.isFormData(o))if(Oc.hasStandardBrowserEnv||Oc.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(!1!==(n=r.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}if(Oc.hasStandardBrowserEnv&&(a&&si.isFunction(a)&&(a=a(t)),a||!1!==a&&Il(t.url))){const e=i&&s&&Ol.read(s);e&&r.set(i,e)}return t};var Dl="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=Ll(e);let a=o.data;const i=Bc.from(o.headers).normalize();let s,r,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=o;function h(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Bc.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Hc((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 ri("Request aborted",ri.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new ri("Network Error",ri.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||xc;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new ri(t,a.clarifyTimeoutError?ri.ETIMEDOUT:ri.ECONNABORTED,e,f)),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&si.forEach(i.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),si.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),m&&([c,l]=fl(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([r,u]=fl(d),f.upload.addEventListener("progress",r),f.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(s=t=>{f&&(n(!t||t.type?new Wc(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const y=Zu(o.url);y&&-1===Oc.protocols.indexOf(y)?n(new ri("Unsupported protocol "+y+":",ri.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var ql=(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,s();const t=e instanceof Error?e:this.reason;o.abort(t instanceof ri?t:new Wc(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,a(new ri(`timeout ${t} of ms exceeded`,ri.ETIMEDOUT))}),t);const s=()=>{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:r}=o;return r.unsubscribe=()=>si.asap(s),r}};const Ml=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},Nl=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()}},Fl=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of Nl(e))yield*Ml(n,t)}(e,t);let i,s=0,r=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 r(),void e.close();let i=o.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw r(e),e}},cancel:e=>(r(e),a.return())},{highWaterMark:2})},Ul="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Bl=Ul&&"function"==typeof ReadableStream,Gl=Ul&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vl=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Wl=Bl&&Vl((()=>{let e=!1;const t=new Request(Oc.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Hl=Bl&&Vl((()=>si.isReadableStream(new Response("").body))),$l={stream:Hl&&(e=>e.body)};var Kl;Ul&&(Kl=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$l[e]&&($l[e]=si.isFunction(Kl[e])?t=>t[e]():(t,n)=>{throw new ri(`Response type '${e}' is not supported`,ri.ERR_NOT_SUPPORT,n)})})));const Ql=async(e,t)=>{const n=si.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(si.isBlob(e))return e.size;if(si.isSpecCompliantForm(e)){const t=new Request(Oc.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return si.isArrayBufferView(e)||si.isArrayBuffer(e)?e.byteLength:(si.isURLSearchParams(e)&&(e+=""),si.isString(e)?(await Gl(e)).byteLength:void 0)})(t):n};var Jl=Ul&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:i,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Ll(e);u=u?(u+"").toLowerCase():"text";let m,h=ql([a,i&&i.toAbortSignal()],s);const f=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&Wl&&"get"!==n&&"head"!==n&&0!==(g=await Ql(l,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(si.isFormData(o)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=gl(g,fl(yl(c)));o=Fl(n.body,65536,e,t)}}si.isString(p)||(p=p?"include":"omit");const a="credentials"in Request.prototype;m=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:a?p:void 0});let i=await fetch(m);const s=Hl&&("stream"===u||"response"===u);if(Hl&&(r||s&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=si.toFiniteNumber(i.headers.get("content-length")),[n,o]=r&&gl(t,fl(yl(r),!0))||[];i=new Response(Fl(i.body,65536,n,(()=>{o&&o(),f&&f()})),e)}u=u||"text";let y=await $l[si.findKey($l,u)||"text"](i,e);return!s&&f&&f(),await new Promise(((t,n)=>{Hc(t,n,{data:y,headers:Bc.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:m})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ri("Network Error",ri.ERR_NETWORK,e,m),{cause:t.cause||t});throw ri.from(t,t&&t.code,e,m)}});const Yl={http:Al,xhr:Dl,fetch:Jl};si.forEach(Yl,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xl=e=>`- ${e}`,Zl=e=>si.isFunction(e)||null===e||!1===e;var ep=e=>{e=si.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let i=0;i<t;i++){let t;if(n=e[i],o=n,!Zl(n)&&(o=Yl[(t=String(n)).toLowerCase()],void 0===o))throw new ri(`Unknown adapter '${t}'`);if(o)break;a[t||"#"+i]=o}if(!o){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ri("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xl).join("\n"):" "+Xl(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function tp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wc(null,e)}function np(e){tp(e),e.headers=Bc.from(e.headers),e.data=Gc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ep(e.adapter||Lc.adapter)(e).then((function(t){return tp(e),t.data=Gc.call(e,e.transformResponse,t),t.headers=Bc.from(t.headers),t}),(function(t){return Vc(t)||(tp(e),t&&t.response&&(t.response.data=Gc.call(e,e.transformResponse,t.response),t.response.headers=Bc.from(t.response.headers))),Promise.reject(t)}))}const op={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{op[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ap={};op.transitional=function(e,t,n){function o(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new ri(o(a," has been removed"+(t?" in "+t:"")),ri.ERR_DEPRECATED);return t&&!ap[a]&&(ap[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)}},op.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ip={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ri("options must be an object",ri.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ri("option "+i+" must be "+n,ri.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ri("Unknown option "+i,ri.ERR_BAD_OPTION)}},validators:op};const sp=ip.validators;let rp=class{constructor(e){this.defaults=e||{},this.interceptors={request:new kc,response:new kc}}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=Pl(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&ip.assertOptions(n,{silentJSONParsing:sp.transitional(sp.boolean),forcedJSONParsing:sp.transitional(sp.boolean),clarifyTimeoutError:sp.transitional(sp.boolean)},!1),null!=o&&(si.isFunction(o)?t.paramsSerializer={serialize:o}:ip.assertOptions(o,{encode:sp.function,serialize:sp.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ip.assertOptions(t,{baseUrl:sp.spelling("baseURL"),withXsrfToken:sp.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&si.merge(a.common,a[t.method]);a&&si.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Bc.concat(i,a);const s=[];let r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,s.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(!r){const e=[np.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let d=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=np.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 bc($c((e=Pl(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};si.forEach(["delete","get","head","options"],(function(e){rp.prototype[e]=function(t,n){return this.request(Pl(n||{},{method:e,url:t,data:(n||{}).data}))}})),si.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(Pl(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}rp.prototype[e]=t(),rp.prototype[e+"Form"]=t(!0)}));var cp=rp;class up{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 Wc(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 up((function(t){e=t})),cancel:e}}}var lp=up;const pp={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(pp).forEach((([e,t])=>{pp[t]=e}));var dp=pp;const mp=function e(t){const n=new cp(t),o=va(cp.prototype.request,n);return si.extend(o,cp.prototype,n,{allOwnKeys:!0}),si.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Pl(t,n))},o}(Lc);mp.Axios=cp,mp.CanceledError=Wc,mp.CancelToken=lp,mp.isCancel=Vc,mp.VERSION=Xu,mp.toFormData=hc,mp.AxiosError=ri,mp.Cancel=mp.CanceledError,mp.all=function(e){return Promise.all(e)},mp.spread=function(e){return function(t){return e.apply(null,t)}},mp.isAxiosError=function(e){return si.isObject(e)&&!0===e.isAxiosError},mp.mergeConfig=Pl,mp.AxiosHeaders=Bc,mp.formToJSON=e=>zc(si.isHTMLForm(e)?new FormData(e):e),mp.getAdapter=ep,mp.HttpStatusCode=dp,mp.default=mp;var hp=mp,fp=function(t){function n(n){var o,a,i,s,r=this;return(r=t.call(this,n)||this).token="",null===(a=null===(o=r.instance)||void 0===o?void 0:o.interceptors)||void 0===a||a.request.use((function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.headers),{Authorization:"Bearer ".concat(r.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(s=null===(i=r.instance)||void 0===i?void 0:i.interceptors)||void 0===s||s.response.use((function(t){return e.__assign({},t)}),(function(e){return Promise.reject(e)})),r}return e.__extends(n,t),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=hp.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}((function(e){this.instance=hp.create(e)})),gp=t.inspect,yp="function"==typeof Map&&Map.prototype,vp=Object.getOwnPropertyDescriptor&&yp?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bp=yp&&vp&&"function"==typeof vp.get?vp.get:null,kp=yp&&Map.prototype.forEach,xp="function"==typeof Set&&Set.prototype,wp=Object.getOwnPropertyDescriptor&&xp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,jp=xp&&wp&&"function"==typeof wp.get?wp.get:null,Cp=xp&&Set.prototype.forEach,Ep="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,_p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Sp="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Rp=Boolean.prototype.valueOf,Tp=Object.prototype.toString,Ap=Function.prototype.toString,Ip=String.prototype.match,Op=String.prototype.slice,zp=String.prototype.replace,Pp=String.prototype.toUpperCase,Lp=String.prototype.toLowerCase,Dp=RegExp.prototype.test,qp=Array.prototype.concat,Mp=Array.prototype.join,Np=Array.prototype.slice,Fp=Math.floor,Up="function"==typeof BigInt?BigInt.prototype.valueOf:null,Bp=Object.getOwnPropertySymbols,Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Vp="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Wp="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vp||"symbol")?Symbol.toStringTag:null,Hp=Object.prototype.propertyIsEnumerable,$p=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Kp(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-Fp(-e):Fp(e);if(o!==e){var a=String(o),i=Op.call(t,a.length+1);return zp.call(a,n,"$&_")+"."+zp.call(zp.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zp.call(t,n,"$&_")}var Qp=gp,Jp=Qp.custom,Yp=sd(Jp)?Jp:null,Xp={__proto__:null,double:'"',single:"'"},Zp={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},ed=function e(t,n,o,a){var i=n||{};if(cd(i,"quoteStyle")&&!cd(Xp,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 s=!cd(i,"customInspect")||i.customInspect;if("boolean"!=typeof s&&"symbol"!==s)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 r=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 pd(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return r?Kp(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return r?Kp(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 ad(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=Mp.call(Array(e.indent+1)," ")}return{base:n,prev:Mp.call(Array(t+1),n)}}(i,o);if(void 0===a)a=[];else if(ld(a,t)>=0)return"[Circular]";function d(t,n,s){if(n&&(a=Np.call(a)).push(n),s){var r={depth:i.depth};return cd(i,"quoteStyle")&&(r.quoteStyle=i.quoteStyle),e(t,r,o+1,a)}return e(t,i,o+1,a)}if("function"==typeof t&&!id(t)){var m=function(e){if(e.name)return e.name;var t=Ip.call(Ap.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=yd(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Mp.call(h,", ")+" }":"")}if(sd(t)){var f=Vp?zp.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gp.call(t);return"object"!=typeof t||Vp?f:md(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="<"+Lp.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+td(nd(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Lp.call(String(t.nodeName))+">"}if(ad(t)){if(0===t.length)return"[]";var b=yd(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(ld(e[t],"\n")>=0)return!1;return!0}(b)?"["+gd(b,p)+"]":"[ "+Mp.call(b,", ")+" ]"}if(function(e){return"[object Error]"===ud(e)&&od(e)}(t)){var k=yd(t,d);return"cause"in Error.prototype||!("cause"in t)||Hp.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Mp.call(k,", ")+" }":"{ ["+String(t)+"] "+Mp.call(qp.call("[cause]: "+d(t.cause),k),", ")+" }"}if("object"==typeof t&&s){if(Yp&&"function"==typeof t[Yp]&&Qp)return Qp(t,{depth:l-o});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!bp||!e||"object"!=typeof e)return!1;try{bp.call(e);try{jp.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return kp&&kp.call(t,(function(e,n){x.push(d(n,t,!0)+" => "+d(e,t))})),fd("Map",bp.call(t),x,p)}if(function(e){if(!jp||!e||"object"!=typeof e)return!1;try{jp.call(e);try{bp.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Cp&&Cp.call(t,(function(e){w.push(d(e,t))})),fd("Set",jp.call(t),w,p)}if(function(e){if(!Ep||!e||"object"!=typeof e)return!1;try{Ep.call(e,Ep);try{_p.call(e,_p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return hd("WeakMap");if(function(e){if(!_p||!e||"object"!=typeof e)return!1;try{_p.call(e,_p);try{Ep.call(e,Ep)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return hd("WeakSet");if(function(e){if(!Sp||!e||"object"!=typeof e)return!1;try{return Sp.call(e),!0}catch(e){}return!1}(t))return hd("WeakRef");if(function(e){return"[object Number]"===ud(e)&&od(e)}(t))return md(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Up)return!1;try{return Up.call(e),!0}catch(e){}return!1}(t))return md(d(Up.call(t)));if(function(e){return"[object Boolean]"===ud(e)&&od(e)}(t))return md(Rp.call(t));if(function(e){return"[object String]"===ud(e)&&od(e)}(t))return md(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==li&&t===li)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===ud(e)&&od(e)}(t)&&!id(t)){var j=yd(t,d),C=$p?$p(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",_=!C&&Wp&&Object(t)===t&&Wp in t?Op.call(ud(t),8,-1):E?"Object":"",S=(C||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(_||E?"["+Mp.call(qp.call([],_||[],E||[]),": ")+"] ":"");return 0===j.length?S+"{}":p?S+"{"+gd(j,p)+"}":S+"{ "+Mp.call(j,", ")+" }"}return String(t)};function td(e,t,n){var o=n.quoteStyle||t,a=Xp[o];return a+e+a}function nd(e){return zp.call(String(e),/"/g,"&quot;")}function od(e){return!Wp||!("object"==typeof e&&(Wp in e||void 0!==e[Wp]))}function ad(e){return"[object Array]"===ud(e)&&od(e)}function id(e){return"[object RegExp]"===ud(e)&&od(e)}function sd(e){if(Vp)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Gp)return!1;try{return Gp.call(e),!0}catch(e){}return!1}var rd=Object.prototype.hasOwnProperty||function(e){return e in this};function cd(e,t){return rd.call(e,t)}function ud(e){return Tp.call(e)}function ld(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 pd(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return pd(Op.call(e,0,t.maxStringLength),t)+o}var a=Zp[t.quoteStyle||"single"];return a.lastIndex=0,td(zp.call(zp.call(e,a,"\\$1"),/[\x00-\x1f]/g,dd),"single",t)}function dd(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":"")+Pp.call(t.toString(16))}function md(e){return"Object("+e+")"}function hd(e){return e+" { ? }"}function fd(e,t,n,o){return e+" ("+t+") {"+(o?gd(n,o):Mp.call(n,", "))+"}"}function gd(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Mp.call(e,","+n)+"\n"+t.prev}function yd(e,t){var n=ad(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,s="function"==typeof Bp?Bp(e):[];if(Vp){i={};for(var r=0;r<s.length;r++)i["$"+s[r]]=s[r]}for(var c in e)cd(e,c)&&(n&&String(Number(c))===c&&c<e.length||Vp&&i["$"+c]instanceof Symbol||(Dp.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof Bp)for(var u=0;u<s.length;u++)Hp.call(e,s[u])&&o.push("["+t(s[u])+"]: "+t(e[s[u]],e));return o}var vd,bd,kd,xd,wd,jd,Cd,Ed,_d,Sd,Rd,Td,Ad,Id,Od,zd,Pd=ed,Ld=Xi,Dd=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},qd=Gr,Md=Js,Nd=Md([qd("%String.prototype.indexOf%")]),Fd=function(e,t){var n=qd(e,!!t);return"function"==typeof n&&Nd(e,".prototype.")>-1?Md([n]):n},Ud=Fd,Bd=ed,Gd=Xi,Vd=Gr("%Map%",!0),Wd=Ud("Map.prototype.get",!0),Hd=Ud("Map.prototype.set",!0),$d=Ud("Map.prototype.has",!0),Kd=Ud("Map.prototype.delete",!0),Qd=Ud("Map.prototype.size",!0),Jd=!!Vd&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Gd("Side channel does not contain "+Bd(e))},delete:function(t){if(e){var n=Kd(e,t);return 0===Qd(e)&&(e=void 0),n}return!1},get:function(t){if(e)return Wd(e,t)},has:function(t){return!!e&&$d(e,t)},set:function(t,n){e||(e=new Vd),Hd(e,t,n)}};return t},Yd=Fd,Xd=ed,Zd=Jd,em=Xi,tm=Gr("%WeakMap%",!0),nm=Yd("WeakMap.prototype.get",!0),om=Yd("WeakMap.prototype.set",!0),am=Yd("WeakMap.prototype.has",!0),im=Yd("WeakMap.prototype.delete",!0),sm=Xi,rm=ed,cm=function(){var e,t={assert:function(e){if(!t.has(e))throw new Ld("Side channel does not contain "+Pd(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Dd(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=Dd(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Dd(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Dd(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},um=(tm?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new em("Side channel does not contain "+Xd(e))},delete:function(n){if(tm&&n&&("object"==typeof n||"function"==typeof n)){if(e)return im(e,n)}else if(Zd&&t)return t.delete(n);return!1},get:function(n){return tm&&n&&("object"==typeof n||"function"==typeof n)&&e?nm(e,n):t&&t.get(n)},has:function(n){return tm&&n&&("object"==typeof n||"function"==typeof n)&&e?am(e,n):!!t&&t.has(n)},set:function(n,o){tm&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new tm),om(e,n,o)):Zd&&(t||(t=Zd()),t.set(n,o))}};return n}:Zd)||Jd||cm,lm=String.prototype.replace,pm=/%20/g,dm="RFC3986",mm={default:dm,formatters:{RFC1738:function(e){return lm.call(e,pm,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:dm},hm=mm,fm=Object.prototype.hasOwnProperty,gm=Array.isArray,ym=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),vm=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},bm=1024,km={arrayToObject:vm,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],s=Object.keys(i),r=0;r<s.length;++r){var c=s[r],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(gm(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 s="",r=0;r<i.length;r+=bm){for(var c=i.length>=bm?i.slice(r,r+bm):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===hm.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=ym[p]:p<2048?u[u.length]=ym[192|p>>6]+ym[128|63&p]:p<55296||p>=57344?u[u.length]=ym[224|p>>12]+ym[128|p>>6&63]+ym[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=ym[240|p>>18]+ym[128|p>>12&63]+ym[128|p>>6&63]+ym[128|63&p])}s+=u.join("")}return s},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(gm(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(gm(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!fm.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return gm(t)&&!gm(n)&&(a=vm(t,o)),gm(t)&&gm(n)?(n.forEach((function(n,a){if(fm.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 fm.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),a)}},xm=function(){var e,t={assert:function(e){if(!t.has(e))throw new sm("Side channel does not contain "+rm(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=um()),e.set(t,n)}};return t},wm=km,jm=mm,Cm=Object.prototype.hasOwnProperty,Em={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},_m=Array.isArray,Sm=Array.prototype.push,Rm=function(e,t){Sm.apply(e,_m(t)?t:[t])},Tm=Date.prototype.toISOString,Am=jm.default,Im={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:wm.encode,encodeValuesOnly:!1,format:Am,formatter:jm.formatters[Am],indices:!1,serializeDate:function(e){return Tm.call(e)},skipNulls:!1,strictNullHandling:!1},Om={},zm=function e(t,n,o,a,i,s,r,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(Om))&&!j;){var C=x.get(t);if(w+=1,void 0!==C){if(C===w)throw new RangeError("Cyclic object value");j=!0}void 0===x.get(Om)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=m(k):"comma"===o&&_m(k)&&(k=wm.maybeMap(k,(function(e){return e instanceof Date?m(e):e}))),null===k){if(s)return u&&!g?u(n,Im.encoder,y,"key",h):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||wm.isBuffer(k))return u?[f(g?n:u(n,Im.encoder,y,"key",h))+"="+f(u(k,Im.encoder,y,"value",h))]:[f(n)+"="+f(String(k))];var E,_=[];if(void 0===k)return _;if("comma"===o&&_m(k))g&&u&&(k=wm.maybeMap(k,u)),E=[{value:k.length>0?k.join(",")||null:void 0}];else if(_m(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&&_m(k)&&1===k.length?R+"[]":R;if(i&&_m(k)&&0===k.length)return T+"[]";for(var A=0;A<E.length;++A){var I=E[A],O="object"==typeof I&&void 0!==I.value?I.value:k[I];if(!r||null!==O){var z=d&&c?I.replace(/\./g,"%2E"):I,P=_m(k)?"function"==typeof o?o(T,z):T:T+(d?"."+z:"["+z+"]");v.set(t,w);var L=xm();L.set(Om,v),Rm(_,e(O,P,o,a,i,s,r,c,"comma"===o&&g&&_m(k)?null:u,l,p,d,m,h,f,g,y,L))}}return _},Pm=km,Lm=Object.prototype.hasOwnProperty,Dm=Array.isArray,qm={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Pm.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Mm=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Nm=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Fm=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),r=s?a.slice(0,s.index):a,c=[];if(r){if(!n.plainObjects&&Lm.call(Object.prototype,r)&&!n.allowPrototypes)return;c.push(r)}for(var u=0;n.depth>0&&null!==(s=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&Lm.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+a.slice(s.index)+"]")}return function(e,t,n,o){for(var a=o?t:Nm(t,n),i=e.length-1;i>=0;--i){var s,r=e[i];if("[]"===r&&n.parseArrays)s=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);else{s=n.plainObjects?Object.create(null):{};var c="["===r.charAt(0)&&"]"===r.charAt(r.length-1)?r.slice(1,-1):r,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&r!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=a:"__proto__"!==u&&(s[u]=a):s={0:a}}a=s}return a}(c,t,n,o)}},Um=function(e,t){var n,o=e,a=function(e){if(!e)return Im;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||Im.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=jm.default;if(void 0!==e.format){if(!Cm.call(jm.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=jm.formatters[n],i=Im.filter;if(("function"==typeof e.filter||_m(e.filter))&&(i=e.filter),o=e.arrayFormat in Em?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Im.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=void 0===e.allowDots?!0===e.encodeDotInKeys||Im.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Im.addQueryPrefix,allowDots:s,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Im.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Im.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Im.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Im.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Im.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Im.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Im.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Im.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Im.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Im.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):_m(a.filter)&&(n=a.filter);var i=[];if("object"!=typeof o||null===o)return"";var s=Em[a.arrayFormat],r="comma"===s&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var c=xm(),u=0;u<n.length;++u){var l=n[u];a.skipNulls&&null===o[l]||Rm(i,zm(o[l],l,s,r,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:""},Bm=function(e,t){var n=function(e){if(!e)return qm;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?qm.charset:e.charset,n=void 0===e.duplicates?qm.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||qm.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:qm.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:qm.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:qm.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:qm.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qm.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:qm.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:qm.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:qm.decoder,delimiter:"string"==typeof e.delimiter||Pm.isRegExp(e.delimiter)?e.delimiter:qm.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:qm.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:qm.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:qm.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:qm.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:qm.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qm.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,s=o.split(t.delimiter,i),r=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<s.length;++a)0===s[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[a]?c="utf-8":"utf8=%26%2310003%3B"===s[a]&&(c="iso-8859-1"),r=a,a=s.length);for(a=0;a<s.length;++a)if(a!==r){var u,l,p=s[a],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,qm.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),qm.decoder,c,"key"),l=Pm.maybeMap(Nm(p.slice(m+1),t),(function(e){return t.decoder(e,qm.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Mm(l)),p.indexOf("[]=")>-1&&(l=Dm(l)?[l]:l);var h=Lm.call(n,u);h&&"combine"===t.duplicates?n[u]=Pm.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),s=0;s<i.length;++s){var r=i[s],c=Fm(r,o[r],n,"string"==typeof e);a=Pm.merge(a,c,n)}return!0===n.allowSparse?a:Pm.compact(a)},Gm={formats:mm,parse:Bm,stringify:Um},Vm={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 Gm.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,vd=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(bd=vd.NotificationStatus||(vd.NotificationStatus={})).SETTLED="SETTLED",bd.NOT_SETTLED="NOT_SETTLED",(kd=vd.NotificationReason||(vd.NotificationReason={})).REFUNDED="REFUNDED",kd.RESOLVED="RESOLVED",kd.CANCELLED="CANCELLED",kd.SERVICE_SUSPENDED="SERVICE_SUSPENDED",kd.ORDER_STOPPED="ORDER_STOPPED",kd.DISMISS="DISMISS",exports.Organization=void 0,xd=exports.Organization||(exports.Organization={}),(wd=xd.CustomClaims||(xd.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",wd.USER_CODE="https://dashboard.dev.y.uno/user_code",wd.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,jd=exports.Country||(exports.Country={}),(Cd=jd.CountryCode||(jd.CountryCode={})).COLOMBIA="CO",Cd.MEXICO="MX",Cd.BRAZIL="BR",Cd.ARGENTINA="AR",Cd.CHILE="CL",Cd.PERU="PE",Cd.URUGUAY="UR",Cd.ECUADOR="EC",exports.Cms=void 0,Ed=exports.Cms||(exports.Cms={}),(_d=Ed.Locale||(Ed.Locale={})).EN="en",_d.ES="es",_d.PT="pt",(Sd=Ed.Target||(Ed.Target={})).BLANK="_blank",Sd.PARENT="_parent",Sd.SELF="_self",Sd.TOP="_top",exports.ReportType=void 0,(Rd=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",Rd.TRANSACTIONS="TRANSACTIONS",Rd.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",Rd.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Td=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Td.DEFAULT="DEFAULT",Td.CUSTOM="CUSTOM",exports.DataReport=void 0,Ad=exports.DataReport||(exports.DataReport={}),(Id=Ad.InsightsVolumeMetricsV2Path||(Ad.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Id.APPROVED_PAYMENTS="approved-payments",Id.PAYMENT_METHODS="payment-methods",Id.PROVIDERS="providers",Id.COUNTRIES="countries",Id.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Id.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Ad.OverviewMetricType||(Ad.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(Od=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",Od.SETTLEMENTS="SETTLEMENTS",Od.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",Od.AGENDA="AGENDA",Od.SALES_CONCILIATION="SALES_CONCILIATION",Od.ADVANCEMENTS="ADVANCEMENTS",Od.FEES="FEES",exports.ReconciliationAgendaInsight=void 0,(zd=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",zd.DAILY="AGENDA_DAILY_DISTRIBUTION",zd.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",zd.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION";var Wm=["PAUSED","ACTIVE"],Hm={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},$m="DELETED",Km={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},Qm=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},Jm=[{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"}],Ym=[{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"}],Xm=[{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"}],Zm=[{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:""}}],eh=[{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"}],th={docs_url:"https://docs.y.uno/reference/api-reference-overview"},nh={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}]},oh=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const ah=[];for(let e=0;e<256;++e)ah.push((e+256).toString(16).slice(1));let ih;const sh=new Uint8Array(16);var rh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ch(e,t,n){if(rh.randomUUID&&!t&&!e)return rh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!ih){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ih=crypto.getRandomValues.bind(crypto)}return ih(sh)}();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(ah[e[t+0]]+ah[e[t+1]]+ah[e[t+2]]+ah[e[t+3]]+"-"+ah[e[t+4]]+ah[e[t+5]]+"-"+ah[e[t+6]]+ah[e[t+7]]+"-"+ah[e[t+8]]+ah[e[t+9]]+"-"+ah[e[t+10]]+ah[e[t+11]]+ah[e[t+12]]+ah[e[t+13]]+ah[e[t+14]]+ah[e[t+15]]).toLowerCase()}(o)}var uh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},lh=function(t){function n(n){var o=n?e.__assign(e.__assign({},Vm),n):Vm;return t.call(this,o)||this}return e.__extends(n,t),n.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},n.prototype.updateReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},n.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})},n.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})},n.prototype.getReconciliationSettlementsHeader=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements/header",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},n.prototype.getReconciliationSettlementsBody=function(e){return this.get("/reconciliation/settlements/body",{params:e})},n.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})},n.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},n.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},n.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},n.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},n.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},n.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},n.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},n.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},n.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},n.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},n.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},n.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},n.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},n.prototype.getPayments=function(e){return this.get("/payments",{params:e})},n.prototype.postPaymentsLazy=function(t){var n=t.account_code;return delete t.account_code,t.start_date||(t=e.__assign(e.__assign({},t),{start_date:new Date})),t.end_date||(t=e.__assign(e.__assign({},t),{end_date:new Date})),this.post("/payments/lazy",{account_codes:(null==n?void 0:n.split(","))||[]},{params:t})},n.prototype.postPayouts=function(t){var n=t.account_code;return delete t.account_code,t.start_date||(t=e.__assign(e.__assign({},t),{start_date:new Date})),t.end_date||(t=e.__assign(e.__assign({},t),{end_date:new Date})),this.post("/payouts",{account_codes:(null==n?void 0:n.split(","))||[]},{params:t})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.postPaymentsEvaluated=function(t){return delete t.account_code,t.start_date||(t=e.__assign(e.__assign({},t),{start_date:new Date})),t.end_date||(t=e.__assign(e.__assign({},t),{end_date:new Date})),this.post("/payments/evaluated",e.__assign({},t))},n.prototype.getPayment=function(e){return this.get("/payments/".concat(e.payment_code))},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.getPaymentTransactions=function(e,t){return this.get("/payments/".concat(e,"/transactions"),{params:t})},n.prototype.getPaymentTransactionsLazy=function(e){return this.get("/payments/".concat(e,"/transactions/lazy"))},n.prototype.getTransactions=function(e){return this.get("/transactions",{params:e})},n.prototype.postTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},n.prototype.postFraudTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},n.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},n.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})},n.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},n.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})},n.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},n.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},n.prototype.getPaymentMethodsByProvider=function(e){return this.get("/payments/payment-methods/provider/".concat(e.provider))},n.prototype.getPaymentMethodsAndProvidersActive=function(){return this.get("/payments/payment-methods/providers/active")},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},n.prototype.useGetPaymentAndTrxStatuses=function(){return this.get("/payments/transaction/statuses")},n.prototype.getTransactionDetails=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/").concat(e.transaction_code))},n.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},n.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},n.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":ch()}})},n.prototype.getTransactionHistory=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/history"))},n.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},n.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},n.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},n.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},n.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},n.prototype.getAllOrganization=function(){return this.get("/organizations/all")},n.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})},n.prototype.getIntegrationByAccount=function(e){var t=e.accountCode,n=e.organizationCode,o={"x-organization-code":n};return this.get("/organizations/account-integrations/".concat(t),n?{headers:o}:{})},n.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})},n.prototype.putCosts=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.put("/connections/costs",{costs:[t]})]}))}))},n.prototype.updateOrganizationStatus=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},n.prototype.getIntegrationParams=function(e){var t=e.integration_code;return this.get("/connections/integration-params/".concat(t))},n.prototype.getConnectionsByPaymentMethod=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n))]}))}))},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},n.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==$m)return delete t.status,this.delete(o,{data:t});Object.values(Wm).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(Hm[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},n.prototype.postConnection=function(e){var t=e.payload,n=e.accountCode;return this.post("/connections/create/".concat(n),t)},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.newPostConnection=function(e){var t=e.payload,n=e.accountCode;return this.post("/connections/v3/".concat(n),t)},n.prototype.patchConnection=function(t){var n,o=t.payload,a=t.connectionCode,i=localStorage.getItem("account"),s=i?null===(n=JSON.parse(i).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(a),e.__assign({account_code:s},o))},n.prototype.deleteConnection=function(e){return this.delete("/connections/".concat(e))},n.prototype.postArchiveConnection=function(e){var t=e.payload,n=e.connectionCode;return this.post("/connections/archive/".concat(n),t)},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getDialogs=function(){return this.get("/dialogs")},n.prototype.getWebhookParams=function(){return this.get("/accounts/webhooks/params-catalog")},n.prototype.getWebhooks=function(e){var t=e.accountCode;return this.get("/accounts/webhooks/".concat(t))},n.prototype.postWebhook=function(e){var t=e.payload,n=e.accountCode;return this.post("/accounts/webhooks/".concat(n),t)},n.prototype.deleteWebhook=function(e){return this.delete("/accounts/webhooks/".concat(e))},n.prototype.updateWebhook=function(e,t){return this.patch("/accounts/webhooks/".concat(e),t)},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},n.prototype.getWebhooksV2=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/".concat(t))},n.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}})},n.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},n.prototype.postWebhookV2=function(e){var t=e.payload,n=e.accountCode;return this.post("/accounts/webhooks-v2/".concat(n),t)},n.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},n.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},n.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},n.prototype.getMenu=function(){return this.get("/cms/menu")},n.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},n.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},n.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},n.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},n.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},n.prototype.getLocales=function(){return this.get("/cms/locales")},n.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},n.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},n.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},n.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})},n.prototype.postSmartRoutingValidateConnection=function(e){return this.post("/smart-routing/connections/".concat(e))},n.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},n.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},n.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},n.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},n.prototype.getSmartRoutingTutorial=function(e){return this.get("/smart-routing/tutorial/".concat(e))},n.prototype.updateSmartRoutingTutorial=function(e,t){return this.put("/smart-routing/tutorial/".concat(e,"/").concat(t),{})},n.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},n.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},n.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},n.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},n.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},n.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},n.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},n.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},n.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},n.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},n.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},n.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},n.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},n.prototype.getDashboardInsights=function(e){return this.get("/data-report/dashboard/insights",{params:e})},n.prototype.getInsightsMetricsConversionRate=function(e){var t=e.account_code;return delete e.account_code,this.post("/insights/conversion-rate/metrics",uh(t),{params:e})},n.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,o=e.connection_name,a=uh(n);return o&&(a.connection_name=o.split(","),delete e.connection_name),delete e.account_code,this.post("/insights/conversion-rate/".concat(t),a,{params:e})},n.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code;return delete e.account_code,this.post("/insights/conversion-rate/cards/metrics/".concat(t),uh(n),{params:e})},n.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/insights/conversion-rate/fallback",uh(t),{params:e})},n.prototype.getInsightsMetricsVolume=function(t,n){var o,a={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return n.connection_name&&(a=e.__assign(e.__assign({},a),{connection_name:null===(o=n.connection_name)||void 0===o?void 0:o.split(",")}),delete n.connection_name),this.post("/insights/volume/metrics",a,{params:n})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var a,i={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o.connection_name&&(i=e.__assign(e.__assign({},i),{connection_name:null===(a=o.connection_name)||void 0===a?void 0:a.split(",")}),delete o.connection_name),this.post("/insights/volume/".concat(n),i,{params:o})},n.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},n.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},n.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},n.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},n.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},n.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},n.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},n.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},n.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},n.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},n.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.getInsightOverview=function(t){var n=t.account_code,o=t.connection_name,a=uh(n);return o&&(a=e.__assign(e.__assign({},a),{connection_name:null==o?void 0:o.split(",")}),delete t.connection_name),delete t.account_code,this.post("/insights/overview",a,{params:t})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,a=t.connection_name,i=uh(o);return a&&(i=e.__assign(e.__assign({},i),{connection_name:null==a?void 0:a.split(",")}),delete t.connection_name),delete t.account_code,this.post("/insights/overview/".concat(n),i,{params:t})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.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})},n.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})},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},n.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},n.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},n.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},n.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},n.prototype.updateIsActivePaymentMethod=function(e,t){return this.patch("/checkouts/payment-methods",{checkoutCode:e,paymentMethods:t})},n.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}})},n.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},n.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})},n.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.changePassword=function(t){return this.patch("/user/change-password/".concat(t.user_id),e.__assign({},t.payload))},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReport=function(e){return this.post("/reports/create",e)},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReportV2=function(e){return this.post("/reports",e)},n.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},n.prototype.reportsList=function(){return this.get("/reports")},n.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},n.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},n.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},n.prototype.getReportTemplates=function(){return this.get("/reports/templates")},n.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},n.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.getRefundPdf=function(e,t){var n={"x-organization-code":t};return this.get("/refund-pdf/".concat(e),{headers:n})},n.prototype.getProofOfCancel=function(e,t){var n={"x-organization-code":t};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:n})},n.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},n.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},n.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},n.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},n.prototype.getProfile=function(){return this.get("/user")},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsers=function(e){return this.post("/user/invite",e)},n.prototype.inviteUsersV2=function(e,t){var n={"x-organization-code":t};return this.post("v2/user/invite",e,{headers:n})},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.unInviteUsers=function(e){var t=e.userCode;return this.delete("/user/uninvite/".concat(t))},n.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},n.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},n.prototype.getAccountsV2=function(){return this.get("/accounts-user")},n.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},n.prototype.putAccountsUser=function(e,t,n){var o={"x-organization-code":e,"x-user-code":t};return this.put("/accounts-user/role",n,{headers:o})},n.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})},n.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})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},n.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}})},n.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},n.prototype.createNotificacion=function(e){return this.post("/notifications",e)},n.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},n.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},n.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},n.prototype.getNotificationsAccount=function(e){return this.get("/notifications/".concat(e))},n.prototype.getNotification=function(){return this.patch("/notifications")},n.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},n.prototype.pathNotification=function(e){return this.patch("/notifications",e)},n.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},n.prototype.getMembers=function(e){var t={"x-organization-code":e};return this.get("/teams",e&&{headers:t})},n.prototype.getMembersV3=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/v3/teams",{headers:t})},n.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.getMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o={"x-organization-code":t};return this.get("/v4/teams?accountCodes=".concat(n),{headers:o})},n.prototype.postMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o={"x-organization-code":t};return this.post("/v4/teams",{account_codes:n},{headers:o})},n.prototype.postMembersPaginated=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,page:o,page_size:a},{headers:i})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,s={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:a,page_size:i},{headers:s})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setRoles=function(e){return this.patch("/teams",e)},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},n.prototype.deleteUserTeam=function(e){var t=e.userCode;return this.delete("/teams/".concat(t))},n.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},n.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},n.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}})},n.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},n.prototype.getFeatureFlagId=function(t){var n=t.name,o=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:o})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.names,o=t.body;return e.__awaiter(this,void 0,void 0,(function(){var t,a,i,s=this;return e.__generator(this,(function(e){switch(e.label){case 0:t=n.map((function(e){var t={name:e,parameters:o};return s.post("/feature-flags/evaluate",t)})),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.all(t)];case 2:return a=e.sent(),i={},a.forEach((function(e,t){var o=n[t];i[o]=e.data.result})),[2,{data:i,status:200,statusText:"OK",headers:{},config:{}}];case 3:throw e.sent();case 4:return[2]}}))}))},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(){return this.get("/payments/filters")},n.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},n.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},n.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},n.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},n.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})},n.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},n.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},n.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},n.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)},n.prototype.postCreateProducts=function(e){var t=e.payload;return this.post("/v2/catalog/products",t)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.getProductsByAccount=function(e){var t=e.accountCode;return this.get("/v2/catalog/products/account/".concat(t))},n.prototype.getPaymentsByPaymentLink=function(e,t){return this.get("/payments",{params:e,headers:{"x-organization-code":t}})},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},n.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},n.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},n.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},n.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},n.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},n.prototype.getMfaToken=function(e){return this.post("/mfa/token",{password:e})},n.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.validateOtp=function(e){return this.post("/mfa/confirm/otp",{otp:e})},n.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.confirmOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},n.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},n.prototype.getMFAStatus=function(){return this.get("/mfa/status")},n.prototype.postValidatePassword=function(e){return this.post("/mfa/validate/password",{password:e})},n.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},n.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},n.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},n.prototype.getOneBlackListType=function(e){return this.get("/blacklist/get-one/".concat(e))},n.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}}:{})},n.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}}:{})},n.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}}:{})},n.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}})},n.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},n.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},n.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}})},n.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})},n.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}})},n.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})},n.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}})},n.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}})},n.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.postBlackListType=function(e){var t=e.payload;return this.post("/blacklist/create",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},n.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},n.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},n.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},n.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)}})},n.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},n.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}})},n.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}})},n.prototype.getGeographicCoordinates=function(e){var t=e.params;return this.get("/coordinates",{params:t})},n.prototype.deleteBlackListItem=function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return this.delete("/blacklist/delete/item/".concat(n,"/").concat(t,"?item=").concat(o))},n.prototype.getVelocityRules=function(t){return this.post("/yuno-fraud-screening-int/velocity-rules-list",e.__assign({},t))},n.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})},n.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()}}},n.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()}}},n.prototype.batchRefundByFile=function(t){var n=t.payload;return this.post("/batch-refund-by-file",e.__assign({},n))},n.prototype.uploadBatchRefundsV2=function(t){var n=t.payload;return this.post("/batch-refunds",e.__assign({},n))},n.prototype.uploadBatchRefunds=function(t){var n=t.payload,o=t.handleSetProgress;return this.post("/batch-refunds",e.__assign({},n),{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},n.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.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})},n.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})},n.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},n.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},n.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},n.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},n.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},n.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},n.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},n.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}})},n.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},n.prototype.postCreateRule=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules",e,{headers:{"x-account-code":t}})},n.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},n.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},n.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},n.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},n.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},n.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},n.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},n.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},n.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},n.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.getCustomizedApiKeysShowToken=function(e){return this.get("/credentials-manager/keys/show-token/".concat(e))},n.prototype.getLoginSSO=function(e){return this.get("/saml/metadata?email=".concat(e))},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(Km[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(Km[null==e?void 0:e.type],"/export");return this.post(t,e)},n.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},n.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},n.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},n.prototype.getSamlConfig=function(){return this.get("/saml-config")},n.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},n.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},n.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},n.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},n.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},n.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},n.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},n.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},n.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},n.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.get3DSExcemptions=function(){return this.get("/routing/3ds-exemptions")},n}(fp),ph={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},dh=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.refreshInstance=function(t){var o;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:ph["BFF_URL_".concat(ph.ENVIRONMENT)]})),null===(o=this.classInstance.instance.interceptors)||void 0===o||o.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},n.getInstance=function(t){var o,a;if(this.classInstance){var i=localStorage.getItem("account");if(i){var s=null===(a=null===(o=JSON.parse(i))||void 0===o?void 0:o.value)||void 0===a?void 0:a.code,r=this.classInstance.instance.defaults.headers["x-account-code"];!!s&&""!==s&&s!==r&&(this.classInstance.instance.defaults.headers["x-account-code"]=s)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||ph["BFF_URL_".concat(ph.ENVIRONMENT)]})),this.classInstance},n.setMode=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return this.classInstance.instance.interceptors.request.use((function(e){return e.headers&&(e.headers["X-Environment"]=t),e}),(function(e){return Promise.reject(e)})),[2]}))}))},n}(lh);class mh{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 hh="undefined"==typeof window||"Deno"in window;function fh(){}function gh(e){return"number"==typeof e&&e>=0&&e!==1/0}function yh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vh(e,t,n){return Ih(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function bh(e,t,n){return Ih(e)?[{...t,queryKey:e},n]:[e||{},t]}function kh(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:i,queryKey:s,stale:r}=e;if(Ih(s))if(o){if(t.queryHash!==wh(s,t.options))return!1}else if(!Ch(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof r||t.isStale()===r)&&((void 0===a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function xh(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:i}=e;if(Ih(i)){if(!t.options.mutationKey)return!1;if(n){if(jh(t.options.mutationKey)!==jh(i))return!1}else if(!Ch(t.options.mutationKey,i))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function wh(e,t){return((null==t?void 0:t.queryKeyHashFn)||jh)(e)}function jh(e){return JSON.stringify(e,((e,t)=>Th(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Ch(e,t){return Eh(e,t)}function Eh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Eh(e[n],t[n]))))}function _h(e,t){if(e===t)return e;const n=Rh(e)&&Rh(t);if(n||Th(e)&&Th(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{};let r=0;for(let o=0;o<i;o++){const i=n?o:a[o];s[i]=_h(e[i],t[i]),s[i]===e[i]&&r++}return o===i&&r===o?e:s}return t}function Sh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Rh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Th(e){if(!Ah(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ah(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ah(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ih(e){return Array.isArray(e)}function Oh(e){return new Promise((t=>{setTimeout(t,e)}))}function zh(e){Oh(0).then(e)}function Ph(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?_h(e,t):t}const Lh=new class extends mh{constructor(){super(),this.setup=e=>{if(!hh&&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)}},Dh=["online","offline"];const qh=new class extends mh{constructor(){super(),this.setup=e=>{if(!hh&&window.addEventListener){const t=()=>e();return Dh.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Dh.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 Mh(e){return Math.min(1e3*2**e,3e4)}function Nh(e){return"online"!==(null!=e?e:"online")||qh.isOnline()}class Fh{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Uh(e){return e instanceof Fh}function Bh(e){let t,n,o,a=!1,i=0,s=!1;const r=new Promise(((e,t)=>{n=e,o=t})),c=()=>!Lh.isFocused()||"always"!==e.networkMode&&!qh.isOnline(),u=o=>{s||(s=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},p=()=>new Promise((n=>{t=e=>{const t=s||!c();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,s||null==e.onContinue||e.onContinue()})),d=()=>{if(s)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{var n,o;if(s)return;const r=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Mh,m="function"==typeof u?u(i,t):u,h=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);!a&&h?(i++,null==e.onFail||e.onFail(i,t),Oh(m).then((()=>{if(c())return p()})).then((()=>{a?l(t):d()}))):l(t)}))};return Nh(e.networkMode)?d():p().then(d),{promise:r,cancel:t=>{s||(l(new Fh(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?r:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const Gh=console;const Vh=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):zh((()=>{n(o)}))},i=()=>{const t=e;e=[],t.length&&zh((()=>{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 Wh{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gh(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:hh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Hh extends Wh{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Gh,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=Ph(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(fh).catch(fh):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||!yh(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}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};r(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(r(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;(Uh(e)&&e.silent||this.dispatch({type:"error",error:e}),Uh(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=Bh({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:Nh(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 Uh(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),Vh.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class $h extends mh{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:wh(a,t);let s=this.get(i);return s||(s=new Hh({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}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(){Vh.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=bh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>kh(n,e)))}findAll(e,t){const[n]=bh(e,t);return Object.keys(n).length>0?this.queries.filter((e=>kh(n,e))):this.queries}notify(e){Vh.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){Vh.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){Vh.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Kh extends Wh{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Gh,this.observers=[],this.state=e.state||Qh(),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=Bh({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,s,r,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==(s=(r=this.mutationCache.config).onSettled)?void 0:s.call(r,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:!Nh(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),Vh.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Qh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Jh extends mh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new Kh({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(){Vh.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=>xh(e,t)))}findAll(e){return this.mutations.filter((t=>xh(e,t)))}notify(e){Vh.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 Vh.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(fh)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Yh(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,i,s;const r=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==(s=e.state.data)?void 0:s.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 s;s=i,Object.defineProperty(s,"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 r=g(i);return Promise.resolve(r).then((e=>y(t,o,e,a)))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:Xh(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=!r||!d[0]||r(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(!r||!d[n]||r(d[n],n,d)){const a=t?m[n]:Xh(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 Xh(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Zh extends mh{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),ef(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tf(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"),Sh(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&&nf(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(!Sh(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(fh)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),hh||this.currentResult.isStale||!gh(this.options.staleTime))return;const e=yh(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,!hh&&!1!==this.options.enabled&&gh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Lh.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,s=this.currentResultOptions,r=e!==n,c=r?e.state:this.currentQueryInitialState,u=r?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&&ef(e,t),s=a&&nf(e,n,t,o);(i||s)&&(f=Nh(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=Ph(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==s?void 0:s.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=Ph(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:of(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,Sh(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||Uh(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Vh.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,s,r,c;null==(i=(s=this.options).onError)||i.call(s,this.currentResult.error),null==(r=(c=this.options).onSettled)||r.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 ef(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&&tf(e,t,t.refetchOnMount)}function tf(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&of(e,t)}return!1}function nf(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&of(e,n)}function of(e,t){return e.isStaleByTime(t.staleTime)}class af extends mh{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),Sh(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){Vh.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,s,r,c;null==(i=(s=this.mutateOptions).onError)||i.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(r=(c=this.mutateOptions).onSettled)||r.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var sf,rf={exports:{}},cf={};var uf,lf={};
215
215
  /**
216
216
  * @license React
217
217
  * use-sync-external-store-shim.development.js
@@ -220,7 +220,7 @@ function Jo(e){const t=Qo.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?rf.exports=function(){if(sf)return cf;sf=1;var e=h,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 s(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var r="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),c=n({inst:{value:r,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=r,u.getSnapshot=t,s(u)&&l({inst:u})}),[e,r,t]),o((function(){return s(u)&&l({inst:u}),e((function(){s(u)&&l({inst:u})}))}),[e]),i(r),r};return cf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:r,cf}():rf.exports=(uf||(uf=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=h,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,s=t.useDebugValue,r=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){r||void 0===t.startTransition||(r=!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]),s(p),p};lf.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())}()),lf);var pf=rf.exports;const df=pf.useSyncExternalStore,mf=g.createContext(void 0),hf=g.createContext(!1);function ff(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=mf),window.ReactQueryClientContext):mf)}const gf=({context:e}={})=>{const t=g.useContext(ff(e,g.useContext(hf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yf=({client:e,children:t,context:n,contextSharing:o=!1})=>{g.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=ff(n,o);return g.createElement(hf.Provider,{value:!n&&o},g.createElement(a.Provider,{value:e},t))},vf=g.createContext(!1);vf.Provider;const bf=g.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function kf(e,t){return"function"==typeof e?e(...t):!!e}function xf(e,t){const n=gf({context:e.context}),o=g.useContext(vf),a=g.useContext(bf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=Vh.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Vh.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Vh.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=>{g.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=g.useState((()=>new t(n,i))),r=s.getOptimisticResult(i);if(df(g.useCallback((e=>{const t=o?()=>{}:s.subscribe(Vh.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),g.useEffect((()=>{s.setOptions(i,{listeners:!1})}),[i,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,r,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,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&kf(n,[e.error,o]))({result:r,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw r.error;return i.notifyOnChangeProps?r:s.trackResult(r)}function wf(e,t,n){return xf(vh(e,t,n),Zh)}function jf(e,t,n){const o=function(e,t,n){return Ih(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=gf({context:o.context}),[i]=g.useState((()=>new af(a,o)));g.useEffect((()=>{i.setOptions(o)}),[i,o]);const s=df(g.useCallback((e=>i.subscribe(Vh.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),r=g.useCallback(((e,t)=>{i.mutate(e,t).catch(Cf)}),[i]);if(s.error&&kf(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:r,mutateAsync:s.mutate}}function Cf(){}var Ef=new $h({}),_f=new class{constructor(e={}){this.queryCache=e.queryCache||new $h,this.mutationCache=e.mutationCache||new Jh,this.logger=e.logger||Gh,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=Lh.subscribe((()=>{Lh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=qh.subscribe((()=>{qh.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]=bh(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=vh(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=vh(e),s=this.defaultQueryOptions(i);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Vh.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]=bh(e,t),o=this.queryCache;Vh.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=bh(e,t,n),i=this.queryCache,s={type:"active",...o};return Vh.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(s,a))))}cancelQueries(e,t,n){const[o,a={}]=bh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=Vh.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(fh).catch(fh)}invalidateQueries(e,t,n){const[o,a]=bh(e,t,n);return Vh.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]=bh(e,t,n),i=Vh.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 s=Promise.all(i).then(fh);return null!=a&&a.throwOnError||(s=s.catch(fh)),s}fetchQuery(e,t,n){const o=vh(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(fh).catch(fh)}fetchInfiniteQuery(e,t,n){const o=vh(e,t,n);return o.behavior=Yh(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(fh).catch(fh)}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=>jh(e)===jh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Ch(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>Ch(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=>jh(e)===jh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Ch(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>Ch(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=wh(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:Ef});var Sf=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=h.useState(t&&JSON.parse(t)),o=n[0],a=n[1];return h.useEffect((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};var Rf=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Tf=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]};var Af={key:"metadata_fields",name:"metadata_fields"};function If(){return If=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},If.apply(this,arguments)}
223
+ */"production"===process.env.NODE_ENV?rf.exports=function(){if(sf)return cf;sf=1;var e=h,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 s(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var r="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),c=n({inst:{value:r,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=r,u.getSnapshot=t,s(u)&&l({inst:u})}),[e,r,t]),o((function(){return s(u)&&l({inst:u}),e((function(){s(u)&&l({inst:u})}))}),[e]),i(r),r};return cf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:r,cf}():rf.exports=(uf||(uf=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=h,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,s=t.useDebugValue,r=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){r||void 0===t.startTransition||(r=!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]),s(p),p};lf.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())}()),lf);var pf=rf.exports;const df=pf.useSyncExternalStore,mf=g.createContext(void 0),hf=g.createContext(!1);function ff(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=mf),window.ReactQueryClientContext):mf)}const gf=({context:e}={})=>{const t=g.useContext(ff(e,g.useContext(hf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yf=({client:e,children:t,context:n,contextSharing:o=!1})=>{g.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=ff(n,o);return g.createElement(hf.Provider,{value:!n&&o},g.createElement(a.Provider,{value:e},t))},vf=g.createContext(!1);vf.Provider;const bf=g.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function kf(e,t){return"function"==typeof e?e(...t):!!e}function xf(e,t){const n=gf({context:e.context}),o=g.useContext(vf),a=g.useContext(bf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=Vh.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Vh.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Vh.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=>{g.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=g.useState((()=>new t(n,i))),r=s.getOptimisticResult(i);if(df(g.useCallback((e=>{const t=o?()=>{}:s.subscribe(Vh.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),g.useEffect((()=>{s.setOptions(i,{listeners:!1})}),[i,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,r,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,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&kf(n,[e.error,o]))({result:r,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw r.error;return i.notifyOnChangeProps?r:s.trackResult(r)}function wf(e,t,n){return xf(vh(e,t,n),Zh)}function jf(e,t,n){const o=function(e,t,n){return Ih(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=gf({context:o.context}),[i]=g.useState((()=>new af(a,o)));g.useEffect((()=>{i.setOptions(o)}),[i,o]);const s=df(g.useCallback((e=>i.subscribe(Vh.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),r=g.useCallback(((e,t)=>{i.mutate(e,t).catch(Cf)}),[i]);if(s.error&&kf(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:r,mutateAsync:s.mutate}}function Cf(){}var Ef=new $h({}),_f=new class{constructor(e={}){this.queryCache=e.queryCache||new $h,this.mutationCache=e.mutationCache||new Jh,this.logger=e.logger||Gh,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=Lh.subscribe((()=>{Lh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=qh.subscribe((()=>{qh.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]=bh(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=vh(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=vh(e),s=this.defaultQueryOptions(i);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Vh.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]=bh(e,t),o=this.queryCache;Vh.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=bh(e,t,n),i=this.queryCache,s={type:"active",...o};return Vh.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(s,a))))}cancelQueries(e,t,n){const[o,a={}]=bh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=Vh.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(fh).catch(fh)}invalidateQueries(e,t,n){const[o,a]=bh(e,t,n);return Vh.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]=bh(e,t,n),i=Vh.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 s=Promise.all(i).then(fh);return null!=a&&a.throwOnError||(s=s.catch(fh)),s}fetchQuery(e,t,n){const o=vh(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(fh).catch(fh)}fetchInfiniteQuery(e,t,n){const o=vh(e,t,n);return o.behavior=Yh(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(fh).catch(fh)}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=>jh(e)===jh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Ch(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>Ch(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=>jh(e)===jh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Ch(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>Ch(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=wh(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:Ef});var Sf=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=h.useState(t&&JSON.parse(t)),o=n[0],a=n[1];return h.useEffect((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};var Rf=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Tf=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]};var Af={key:"metadata_fields",name:"metadata_fields"};var If=["FRAUD_INSIGHTS","STARROCKS_OVERVIEW_INSIGHTS","SHOW-BR-TABS","RECONCILIATION-TABS-V2","SHOW-RECON-FEES-TAB"];function Of(){return Of=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},Of.apply(this,arguments)}
224
224
  /**
225
225
  * match-sorter-utils
226
226
  *
@@ -230,12 +230,12 @@ function Jo(e){const t=Qo.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 Of={"À":"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"},zf=Object.keys(Of).join("|"),Pf=new RegExp(zf,"g");
233
+ */const zf={"À":"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"},Pf=Object.keys(zf).join("|"),Lf=new RegExp(Pf,"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 Lf=7,Df=6,qf=5,Mf=4,Nf=3,Ff=2,Uf=1,Bf=0;function Gf(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Uf,!n.accessors){const o=Vf(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=Kf(a),s=Hf(e,a);for(let e=0,t=s.length;e<t;e++)n.push({itemValue:s[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Bf,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let s=Vf(o.itemValue,t,n);const{minRanking:r,maxRanking:c,threshold:u=n.threshold}=o.attributes;s<r&&s>=Uf?s=r:s>c&&(s=c),s=Math.min(s,c),s>=u&&s>i.rank&&(i.rank=s,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function Vf(e,t,n){return e=Wf(e,n),(t=Wf(t,n)).length>e.length?Bf:e===t?Lf:(e=e.toLowerCase())===(t=t.toLowerCase())?Df:e.startsWith(t)?qf:e.includes(` ${t}`)?Mf:e.includes(t)?Nf:1===t.length?Bf:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Ff: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 Uf+a*o}const s=a(t[0],e,0);if(s<0)return Bf;o=s;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Bf}const r=o-s;return i(r)}(e,t)}function Wf(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Pf,(e=>Of[e]))),e}function Hf(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 $f={maxRanking:1/0,minRanking:-1/0};function Kf(e){return"function"==typeof e?$f:{...$f,...e}}function Qf(e,t){const[n,o]=g.useState();g.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,g.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 Jf,Yf=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}(),Xf=function(){function e(e){this.generateIdentifier=e,this.kv=new Yf}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}(),Zf=(Jf=function(e,t){return Jf=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])},Jf(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}Jf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),eg=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Zf(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}(Xf),tg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s};function ng(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 og(e,t){Object.entries(e).forEach((function(e){var n=tg(e,2),o=n[0],a=n[1];return t(a,o)}))}function ag(e,t){return-1!==e.indexOf(t)}function ig(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var sg=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return ng(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),rg=function(e){return void 0===e},cg=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},ug=function(e){return cg(e)&&0===Object.keys(e).length},lg=function(e){return Array.isArray(e)},pg=function(e){return e instanceof Map},dg=function(e){return e instanceof Set},mg=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},hg=function(e){return"number"==typeof e&&isNaN(e)},fg=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||rg(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||mg(e)},gg=function(e){return e.replace(/\./g,"\\.")},yg=function(e){return e.map(String).map(gg).join(".")},vg=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},bg=function(){return bg=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},bg.apply(this,arguments)},kg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s},xg=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function wg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var jg=[wg(rg,"undefined",(function(){return null}),(function(){})),wg((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)})),wg((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),wg((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})),wg((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)})),wg(dg,"set",(function(e){return xg([],kg(e.values()))}),(function(e){return new Set(e)})),wg(pg,"map",(function(e){return xg([],kg(e.entries()))}),(function(e){return new Map(e)})),wg((function(e){return hg(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return hg(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),wg((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),wg((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Cg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Eg=Cg((function(e,t){return!!mg(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})),_g=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Sg=Cg((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return xg([],kg(e))}),(function(e,t){var n=_g[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Rg(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Tg=Cg(Rg,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return bg({},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)})),Ag=Cg((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)})),Ig=[Tg,Eg,Ag,Sg],Og=function(e,t){var n=ig(Ig,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=ig(jg,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},zg={};jg.forEach((function(e){zg[e.annotation]=e}));var Pg=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Lg(e){if(ag(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ag(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ag(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Dg=function(e,t,n){if(Lg(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(lg(o))o=o[+i];else if(cg(o))o=o[i];else if(dg(o)){o=Pg(o,s=+i)}else if(pg(o)){if(a===t.length-2)break;var s=+i,r=0==+t[++a]?"key":"value",c=Pg(o,s);switch(r){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(lg(o)?o[+u]=n(o[+u]):cg(o)&&(o[u]=n(o[u])),dg(o)){var l=Pg(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(pg(o)){s=+t[t.length-2];var d=Pg(o,s);switch(r=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},qg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s},Mg=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Ng(e,t,n){if(void 0===n&&(n=[]),e)if(lg(e)){var o=qg(e,2),a=o[0],i=o[1];i&&og(i,(function(e,o){Ng(e,t,Mg(Mg([],qg(n)),qg(vg(o))))})),t(a,n)}else og(e,(function(e,o){return Ng(e,t,Mg(Mg([],qg(n)),qg(vg(o))))}))}function Fg(e,t,n){return Ng(t,(function(t,o){e=Dg(e,o,(function(e){return function(e,t,n){if(!lg(t)){var o=zg[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Eg.untransform(e,t,n);case"class":return Tg.untransform(e,t,n);case"custom":return Ag.untransform(e,t,n);case"typed-array":return Sg.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Ug(e,t){function n(t,n){var o=function(e,t){Lg(t);for(var n=0;n<t.length;n++){var o=t[n];if(dg(e))e=Pg(e,+o);else if(pg(e)){var a=+o,i=0==+t[++n]?"key":"value",s=Pg(e,a);switch(i){case"key":e=s;break;case"value":e=e.get(s)}}else e=e[o]}return e}(e,vg(n));t.map(vg).forEach((function(t){e=Dg(e,t,(function(){return o}))}))}if(lg(t)){var o=qg(t,2),a=o[0],i=o[1];a.forEach((function(t){e=Dg(e,vg(t),(function(){return e}))})),i&&og(i,n)}else og(t,n);return e}var Bg=function(e,t,n,o,a,i,s){var r;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===s&&(s=new Map);var c=fg(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=s.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return cg(e)||lg(e)||pg(e)||dg(e)||Rg(e,t)}(e,n)){var l=Og(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||s.set(e,p),p}if(ag(i,e))return{transformedValue:null};var d=Og(e,n),m=null!==(r=null==d?void 0:d.value)&&void 0!==r?r:e,h=lg(m)?[]:{},f={};og(m,(function(r,c){var u=Bg(r,t,n,o,Mg(Mg([],qg(a)),[c]),Mg(Mg([],qg(i)),[e]),s);h[c]=u.transformedValue,lg(u.annotations)?f[c]=u.annotations:cg(u.annotations)&&og(u.annotations,(function(e,t){f[gg(c)+"."+t]=e}))}));var g=ug(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||s.set(e,g),g};function Gg(e){return Object.prototype.toString.call(e).slice(8,-1)}function Vg(e){return"Array"===Gg(e)}function Wg(e,t={}){if(Vg(e))return e.map((e=>Wg(e,t)));if(!function(e){if("Object"!==Gg(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(Vg(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,Wg(e[o],t),e,t.nonenumerable),n}),{})}var Hg=function(){return Hg=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},Hg.apply(this,arguments)},$g=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s},Kg=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Qg=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new eg,this.symbolRegistry=new Xf((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new sg,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Bg(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Hg(Hg({},o.meta),{values:n.annotations}));var a,i,s,r,c=(a=t,i=this.dedupe,s={},r=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=qg(e),n=t[0],o=t.slice(1);0===n.length?r=o.map(yg):s[yg(n)]=o.map(yg)}})),r?ug(s)?[r]:[r,s]:ug(s)?void 0:s);return c&&(o.meta=Hg(Hg({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Wg(t);return(null==n?void 0:n.values)&&(o=Fg(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Ug(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(Hg({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,Kg([],$g(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 Jg={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Yg=g.createContext(Jg);function Xg({theme:e,...t}){return g.createElement(Yg.Provider,If({value:e},t))}function Zg({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 ey(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function ty(e,t,n={}){return g.forwardRef((({style:o,...a},i)=>{const s=g.useContext(Yg),r=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=g.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return g.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,s):n}:e),{});return g.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...r},ref:i})}))}const ny=(e,t=!1)=>{const{json:n}=Qg.serialize(e);return JSON.stringify(n,null,t?2:void 0)},oy=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,ay=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,iy={"Status > Last Updated":(e,t)=>oy(e)===oy(t)?ay(e,t):oy(e)>oy(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":ay},sy=500,ry={top:"bottom",bottom:"top",left:"right",right:"left"};function cy(e){return["left","right"].includes(e)}function uy(e){return ry[e]}function ly(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function py(e="bottom"){const t=cy(e),n=uy(e),o=ly("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 dy=ty("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"}}),my=ty("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),hy=ty("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"}))),fy=ty("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),gy=ty("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),yy=ty("code",{fontSize:".9em",color:"inherit",background:"inherit"}),vy=ty("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),by=ty("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 ky({text:e}){return g.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const xy=ty("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),wy=ty("span",{color:"white"}),jy=ty("button",{cursor:"pointer",color:"white"}),Cy=ty("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Ey=({value:e})=>{const[t,n]=g.useState("NoCopy");return g.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Qg.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?g.createElement(Ay,null):"SuccessCopy"===t?g.createElement(Oy,null):g.createElement(Iy,null))},_y=ty("span",((e,t)=>({color:t.danger}))),Sy=ty("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ry=ty("span",{color:"grey",fontSize:".7em"}),Ty=({expanded:e,style:t={}})=>g.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Ay=()=>g.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},g.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"}),g.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"}))),Iy=()=>g.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},g.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"})),g.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Oy=()=>g.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},g.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},g.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 zy=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:r=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=g.useState([]);return g.createElement(xy,{key:t},a.length?g.createElement(g.Fragment,null,g.createElement(Cy,{onClick:()=>c()},g.createElement(Ty,{expanded:s})," ",t," ",g.createElement(Ry,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),r?g.createElement(Ey,{value:n}):null,s?1===a.length?g.createElement(Sy,null,o.map(e)):g.createElement(Sy,null,a.map(((t,n)=>g.createElement("div",{key:n},g.createElement(xy,null,g.createElement(jy,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},g.createElement(Ty,{expanded:s})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?g.createElement(Sy,null,t.map(e)):null))))):null):g.createElement(g.Fragment,null,g.createElement(wy,null,t,":")," ",g.createElement(_y,null,ny(n))))};function Py({value:e,defaultExpanded:t,renderer:n=zy,pageSize:o=100,copyable:a=!1,...i}){const[s,r]=g.useState(Boolean(t)),c=g.useCallback((()=>r((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=>g.createElement(Py,If({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Ly(e){return g.createElement("svg",If({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),g.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(-33.000000, 0.000000)"},g.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) "}),g.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"}),g.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 Dy=(e,t,n=!1)=>pf.useSyncExternalStore(g.useCallback((t=>n?()=>{}:e.subscribe(Vh.batchCalls(t))),[e,n]),t,t),qy=g.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:s,onPositionChange:r,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=gf({context:i}),y=f.getQueryCache(),[v,b]=Qf("reactQueryDevtoolsSortFn",Object.keys(iy)[0]),[k,x]=Qf("reactQueryDevtoolsFilter",""),[w,j]=Qf("reactQueryDevtoolsBaseSort",1),C=g.useMemo((()=>iy[v]),[v]),E=Dy(y,(()=>y.getAll().length),!n),[_,S]=Qf("reactQueryDevtoolsActiveQueryHash",""),R=g.useMemo((()=>{const e=y.getAll();if(0===E)return[];const t=k?e.filter((e=>Gf(e.queryHash,k).passed)):[...e];return C?t.sort(((e,t)=>C(e,t)*w)):t}),[w,C,k,E,y]),[T,A]=g.useState(!1);return g.createElement(Xg,{theme:Jg},g.createElement(dy,If({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:sy,position:"relative",...d.style}}),g.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Jg.backgroundAlt+" "+Jg.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: "+Jg.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Jg.gray+";\n border-radius: .5em;\n border: 3px solid "+Jg.backgroundAlt+";\n }\n "}}),g.createElement("div",{style:py(u),onMouseDown:s}),n&&g.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Jg.grayAlt,display:"flex",flexDirection:"column"}},g.createElement("div",{style:{padding:".5em",background:Jg.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},g.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"}},g.createElement(Ly,{"aria-hidden":!0}),g.createElement(ky,{text:"Close React Query Devtools"})),g.createElement("div",{style:{display:"flex",flexDirection:"column"}},g.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},g.createElement(Ny,{queryCache:y}),u&&r?g.createElement(by,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>r(e.target.value)},g.createElement("option",{value:"left"},"Left"),g.createElement("option",{value:"right"},"Right"),g.createElement("option",{value:"top"},"Top"),g.createElement("option",{value:"bottom"},"Bottom")):null),g.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},g.createElement(vy,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),g.createElement(by,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(iy).map((e=>g.createElement("option",{key:e,value:e},"Sort by ",e)))),g.createElement(hy,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),g.createElement(hy,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),g.createElement(hy,{type:"button",onClick:()=>{T?(qh.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(qh.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"}},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Jg.danger:"currentColor",fill:"none"},T?g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.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"}),g.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"}),g.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),g.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),g.createElement(ky,{text:T?"Restore offline mock":"Mock offline behavior"}))))),g.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>g.createElement(Fy,{queryKey:e.queryKey,activeQueryHash:_,setActiveQueryHash:S,key:e.queryHash,queryCache:y}))))),_&&n?g.createElement(My,{activeQueryHash:_,queryCache:y,queryClient:f,errorTypes:p}):null,c?g.createElement(hy,If({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))})),My=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const s=Dy(e,(()=>e.getAll().find((e=>e.queryHash===t)))),r=Dy(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=Dy(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=Dy(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=h.useMemo((()=>{if(s&&null!=r&&r.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=r.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==r?void 0:r.error,o]);if(!s||!r)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return g.createElement(my,null,g.createElement("div",{style:{padding:".5em",background:Jg.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),g.createElement("div",{style:{padding:".5em"}},g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},g.createElement(yy,{style:{lineHeight:"1.8em"}},g.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},ny(s.queryKey,!0))),g.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Zg({queryState:r,isStale:c,observerCount:u,theme:Jg}),flexShrink:0}},ey(s))),g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",g.createElement(yy,null,u)),g.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",g.createElement(yy,null,new Date(r.dataUpdatedAt).toLocaleTimeString()))),g.createElement("div",{style:{background:Jg.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),g.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},g.createElement(hy,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(Uy)},disabled:"fetching"===r.fetchStatus,style:{background:Jg.active}},"Refetch")," ",g.createElement(hy,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Jg.warning,color:Jg.inputTextColor}},"Invalidate")," ",g.createElement(hy,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Jg.gray}},"Reset")," ",g.createElement(hy,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Jg.danger}},"Remove")," ",g.createElement(hy,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Jg.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?g.createElement(hy,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):p()},style:{background:Jg.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):g.createElement("label",null,"Trigger error:",g.createElement(by,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},g.createElement("option",{key:"",value:""}),o.map((e=>g.createElement("option",{key:e.name,value:e.name},e.name)))))),g.createElement("div",{style:{background:Jg.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Py,{label:"Data",value:r.data,defaultExpanded:{},copyable:!0})),g.createElement("div",{style:{background:Jg.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Py,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},Ny=({queryCache:e})=>{const t=Dy(e,(()=>e.getAll().filter((e=>"fresh"===ey(e))).length)),n=Dy(e,(()=>e.getAll().filter((e=>"fetching"===ey(e))).length)),o=Dy(e,(()=>e.getAll().filter((e=>"paused"===ey(e))).length)),a=Dy(e,(()=>e.getAll().filter((e=>"stale"===ey(e))).length)),i=Dy(e,(()=>e.getAll().filter((e=>"inactive"===ey(e))).length));return g.createElement(fy,null,g.createElement(gy,{style:{background:Jg.success,opacity:t?1:.3}},"fresh ",g.createElement(yy,null,"(",t,")"))," ",g.createElement(gy,{style:{background:Jg.active,opacity:n?1:.3}},"fetching ",g.createElement(yy,null,"(",n,")"))," ",g.createElement(gy,{style:{background:Jg.paused,opacity:o?1:.3}},"paused ",g.createElement(yy,null,"(",o,")"))," ",g.createElement(gy,{style:{background:Jg.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",g.createElement(yy,null,"(",a,")"))," ",g.createElement(gy,{style:{background:Jg.gray,opacity:i?1:.3}},"inactive ",g.createElement(yy,null,"(",i,")")))},Fy=g.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,s,r;const c=null!=(a=Dy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=Dy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=Dy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(s=Dy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,d=null!=(r=Dy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?r:0;return u?g.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Jg.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},g.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Zg({queryState:u,isStale:l,observerCount:d,theme:Jg}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?g.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Jg.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,g.createElement(yy,{style:{padding:".5em"}},""+c)):null}));function Uy(){}Fy.displayName="QueryRow";const By="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:s,styleNonce:r,panelPosition:c="bottom",errorTypes:u=[]}){const l=g.useRef(null),p=g.useRef(null),[d,m]=Qf("reactQueryDevtoolsOpen",e),[h,f]=Qf("reactQueryDevtoolsHeight",sy),[y,v]=Qf("reactQueryDevtoolsWidth",sy),[b="bottom",k]=Qf("reactQueryDevtoolsPanelPosition",c),[x,w]=g.useState(!1),[j,C]=g.useState(!1),E=function(){const e=g.useRef(!1),t=g.useCallback((()=>e.current),[]);return g.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();g.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),g.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]),g.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=ly("padding",b),n=cy(b),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?y: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,b,h,y]);const{style:_={},...S}=t,{style:R={},onClick:T,...A}=o,I=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:s}){const r=uy(e),c=ly("border",r),u=cy(e);return{...s,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:r,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:sy}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:sy}}}({position:b,devtoolsTheme:Jg,isOpen:x,height:h,width:y,isResizing:j,panelStyle:_});return E()?g.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},g.createElement(Xg,{theme:Jg},g.createElement(qy,If({ref:p,context:s,styleNonce:r,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},S,{style:I,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=cy(b);C(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,s=t.clientY;let r=0;const c=e=>{e.preventDefault(),n?(r=a+("right"===b?i-e.clientX:e.clientX-i),v(r)):(r=o+("bottom"===b?s-e.clientY:e.clientY-s),f(r)),m(!(r<70))},u=()=>{j&&C(!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:g.createElement("button",If({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}}),g.createElement(Ly,{"aria-hidden":!0}),g.createElement(ky,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Gy,Vy={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(Gy=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",Gy.ETIMEDOUT="ETIMEDOUT",Gy.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var Wy=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Wy&&function(){e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:if(!ya())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ha.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),console.error("Error starting MSW:",t),[3,4];case 4:return[2]}}))}))}(),exports.Api=lh,exports.ApiProvider=function(t){var n=this,o=t.children,a=process.env.ENVIRONMENT,i=h.useMemo((function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"}),[process.env.ENVIRONMENT]),s=h.useState(!1),r=s[0],c=s[1],u=h.useCallback((function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o,a,s,r;return e.__generator(this,(function(c){switch(c.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",s=localStorage.getItem("x-organization-code"),r=s?JSON.parse(s).value:"",[4,dh.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":a||i,"x-organization-code":r,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return c.sent(),[2]}}))}))}),[i,c]);h.useEffect((function(){return addEventListener("ACCOUNT_CHANGED",u),function(){window.removeEventListener("ACCOUNT_CHANGED",u)}}),[u]);var l=h.useCallback((function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o,a,s,r,u,l;return e.__generator(this,(function(p){switch(p.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),s=localStorage.getItem("account"),r=s?null===(l=JSON.parse(s).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,dh.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":t||i,"x-organization-code":u,"x-account-code":r,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:p.sent(),_f.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),p.label=2;case 2:return[2]}}))}))}),[i,c]);return h.useEffect((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?l(n):"token"===t.key&&l(e)}})),l(e)}),[c,l]),r?React.createElement(yf,{client:_f},o,React.createElement(By,{initialIsOpen:!1})):React.createElement("div",{style:Vy})},exports.ApiSingleton=dh,exports.getQueryKeyGetNameAndIcon=Rf,exports.getQueryKeyRequiredFields=Tf,exports.queryCache=Ef,exports.queryClient=_f,exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),jf((function(e){return dh.getInstance().generateAIWorkflowRoutes(t,e).then((function(e){return null==e?void 0:e.data}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAllowListDetail=function(e,t,n){return wf(["allow-list-detail",e],(function(){return dh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})},exports.useArchiveConnection=function(){return jf(["auth-connection"],(function(e){var t=e.payload,n=e.connectionCode;return dh.getInstance().postArchiveConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useBlackListDetail=function(e,t,n,o,a,i){return wf(["black-list-detail",e,t,o,a,i],(function(){return dh.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})},exports.useCachedFeatureFlag=function(e){var t,n=gf().getQueryData(["feature-flags-all"]);return!!n&&(null!==(t=n[e])&&void 0!==t&&t)},exports.useCancelReport=function(){return jf((function(e){return dh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useChangePassword=function(t){var n=this;return jf((function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().changePassword(t).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))},exports.useChangePasswordV2=function(){var t=this;return jf((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().changePasswordV2(n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))},exports.useChangePaymentsWebhook=function(){return jf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return dh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeState=function(){return jf((function(){return dh.getInstance().getNotification().then((function(e){return null==e?void 0:e.data}))}))},exports.useChangeStatusBlackList=function(){return jf(["change-blacklist"],(function(e){return dh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStatusItemBlackList=function(){return jf(["change-blacklist-item"],(function(e){return dh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChargebacksUpload=function(){return jf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return dh.getInstance().uploadChargebacks(t,n,o,a)}))},exports.useConfirmedOtpForEnrollment=function(e){return jf((function(){return dh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useConfirmedOtpMfa=function(){return jf((function(e){return dh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useConversionRateOverview=function(t,n,o){return void 0===o&&(o={}),wf(["conversion-rate-overview",t,n],(function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsConversionRateOverview(n,t)];case 1:return[2,e.sent()]}}))}))}),e.__assign({useErrorBoundary:!1},o))},exports.useConversionRateOverviewFraud3ds=function(t,n,o){return void 0===o&&(o={}),wf(["conversion-rate-overview-fraud-3ds",t,n],(function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsConversionRateOverviewFraud3ds(n,t)];case 1:return[2,e.sent()]}}))}))}),e.__assign({useErrorBoundary:!1},o))},exports.useCountRowsForReport=function(){return jf((function(e){return dh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useCreateMonitorTemplate=function(e){return jf((function(t){return dh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))},exports.useCreateMonitorThreshold=function(e){return jf((function(t){return dh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},exports.useCreateNotification=function(e){return jf((function(){return dh.getInstance().createNotificacion(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateOperationTransaction=function(){return jf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return dh.getInstance().createOperationTransaction(t,n,o,a)}))},exports.useCreatePaymentLinks=function(){return jf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateProductsByAccount=function(){return jf(["post-products-account"],(function(e){var t=e.payload;return dh.getInstance().postCreateProducts({payload:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateReconciliationAlert=function(){return jf(["POST/reconciliation/alerts"],(function(e){return dh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){_f.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return jf((function(){return dh.getInstance().createReconciliationReportTemplate(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o;return e.__generator(this,(function(a){switch(a.label){case 0:return[4,_f.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return a.sent(),n=null===(o=_f.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,_f.setQueryData(["GET/reconciliation/reports/templates"],(function(n){return{templates:e.__spreadArray(e.__spreadArray([],n.templates,!0),[t],!1)}})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){_f.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){_f.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return jf((function(e){return dh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateReport=function(){return jf((function(e){return dh.getInstance().createReport(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateReportTemplate=function(t){var n=this;return jf((function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().createReportTemplate(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,_f.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=_f.getQueryData(["GET/reports/templates"]),_f.setQueryData(["GET/reports/templates"],(function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){_f.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){_f.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return jf((function(e){return dh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateRoles=function(){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return jf((function(e){return dh.getInstance().createSamlConfig(e)}))},exports.useCreateScheduledReport=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))},exports.useCreateUserAuth0=function(){return jf((function(e){return dh.getInstance().createUserAuth0(e)}))},exports.useCreateWorkflow=function(t,n,o){var a=this;return void 0===o&&(o=null),jf((function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().postSmartRoutingCreateWorkflow(t,n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)},exports.useDashboardInsights=function(e,t,n){return wf(["data-insights",e],(function(){return("LOCAL"===process.env.ENVIRONMENT||"DEV"===process.env.ENVIRONMENT||localStorage.getItem("log_metrics"))&&(console.log("%c ".concat(e.key_metric),"background: #222; color: #bada55"),console.log(e)),dh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:n,enabled:!!e.account_code&&!!t&&!!e.key_metric&&"Empty"!==e.currency_code,cacheTime:0,useErrorBoundary:!1})},exports.useDashboardInsightsIsolated=function(e,t){return wf(["get-isolated-metric",e],(function(){return dh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code,cacheTime:0,keepPreviousData:t,useErrorBoundary:!1})},exports.useDeleteAccountsUserMassive=function(){return jf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return dh.getInstance().deleteAccountsUserMassive(t,n,o)}))},exports.useDeleteAllowlistItem=function(){return jf(["delete-allowlist-item"],(function(e){return dh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeleteBlackListItem=function(){return jf(["delete-blacklist-item"],(function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return dh.getInstance().deleteBlackListItem({black_list_code:t,account_code:n,item:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteBlackListType=function(){return jf(["delete-blacklist"],(function(e){var t=e.black_list_code;return dh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteBlockListItem=function(){return jf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return dh.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}))}))},exports.useDeleteConnection=function(){return jf(["delete-connection"],(function(e){return dh.getInstance().deleteConnection(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteCustomizedApiKeys=function(){return jf((function(e){var t=e.code;return dh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeletePaymentLink=function(){return jf(["post-delete-payment-link"],(function(e){var t=e.code;return dh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteReconciliationAlert=function(){return jf(["DELETE/reconciliation/alerts"],(function(e){return dh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){_f.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteRoles=function(){return jf((function(e){return dh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteSamlConfig=function(){return jf((function(){return dh.getInstance().deleteSamlConfig()}))},exports.useDeleteScheduledReport=function(){return jf((function(e){return dh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteUserTeam=function(){var t=this;return jf((function(n){var o=n.userCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().deleteUserTeam({userCode:o})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.useDeleteUserTeamV2=function(){return jf((function(e){var t=e.userCode,n=e.organizationCode;return dh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useDeleteWebhook=function(e){return jf((function(e){var t=e.code;return dh.getInstance().deleteWebhook(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDeleteWebhookV2=function(e){return jf((function(e){var t=e.code,n=e.accountCode;return dh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useEditPaymentLinks=function(){return jf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return dh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))},exports.useEditRoles=function(){var t=this;return jf((function(n){var o=n.payload,a=n.id,i=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}),{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return wf(["email-verification",e],(function(){return dh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useExcludeUsers=function(){return jf((function(e){var t=e.payload,n=e.organizationCode;return dh.getInstance().mfaExcludeUsers(t,n)}))},exports.useFeatureFlags=function(t){var n=this,o=Object.values(t).filter(Boolean);return wf(["feature-flags",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getFeatureFlagId(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o.length>1,useErrorBoundary:!1})},exports.useFeatureFlagsAll=function(t,n){var o=this,a=Object.values(n).filter(Boolean),i=!!n.account_code&&!!n.organization_code&&!!n.email,s=wf({queryKey:["feature-flags-all",t,a],queryFn:function(){return e.__awaiter(o,void 0,void 0,(function(){var o,a;return e.__generator(this,(function(e){return o=dh.getInstance(),a={names:t,body:n},[2,o.getFeatureFlagIdAll(a).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:i,useErrorBoundary:!1}),r=gf();return h.useEffect((function(){s.isSuccess&&r.setQueryData(["feature-flags-all"],s.data)}),[s.isSuccess,s.data,r]),s},exports.useFirebaseUserSubscribe=function(e){return jf((function(e){var t=e.payload;return dh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGetAccounts=function(e){var t,n=Sf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return wf({queryKey:["accounts",o],queryFn:function(){return dh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,cacheTime:3e3,enabled:!!o})},exports.useGetAccountsByUser=function(e){return wf(["accountsV2-by-user",e],(function(){return e?dh.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})},exports.useGetAccountsV2=function(e){return wf(["accountsV2",e],(function(){return dh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})},exports.useGetAllConfigRules=function(){return wf(["config-rules"],(function(){return dh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetAllOrganizations=function(){return wf(["fetch-all-organizations"],(function(){return dh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/advancements/list",t,n],(function(){return dh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/agenda/list",t,n],(function(){return dh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/alerts/list",t,n],(function(){return dh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/fees/list",t,n],(function(){return dh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/sales/list",t,n],(function(){return dh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return wf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return dh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetAllowedIps=function(){return wf(["developers-get-allowed-ips"],(function(){return dh.getInstance().getAllowedIps().then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{enabled:!1,cacheTime:0})},exports.useGetAuditEvents=function(e){return wf(["events",e],(function(){return dh.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})},exports.useGetAuditLogsFilters=function(){return wf(["/cms/audit-logs-filters"],(function(){return dh.getInstance().useGetAuditLogsFilters().then((function(e){return Qm(e)?eh:null==e?void 0:e.data})).catch((function(){return eh}))}))},exports.useGetAuditMonitorEventDetail=function(e){return wf(["audit-monitor-event-detail",e],(function(){return dh.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})},exports.useGetBatchRefunds=function(t,n){var o=this;return void 0===t&&(t=26),void 0===n&&(n=0),wf(["batch-refunds",t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getBatchRefunds(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})},exports.useGetBlackList=function(e){return wf(["get-black-list",e],(function(){return dh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})},exports.useGetBlockListSummary=function(e,t,n){return wf(["get-block-list-summary",e,t,n],(function(){var o=dh.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})},exports.useGetCardBrands=function(){return wf(["GET/catalog/card-brands"],(function(){return dh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetCheckoutTemplate=function(e){var t=e.accountCode;return wf(["checkouts-template"],(function(){return dh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetCheckouts=function(e){var t=e.accountCode;return wf(["checkouts",t],(function(){return dh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetConditionalConfigRules=function(){return jf((function(e){return dh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetConfigAllowlist=function(e,t){return wf(["get-cofig-allow-list",e],(function(){return dh.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})},exports.useGetConnections=function(){return wf(["connections"],(function(){return dh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetConnectionsByPaymentMethod=function(e){var t=e.accountCode,n=e.paymentMethod;return wf(["fetch-connections-by-payment-method",n,t],(function(){return dh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetCountriesConfigPaymentLink=function(e){return void 0===e&&(e=!0),wf(["countries",e],(function(){return dh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode;return wf(["developers"],(function(){return dh.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCredentialsMFA=function(){return jf((function(t){var n=t.password,o=t.accountCode;return dh.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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}}))}))},exports.useGetCredentialsValidatePassword=function(t){var n=t.password;return wf(["developers"],(function(){return dh.getInstance().getDeveloperCredentialsValidatePassword(n).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCustomizedApiKeys=function(e){return wf(["fetch-customized-api-keys",e],(function(){return dh.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)})},exports.useGetCustomizedApiKeysAccounts=function(){return wf(["fetch-customized-api-keys-accounts"],(function(){return dh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return wf(["fetch-customized-api-keys-members"],(function(){return dh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return wf(["fetch-customized-api-keys-products"],(function(){return dh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetCustomizedApiKeysShowToken=function(){return jf((function(e){var t=e.code;return dh.getInstance().getCustomizedApiKeysShowToken(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetCustomizedApiKeysToken=function(){return jf((function(e){var t=e.code,n=e.password;return dh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.useGetDashboardStaticContents=function(){return wf(["/cms/static-contents"],(function(){return dh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Qm(e)?th:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})).catch((function(){return th}))}))},exports.useGetDialogs=function(){return wf(["dialogs"],(function(){return dh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1,retryDelay:2e3})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),wf(["reports/".concat(e)],(function(){return dh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return jf((function(){return dh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetHashPylon=function(){var t=this;return wf(["fetch-hash-pylon"],(function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetIndividualMFAStatus=function(){return jf((function(){return dh.getInstance().getMFAStatus().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetInsightsReport=function(e){return wf(["get-insights-reports",e],(function(){return dh.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})},exports.useGetInsightsReportAgain=function(e){return wf(["get-insights-reports-again",e],(function(){return dh.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})},exports.useGetIntegrationByAccount=function(e){var t=e.accountCode,n=e.organizationCode;return wf(["organizations-account-integrations"],(function(){return dh.getInstance().getIntegrationByAccount({accountCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!t})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=Sf(),a=wf(["organizations-account-integrations",t,n],(function(){return dh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled;return wf(["integration-params",t],(function(){return t.includes("undefined")?{}:dh.getInstance().getIntegrationParams({integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})},exports.useGetLocales=function(){return wf(["/cms/locales"],(function(){return dh.getInstance().getLocales().then((function(e){return Qm(e)?oh:e.data})).catch((function(){return oh}))}))},exports.useGetLoginMethods=function(){return wf({queryKey:["get-login-methods"],queryFn:function(){return dh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})},exports.useGetMFAConfig=function(e,t){var n=e.organizationCode;return wf(["mfa-config",n],(function(){return dh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAExcludedUsers=function(e,t){var n=e.organizationCode;return wf(["mfa-excluded-users",n],(function(){return dh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAStatus=function(e,t){return wf(["mfa-enforcement-status",e.accountCode],(function(){return dh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMembers=function(e){return wf(["fetch-members"],(function(){return dh.getInstance().getMembers(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0})},exports.useGetMembersV3=function(e){var t=e.organizationCode,n=Sf();return wf(["fetch-members-v3",t],(function(){return t?dh.getInstance().getMembersV3({organizationCode:n}).then((function(e){return null==e?void 0:e.data})):null}),{enabled:!!t,cacheTime:0})},exports.useGetMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o=Sf();return wf(["fetch-members-v4",t,n],(function(){return n?t?dh.getInstance().getMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data})):null:{}}),{enabled:!!t&&!!n,cacheTime:0})},exports.useGetMenu=function(){return wf(["menu"],(function(){return dh.getInstance().getMenu().then((function(e){return Qm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}))},exports.useGetMergedNotifications=function(){return wf(["notifications-merged"],(function(){return dh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})},exports.useGetNameAndIcon=function(e,t){var n=e.paymentMethodType,o=e.type;return wf(Rf({paymentMethodType:n,type:o}),(function(){return dh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetNotificationsAccount=function(e){return wf(["notifications-account",e],(function(){return dh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetNotificationsCustomer=function(e){return wf(["notifications-customer",e],(function(){return dh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumber=function(e){return wf(["notifications-number",e],(function(){return dh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetNotificationsNumberMutation=function(){return jf((function(e){return dh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetOrganization=function(){return wf(["fetch-organizations"],(function(){return dh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetPayment=function(t){var n=t.enabled,o=void 0===n||n,a=e.__rest(t,["enabled"]);return wf(["fetch-payments-".concat(a.payment_code),a],(function(){return dh.getInstance().getPayment(a).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:500})},exports.useGetPaymentAndTrxStatuses=function(){return wf(["/payments/transaction/statuses"],(function(){return dh.getInstance().useGetPaymentAndTrxStatuses().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetPaymentFilters=function(e){return void 0===e&&(e=!0),wf(["payment-filters",e],(function(){return dh.getInstance().getPaymentFilters().then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetPaymentLinkByCode=function(e){return wf(["payment-link"],(function(){return dh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetPaymentLinks=function(e,t){return wf(["fetch-payment-links",e,t],(function(){return dh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodsAndProviders=function(){return wf(["/payment-methods/providers"],(function(){return dh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetPaymentMethodsAndProvidersActive=function(){return wf(["/payments/payment-methods/providers/active"],(function(){return dh.getInstance().getPaymentMethodsAndProvidersActive().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetPaymentMethodsByProvider=function(e){var t=e.provider;return wf(["/payment-methods/provider/".concat(t)],(function(){return dh.getInstance().getPaymentMethodsByProvider({provider:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetPaymentMetricsFilters=function(){return wf(["payment-metrics-filters"],(function(){return dh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return wf(["/payment/statuses/style"],(function(){return dh.getInstance().useGetPaymentStatusesStyles().then((function(e){return Qm(e)?Jm:null==e?void 0:e.data})).catch((function(){return Jm}))}))},exports.useGetPaymentTransactions=function(e,t){return wf(["payments/".concat(e,"/transactions"),t],(function(){return dh.getInstance().getPaymentTransactions(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:500})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return wf(["payment-transaction-details",t],(function(){return dh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})},exports.useGetPaymentTransactionsLazy=function(e){return wf(["payments/".concat(e,"/transactions/lazy")],(function(){return dh.getInstance().getPaymentTransactionsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e.response.data}))}),{enabled:!!e,cacheTime:500})},exports.useGetPaymentV2=function(t){var n=this,o=t.paymentCode,a=t.enabled,i=void 0===a||a,s=dh.getInstance();return wf(["get-payment-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,s.getPaymentV2(o).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:i,cacheTime:500})},exports.useGetPaymentsByPaymentLink=function(e,t){return wf(["fetch-payments-by-link-code",e],(function(){return dh.getInstance().getPaymentsByPaymentLink(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})},exports.useGetPaymentsMethodsByCountry=function(e){var t=Sf();return wf(["payment-methods",e],(function(){return dh.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})).catch((function(e){throw e}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})},exports.useGetPayoutDetail=function(e){return wf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=dh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})},exports.useGetPayoutHistoryDetail=function(e){var t=Sf();return wf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return dh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})},exports.useGetPayoutTransactionDetail=function(e){return wf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return dh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})},exports.useGetPermissions=function(e,t){return wf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),s=a&&JSON.parse(a);return((null==s?void 0:s.merlin)?null===(e=null==s?void 0:s.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}})))||[]}))},exports.useGetPermissionsCatalog=function(){return wf(["fetch-permissions-catalog"],(function(){return dh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetProductsByAccount=function(e){var t=e.accountCode;return wf(["products"],(function(){return dh.getInstance().getProductsByAccount({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetProfile=function(){return wf(["fetch-profile"],(function(){return dh.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})},exports.useGetProofOfCancel=function(t){var n=this,o=Sf();return wf(["GET/useGetProofOfCancel",o,t],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getProofOfCancel(t,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!t&&!!o,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=Sf();return wf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return dh.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return wf(["GET/v1/reconciliation/active"],(function(){return dh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/agenda/insights",t,n],(function(){return dh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return wf(["GET-reconciliation-filters"],(function(){return dh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return wf(["fetch-reconciliation-metrics",e],(function(){return dh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactionStatusesStyles=function(){return wf(["/reconciliation/transaction/statuses/style"],(function(){return dh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Qm(e)?Xm:null==e?void 0:e.data})).catch((function(){return Xm}))}))},exports.useGetReconciliationTransactions=function(e,t){return wf(["fetch-reconciliation-transaction",e],(function(){return dh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetReconciliationsReportColumns=function(e,t,n){return wf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return dh.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReconciliationsReportTemplates=function(e){return wf(["GET/reconciliation/reports/templates"],(function(){return dh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetRefundPdf=function(t){var n=this,o=Sf();return wf(["getRefundPdf",t,o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getRefundPdf(t,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!t&&!!o,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){return wf(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return dh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e.__spreadArray(e.__spreadArray([],null==t?void 0:t.data,!0),[Af],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return wf(["GET/reports/templates"],(function(){return dh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReportsList=function(){return wf(["reports"],(function(){return dh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),wf(["reports-multi-env"],(function(){return dh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})},exports.useGetRequiredFields=function(e,t){var n=e.paymentMethodType,o=e.type;return wf(Tf({paymentMethodType:n,type:o}),(function(){return dh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetRoles=function(){return wf(["fetch-roles"],(function(){return dh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetRolesPermissions=function(){return wf(["fetch-rolespermissions"],(function(){return dh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetRoutingMonitorsTemplate=function(e,t){return wf(["fetch-routing-monitors-template",e],(function(){return dh.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})},exports.useGetRoutingMonitorsTemplates=function(e){return wf(["fetch-routing-monitors-templates",e],(function(){return dh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return jf((function(e){return dh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetSamlConfig=function(e){return wf(["fetch-organization-saml-config",e],(function(){return dh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return wf(["GET/scheduled-reports",e],(function(){return dh.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetSettlements=function(e,t){return wf(["fetch-reconciliation-settlements",e],(function(){return dh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetSettlementsBody=function(e,t){return wf(["fetch-reconciliation-settlements-body",e],(function(){return dh.getInstance().getReconciliationSettlementsBody(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetSettlementsHeader=function(e,t){return wf(["fetch-reconciliation-settlements-header",e],(function(){return dh.getInstance().getReconciliationSettlementsHeader(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return wf(["smart-routing-condition-payment-method",e,t],(function(){return dh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})},exports.useGetSmartRoutingConditionTypes=function(e,t){return wf(["smart-routing-condition-types",e,t],(function(){return dh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return wf(["smart-routing-condition-types-values",t,e],(function(){return dh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})},exports.useGetSmartRoutingDataReport=function(e){return wf(["data-report",e],(function(){return dh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e){return wf(["smart-routing-decline-groups",e],(function(){return dh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e){return wf(["smart-routing-methods",e],(function(){return dh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingNextRoute=function(e,t,n){return wf(["smart-routing-next-route",e,n,t],(function(){return dh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetSmartRoutingPaymentRoute=function(e,t){return wf(["smart-routing-payment-route",e,t],(function(){return dh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return wf(["smart-routing-search-condition-values",t,n],(function(){return dh.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetSmartRoutingSimulateConditionTypeValues=function(e){return wf(["smart-routing-simulate-condition-type-values",e],(function(){return dh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingTutorial=function(e){return wf(["smart-routing-tutorial",e],(function(){return dh.getInstance().getSmartRoutingTutorial(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t){return wf(["smart-routing-workflow",t,e],(function(){return dh.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})},exports.useGetSmartRoutingWorkflowVersion=function(e){var t=e.accountCode,n=e.workflowVersionId;return wf(["smart-routing-workflow-version",n,t],(function(){return dh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSettings=function(e){var t=e.accountCode;return wf(["styling-settings",t],(function(){return dh.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})},exports.useGetStylingTheme=function(e){var t=e.accountCode;return wf(["styling-theme",t],(function(){return dh.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})},exports.useGetTeamsFiltersMembers=function(){var e=Sf();return wf(["teams-filters-members"],(function(){return dh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return wf(["timezone-catalog"],(function(){return dh.getInstance().useGetTimeZoneCatalog().then((function(e){return Qm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}))},exports.useGetTimezonePaymentLink=function(e){return wf(["timezone"],(function(){return dh.getInstance().getTimezone(e).then((function(e){return Qm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}),{enabled:!0,keepPreviousData:!0})},exports.useGetTokenForEnrollment=function(e){return jf((function(){return dh.getInstance().getMfaToken(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetTokenValidation=function(){return jf((function(e){var t=e.password,n=e.otp;return dh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetTransactionDetails=function(e){var t=e.payment_code,n=e.transaction_code,o=e.enabled,a=void 0===o||o;return wf(["payments/".concat(t,"/transactions/").concat(n)],(function(){return dh.getInstance().getTransactionDetails({payment_code:t,transaction_code:n}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:500,enabled:a})},exports.useGetTransactionDetailsV2=function(t){var n=this,o=t.payment_code,a=t.enabled,i=void 0===a||a,s=dh.getInstance();return wf(["get-payment-transaction-details-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!o&&i,cacheTime:0})},exports.useGetTransactionHistory=function(e){var t=e.transaction_code;return wf(["payment-filters",t],(function(){return dh.getInstance().getTransactionHistory({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return wf(["transaction-history",t],(function(){return dh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,o=t.transaction_code,a=t.enabled,i=void 0===a||a,s=dh.getInstance();return wf(["get-payment-transaction-raw-response",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]}))}))}),{enabled:!!o&&i,cacheTime:0})},exports.useGetTransactionStatusesStyles=function(){return wf(["/transaction/statuses/style"],(function(){return dh.getInstance().useGetTransactionStatusesStyles().then((function(e){return Qm(e)?Ym:null==e?void 0:e.data})).catch((function(){return Ym}))}))},exports.useGetTransactions=function(e){return wf(["GET/transactions",JSON.stringify(e)],(function(){return dh.getInstance().getTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetValidateOpsgenieKey=function(e){return wf(["validate-opsgenie-key",e],(function(){return dh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})},exports.useGetWebhookParams=function(){return wf(["params-catalog"],(function(){return dh.getInstance().getWebhookParams().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetWebhookParamsV2=function(){return wf(["params-catalog"],(function(){return dh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetWebhooks=function(e){var t=e.accountCode;return wf(["webhooks"],(function(){return dh.getInstance().getWebhooks({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetWebhooksV2=function(e){var t=e.accountCode;return wf(["webhooks"],(function(){return dh.getInstance().getWebhooksV2({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return wf(["webhooks-detail",t],(function(){return dh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})},exports.useGetWebhooksV3=function(e){var t=e.accountCode,n=e.name;return wf(["webhooks",t,n],(function(){return dh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetrics=function(e){return wf(["get-insights-conversion-rate-metrics",e],(function(){return dh.getInstance().getInsightsMetricsConversionRate(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})},exports.useInsightsConversionRateMetricsV2=function(e,t){return wf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return dh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,wf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return dh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFallbackMetrics=function(e){return wf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return dh.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningConversionRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return wf(["get-insights-home-metrics",e],(function(){return dh.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})},exports.useInsightsOverviewMetrics=function(e){return wf(["get-insights-overview",e],(function(){return dh.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})},exports.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return wf(["get-insights-overview-v3",e,t],(function(){return dh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsTotalPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,wf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return dh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,wf(["get-insights-volume-metrics",t,e],(function(){return dh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,wf(["get-insights-volume-metrics-v2",t,e,n],(function(){return dh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsers=function(){return jf((function(e){return dh.getInstance().inviteUsers(e)}))},exports.useInviteUsersMultiaccount=function(){return jf((function(e){return dh.getInstance().inviteUsersV2(e,e.organizationCode)}))},exports.useInviteUsersMultiaccountMassive=function(){return jf((function(e){return dh.getInstance().inviteUsersMassive(e,e.organizationCode)}))},exports.useIsTesting=function(){var e=h.useState("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return h.useEffect((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}},exports.useLoginMethods=function(){return jf((function(e){return dh.getInstance().changeLoginMethods(e)}))},exports.useLoginSSO=function(e){return wf(["login-sso",e],(function(){return dh.getInstance().getLoginSSO(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useNewPostConnection=function(){return jf(["new-post-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().newPostConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useNewPostConnectionValidate=function(){return jf(["new-post-connection-validate"],(function(){return dh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useOneBlackList=function(e){return wf(["get-one-black-list",e],(function(){return dh.getInstance().getOneBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.usePatchAccount=function(){return jf((function(e){var t=e.name,n=e.code,o=e.principal;return dh.getInstance().patchAccount({name:t,code:n,principal:o})}))},exports.usePatchAccountV2=function(){return jf((function(e){var t=e.name,n=e.code,o=e.principal;return dh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))},exports.usePatchAddAllowlistItems=function(){return jf(["post-add-allowlist-items"],(function(e){var t=e.payload;return dh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchAllowedIps=function(){return jf(["developers-patch-allowed-ips"],(function(t){return dh.getInstance().patchAllowedIps(t).then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{cacheTime:0})},exports.usePatchAllowlist=function(){return jf(["patch-allowlist"],(function(e){var t=e.payload;return dh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchApiKeysEditNote=function(){return jf((function(e){var t=e.payload,n=e.code;return dh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlist=function(){return jf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return dh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlistItem=function(){return jf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return dh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchConnection=function(){return jf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return dh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePathCreateCustomizedApiKeys=function(){return jf((function(e){var t=e.payload,n=e.code;return dh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePathNotifications=function(){var t=this;return jf((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=Sf();return wf(["getPayoutsFilters",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getPayoutsFilters(o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:t&&!!o})},exports.usePayoutsList=function(e){return wf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=dh.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})},exports.usePostAccount=function(){return jf((function(e){var t=e.name,n=e.principal;return dh.getInstance().postAccount(t,n)}))},exports.usePostAllowlistMultiAccount=function(e){return wf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return dh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.usePostApiKeysRoll=function(){return jf((function(e){var t=e.payload,n=e.code,o=e.password;return dh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePostAuditMonitors=function(e){return jf((function(e){var t=e.payload;return dh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return jf((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().batchRefundByFile({payload:n}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.usePostBlackListBatch=function(e){var t=e.handleSetProgress;return jf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return dh.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}))}))},exports.usePostBlackListItems=function(){return jf(["post-blacklist-items"],(function(e){var t=e.payload;return dh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlackListMultiAccount=function(){return jf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return dh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostBlackListType=function(){return jf(["post-blacklist"],(function(e){var t=e.payload;return dh.getInstance().postBlackListType({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlockList=function(e,t,n,o){var a;return wf(["post-black-list",e],(function(){return dh.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})},exports.usePostCall=function(){return jf((function(e){return dh.getInstance().postCall(e)}))},exports.usePostChangeStatusConnection=function(){return jf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostConnection=function(){return jf(["post-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostConnectionMultiAccount=function(){return jf(["post-connection"],(function(e){var t=e.payload;return dh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostCreateAllowlistMultiAccount=function(){return jf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return dh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateCustomizedApiKeys=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateInsightsReport=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateRule=function(){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postCreateRule(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostCreateRuleMultiAccount=function(){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCredentialsValidatePassword=function(){return jf((function(e){var t=e.passwordOtp;return dh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.usePostDefaultRoutes=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.usePostEditRule=function(){return jf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return dh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostFraudTransactions=function(t){var n=this;return wf(["POST/fraud-transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().postFraudTransactions(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0})},exports.usePostGetAllowlistItems=function(){return jf(["post-get-allowlist-items"],(function(e){var t=e.payload;return dh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostGetAllowlistMultiAccount=function(){return jf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return dh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostMembersPaginated=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i=Sf();return wf(["fetch-post-members-v4",t,n,o,a],(function(){return dh.getInstance().postMembersPaginated({organizationCode:i,accountCodes:n,page:o,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,s=Sf();return wf(["fetch-post-members-v2",t,n,o,a,i],(function(){return dh.getInstance().postMembersPaginatedV2({organizationCode:s,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})},exports.usePostMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o=Sf();return wf(["fetch-post-members-v4",t,n],(function(){return dh.getInstance().postMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0})},exports.usePostPaymentsEvaluated=function(e){return wf(["fetch-payments-evaluated",e],(function(){return dh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})},exports.usePostPaymentsLazy=function(t){var n=this;return wf(["fetch-payments-lazy",t],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().postPaymentsLazy(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0})},exports.usePostSlackMessageChannel=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostTransactions=function(t){var n=this;return wf(["POST/transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().postTransactions(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!t,cacheTime:0})},exports.usePostUserSettings=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return jf(["pinned-sections"],(function(e){var t=e.payload;return dh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return jf((function(e){var t=e.payload,n=e.section;return dh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(t){var n=_f.getQueryData(["fetch-profile"]);t.data&&_f.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return jf((function(e){return dh.getInstance().postUserThemeSettings(e)}))},exports.usePostValidateOtp=function(e){return jf((function(){return dh.getInstance().validateOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostValidatePassword=function(e){return jf((function(){return dh.getInstance().postValidatePassword(e).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostValideStatusConnection=function(){return jf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostVelocityRules=function(e){return wf(["velocity-rules",e],(function(){var t=dh.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})},exports.usePostWebhook=function(e){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postWebhook({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.usePostWebhookMultiAccount=function(e){return jf((function(e){var t=e.payload;return dh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.usePostWebhookV2=function(e){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postWebhookV2({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return wf(["smart-routing-conversion-rates"],(function(){return dh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})},exports.usePublishVersion=function(t,n){var o=this,a=t.versionCode,i=t.accountCode,s=t.organizationCode;return void 0===n&&(n=null),jf((function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().postSmartRoutingPublishVersion(i,a,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),n)},exports.usePutAccountPrincipal=function(){return jf((function(e){var t=e.account_code;return dh.getInstance().putAccountPrincipal({account_code:t})}))},exports.usePutAccountsUser=function(){return jf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return dh.getInstance().putAccountsUser(t,n,o)}))},exports.usePutAccountsUserMassive=function(){return jf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return dh.getInstance().putAccountsUserMassive(t,n,o)}))},exports.usePutBlackListType=function(){return jf(["put-blacklist"],(function(e){return dh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePutCosts=function(){return jf((function(e){return dh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)},exports.useSendOTPForMFA=function(){return jf((function(){return dh.getInstance().sendOTPForMFA().then((function(e){return null==e?void 0:e.data}))}))},exports.useSendPaymentNotification=function(t,n,o){var a=this,i=dh.getInstance();return wf(["send-payment-notification",t,n],(function(){return e.__awaiter(a,void 0,void 0,(function(){var a,s;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i.sendPaymentNotification(t,n)];case 1:return a=e.sent(),o.onSuccess(),[2,a.data];case 2:throw s=e.sent(),o.onError(),s;case 3:return[2]}}))}))}),{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return jf((function(){return dh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))},exports.useSetRoles=function(){var t=this;return jf((function(n){var o=n.roles,a=n.userCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().setRoles({roles:o,userCode:a})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return jf((function(e){return void 0===e&&(e=null),dh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)},exports.useSmartRoutingEditWorkflowName=function(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),jf((function(e){var n=e.payload;return dh.getInstance().multiAccountDeclinedGroupCreate(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingRemoveDeclinedGroup=function(t,n){return void 0===n&&(n={}),jf((function(e){var n=e.declinedGroupCode;return dh.getInstance().removeDeclinedGroup(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingSimulateTransaction=function(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),jf((function(e){return dh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),jf((function(e){return void 0===e&&(e=!1),dh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),jf((function(e){return void 0===e&&(e=null),dh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),jf((function(t){return dh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateTutorial=function(e){var t=e.accountCode;return jf((function(e){return void 0===e&&(e=null),dh.getInstance().updateSmartRoutingTutorial(t,e||"").then((function(e){return null==e?void 0:e.data}))}),e.options)},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useUnInviteUsers=function(){return jf((function(e){var t=e.userCode;return dh.getInstance().unInviteUsers({userCode:t})}))},exports.useUnInviteUsersV2=function(){return jf((function(e){var t=e.userCode,n=e.organizationCode;return dh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))},exports.useUnrollUser=function(e){return jf((function(){return dh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUnrollUserV2=function(){return jf((function(e){return dh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateCheckoutPaymentMethods=function(){return jf((function(e){var t=e.paymentMethod,n=e.checkoutCode;return dh.getInstance().updateIsActivePaymentMethod(n,t).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateCheckoutTemplate=function(){return jf((function(e){var t=e.accountCode,n=e.template;return dh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateIsActiveCheckout=function(e){return jf((function(e){return dh.getInstance().updateIsActiveCheckout(e)}),e)},exports.useUpdateMFAConfig=function(){return jf((function(e){var t=e.payload,n=e.organizationCode;return dh.getInstance().updateMFAConfig(t,n)}))},exports.useUpdateOrganizationStatus=function(){return jf(["patch-organizations"],(function(){return dh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateProfile=function(e){return jf((function(e){return dh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return jf(["UPDATE/reconciliation/alerts"],(function(e){return dh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){_f.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return jf((function(){return dh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useUpdateReportTemplate=function(e){return jf((function(){return dh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateSamlConfig=function(){return jf((function(e){return dh.getInstance().updateSamlConfig(e)}))},exports.useUpdateScheduledReport=function(){return jf((function(e){var t=e.reportCode,n=e.payload;return dh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useUpdateStylingTheme=function(){return jf((function(e){var t=e.accountCode,n=e.theme;return dh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateWebhook=function(e){return jf((function(e){var t=e.code,n=e.payload;return dh.getInstance().updateWebhook(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateWebhookV2=function(e){return jf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return dh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFile=function(e){var t=e.handleSetProgress;return jf((function(e){return dh.getInstance().uploadBatchRefunds({payload:e,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useUploadBatchRefundsFileV2=function(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=h.useState(0),i=a[0],s=a[1],r=h.useRef({cancel:function(){return null}}),c=jf(["upload-file-chargeback",t],(function(e){var t=dh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),a=t.promise,i=t.cancel;return r.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:r.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return jf((function(e){return dh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=h.useRef({cancel:function(){return null}}),t=jf(["upload-file"],(function(t){var n=dh.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}},exports.useValiateAllowlistItems=function(){return jf(["validate-allowlist-items"],(function(e){return dh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.useValidateBlockListItems=function(){return jf(["valiate-blacklist-items"],(function(e){return dh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useValidateConnection=function(){return jf(["validate-connection"],(function(e){var t=e.connectionCode;return dh.getInstance().postSmartRoutingValidateConnection(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useValidateCredentials=function(){return jf((function(e){return dh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.useValidateOrgName=function(){return jf((function(e){return dh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useValidatePasswordStatus=function(){return jf((function(){return dh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))},exports.useViewMoreMetrics=function(e,t){return wf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return dh.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})};
240
+ const Df=7,qf=6,Mf=5,Nf=4,Ff=3,Uf=2,Bf=1,Gf=0;function Vf(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Bf,!n.accessors){const o=Wf(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=Qf(a),s=$f(e,a);for(let e=0,t=s.length;e<t;e++)n.push({itemValue:s[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Gf,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let s=Wf(o.itemValue,t,n);const{minRanking:r,maxRanking:c,threshold:u=n.threshold}=o.attributes;s<r&&s>=Bf?s=r:s>c&&(s=c),s=Math.min(s,c),s>=u&&s>i.rank&&(i.rank=s,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function Wf(e,t,n){return e=Hf(e,n),(t=Hf(t,n)).length>e.length?Gf:e===t?Df:(e=e.toLowerCase())===(t=t.toLowerCase())?qf:e.startsWith(t)?Mf:e.includes(` ${t}`)?Nf:e.includes(t)?Ff:1===t.length?Gf:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Uf: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 Bf+a*o}const s=a(t[0],e,0);if(s<0)return Gf;o=s;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Gf}const r=o-s;return i(r)}(e,t)}function Hf(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Lf,(e=>zf[e]))),e}function $f(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 Kf={maxRanking:1/0,minRanking:-1/0};function Qf(e){return"function"==typeof e?Kf:{...Kf,...e}}function Jf(e,t){const[n,o]=g.useState();g.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,g.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 Yf,Xf=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}(),Zf=function(){function e(e){this.generateIdentifier=e,this.kv=new Xf}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}(),eg=(Yf=function(e,t){return Yf=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])},Yf(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}Yf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),tg=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return eg(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}(Zf),ng=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s};function og(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 ag(e,t){Object.entries(e).forEach((function(e){var n=ng(e,2),o=n[0],a=n[1];return t(a,o)}))}function ig(e,t){return-1!==e.indexOf(t)}function sg(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var rg=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return og(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),cg=function(e){return void 0===e},ug=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},lg=function(e){return ug(e)&&0===Object.keys(e).length},pg=function(e){return Array.isArray(e)},dg=function(e){return e instanceof Map},mg=function(e){return e instanceof Set},hg=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},fg=function(e){return"number"==typeof e&&isNaN(e)},gg=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||cg(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||hg(e)},yg=function(e){return e.replace(/\./g,"\\.")},vg=function(e){return e.map(String).map(yg).join(".")},bg=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},kg=function(){return kg=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},kg.apply(this,arguments)},xg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s},wg=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function jg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Cg=[jg(cg,"undefined",(function(){return null}),(function(){})),jg((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)})),jg((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),jg((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})),jg((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)})),jg(mg,"set",(function(e){return wg([],xg(e.values()))}),(function(e){return new Set(e)})),jg(dg,"map",(function(e){return wg([],xg(e.entries()))}),(function(e){return new Map(e)})),jg((function(e){return fg(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return fg(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),jg((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),jg((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function Eg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var _g=Eg((function(e,t){return!!hg(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})),Sg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Rg=Eg((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return wg([],xg(e))}),(function(e,t){var n=Sg[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Tg(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Ag=Eg(Tg,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return kg({},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)})),Ig=Eg((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)})),Og=[Ag,_g,Ig,Rg],zg=function(e,t){var n=sg(Og,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=sg(Cg,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Pg={};Cg.forEach((function(e){Pg[e.annotation]=e}));var Lg=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Dg(e){if(ig(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ig(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ig(e,"constructor"))throw new Error("constructor is not allowed as a property")}var qg=function(e,t,n){if(Dg(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(pg(o))o=o[+i];else if(ug(o))o=o[i];else if(mg(o)){o=Lg(o,s=+i)}else if(dg(o)){if(a===t.length-2)break;var s=+i,r=0==+t[++a]?"key":"value",c=Lg(o,s);switch(r){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(pg(o)?o[+u]=n(o[+u]):ug(o)&&(o[u]=n(o[u])),mg(o)){var l=Lg(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(dg(o)){s=+t[t.length-2];var d=Lg(o,s);switch(r=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},Mg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s},Ng=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Fg(e,t,n){if(void 0===n&&(n=[]),e)if(pg(e)){var o=Mg(e,2),a=o[0],i=o[1];i&&ag(i,(function(e,o){Fg(e,t,Ng(Ng([],Mg(n)),Mg(bg(o))))})),t(a,n)}else ag(e,(function(e,o){return Fg(e,t,Ng(Ng([],Mg(n)),Mg(bg(o))))}))}function Ug(e,t,n){return Fg(t,(function(t,o){e=qg(e,o,(function(e){return function(e,t,n){if(!pg(t)){var o=Pg[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return _g.untransform(e,t,n);case"class":return Ag.untransform(e,t,n);case"custom":return Ig.untransform(e,t,n);case"typed-array":return Rg.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Bg(e,t){function n(t,n){var o=function(e,t){Dg(t);for(var n=0;n<t.length;n++){var o=t[n];if(mg(e))e=Lg(e,+o);else if(dg(e)){var a=+o,i=0==+t[++n]?"key":"value",s=Lg(e,a);switch(i){case"key":e=s;break;case"value":e=e.get(s)}}else e=e[o]}return e}(e,bg(n));t.map(bg).forEach((function(t){e=qg(e,t,(function(){return o}))}))}if(pg(t)){var o=Mg(t,2),a=o[0],i=o[1];a.forEach((function(t){e=qg(e,bg(t),(function(){return e}))})),i&&ag(i,n)}else ag(t,n);return e}var Gg=function(e,t,n,o,a,i,s){var r;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===s&&(s=new Map);var c=gg(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=s.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return ug(e)||pg(e)||dg(e)||mg(e)||Tg(e,t)}(e,n)){var l=zg(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||s.set(e,p),p}if(ig(i,e))return{transformedValue:null};var d=zg(e,n),m=null!==(r=null==d?void 0:d.value)&&void 0!==r?r:e,h=pg(m)?[]:{},f={};ag(m,(function(r,c){var u=Gg(r,t,n,o,Ng(Ng([],Mg(a)),[c]),Ng(Ng([],Mg(i)),[e]),s);h[c]=u.transformedValue,pg(u.annotations)?f[c]=u.annotations:ug(u.annotations)&&ag(u.annotations,(function(e,t){f[yg(c)+"."+t]=e}))}));var g=lg(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||s.set(e,g),g};function Vg(e){return Object.prototype.toString.call(e).slice(8,-1)}function Wg(e){return"Array"===Vg(e)}function Hg(e,t={}){if(Wg(e))return e.map((e=>Hg(e,t)));if(!function(e){if("Object"!==Vg(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(Wg(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,Hg(e[o],t),e,t.nonenumerable),n}),{})}var $g=function(){return $g=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},$g.apply(this,arguments)},Kg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.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 s},Qg=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Jg=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new tg,this.symbolRegistry=new Zf((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new rg,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Gg(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=$g($g({},o.meta),{values:n.annotations}));var a,i,s,r,c=(a=t,i=this.dedupe,s={},r=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=Mg(e),n=t[0],o=t.slice(1);0===n.length?r=o.map(vg):s[vg(n)]=o.map(vg)}})),r?lg(s)?[r]:[r,s]:lg(s)?void 0:s);return c&&(o.meta=$g($g({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Hg(t);return(null==n?void 0:n.values)&&(o=Ug(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Bg(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($g({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,Qg([],Kg(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 Yg={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Xg=g.createContext(Yg);function Zg({theme:e,...t}){return g.createElement(Xg.Provider,Of({value:e},t))}function ey({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 ty(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function ny(e,t,n={}){return g.forwardRef((({style:o,...a},i)=>{const s=g.useContext(Xg),r=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=g.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return g.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,s):n}:e),{});return g.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...r},ref:i})}))}const oy=(e,t=!1)=>{const{json:n}=Jg.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ay=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,iy=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,sy={"Status > Last Updated":(e,t)=>ay(e)===ay(t)?iy(e,t):ay(e)>ay(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":iy},ry=500,cy={top:"bottom",bottom:"top",left:"right",right:"left"};function uy(e){return["left","right"].includes(e)}function ly(e){return cy[e]}function py(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function dy(e="bottom"){const t=uy(e),n=ly(e),o=py("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 my=ny("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"}}),hy=ny("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),fy=ny("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"}))),gy=ny("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),yy=ny("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),vy=ny("code",{fontSize:".9em",color:"inherit",background:"inherit"}),by=ny("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),ky=ny("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 xy({text:e}){return g.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const wy=ny("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),jy=ny("span",{color:"white"}),Cy=ny("button",{cursor:"pointer",color:"white"}),Ey=ny("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),_y=({value:e})=>{const[t,n]=g.useState("NoCopy");return g.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Jg.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?g.createElement(Iy,null):"SuccessCopy"===t?g.createElement(zy,null):g.createElement(Oy,null))},Sy=ny("span",((e,t)=>({color:t.danger}))),Ry=ny("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ty=ny("span",{color:"grey",fontSize:".7em"}),Ay=({expanded:e,style:t={}})=>g.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Iy=()=>g.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},g.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"}),g.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"}))),Oy=()=>g.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},g.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"})),g.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),zy=()=>g.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},g.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},g.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 Py=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:r=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=g.useState([]);return g.createElement(wy,{key:t},a.length?g.createElement(g.Fragment,null,g.createElement(Ey,{onClick:()=>c()},g.createElement(Ay,{expanded:s})," ",t," ",g.createElement(Ty,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),r?g.createElement(_y,{value:n}):null,s?1===a.length?g.createElement(Ry,null,o.map(e)):g.createElement(Ry,null,a.map(((t,n)=>g.createElement("div",{key:n},g.createElement(wy,null,g.createElement(Cy,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},g.createElement(Ay,{expanded:s})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?g.createElement(Ry,null,t.map(e)):null))))):null):g.createElement(g.Fragment,null,g.createElement(jy,null,t,":")," ",g.createElement(Sy,null,oy(n))))};function Ly({value:e,defaultExpanded:t,renderer:n=Py,pageSize:o=100,copyable:a=!1,...i}){const[s,r]=g.useState(Boolean(t)),c=g.useCallback((()=>r((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=>g.createElement(Ly,Of({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Dy(e){return g.createElement("svg",Of({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),g.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(-33.000000, 0.000000)"},g.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) "}),g.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"}),g.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 qy=(e,t,n=!1)=>pf.useSyncExternalStore(g.useCallback((t=>n?()=>{}:e.subscribe(Vh.batchCalls(t))),[e,n]),t,t),My=g.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:s,onPositionChange:r,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=gf({context:i}),y=f.getQueryCache(),[v,b]=Jf("reactQueryDevtoolsSortFn",Object.keys(sy)[0]),[k,x]=Jf("reactQueryDevtoolsFilter",""),[w,j]=Jf("reactQueryDevtoolsBaseSort",1),C=g.useMemo((()=>sy[v]),[v]),E=qy(y,(()=>y.getAll().length),!n),[_,S]=Jf("reactQueryDevtoolsActiveQueryHash",""),R=g.useMemo((()=>{const e=y.getAll();if(0===E)return[];const t=k?e.filter((e=>Vf(e.queryHash,k).passed)):[...e];return C?t.sort(((e,t)=>C(e,t)*w)):t}),[w,C,k,E,y]),[T,A]=g.useState(!1);return g.createElement(Zg,{theme:Yg},g.createElement(my,Of({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:ry,position:"relative",...d.style}}),g.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Yg.backgroundAlt+" "+Yg.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: "+Yg.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Yg.gray+";\n border-radius: .5em;\n border: 3px solid "+Yg.backgroundAlt+";\n }\n "}}),g.createElement("div",{style:dy(u),onMouseDown:s}),n&&g.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Yg.grayAlt,display:"flex",flexDirection:"column"}},g.createElement("div",{style:{padding:".5em",background:Yg.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},g.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"}},g.createElement(Dy,{"aria-hidden":!0}),g.createElement(xy,{text:"Close React Query Devtools"})),g.createElement("div",{style:{display:"flex",flexDirection:"column"}},g.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},g.createElement(Fy,{queryCache:y}),u&&r?g.createElement(ky,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>r(e.target.value)},g.createElement("option",{value:"left"},"Left"),g.createElement("option",{value:"right"},"Right"),g.createElement("option",{value:"top"},"Top"),g.createElement("option",{value:"bottom"},"Bottom")):null),g.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},g.createElement(by,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),g.createElement(ky,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(sy).map((e=>g.createElement("option",{key:e,value:e},"Sort by ",e)))),g.createElement(fy,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),g.createElement(fy,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),g.createElement(fy,{type:"button",onClick:()=>{T?(qh.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(qh.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"}},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Yg.danger:"currentColor",fill:"none"},T?g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.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"}),g.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"}),g.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),g.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),g.createElement(xy,{text:T?"Restore offline mock":"Mock offline behavior"}))))),g.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>g.createElement(Uy,{queryKey:e.queryKey,activeQueryHash:_,setActiveQueryHash:S,key:e.queryHash,queryCache:y}))))),_&&n?g.createElement(Ny,{activeQueryHash:_,queryCache:y,queryClient:f,errorTypes:p}):null,c?g.createElement(fy,Of({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))})),Ny=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const s=qy(e,(()=>e.getAll().find((e=>e.queryHash===t)))),r=qy(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=qy(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=qy(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=h.useMemo((()=>{if(s&&null!=r&&r.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=r.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==r?void 0:r.error,o]);if(!s||!r)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return g.createElement(hy,null,g.createElement("div",{style:{padding:".5em",background:Yg.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),g.createElement("div",{style:{padding:".5em"}},g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},g.createElement(vy,{style:{lineHeight:"1.8em"}},g.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},oy(s.queryKey,!0))),g.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:ey({queryState:r,isStale:c,observerCount:u,theme:Yg}),flexShrink:0}},ty(s))),g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",g.createElement(vy,null,u)),g.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",g.createElement(vy,null,new Date(r.dataUpdatedAt).toLocaleTimeString()))),g.createElement("div",{style:{background:Yg.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),g.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},g.createElement(fy,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(By)},disabled:"fetching"===r.fetchStatus,style:{background:Yg.active}},"Refetch")," ",g.createElement(fy,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Yg.warning,color:Yg.inputTextColor}},"Invalidate")," ",g.createElement(fy,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Yg.gray}},"Reset")," ",g.createElement(fy,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Yg.danger}},"Remove")," ",g.createElement(fy,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Yg.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?g.createElement(fy,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):p()},style:{background:Yg.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):g.createElement("label",null,"Trigger error:",g.createElement(ky,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},g.createElement("option",{key:"",value:""}),o.map((e=>g.createElement("option",{key:e.name,value:e.name},e.name)))))),g.createElement("div",{style:{background:Yg.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Ly,{label:"Data",value:r.data,defaultExpanded:{},copyable:!0})),g.createElement("div",{style:{background:Yg.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Ly,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},Fy=({queryCache:e})=>{const t=qy(e,(()=>e.getAll().filter((e=>"fresh"===ty(e))).length)),n=qy(e,(()=>e.getAll().filter((e=>"fetching"===ty(e))).length)),o=qy(e,(()=>e.getAll().filter((e=>"paused"===ty(e))).length)),a=qy(e,(()=>e.getAll().filter((e=>"stale"===ty(e))).length)),i=qy(e,(()=>e.getAll().filter((e=>"inactive"===ty(e))).length));return g.createElement(gy,null,g.createElement(yy,{style:{background:Yg.success,opacity:t?1:.3}},"fresh ",g.createElement(vy,null,"(",t,")"))," ",g.createElement(yy,{style:{background:Yg.active,opacity:n?1:.3}},"fetching ",g.createElement(vy,null,"(",n,")"))," ",g.createElement(yy,{style:{background:Yg.paused,opacity:o?1:.3}},"paused ",g.createElement(vy,null,"(",o,")"))," ",g.createElement(yy,{style:{background:Yg.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",g.createElement(vy,null,"(",a,")"))," ",g.createElement(yy,{style:{background:Yg.gray,opacity:i?1:.3}},"inactive ",g.createElement(vy,null,"(",i,")")))},Uy=g.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,s,r;const c=null!=(a=qy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=qy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=qy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(s=qy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,d=null!=(r=qy(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?r:0;return u?g.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Yg.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},g.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:ey({queryState:u,isStale:l,observerCount:d,theme:Yg}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?g.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Yg.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,g.createElement(vy,{style:{padding:".5em"}},""+c)):null}));function By(){}Uy.displayName="QueryRow";const Gy="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:s,styleNonce:r,panelPosition:c="bottom",errorTypes:u=[]}){const l=g.useRef(null),p=g.useRef(null),[d,m]=Jf("reactQueryDevtoolsOpen",e),[h,f]=Jf("reactQueryDevtoolsHeight",ry),[y,v]=Jf("reactQueryDevtoolsWidth",ry),[b="bottom",k]=Jf("reactQueryDevtoolsPanelPosition",c),[x,w]=g.useState(!1),[j,C]=g.useState(!1),E=function(){const e=g.useRef(!1),t=g.useCallback((()=>e.current),[]);return g.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();g.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),g.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]),g.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=py("padding",b),n=uy(b),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?y: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,b,h,y]);const{style:_={},...S}=t,{style:R={},onClick:T,...A}=o,I=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:s}){const r=ly(e),c=py("border",r),u=uy(e);return{...s,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:r,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:ry}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:ry}}}({position:b,devtoolsTheme:Yg,isOpen:x,height:h,width:y,isResizing:j,panelStyle:_});return E()?g.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},g.createElement(Zg,{theme:Yg},g.createElement(My,Of({ref:p,context:s,styleNonce:r,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},S,{style:I,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=uy(b);C(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,s=t.clientY;let r=0;const c=e=>{e.preventDefault(),n?(r=a+("right"===b?i-e.clientX:e.clientX-i),v(r)):(r=o+("bottom"===b?s-e.clientY:e.clientY-s),f(r)),m(!(r<70))},u=()=>{j&&C(!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:g.createElement("button",Of({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}}),g.createElement(Dy,{"aria-hidden":!0}),g.createElement(xy,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Vy,Wy={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(Vy=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",Vy.ETIMEDOUT="ETIMEDOUT",Vy.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var Hy=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Hy&&function(){e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:if(!ya())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ha.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),console.error("Error starting MSW:",t),[3,4];case 4:return[2]}}))}))}(),exports.ALL_FEATURE_FLAGS=If,exports.Api=lh,exports.ApiProvider=function(t){var n=this,o=t.children,a=process.env.ENVIRONMENT,i=h.useMemo((function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"}),[process.env.ENVIRONMENT]),s=h.useState(!1),r=s[0],c=s[1],u=h.useCallback((function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o,a,s,r;return e.__generator(this,(function(c){switch(c.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",s=localStorage.getItem("x-organization-code"),r=s?JSON.parse(s).value:"",[4,dh.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":a||i,"x-organization-code":r,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return c.sent(),[2]}}))}))}),[i,c]);h.useEffect((function(){return addEventListener("ACCOUNT_CHANGED",u),function(){window.removeEventListener("ACCOUNT_CHANGED",u)}}),[u]);var l=h.useCallback((function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o,a,s,r,u,l;return e.__generator(this,(function(p){switch(p.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),s=localStorage.getItem("account"),r=s?null===(l=JSON.parse(s).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,dh.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":t||i,"x-organization-code":u,"x-account-code":r,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:p.sent(),_f.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),p.label=2;case 2:return[2]}}))}))}),[i,c]);return h.useEffect((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?l(n):"token"===t.key&&l(e)}})),l(e)}),[c,l]),r?React.createElement(yf,{client:_f},o,React.createElement(Gy,{initialIsOpen:!1})):React.createElement("div",{style:Wy})},exports.ApiSingleton=dh,exports.getQueryKeyGetNameAndIcon=Rf,exports.getQueryKeyRequiredFields=Tf,exports.queryCache=Ef,exports.queryClient=_f,exports.use3DSExcemptions=function(){var t=this;return wf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().get3DSExcemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),jf((function(e){return dh.getInstance().generateAIWorkflowRoutes(t,e).then((function(e){return null==e?void 0:e.data}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAllFeatureFlags=function(t){var n=this,o=wf({queryKey:["all-feature-flags",Object.values(t).filter(Boolean)],queryFn:function(){return e.__awaiter(n,void 0,void 0,(function(){var n,o;return e.__generator(this,(function(e){return n=dh.getInstance(),o={names:If,body:t},[2,n.getFeatureFlagIdAll(o).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!t.account_code&&!!t.organization_code&&!!t.email,useErrorBoundary:!1}),a=gf();return h.useEffect((function(){a.setQueryData(["cached-feature-flags"],o)}),[o,a]),o},exports.useAllowListDetail=function(e,t,n){return wf(["allow-list-detail",e],(function(){return dh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})},exports.useArchiveConnection=function(){return jf(["auth-connection"],(function(e){var t=e.payload,n=e.connectionCode;return dh.getInstance().postArchiveConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useBlackListDetail=function(e,t,n,o,a,i){return wf(["black-list-detail",e,t,o,a,i],(function(){return dh.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})},exports.useCachedFeatureFlag=function(e){var t=gf();return wf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})},exports.useCancelReport=function(){return jf((function(e){return dh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useChangePassword=function(t){var n=this;return jf((function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().changePassword(t).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))},exports.useChangePasswordV2=function(){var t=this;return jf((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().changePasswordV2(n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))},exports.useChangePaymentsWebhook=function(){return jf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return dh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeState=function(){return jf((function(){return dh.getInstance().getNotification().then((function(e){return null==e?void 0:e.data}))}))},exports.useChangeStatusBlackList=function(){return jf(["change-blacklist"],(function(e){return dh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChangeStatusItemBlackList=function(){return jf(["change-blacklist-item"],(function(e){return dh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useChargebacksUpload=function(){return jf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return dh.getInstance().uploadChargebacks(t,n,o,a)}))},exports.useConfirmedOtpForEnrollment=function(e){return jf((function(){return dh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useConfirmedOtpMfa=function(){return jf((function(e){return dh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useConversionRateOverview=function(t,n,o){return void 0===o&&(o={}),wf(["conversion-rate-overview",t,n],(function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsConversionRateOverview(n,t)];case 1:return[2,e.sent()]}}))}))}),e.__assign({useErrorBoundary:!1},o))},exports.useConversionRateOverviewFraud3ds=function(t,n,o){return void 0===o&&(o={}),wf(["conversion-rate-overview-fraud-3ds",t,n],(function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsConversionRateOverviewFraud3ds(n,t)];case 1:return[2,e.sent()]}}))}))}),e.__assign({useErrorBoundary:!1},o))},exports.useCountRowsForReport=function(){return jf((function(e){return dh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useCreateMonitorTemplate=function(e){return jf((function(t){return dh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))},exports.useCreateMonitorThreshold=function(e){return jf((function(t){return dh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},exports.useCreateNotification=function(e){return jf((function(){return dh.getInstance().createNotificacion(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateOperationTransaction=function(){return jf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return dh.getInstance().createOperationTransaction(t,n,o,a)}))},exports.useCreatePaymentLinks=function(){return jf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateProductsByAccount=function(){return jf(["post-products-account"],(function(e){var t=e.payload;return dh.getInstance().postCreateProducts({payload:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateReconciliationAlert=function(){return jf(["POST/reconciliation/alerts"],(function(e){return dh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){_f.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return jf((function(){return dh.getInstance().createReconciliationReportTemplate(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,o;return e.__generator(this,(function(a){switch(a.label){case 0:return[4,_f.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return a.sent(),n=null===(o=_f.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,_f.setQueryData(["GET/reconciliation/reports/templates"],(function(n){return{templates:e.__spreadArray(e.__spreadArray([],n.templates,!0),[t],!1)}})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){_f.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){_f.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return jf((function(e){return dh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateReport=function(){return jf((function(e){return dh.getInstance().createReport(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateReportTemplate=function(t){var n=this;return jf((function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().createReportTemplate(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(t){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,_f.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=_f.getQueryData(["GET/reports/templates"]),_f.setQueryData(["GET/reports/templates"],(function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)})),[2,{previousTemplates:n}]}}))}))},onError:function(e,t,n){_f.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){_f.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return jf((function(e){return dh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useCreateRoles=function(){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return jf((function(e){return dh.getInstance().createSamlConfig(e)}))},exports.useCreateScheduledReport=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))},exports.useCreateUserAuth0=function(){return jf((function(e){return dh.getInstance().createUserAuth0(e)}))},exports.useCreateWorkflow=function(t,n,o){var a=this;return void 0===o&&(o=null),jf((function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().postSmartRoutingCreateWorkflow(t,n).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)},exports.useDashboardInsights=function(e,t,n){return wf(["data-insights",e],(function(){return("LOCAL"===process.env.ENVIRONMENT||"DEV"===process.env.ENVIRONMENT||localStorage.getItem("log_metrics"))&&(console.log("%c ".concat(e.key_metric),"background: #222; color: #bada55"),console.log(e)),dh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:n,enabled:!!e.account_code&&!!t&&!!e.key_metric&&"Empty"!==e.currency_code,cacheTime:0,useErrorBoundary:!1})},exports.useDashboardInsightsIsolated=function(e,t){return wf(["get-isolated-metric",e],(function(){return dh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code,cacheTime:0,keepPreviousData:t,useErrorBoundary:!1})},exports.useDeleteAccountsUserMassive=function(){return jf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return dh.getInstance().deleteAccountsUserMassive(t,n,o)}))},exports.useDeleteAllowlistItem=function(){return jf(["delete-allowlist-item"],(function(e){return dh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeleteBlackListItem=function(){return jf(["delete-blacklist-item"],(function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return dh.getInstance().deleteBlackListItem({black_list_code:t,account_code:n,item:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteBlackListType=function(){return jf(["delete-blacklist"],(function(e){var t=e.black_list_code;return dh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteBlockListItem=function(){return jf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return dh.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}))}))},exports.useDeleteConnection=function(){return jf(["delete-connection"],(function(e){return dh.getInstance().deleteConnection(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteCustomizedApiKeys=function(){return jf((function(e){var t=e.code;return dh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useDeletePaymentLink=function(){return jf(["post-delete-payment-link"],(function(e){var t=e.code;return dh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteReconciliationAlert=function(){return jf(["DELETE/reconciliation/alerts"],(function(e){return dh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){_f.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteRoles=function(){return jf((function(e){return dh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteSamlConfig=function(){return jf((function(){return dh.getInstance().deleteSamlConfig()}))},exports.useDeleteScheduledReport=function(){return jf((function(e){return dh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useDeleteUserTeam=function(){var t=this;return jf((function(n){var o=n.userCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().deleteUserTeam({userCode:o})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.useDeleteUserTeamV2=function(){return jf((function(e){var t=e.userCode,n=e.organizationCode;return dh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useDeleteVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useDeleteWebhook=function(e){return jf((function(e){var t=e.code;return dh.getInstance().deleteWebhook(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDeleteWebhookV2=function(e){return jf((function(e){var t=e.code,n=e.accountCode;return dh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useEditPaymentLinks=function(){return jf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return dh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))},exports.useEditRoles=function(){var t=this;return jf((function(n){var o=n.payload,a=n.id,i=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}),{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return wf(["email-verification",e],(function(){return dh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useExcludeUsers=function(){return jf((function(e){var t=e.payload,n=e.organizationCode;return dh.getInstance().mfaExcludeUsers(t,n)}))},exports.useFeatureFlags=function(t){var n=this,o=Object.values(t).filter(Boolean);return wf(["feature-flags",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getFeatureFlagId(t).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o.length>1,useErrorBoundary:!1})},exports.useFirebaseUserSubscribe=function(e){return jf((function(e){var t=e.payload;return dh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGetAccounts=function(e){var t,n=Sf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return wf({queryKey:["accounts",o],queryFn:function(){return dh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,cacheTime:3e3,enabled:!!o})},exports.useGetAccountsByUser=function(e){return wf(["accountsV2-by-user",e],(function(){return e?dh.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})},exports.useGetAccountsV2=function(e){return wf(["accountsV2",e],(function(){return dh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})},exports.useGetAllConfigRules=function(){return wf(["config-rules"],(function(){return dh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetAllOrganizations=function(){return wf(["fetch-all-organizations"],(function(){return dh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/advancements/list",t,n],(function(){return dh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/agenda/list",t,n],(function(){return dh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/alerts/list",t,n],(function(){return dh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/fees/list",t,n],(function(){return dh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/sales/list",t,n],(function(){return dh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return wf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return dh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetAllowedIps=function(){return wf(["developers-get-allowed-ips"],(function(){return dh.getInstance().getAllowedIps().then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{enabled:!1,cacheTime:0})},exports.useGetAuditEvents=function(e){return wf(["events",e],(function(){return dh.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})},exports.useGetAuditLogsFilters=function(){return wf(["/cms/audit-logs-filters"],(function(){return dh.getInstance().useGetAuditLogsFilters().then((function(e){return Qm(e)?eh:null==e?void 0:e.data})).catch((function(){return eh}))}))},exports.useGetAuditMonitorEventDetail=function(e){return wf(["audit-monitor-event-detail",e],(function(){return dh.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})},exports.useGetBatchRefundProcessedFileDownload=function(){var t=this;return jf((function(n){var o=n.batchRefundId,a=n.organizationCode,i=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return jf((function(n){var o=n.batchRefundId,a=n.organizationCode,i=n.accountCode;return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getBatchRefundUserFileDownload(o,a,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var o=this;return void 0===t&&(t=26),void 0===n&&(n=0),wf(["batch-refunds",t,n],(function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getBatchRefunds(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})},exports.useGetBlackList=function(e){return wf(["get-black-list",e],(function(){return dh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})},exports.useGetBlockListSummary=function(e,t,n){return wf(["get-block-list-summary",e,t,n],(function(){var o=dh.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})},exports.useGetCardBrands=function(){return wf(["GET/catalog/card-brands"],(function(){return dh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetCheckoutTemplate=function(e){var t=e.accountCode;return wf(["checkouts-template"],(function(){return dh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetCheckouts=function(e){var t=e.accountCode;return wf(["checkouts",t],(function(){return dh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})},exports.useGetConditionalConfigRules=function(){return jf((function(e){return dh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetConfigAllowlist=function(e,t){return wf(["get-cofig-allow-list",e],(function(){return dh.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})},exports.useGetConnections=function(){return wf(["connections"],(function(){return dh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetConnectionsByPaymentMethod=function(e){var t=e.accountCode,n=e.paymentMethod;return wf(["fetch-connections-by-payment-method",n,t],(function(){return dh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetCountriesConfigPaymentLink=function(e){return void 0===e&&(e=!0),wf(["countries",e],(function(){return dh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode;return wf(["developers"],(function(){return dh.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCredentialsMFA=function(){return jf((function(t){var n=t.password,o=t.accountCode;return dh.getInstance().getDeveloperCredentials(n,o).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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}}))}))},exports.useGetCredentialsValidatePassword=function(t){var n=t.password;return wf(["developers"],(function(){return dh.getInstance().getDeveloperCredentialsValidatePassword(n).then((function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCustomizedApiKeys=function(e){return wf(["fetch-customized-api-keys",e],(function(){return dh.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)})},exports.useGetCustomizedApiKeysAccounts=function(){return wf(["fetch-customized-api-keys-accounts"],(function(){return dh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return wf(["fetch-customized-api-keys-members"],(function(){return dh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return wf(["fetch-customized-api-keys-products"],(function(){return dh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})},exports.useGetCustomizedApiKeysShowToken=function(){return jf((function(e){var t=e.code;return dh.getInstance().getCustomizedApiKeysShowToken(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetCustomizedApiKeysToken=function(){return jf((function(e){var t=e.code,n=e.password;return dh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.useGetDashboardStaticContents=function(){return wf(["/cms/static-contents"],(function(){return dh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Qm(e)?th:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})).catch((function(){return th}))}))},exports.useGetDialogs=function(){return wf(["dialogs"],(function(){return dh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1,retryDelay:2e3})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),wf(["reports/".concat(e)],(function(){return dh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return jf((function(){return dh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetHashPylon=function(){var t=this;return wf(["fetch-hash-pylon"],(function(){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetIndividualMFAStatus=function(){return jf((function(){return dh.getInstance().getMFAStatus().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetInsightsReport=function(e){return wf(["get-insights-reports",e],(function(){return dh.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})},exports.useGetInsightsReportAgain=function(e){return wf(["get-insights-reports-again",e],(function(){return dh.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})},exports.useGetIntegrationByAccount=function(e){var t=e.accountCode,n=e.organizationCode;return wf(["organizations-account-integrations"],(function(){return dh.getInstance().getIntegrationByAccount({accountCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!t})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=Sf(),a=wf(["organizations-account-integrations",t,n],(function(){return dh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled;return wf(["integration-params",t],(function(){return t.includes("undefined")?{}:dh.getInstance().getIntegrationParams({integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})},exports.useGetLocales=function(){return wf(["/cms/locales"],(function(){return dh.getInstance().getLocales().then((function(e){return Qm(e)?oh:e.data})).catch((function(){return oh}))}))},exports.useGetLoginMethods=function(){return wf({queryKey:["get-login-methods"],queryFn:function(){return dh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})},exports.useGetMFAConfig=function(e,t){var n=e.organizationCode;return wf(["mfa-config",n],(function(){return dh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAExcludedUsers=function(e,t){var n=e.organizationCode;return wf(["mfa-excluded-users",n],(function(){return dh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMFAStatus=function(e,t){return wf(["mfa-enforcement-status",e.accountCode],(function(){return dh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})},exports.useGetMembers=function(e){return wf(["fetch-members"],(function(){return dh.getInstance().getMembers(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0})},exports.useGetMembersV3=function(e){var t=e.organizationCode,n=Sf();return wf(["fetch-members-v3",t],(function(){return t?dh.getInstance().getMembersV3({organizationCode:n}).then((function(e){return null==e?void 0:e.data})):null}),{enabled:!!t,cacheTime:0})},exports.useGetMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o=Sf();return wf(["fetch-members-v4",t,n],(function(){return n?t?dh.getInstance().getMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data})):null:{}}),{enabled:!!t&&!!n,cacheTime:0})},exports.useGetMenu=function(){return wf(["menu"],(function(){return dh.getInstance().getMenu().then((function(e){return Qm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}))},exports.useGetMergedNotifications=function(){return wf(["notifications-merged"],(function(){return dh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})},exports.useGetNameAndIcon=function(e,t){var n=e.paymentMethodType,o=e.type;return wf(Rf({paymentMethodType:n,type:o}),(function(){return dh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetNotificationsAccount=function(e){return wf(["notifications-account",e],(function(){return dh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetNotificationsCustomer=function(e){return wf(["notifications-customer",e],(function(){return dh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumber=function(e){return wf(["notifications-number",e],(function(){return dh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetNotificationsNumberMutation=function(){return jf((function(e){return dh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetOrganization=function(){return wf(["fetch-organizations"],(function(){return dh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})},exports.useGetPayment=function(t){var n=t.enabled,o=void 0===n||n,a=e.__rest(t,["enabled"]);return wf(["fetch-payments-".concat(a.payment_code),a],(function(){return dh.getInstance().getPayment(a).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:500})},exports.useGetPaymentAndTrxStatuses=function(){return wf(["/payments/transaction/statuses"],(function(){return dh.getInstance().useGetPaymentAndTrxStatuses().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetPaymentFilters=function(e){return void 0===e&&(e=!0),wf(["payment-filters",e],(function(){return dh.getInstance().getPaymentFilters().then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetPaymentLinkByCode=function(e){return wf(["payment-link"],(function(){return dh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetPaymentLinks=function(e,t){return wf(["fetch-payment-links",e,t],(function(){return dh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodsAndProviders=function(){return wf(["/payment-methods/providers"],(function(){return dh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetPaymentMethodsAndProvidersActive=function(){return wf(["/payments/payment-methods/providers/active"],(function(){return dh.getInstance().getPaymentMethodsAndProvidersActive().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetPaymentMethodsByProvider=function(e){var t=e.provider;return wf(["/payment-methods/provider/".concat(t)],(function(){return dh.getInstance().getPaymentMethodsByProvider({provider:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetPaymentMetricsFilters=function(){return wf(["payment-metrics-filters"],(function(){return dh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return wf(["/payment/statuses/style"],(function(){return dh.getInstance().useGetPaymentStatusesStyles().then((function(e){return Qm(e)?Jm:null==e?void 0:e.data})).catch((function(){return Jm}))}))},exports.useGetPaymentTransactions=function(e,t){return wf(["payments/".concat(e,"/transactions"),t],(function(){return dh.getInstance().getPaymentTransactions(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:500})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return wf(["payment-transaction-details",t],(function(){return dh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})},exports.useGetPaymentTransactionsLazy=function(e){return wf(["payments/".concat(e,"/transactions/lazy")],(function(){return dh.getInstance().getPaymentTransactionsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e.response.data}))}),{enabled:!!e,cacheTime:500})},exports.useGetPaymentV2=function(t){var n=this,o=t.paymentCode,a=t.enabled,i=void 0===a||a,s=dh.getInstance();return wf(["get-payment-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,s.getPaymentV2(o).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:i,cacheTime:500})},exports.useGetPaymentsByPaymentLink=function(e,t){return wf(["fetch-payments-by-link-code",e],(function(){return dh.getInstance().getPaymentsByPaymentLink(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})},exports.useGetPaymentsMethodsByCountry=function(e){var t=Sf();return wf(["payment-methods",e],(function(){return dh.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})).catch((function(e){throw e}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})},exports.useGetPayoutDetail=function(e){return wf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=dh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})},exports.useGetPayoutHistoryDetail=function(e){var t=Sf();return wf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return dh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})},exports.useGetPayoutTransactionDetail=function(e){return wf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return dh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})},exports.useGetPermissions=function(e,t){return wf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),s=a&&JSON.parse(a);return((null==s?void 0:s.merlin)?null===(e=null==s?void 0:s.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}})))||[]}))},exports.useGetPermissionsCatalog=function(){return wf(["fetch-permissions-catalog"],(function(){return dh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useGetProductsByAccount=function(e){var t=e.accountCode;return wf(["products"],(function(){return dh.getInstance().getProductsByAccount({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetProfile=function(){return wf(["fetch-profile"],(function(){return dh.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})},exports.useGetProofOfCancel=function(t){var n=this,o=Sf();return wf(["GET/useGetProofOfCancel",o,t],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getProofOfCancel(t,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!t&&!!o,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=Sf();return wf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return dh.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return wf(["GET/v1/reconciliation/active"],(function(){return dh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return wf(["GET/reconciliation/agenda/insights",t,n],(function(){return dh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return wf(["GET-reconciliation-filters"],(function(){return dh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return wf(["fetch-reconciliation-metrics",e],(function(){return dh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactionStatusesStyles=function(){return wf(["/reconciliation/transaction/statuses/style"],(function(){return dh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Qm(e)?Xm:null==e?void 0:e.data})).catch((function(){return Xm}))}))},exports.useGetReconciliationTransactions=function(e,t){return wf(["fetch-reconciliation-transaction",e],(function(){return dh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetReconciliationsReportColumns=function(e,t,n){return wf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return dh.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReconciliationsReportTemplates=function(e){return wf(["GET/reconciliation/reports/templates"],(function(){return dh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetRefundPdf=function(t){var n=this,o=Sf();return wf(["getRefundPdf",t,o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getRefundPdf(t,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!t&&!!o,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){return wf(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return dh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e.__spreadArray(e.__spreadArray([],null==t?void 0:t.data,!0),[Af],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return wf(["GET/reports/templates"],(function(){return dh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})},exports.useGetReportsList=function(){return wf(["reports"],(function(){return dh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),wf(["reports-multi-env"],(function(){return dh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})},exports.useGetRequiredFields=function(e,t){var n=e.paymentMethodType,o=e.type;return wf(Tf({paymentMethodType:n,type:o}),(function(){return dh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useGetRoles=function(){return wf(["fetch-roles"],(function(){return dh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useGetRolesPermissions=function(){return wf(["fetch-rolespermissions"],(function(){return dh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetRoutingMonitorsTemplate=function(e,t){return wf(["fetch-routing-monitors-template",e],(function(){return dh.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})},exports.useGetRoutingMonitorsTemplates=function(e){return wf(["fetch-routing-monitors-templates",e],(function(){return dh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return jf((function(e){return dh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useGetSamlConfig=function(e){return wf(["fetch-organization-saml-config",e],(function(){return dh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return wf(["GET/scheduled-reports",e],(function(){return dh.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetSettlements=function(e,t){return wf(["fetch-reconciliation-settlements",e],(function(){return dh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useGetSettlementsBody=function(e,t){return wf(["fetch-reconciliation-settlements-body",e],(function(){return dh.getInstance().getReconciliationSettlementsBody(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetSettlementsHeader=function(e,t){return wf(["fetch-reconciliation-settlements-header",e],(function(){return dh.getInstance().getReconciliationSettlementsHeader(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return wf(["smart-routing-condition-payment-method",e,t],(function(){return dh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})},exports.useGetSmartRoutingConditionTypes=function(e,t){return wf(["smart-routing-condition-types",e,t],(function(){return dh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return wf(["smart-routing-condition-types-values",t,e],(function(){return dh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})},exports.useGetSmartRoutingDataReport=function(e){return wf(["data-report",e],(function(){return dh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e){return wf(["smart-routing-decline-groups",e],(function(){return dh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e){return wf(["smart-routing-methods",e],(function(){return dh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingNextRoute=function(e,t,n){return wf(["smart-routing-next-route",e,n,t],(function(){return dh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useGetSmartRoutingPaymentRoute=function(e,t){return wf(["smart-routing-payment-route",e,t],(function(){return dh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return wf(["smart-routing-search-condition-values",t,n],(function(){return dh.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetSmartRoutingSimulateConditionTypeValues=function(e){return wf(["smart-routing-simulate-condition-type-values",e],(function(){return dh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingTutorial=function(e){return wf(["smart-routing-tutorial",e],(function(){return dh.getInstance().getSmartRoutingTutorial(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t){return wf(["smart-routing-workflow",t,e],(function(){return dh.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})},exports.useGetSmartRoutingWorkflowVersion=function(e){var t=e.accountCode,n=e.workflowVersionId;return wf(["smart-routing-workflow-version",n,t],(function(){return dh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSettings=function(e){var t=e.accountCode;return wf(["styling-settings",t],(function(){return dh.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})},exports.useGetStylingTheme=function(e){var t=e.accountCode;return wf(["styling-theme",t],(function(){return dh.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})},exports.useGetTeamsFiltersMembers=function(){var e=Sf();return wf(["teams-filters-members"],(function(){return dh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return wf(["timezone-catalog"],(function(){return dh.getInstance().useGetTimeZoneCatalog().then((function(e){return Qm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}))},exports.useGetTimezonePaymentLink=function(e){return wf(["timezone"],(function(){return dh.getInstance().getTimezone(e).then((function(e){return Qm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}),{enabled:!0,keepPreviousData:!0})},exports.useGetTokenForEnrollment=function(e){return jf((function(){return dh.getInstance().getMfaToken(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetTokenValidation=function(){return jf((function(e){var t=e.password,n=e.otp;return dh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))},exports.useGetTransactionDetails=function(e){var t=e.payment_code,n=e.transaction_code,o=e.enabled,a=void 0===o||o;return wf(["payments/".concat(t,"/transactions/").concat(n)],(function(){return dh.getInstance().getTransactionDetails({payment_code:t,transaction_code:n}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:500,enabled:a})},exports.useGetTransactionDetailsV2=function(t){var n=this,o=t.payment_code,a=t.enabled,i=void 0===a||a,s=dh.getInstance();return wf(["get-payment-transaction-details-v2",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!o&&i,cacheTime:0})},exports.useGetTransactionHistory=function(e){var t=e.transaction_code;return wf(["payment-filters",t],(function(){return dh.getInstance().getTransactionHistory({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return wf(["transaction-history",t],(function(){return dh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,o=t.transaction_code,a=t.enabled,i=void 0===a||a,s=dh.getInstance();return wf(["get-payment-transaction-raw-response",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]}))}))}),{enabled:!!o&&i,cacheTime:0})},exports.useGetTransactionStatusesStyles=function(){return wf(["/transaction/statuses/style"],(function(){return dh.getInstance().useGetTransactionStatusesStyles().then((function(e){return Qm(e)?Ym:null==e?void 0:e.data})).catch((function(){return Ym}))}))},exports.useGetTransactions=function(e){return wf(["GET/transactions",JSON.stringify(e)],(function(){return dh.getInstance().getTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.useGetValidateOpsgenieKey=function(e){return wf(["validate-opsgenie-key",e],(function(){return dh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})},exports.useGetWebhookParams=function(){return wf(["params-catalog"],(function(){return dh.getInstance().getWebhookParams().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetWebhookParamsV2=function(){return wf(["params-catalog"],(function(){return dh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))},exports.useGetWebhooks=function(e){var t=e.accountCode;return wf(["webhooks"],(function(){return dh.getInstance().getWebhooks({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetWebhooksV2=function(e){var t=e.accountCode;return wf(["webhooks"],(function(){return dh.getInstance().getWebhooksV2({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return wf(["webhooks-detail",t],(function(){return dh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})},exports.useGetWebhooksV3=function(e){var t=e.accountCode,n=e.name;return wf(["webhooks",t,n],(function(){return dh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetrics=function(e){return wf(["get-insights-conversion-rate-metrics",e],(function(){return dh.getInstance().getInsightsMetricsConversionRate(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})},exports.useInsightsConversionRateMetricsV2=function(e,t){return wf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return dh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,wf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return dh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFallbackMetrics=function(e){return wf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return dh.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningConversionRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),wf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}}))}))},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return wf(["get-insights-home-metrics",e],(function(){return dh.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})},exports.useInsightsOverviewMetrics=function(e){return wf(["get-insights-overview",e],(function(){return dh.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})},exports.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return wf(["get-insights-overview-v3",e,t],(function(){return dh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsTotalPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,wf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return dh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,wf(["get-insights-volume-metrics",t,e],(function(){return dh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,wf(["get-insights-volume-metrics-v2",t,e,n],(function(){return dh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsers=function(){return jf((function(e){return dh.getInstance().inviteUsers(e)}))},exports.useInviteUsersMultiaccount=function(){return jf((function(e){return dh.getInstance().inviteUsersV2(e,e.organizationCode)}))},exports.useInviteUsersMultiaccountMassive=function(){return jf((function(e){return dh.getInstance().inviteUsersMassive(e,e.organizationCode)}))},exports.useIsTesting=function(){var e=h.useState("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return h.useEffect((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}},exports.useLoginMethods=function(){return jf((function(e){return dh.getInstance().changeLoginMethods(e)}))},exports.useLoginSSO=function(e){return wf(["login-sso",e],(function(){return dh.getInstance().getLoginSSO(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.useNewPostConnection=function(){return jf(["new-post-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().newPostConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useNewPostConnectionValidate=function(){return jf(["new-post-connection-validate"],(function(){return dh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useOneBlackList=function(e){return wf(["get-one-black-list",e],(function(){return dh.getInstance().getOneBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})},exports.usePatchAccount=function(){return jf((function(e){var t=e.name,n=e.code,o=e.principal;return dh.getInstance().patchAccount({name:t,code:n,principal:o})}))},exports.usePatchAccountV2=function(){return jf((function(e){var t=e.name,n=e.code,o=e.principal;return dh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))},exports.usePatchAddAllowlistItems=function(){return jf(["post-add-allowlist-items"],(function(e){var t=e.payload;return dh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchAllowedIps=function(){return jf(["developers-patch-allowed-ips"],(function(t){return dh.getInstance().patchAllowedIps(t).then((function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null})).catch((function(t){return e.__assign(e.__assign({},t),{isError:!0})}))}),{cacheTime:0})},exports.usePatchAllowlist=function(){return jf(["patch-allowlist"],(function(e){var t=e.payload;return dh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchApiKeysEditNote=function(){return jf((function(e){var t=e.payload,n=e.code;return dh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlist=function(){return jf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return dh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchChangeStatusAllowlistItem=function(){return jf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return dh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePatchConnection=function(){return jf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return dh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePathCreateCustomizedApiKeys=function(){return jf((function(e){var t=e.payload,n=e.code;return dh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePathNotifications=function(){var t=this;return jf((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=Sf();return wf(["getPayoutsFilters",o],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().getPayoutsFilters(o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:t&&!!o})},exports.usePayoutsList=function(e){return wf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=dh.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})},exports.usePostAccount=function(){return jf((function(e){var t=e.name,n=e.principal;return dh.getInstance().postAccount(t,n)}))},exports.usePostAllowlistMultiAccount=function(e){return wf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return dh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})},exports.usePostApiKeysRoll=function(){return jf((function(e){var t=e.payload,n=e.code,o=e.password;return dh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.usePostAuditMonitors=function(e){return jf((function(e){var t=e.payload;return dh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return jf((function(n){return e.__awaiter(t,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().batchRefundByFile({payload:n}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})},exports.usePostBlackListBatch=function(e){var t=e.handleSetProgress;return jf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return dh.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}))}))},exports.usePostBlackListItems=function(){return jf(["post-blacklist-items"],(function(e){var t=e.payload;return dh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlackListMultiAccount=function(){return jf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return dh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostBlackListType=function(){return jf(["post-blacklist"],(function(e){var t=e.payload;return dh.getInstance().postBlackListType({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostBlockList=function(e,t,n,o){var a;return wf(["post-black-list",e],(function(){return dh.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})},exports.usePostCall=function(){return jf((function(e){return dh.getInstance().postCall(e)}))},exports.usePostChangeStatusConnection=function(){return jf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostConnection=function(){return jf(["post-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostConnectionMultiAccount=function(){return jf(["post-connection"],(function(e){var t=e.payload;return dh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostCreateAllowlistMultiAccount=function(){return jf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return dh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateCustomizedApiKeys=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateInsightsReport=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCreateRule=function(){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postCreateRule(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostCreateRuleMultiAccount=function(){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostCredentialsValidatePassword=function(){return jf((function(e){var t=e.passwordOtp;return dh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))},exports.usePostDefaultRoutes=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.usePostEditRule=function(){return jf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return dh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostFraudTransactions=function(t){var n=this;return wf(["POST/fraud-transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().postFraudTransactions(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0})},exports.usePostGetAllowlistItems=function(){return jf(["post-get-allowlist-items"],(function(e){var t=e.payload;return dh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostGetAllowlistMultiAccount=function(){return jf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return dh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))},exports.usePostMembersPaginated=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i=Sf();return wf(["fetch-post-members-v4",t,n,o,a],(function(){return dh.getInstance().postMembersPaginated({organizationCode:i,accountCodes:n,page:o,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,s=Sf();return wf(["fetch-post-members-v2",t,n,o,a,i],(function(){return dh.getInstance().postMembersPaginatedV2({organizationCode:s,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})},exports.usePostMembersV4=function(e){var t=e.organizationCode,n=e.accountCodes,o=Sf();return wf(["fetch-post-members-v4",t,n],(function(){return dh.getInstance().postMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0})},exports.usePostPaymentsEvaluated=function(e){return wf(["fetch-payments-evaluated",e],(function(){return dh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})},exports.usePostPaymentsLazy=function(t){var n=this;return wf(["fetch-payments-lazy",t],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().postPaymentsLazy(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!t&&Object.keys(t).length>0,cacheTime:0})},exports.usePostSlackMessageChannel=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostTransactions=function(t){var n=this;return wf(["POST/transactions",JSON.stringify(t)],(function(){return e.__awaiter(n,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,dh.getInstance().postTransactions(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!t,cacheTime:0})},exports.usePostUserSettings=function(){return jf((function(e){var t=e.payload;return dh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return jf(["pinned-sections"],(function(e){var t=e.payload;return dh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return jf((function(e){var t=e.payload,n=e.section;return dh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(t){var n=_f.getQueryData(["fetch-profile"]);t.data&&_f.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return jf((function(e){return dh.getInstance().postUserThemeSettings(e)}))},exports.usePostValidateOtp=function(e){return jf((function(){return dh.getInstance().validateOtp(e).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostValidatePassword=function(e){return jf((function(){return dh.getInstance().postValidatePassword(e).then((function(e){return null==e?void 0:e.data}))}))},exports.usePostValideStatusConnection=function(){return jf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePostVelocityRules=function(e){return wf(["velocity-rules",e],(function(){var t=dh.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})},exports.usePostWebhook=function(e){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postWebhook({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.usePostWebhookMultiAccount=function(e){return jf((function(e){var t=e.payload;return dh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.usePostWebhookV2=function(e){return jf((function(e){var t=e.payload,n=e.accountCode;return dh.getInstance().postWebhookV2({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return wf(["smart-routing-conversion-rates"],(function(){return dh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})},exports.usePublishVersion=function(t,n){var o=this,a=t.versionCode,i=t.accountCode,s=t.organizationCode;return void 0===n&&(n=null),jf((function(){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().postSmartRoutingPublishVersion(i,a,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),n)},exports.usePutAccountPrincipal=function(){return jf((function(e){var t=e.account_code;return dh.getInstance().putAccountPrincipal({account_code:t})}))},exports.usePutAccountsUser=function(){return jf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return dh.getInstance().putAccountsUser(t,n,o)}))},exports.usePutAccountsUserMassive=function(){return jf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return dh.getInstance().putAccountsUserMassive(t,n,o)}))},exports.usePutBlackListType=function(){return jf(["put-blacklist"],(function(e){return dh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.usePutCosts=function(){return jf((function(e){return dh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)},exports.useSendOTPForMFA=function(){return jf((function(){return dh.getInstance().sendOTPForMFA().then((function(e){return null==e?void 0:e.data}))}))},exports.useSendPaymentNotification=function(t,n,o){var a=this,i=dh.getInstance();return wf(["send-payment-notification",t,n],(function(){return e.__awaiter(a,void 0,void 0,(function(){var a,s;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i.sendPaymentNotification(t,n)];case 1:return a=e.sent(),o.onSuccess(),[2,a.data];case 2:throw s=e.sent(),o.onError(),s;case 3:return[2]}}))}))}),{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return jf((function(){return dh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))},exports.useSetRoles=function(){var t=this;return jf((function(n){var o=n.roles,a=n.userCode;return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,dh.getInstance().setRoles({roles:o,userCode:a})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}}))}))}))},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return jf((function(e){return void 0===e&&(e=null),dh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)},exports.useSmartRoutingEditWorkflowName=function(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),jf((function(e){var n=e.payload;return dh.getInstance().multiAccountDeclinedGroupCreate(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingRemoveDeclinedGroup=function(t,n){return void 0===n&&(n={}),jf((function(e){var n=e.declinedGroupCode;return dh.getInstance().removeDeclinedGroup(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingSimulateTransaction=function(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),jf((function(e){return dh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),jf((function(e){return void 0===e&&(e=!1),dh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),jf((function(e){return void 0===e&&(e=null),dh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),jf((function(t){return dh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useSmartRoutingUpdateTutorial=function(e){var t=e.accountCode;return jf((function(e){return void 0===e&&(e=null),dh.getInstance().updateSmartRoutingTutorial(t,e||"").then((function(e){return null==e?void 0:e.data}))}),e.options)},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),jf((function(){return dh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)},exports.useUnInviteUsers=function(){return jf((function(e){var t=e.userCode;return dh.getInstance().unInviteUsers({userCode:t})}))},exports.useUnInviteUsersV2=function(){return jf((function(e){var t=e.userCode,n=e.organizationCode;return dh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))},exports.useUnrollUser=function(e){return jf((function(){return dh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUnrollUserV2=function(){return jf((function(e){return dh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateCheckoutPaymentMethods=function(){return jf((function(e){var t=e.paymentMethod,n=e.checkoutCode;return dh.getInstance().updateIsActivePaymentMethod(n,t).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateCheckoutTemplate=function(){return jf((function(e){var t=e.accountCode,n=e.template;return dh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateIsActiveCheckout=function(e){return jf((function(e){return dh.getInstance().updateIsActiveCheckout(e)}),e)},exports.useUpdateMFAConfig=function(){return jf((function(e){var t=e.payload,n=e.organizationCode;return dh.getInstance().updateMFAConfig(t,n)}))},exports.useUpdateOrganizationStatus=function(){return jf(["patch-organizations"],(function(){return dh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateProfile=function(e){return jf((function(e){return dh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return jf(["UPDATE/reconciliation/alerts"],(function(e){return dh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){_f.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return jf((function(){return dh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})},exports.useUpdateReportTemplate=function(e){return jf((function(){return dh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateSamlConfig=function(){return jf((function(e){return dh.getInstance().updateSamlConfig(e)}))},exports.useUpdateScheduledReport=function(){return jf((function(e){var t=e.reportCode,n=e.payload;return dh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useUpdateStylingTheme=function(){return jf((function(e){var t=e.accountCode,n=e.theme;return dh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))},exports.useUpdateWebhook=function(e){return jf((function(e){var t=e.code,n=e.payload;return dh.getInstance().updateWebhook(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateWebhookV2=function(e){return jf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return dh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFile=function(e){var t=e.handleSetProgress;return jf((function(e){return dh.getInstance().uploadBatchRefunds({payload:e,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useUploadBatchRefundsFileV2=function(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=h.useState(0),i=a[0],s=a[1],r=h.useRef({cancel:function(){return null}}),c=jf(["upload-file-chargeback",t],(function(e){var t=dh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),a=t.promise,i=t.cancel;return r.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:r.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return jf((function(e){return dh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=h.useRef({cancel:function(){return null}}),t=jf(["upload-file"],(function(t){var n=dh.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}},exports.useValiateAllowlistItems=function(){return jf(["validate-allowlist-items"],(function(e){return dh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))},exports.useValidateBlockListItems=function(){return jf(["valiate-blacklist-items"],(function(e){return dh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useValidateConnection=function(){return jf(["validate-connection"],(function(e){var t=e.connectionCode;return dh.getInstance().postSmartRoutingValidateConnection(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))},exports.useValidateCredentials=function(){return jf((function(e){return dh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))},exports.useValidateOrgName=function(){return jf((function(e){return dh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))},exports.useValidatePasswordStatus=function(){return jf((function(){return dh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))},exports.useViewMoreMetrics=function(e,t){return wf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return dh.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})};
241
241
  //# sourceMappingURL=index.js.map