@yuno-payments/dashboard-api-mfe 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +14 -1
- package/build/cjs/types/mutations/audit/audit-subscriptions.mutation.d.ts +1 -1
- package/build/cjs/types/queries/audit/audit-subscriptions.query.d.ts +8 -5
- package/build/cjs/types/queries/audit/audit.query.d.ts +13 -0
- package/build/cjs/types/types/audit/audit.d.ts +11 -15
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +14 -1
- package/build/esm/types/mutations/audit/audit-subscriptions.mutation.d.ts +1 -1
- package/build/esm/types/queries/audit/audit-subscriptions.query.d.ts +8 -5
- package/build/esm/types/queries/audit/audit.query.d.ts +13 -0
- package/build/esm/types/types/audit/audit.d.ts +11 -15
- package/build/index.d.ts +48 -23
- package/package.json +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -38,7 +38,7 @@ statuses/index.js:
|
|
|
38
38
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
39
39
|
* MIT Licensed
|
|
40
40
|
*)
|
|
41
|
-
*/function ut(e){if(ct.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var lt=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],dt=new RegExp(`(^[${lt.join("")}]|$[${lt.join("")}])`,"g");function pt(e){return e.replace(dt,"")}function ht(e){if("string"!=typeof e)return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>127||!ft(n))return!1}return!0}function ft(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function gt(e){if("string"!=typeof e)return!1;if(e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var mt,yt,vt,bt=Symbol("normalizedHeaders"),_t=Symbol("rawHeaderNames"),kt=class e{constructor(t){if(this[mt]={},this[yt]=new Map,this[vt]="Headers",["Headers","HeadersPolyfill"].includes(t?.constructor.name)||t instanceof e||void 0!==globalThis.Headers&&t instanceof globalThis.Headers){t.forEach((e,t)=>{this.append(t,e)},this)}else Array.isArray(t)?t.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(mt=bt,yt=_t,vt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[bt]).sort((e,t)=>e.localeCompare(t));for(const t of e)if("set-cookie"===t)for(const e of this.getSetCookie())yield[t,e];else yield[t,this.get(t)]}has(e){if(!ht(e))throw new TypeError(`Invalid header name "${e}"`);return this[bt].hasOwnProperty(ut(e))}get(e){if(!ht(e))throw TypeError(`Invalid header name "${e}"`);return this[bt][ut(e)]??null}set(e,t){if(!ht(e)||!gt(t))return;const n=ut(e),r=pt(t);this[bt][n]=pt(r),this[_t].set(n,e)}append(e,t){if(!ht(e)||!gt(t))return;const n=ut(e),r=pt(t);let o=this.has(n)?`${this.get(n)}, ${r}`:r;this.set(e,o)}delete(e){if(!ht(e))return;if(!this.has(e))return;const t=ut(e);delete this[bt][t],this[_t].delete(t)}forEach(e,t){for(const[n,r]of this.entries())e.call(t,r,n,this)}getSetCookie(){const e=this.get("set-cookie");return null===e?[]:""===e?[""]:(0,st.splitCookiesString)(e)}};const{message:wt}=Xe,xt=Symbol("kSetCookie");function Et(e={}){const t=e?.status||200,n=e?.statusText||wt[t]||"",r=new Headers(e?.headers);return{...e,headers:r,status:t,statusText:n}}async function St(e,t,n,r,o,a){if(o.emit("request:start",{request:e,requestId:t}),e.headers.get("accept")?.includes("msw/passthrough"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(()=>(async({request:e,requestId:t,handlers:n,resolutionContext:r})=>{let o=null,a=null;for(const i of n)if(a=await i.run({request:e,requestId:t,resolutionContext:r}),null!==a&&(o=i),a?.response)break;return o?{handler:o,parsedResult:a?.parsedResult,response:a?.response}:null})({request:e,requestId:t,handlers:n,resolutionContext:a?.resolutionContext}));if(i)throw o.emit("unhandledException",{error:i,request:e,requestId:t}),i;if(!s)return await v(e,r.onUnhandledRequest),o.emit("request:unhandled",{request:e,requestId:t}),o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const{response:c}=s;if(!c)return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);if(302===c.status&&"passthrough"===c.headers.get("x-msw-intention"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);await async function(e,t){const n=Reflect.get(t,xt);n&&await qe.setCookie(n,e.url)}(e,c),o.emit("request:match",{request:e,requestId:t});const u=s;return a?.onMockedResponse?.(c,u),o.emit("request:end",{request:e,requestId:t}),c}function Ct(e){return t=>null!=t&&"object"==typeof t&&"__kind"in t&&t.__kind===e}var Rt=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},It=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=It.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new Rt(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},Tt=It;Tt.defaultMaxListeners=10;class At{subscriptions=[];dispose(){let e;for(;e=this.subscriptions.shift();)e()}}class Ot{constructor(e){this.initialHandlers=e,this.handlers=[...e]}handlers;prepend(e){this.handlers.unshift(...e)}reset(e){this.handlers=e.length>0?[...e]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Pt extends At{handlersController;emitter;publicEmitter;events;constructor(...e){super(),l(this.validateHandlers(e),p.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Ot(e),this.emitter=new Tt,this.publicEmitter=new Tt,function(e,t){const n=e.emit;if(n._isPiped)return;const r=function(e,...r){return t.emit(e,...r),n.call(this,e,...r)};r._isPiped=!0,e.emit=r}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(e){return e.every(e=>!Array.isArray(e))}use(...e){l(this.validateHandlers(e),p.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(e)}restoreHandlers(){this.handlersController.currentHandlers().forEach(e=>{"isUsed"in e&&(e.isUsed=!1)})}resetHandlers(...e){this.handlersController.reset(e)}listHandlers(){return function(e){const t=[...e];return Object.freeze(t),t}(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}}var Dt=Object.defineProperty,Lt={};function jt(e){return`[33m${e}[0m`}function zt(e){return`[34m${e}[0m`}function Nt(e){return`[90m${e}[0m`}function qt(e){return`[31m${e}[0m`}function Ut(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)Dt(e,n,{get:t[n],enumerable:!0})})(Lt,{blue:()=>zt,gray:()=>Nt,green:()=>Ut,red:()=>qt,yellow:()=>jt});var Bt=b(),Mt=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=Kt("DEBUG"),n=Kt("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=$t(n,"debug")?Gt:this.debug,this.info=$t(n,"info")?Gt:this.info,this.success=$t(n,"success")?Gt:this.success,this.warning=$t(n,"warning")?Gt:this.warning,this.error=$t(n,"error")?Gt:this.error):(this.info=Gt,this.success=Gt,this.warning=Gt,this.error=Gt,this.only=Gt)}prefix;extend(e){return new Mt(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:Nt(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new Ft;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${Nt(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:Lt[o?.timestamp||"gray"],prefix:Lt[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(Qt(n)).join(" "),...a.map(Qt))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return Vt;case"warning":return Wt;case"error":return Ht}}},Ft=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},Gt=()=>{};function Vt(e,...t){Bt?process.stdout.write(c(e,...t)+"\n"):console.log(e,...t)}function Wt(e,...t){Bt?process.stderr.write(c(e,...t)+"\n"):console.warn(e,...t)}function Ht(e,...t){Bt?process.stderr.write(c(e,...t)+"\n"):console.error(e,...t)}function Kt(e){return Bt?process.env[e]:globalThis[e]?.toString()}function $t(e,t){return void 0!==e&&e!==t}function Qt(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}function Yt(e){return globalThis[e]||void 0}let Jt=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({});var Zt=class{constructor(e){this.symbol=e,this.readyState=Jt.INACTIVE,this.emitter=new Tt,this.subscriptions=[],this.logger=new Mt(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===Jt.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=Jt.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=Jt.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=Jt.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===Jt.DISPOSING||this.readyState===Jt.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==Jt.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=Jt.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",Yt(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=Jt.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=Yt(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Xt(e){if("string"==typeof e)return Xt(new URL(e,"undefined"!=typeof location?location.href:void 0));if("http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),"ws:"!==e.protocol&&"wss:"!==e.protocol)throw new SyntaxError(`Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. '${e.protocol}' is not allowed.`);if(""!==e.hash)throw new SyntaxError(`Failed to construct 'WebSocket': The URL contains a fragment identifier ('${e.hash}'). Fragment identifiers are not allowed in WebSocket URLs.`);return e.href}var en=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}};function tn(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}const nn=Symbol("kCancelable"),rn=Symbol("kDefaultPrevented");var on=class extends MessageEvent{constructor(e,t){super(e,t),this[nn]=!!t.cancelable,this[rn]=!1}get cancelable(){return this[nn]}set cancelable(e){this[nn]=e}get defaultPrevented(){return this[rn]}set defaultPrevented(e){this[rn]=e}preventDefault(){this.cancelable&&!this[rn]&&(this[rn]=!0)}},an=class extends Event{constructor(e,t={}){super(e,t),this.code=void 0===t.code?0:t.code,this.reason=void 0===t.reason?"":t.reason,this.wasClean=void 0!==t.wasClean&&t.wasClean}},sn=class extends an{constructor(e,t={}){super(e,t),this[nn]=!!t.cancelable,this[rn]=!1}get cancelable(){return this[nn]}set cancelable(e){this[nn]=e}get defaultPrevented(){return this[rn]}set defaultPrevented(e){this[rn]=e}preventDefault(){this.cancelable&&!this[rn]&&(this[rn]=!0)}};const cn=Symbol("kEmitter"),un=Symbol("kBoundListener");var ln=class{constructor(e,t){this.socket=e,this.transport=t,this.id=Math.random().toString(16).slice(2),this.url=new URL(e.url),this[cn]=new EventTarget,this.transport.addEventListener("outgoing",e=>{const t=tn(this.socket,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[cn].dispatchEvent(t),t.defaultPrevented&&e.preventDefault()}),this.transport.addEventListener("close",e=>{this[cn].dispatchEvent(tn(this.socket,new an("close",e)))})}addEventListener(e,t,n){if(!Reflect.has(t,un)){const e=t.bind(this.socket);Object.defineProperty(t,un,{value:e,enumerable:!1,configurable:!1})}this[cn].addEventListener(e,Reflect.get(t,un),n)}removeEventListener(e,t,n){this[cn].removeEventListener(e,Reflect.get(t,un),n)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}};const dn="InvalidAccessError: close code out of user configurable range",pn=Symbol("kPassthroughPromise"),hn=Symbol("kOnSend"),fn=Symbol("kClose");var gn=class extends EventTarget{static{this.CONNECTING=0}static{this.OPEN=1}static{this.CLOSING=2}static{this.CLOSED=3}constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=Xt(e),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[pn]=new en,queueMicrotask(async()=>{await this[pn]||(this.protocol="string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(tn(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,null!==e&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,null!==e&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,null!==e&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,null!==e&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.bufferedAmount+=function(e){return"string"==typeof e?e.length:e instanceof Blob?e.size:e.byteLength}(e),queueMicrotask(()=>{this.bufferedAmount=0,this[hn]?.(e)}))}close(e=1e3,t){l(e,dn),l(1e3===e||e>=3e3&&e<=4999,dn),this[fn](e,t)}[fn](e=1e3,t,n=!0){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(tn(this,new an("close",{code:e,reason:t,wasClean:n}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,n){return super.addEventListener(e,t,n)}removeEventListener(e,t,n){return super.removeEventListener(e,t,n)}};const mn=Symbol("kEmitter"),yn=Symbol("kBoundListener"),vn=Symbol("kSend");var bn=class{constructor(e,t,n){this.client=e,this.transport=t,this.createConnection=n,this[mn]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",e=>{void 0!==this.realWebSocket&&queueMicrotask(()=>{e.defaultPrevented||this[vn](e.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return l(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){l(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",e=>{this[mn].dispatchEvent(tn(this.realWebSocket,new Event("open",e)))},{once:!0}),e.addEventListener("message",e=>{this.transport.dispatchEvent(tn(this.realWebSocket,new MessageEvent("incoming",{data:e.data,origin:e.origin})))}),this.client.addEventListener("close",e=>{this.handleMockClose(e)},{signal:this.mockCloseController.signal}),e.addEventListener("close",e=>{this.handleRealClose(e)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=tn(e,new Event("error",{cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(tn(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,n){if(!Reflect.has(t,yn)){const e=t.bind(this.client);Object.defineProperty(t,yn,{value:e,enumerable:!1})}this[mn].addEventListener(e,Reflect.get(t,yn),n)}removeEventListener(e,t,n){this[mn].removeEventListener(e,Reflect.get(t,yn),n)}send(e){this[vn](e)}[vn](e){const{realWebSocket:t}=this;l(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),t.readyState!==WebSocket.CLOSING&&t.readyState!==WebSocket.CLOSED&&(t.readyState!==WebSocket.CONNECTING?t.send(e):t.addEventListener("open",()=>{t.send(e)},{once:!0}))}close(){const{realWebSocket:e}=this;l(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),e.readyState!==WebSocket.CLOSING&&e.readyState!==WebSocket.CLOSED&&(e.close(),queueMicrotask(()=>{this[mn].dispatchEvent(tn(this.realWebSocket,new sn("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=tn(e.target,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(tn(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=tn(this.realWebSocket,new sn("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented||this.client[fn](e.code,e.reason)}},_n=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",e=>{this.dispatchEvent(tn(this.socket,new an("close",e)))}),this.socket[hn]=e=>{this.dispatchEvent(tn(this.socket,new on("outgoing",{data:e,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,n){return super.addEventListener(e,t,n)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(tn(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[fn](e,t)}},kn=class e extends Zt{static{this.symbol=Symbol("websocket")}constructor(){super(e.symbol)}checkEnvironment(){return function(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return!(void 0===t||"function"==typeof t.get&&void 0===t.get()||void 0===t.get&&null==t.value||void 0===t.set&&!t.configurable&&(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),1))}("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(e,t,n)=>{const[r,o]=t,a=()=>Reflect.construct(e,t,n),i=new gn(r,o),s=new _n(i);return queueMicrotask(async()=>{try{const e=new bn(i,s,a),t=this.emitter.listenerCount("connection")>0;await async function(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}(this.emitter,"connection",{client:new ln(i,s),server:e,info:{protocols:o}}),t?i[pn].resolve(!1):(i[pn].resolve(!0),e.connect(),e.addEventListener("open",()=>{i.dispatchEvent(tn(i,new Event("open"))),e.realWebSocket&&(i.protocol=e.realWebSocket.protocol)}))}catch(e){e instanceof Error&&(i.dispatchEvent(new Event("error")),i.readyState!==WebSocket.CLOSING&&i.readyState!==WebSocket.CLOSED&&i[fn](1011,e.message,!1),console.error(e))}}),i}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}};const wn=new kn;function xn(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e?.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}function En(e){return e instanceof Blob?e.size:a(e)&&"byteLength"in e?e.byteLength:new Blob([e]).size}function Sn(e){return e.length<=24?e:`${e.slice(0,24)}…`}async function Cn(e){if(e instanceof Blob){return`Blob(${Sn(await e.text())})`}if(a(e)){return`ArrayBuffer(${Sn((new TextDecoder).decode(e))})`}return Sn(e)}const Rn="#3b82f6",In="#22c55e",Tn="#ef4444",An="#ff6a33";function On(e){const{client:t,server:n}=e;!function(e){const t=y(e.url);console.groupCollapsed(p.formatMessage(`${xn()} %c▶%c ${t}`),`color:${Rn}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}(t),t.addEventListener("message",e=>{!async function(e){const t=En(e.data),n=await Cn(e.data),r=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${In}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)}),t.addEventListener("close",e=>{!function(e){const t=e.target,n=y(t.url);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c■%c ${n}`),`color:${Rn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.socket.addEventListener("error",e=>{!function(e){const t=e.target,n=y(t.url);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c×%c ${n}`),`color:${Rn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.send=new Proxy(t.send,{apply(e,n,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{!async function(e){const t=En(e.data),n=await Cn(e.data);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c⬇%c ${n} %c${t}%c`),`color:${An}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a)}),Reflect.apply(e,n,r)}}),n.addEventListener("open",()=>{n.addEventListener("message",e=>{!async function(e){const t=En(e.data),n=await Cn(e.data),r=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${Tn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)})},{once:!0}),n.send=new Proxy(n.send,{apply(e,t,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:n.socket},target:{enumerable:!0,writable:!1,value:n.socket}}),async function(e){const t=En(e.data),n=await Cn(e.data);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c⬆%c ${n} %c${t}%c`),`color:${An}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a),Reflect.apply(e,t,r)}})}var Pn=/(%?)(%([sdijo]))/g;function Dn(e,...t){if(0===t.length)return e;let n=0,r=e.replace(Pn,(e,r,o,a)=>{const i=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;const t=JSON.stringify(e);return"{}"===t||"[]"===t||/^\[object .+?\]$/.test(t)?e:t}}}(t[n],a);return r?e:(n++,i)});return n<t.length&&(r+=` ${t.slice(n).join(" ")}`),r=r.replace(/%{2,2}/g,"%"),r}var Ln=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Dn(e,...t),function(e){if(!e.stack)return;const t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},jn=(e,t,...n)=>{if(!e)throw new Ln(t,...n)};function zn(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if("undefined"!=typeof process){const e=process.type;return"renderer"!==e&&"worker"!==e&&!(!process.versions||!process.versions.node)}return!1}jn.as=(e,t,n,...r)=>{if(!t){const t=0===r.length?n:Dn(n,...r);let o;try{o=Reflect.construct(e,[t])}catch(n){o=e(t)}throw o}};var Nn=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}},qn={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t};function Un(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var Bn=async(e,t={},n)=>{const r=new URL(e,location.href).href;const o=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>Un(e,r,n)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[a]=o;if(a)return a.update(),[Un(a,r,n),a];const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(async()=>{const o=await navigator.serviceWorker.register(e,t);return[Un(o,r,n),o]});if(i){if(i.message.includes("(404)")){const e=new URL(t?.scope||"/",location.href);throw new Error(p.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${r}'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init <PUBLIC_DIR>"?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(p.formatMessage("Failed to register the Service Worker:\n\n%s",i.message))}return s};function Mn(e={}){if(e.quiet)return;const t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${p.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),e.client&&console.log("Client ID: %s (%s)",e.client.id,e.client.frameType),console.groupEnd()}function Fn(e){if(!["HEAD","GET"].includes(e.method))return e.body}function Gn(e){return new Request(e.url,{...e,body:Fn(e)})}function Vn(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"undefined"!=typeof location&&"file:"!==location.protocol}var Wn=function(){try{const e=new ReadableStream({start:e=>e.close()});return(new MessageChannel).port1.postMessage(e,[e]),!0}catch{return!1}}(),Hn=(e,t)=>async n=>{if(!e.isMockingEnabled&&e.workerStoppedAt&&n.data.interceptedAt>e.workerStoppedAt)return void n.postMessage("PASSTHROUGH");const r=n.data.id,o=Gn(n.data),a=o.clone(),i=o.clone();m.cache.set(o,i);try{await St(o,r,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onPassthroughResponse(){n.postMessage("PASSTHROUGH")},async onMockedResponse(r,{handler:o,parsedResult:i}){const s=r.clone(),c=r.clone(),u=function(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}(r);if(Wn){const e=r.body;n.postMessage("MOCK_RESPONSE",{...u,body:e},e?[e]:void 0)}else{const e=null===r.body?null:await s.arrayBuffer();n.postMessage("MOCK_RESPONSE",{...u,body:e})}t.quiet||e.emitter.once("response:mocked",()=>{o.log({request:a,response:c,parsedResult:i})})}})}catch(e){e instanceof Error&&(p.error('Uncaught exception in the request handler for "%s %s":\n\n%s\n\nThis exception has been gracefully handled as a 500 response, however, it\'s strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/http/mocking-responses/error-responses',o.method,o.url,e.stack??e),n.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}};var Kn=Symbol("isPatchedModule"),$n=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}},Qn=class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new Nn}get#a(){return this.handled}async passthrough(){jn.as($n,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){jn.as($n,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){jn.as($n,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}};function Yn(e){try{return new URL(e),!0}catch(e){return!1}}function Jn(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}var Zn=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!Yn(e))return;const n=Jn("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=Jn("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}},Xn=Symbol("kRawRequest");function er(e,t){Reflect.set(e,Xn,t)}var tr=Object.defineProperty,nr={};function rr(e){return`[33m${e}[0m`}function or(e){return`[34m${e}[0m`}function ar(e){return`[90m${e}[0m`}function ir(e){return`[31m${e}[0m`}function sr(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)tr(e,n,{get:t[n],enumerable:!0})})(nr,{blue:()=>or,gray:()=>ar,green:()=>sr,red:()=>ir,yellow:()=>rr});var cr=zn(),ur=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=gr("DEBUG"),n=gr("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=mr(n,"debug")?dr:this.debug,this.info=mr(n,"info")?dr:this.info,this.success=mr(n,"success")?dr:this.success,this.warning=mr(n,"warning")?dr:this.warning,this.error=mr(n,"error")?dr:this.error):(this.info=dr,this.success=dr,this.warning=dr,this.error=dr,this.only=dr)}prefix;extend(e){return new ur(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:ar(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new lr;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${ar(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:nr[o?.timestamp||"gray"],prefix:nr[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(yr(n)).join(" "),...a.map(yr))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return pr;case"warning":return hr;case"error":return fr}}},lr=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},dr=()=>{};function pr(e,...t){cr?process.stdout.write(Dn(e,...t)+"\n"):console.log(e,...t)}function hr(e,...t){cr?process.stderr.write(Dn(e,...t)+"\n"):console.warn(e,...t)}function fr(e,...t){cr?process.stderr.write(Dn(e,...t)+"\n"):console.error(e,...t)}function gr(e){return cr?process.env[e]:globalThis[e]?.toString()}function mr(e,t){return void 0!==e&&e!==t}function yr(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}var vr=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},br=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=br.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new vr(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},_r=br;_r.defaultMaxListeners=10;function kr(e){return globalThis[e]||void 0}var wr=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({}),xr=class{constructor(e){this.symbol=e,this.readyState=wr.INACTIVE,this.emitter=new _r,this.subscriptions=[],this.logger=new ur(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===wr.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=wr.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=wr.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=wr.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===wr.DISPOSING||this.readyState===wr.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==wr.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=wr.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",kr(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=wr.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=kr(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Er(){return Math.random().toString(16).slice(2)}var Sr=new TextEncoder;var Cr=class e extends xr{constructor(t){e.symbol=Symbol(t.name),super(e.symbol),this.interceptors=t.interceptors}setup(){const e=this.logger.extend("setup");e.info("applying all %d interceptors...",this.interceptors.length);for(const t of this.interceptors)e.info('applying "%s" interceptor...',t.constructor.name),t.apply(),e.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>t.dispose())}on(e,t){for(const n of this.interceptors)n.on(e,t);return this}once(e,t){for(const n of this.interceptors)n.once(e,t);return this}off(e,t){for(const n of this.interceptors)n.off(e,t);return this}removeAllListeners(e){for(const t of this.interceptors)t.removeAllListeners(e);return this}};var Rr=e=>function(t,n){const r=(async()=>{e.workerChannel.removeAllListeners(),e.workerChannel.on("REQUEST",Hn(e,t)),e.workerChannel.on("RESPONSE",function(e){return t=>{const n=t.data,r=Gn(n.request);if(n.response.type?.includes("opaque"))return;const o=0===n.response.status?Response.error():new Zn(Zn.isResponseWithBody(n.response.status)?n.response.body:null,{...n.response,url:r.url});e.emitter.emit(n.isMockedResponse?"response:mocked":"response:bypass",{requestId:n.request.id,request:r,response:o})}}(e));const r=await Bn(t.serviceWorker.url,t.serviceWorker.options,t.findWorker),[o,a]=r;if(!o){const e=n?.findWorker?p.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',t.serviceWorker.url):p.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',t.serviceWorker.url,location.host);throw new Error(e)}return e.workerPromise.resolve(o),e.registration=a,window.addEventListener("beforeunload",()=>{"redundant"!==o.state&&e.workerChannel.postMessage("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await function(e){const t=new Nn;return e.workerChannel.postMessage("INTEGRITY_CHECK_REQUEST"),e.workerChannel.once("INTEGRITY_CHECK_RESPONSE",e=>{const{checksum:n,packageVersion:r}=e.data;"4db4a41e972cec1b64cc569c66952d82"!==n&&p.warn(`The currently registered Service Worker has been generated by a different version of MSW (${r}) and may not be fully compatible with the installed version.\n\nIt's recommended you update your worker script by running this command:\n\n • npx msw init <PUBLIC_DIR>\n\nYou can also automate this process and make the worker script update automatically upon the library installations. Read more: https://mswjs.io/docs/cli/init.`),t.resolve()}),t}(e).catch(e=>{p.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),console.error(e)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.postMessage("KEEPALIVE_REQUEST"),5e3),function(e,t){t?.quiet||location.href.startsWith(e.scope)||p.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${e.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}(a,e.startOptions),a})().then(async n=>{const r=n.installing||n.waiting;if(r){const e=new Nn;r.addEventListener("statechange",()=>{"activated"===r.state&&e.resolve()}),await e}return await function(e,t){const n=new Nn;return e.workerChannel.postMessage("MOCK_ACTIVATE"),e.workerChannel.once("MOCKING_ENABLED",async r=>{e.isMockingEnabled=!0;const o=await e.workerPromise;Mn({quiet:t.quiet,workerScope:e.registration?.scope,workerUrl:o.scriptURL,client:r.data.client}),n.resolve(!0)}),n}(e,t).catch(e=>{throw p.error("Failed to enable mocking. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),e}),n});return r},Ir=class{#i;#s;constructor(){this.#i=[],this.#s=new Map}get[Symbol.iterator](){return this.#i[Symbol.iterator].bind(this.#i)}entries(){return this.#s.entries()}get(e){return this.#s.get(e)||[]}getAll(){return this.#i.map(([,e])=>e)}append(e,t){this.#i.push([e,t]),this.#c(e,e=>e.push(t))}prepend(e,t){this.#i.unshift([e,t]),this.#c(e,e=>e.unshift(t))}delete(e,t){if(0!==this.size){this.#i=this.#i.filter(e=>e[1]!==t);for(const[n,r]of this.#s)n===e&&r.includes(t)&&r.splice(r.indexOf(t),1)}}deleteAll(e){0!==this.size&&(this.#i=this.#i.filter(t=>t[0]!==e),this.#s.delete(e))}get size(){return this.#i.length}clear(){0!==this.size&&(this.#i.length=0,this.#s.clear())}#c(e,t){t(this.#s.get(e)||this.#s.set(e,[]).get(e))}},Tr=Symbol("kDefaultPrevented"),Ar=Symbol("kPropagationStopped"),Or=Symbol("kImmediatePropagationStopped"),Pr=class extends MessageEvent{#u;[Tr];[Ar];[Or];constructor(...e){super(e[0],e[1]),this[Tr]=!1}get defaultPrevented(){return this[Tr]}preventDefault(){super.preventDefault(),this[Tr]=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this[Or]=!0}},Dr=Symbol("kListenerOptions"),Lr=class{#l;constructor(){this.#l=new Ir}on(e,t,n){return this.#d(e,t,n),this}once(e,t,n){return this.on(e,t,{...n||{},once:!0})}earlyOn(e,t,n){return this.#d(e,t,n,"prepend"),this}earlyOnce(e,t,n){return this.earlyOn(e,t,{...n||{},once:!0})}emit(e){if(0===this.#l.size)return!1;const t=this.listenerCount(e.type)>0,n=this.#p(e);for(const t of this.#h(e.type)){if(null!=n.event[Ar]&&n.event[Ar]!==this)return n.revoke(),!1;if(n.event[Or])break;this.#f(n.event,t)}return n.revoke(),t}async emitAsPromise(e){if(0===this.#l.size)return[];const t=[],n=this.#p(e);for(const r of this.#h(e.type)){if(null!=n.event[Ar]&&n.event[Ar]!==this)return n.revoke(),[];if(n.event[Or])break;const e=await Promise.resolve(this.#f(n.event,r));this.#g(r)||t.push(e)}return n.revoke(),Promise.allSettled(t).then(e=>e.map(e=>"fulfilled"===e.status?e.value:e.reason))}*emitAsGenerator(e){if(0===this.#l.size)return;const t=this.#p(e);for(const n of this.#h(e.type)){if(null!=t.event[Ar]&&t.event[Ar]!==this)return void t.revoke();if(t.event[Or])break;const e=this.#f(t.event,n);this.#g(n)||(yield e)}t.revoke()}removeListener(e,t){this.#l.delete(e,t)}removeAllListeners(e){null!=e?this.#l.deleteAll(e):this.#l.clear()}listeners(e){return null==e?this.#l.getAll():this.#l.get(e)}listenerCount(e){return null==e?this.#l.size:this.listeners(e).length}#d(e,t,n,r="append"){"prepend"===r?this.#l.prepend(e,t):this.#l.append(e,t),n&&(Object.defineProperty(t,Dr,{value:n,enumerable:!1,writable:!1}),n.signal&&n.signal.addEventListener("abort",()=>{this.removeListener(e,t)},{once:!0}))}#p(e){const{stopPropagation:t}=e;return e.stopPropagation=new Proxy(e.stopPropagation,{apply:(t,n,r)=>(e[Ar]=this,Reflect.apply(t,n,r))}),{event:e,revoke(){e.stopPropagation=t}}}#f(e,t){const n=t.call(this,e);if(t[Dr]?.once){const n=this.#g(t)?"*":e.type;this.#l.delete(n,t)}return n}*#h(e){for(const[t,n]of this.#l)"*"!==t&&t!==e||(yield n)}#g(e){return this.#l.get("*").includes(e)}},jr=Vn(),zr=class extends Pr{#m;constructor(e){super(e.data.type,{data:e.data.payload}),this.#m=e}get ports(){return this.#m.ports}postMessage(e,...t){this.#m.ports[0].postMessage({type:e,data:t[0]},{transfer:t[1]})}},Nr=class extends Lr{constructor(e){super(),this.options=e,jr&&navigator.serviceWorker.addEventListener("message",async e=>{const t=await this.options.worker;null!=e.source&&e.source!==t||e.data&&a(e.data)&&"type"in e.data&&this.emit(new zr(e))})}postMessage(e){jn(jr,"Failed to post message on a WorkerChannel: the Service Worker API is unavailable in this context. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.options.worker.then(t=>{t.postMessage(e)})}};async function qr(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}function Ur(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==t&&(("function"!=typeof t.get||void 0!==t.get())&&((void 0!==t.get||null!=t.value)&&(!(void 0===t.set&&!t.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}var Br=async e=>{try{return{error:null,data:await e().catch(e=>{throw e})}}catch(e){return{error:e,data:null}}};function Mr(e,t=!1){return t?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function Fr(e,t){try{return e[t],!0}catch{return!1}}function Gr(e){return null!=e&&e instanceof Response&&Fr(e,"type")&&"error"===e.type}async function Vr(e){const t=async t=>{return t instanceof Error?(await e.controller.errorWith(t),!0):Gr(t)?(await e.controller.respondWith(t),!0):Mr(n=t,!0)&&Fr(n,"status")&&Fr(n,"statusText")&&Fr(n,"bodyUsed")?(await e.controller.respondWith(t),!0):!!Mr(t)&&(await e.controller.errorWith(t),!0);var n},n=async n=>{if(n instanceof $n)throw o.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(n)?(await e.controller.errorWith(n),!0):n instanceof Response&&await t(n)},r=new Nn;if(e.request.signal){if(e.request.signal.aborted)return void await e.controller.errorWith(e.request.signal.reason);e.request.signal.addEventListener("abort",()=>{r.reject(e.request.signal.reason)},{once:!0})}const o=await Br(async()=>{const t=qr(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});await Promise.race([r,t,e.controller.handled])});if("rejected"!==r.state){var a;if(!o.error)return e.controller.readyState===Qn.PENDING?await e.controller.passthrough():e.controller.handled;if(await n(o.error))return;if(e.emitter.listenerCount("unhandledException")>0){const n=new Qn(e.request,{passthrough(){},async respondWith(e){await t(e)},async errorWith(t){await e.controller.errorWith(t)}});if(await qr(e.emitter,"unhandledException",{error:o.error,request:e.request,requestId:e.requestId,controller:n}),n.readyState!==Qn.PENDING)return}await e.controller.respondWith((a=o.error,new Response(JSON.stringify(a instanceof Error?{name:a.name,message:a.message,stack:a.stack}:a),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await e.controller.errorWith(r.rejectionReason)}function Wr(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var Hr=["content-encoding","content-language","content-location","content-type","content-length"],Kr=Symbol("kRedirectCount");function $r(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var Qr=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},Yr=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((e,t)=>e.pipeThrough(t));Object.defineProperty(this,"readable",{get:()=>n})}};function Jr(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map(e=>e.trim())}(e);return 0===t.length?null:new Yr(t.reduceRight((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new Qr):(e.length=0,e),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var Zr=class e extends xr{static{this.symbol=Symbol("fetch")}constructor(){super(e.symbol)}checkEnvironment(){return Ur("fetch")}async setup(){const e=globalThis.fetch;jn(!e[Kn],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const r=Er(),o="string"!=typeof t||"undefined"==typeof location||Yn(t)?t:new URL(t,location.href),a=new Request(o,n);t instanceof Request&&er(a,t);const i=new Nn,s=new Qn(a,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const t=a.clone(),{error:n,data:o}=await Br(()=>e(a));if(n)return i.reject(n);if(this.logger.info("original fetch performed",o),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const e=o.clone();await qr(this.emitter,"response",{response:e,isMockedResponse:!1,request:t,requestId:r})}i.resolve(o)},respondWith:async e=>{if(Gr(e))return this.logger.info("request has errored!",{response:e}),void i.reject(Wr(e));this.logger.info("received mocked response!",{rawResponse:e});const t=Jr(e),n=null===t?e:new Zn(t,e);if(Zn.setUrl(a.url,n),Zn.isRedirectResponse(n.status)){if("error"===a.redirect)return void i.reject(Wr("unexpected redirect"));if("follow"===a.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(Wr());const n=new URL(e.url);let r;try{r=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(Wr(e))}if("http:"!==r.protocol&&"https:"!==r.protocol)return Promise.reject(Wr("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,Kr)>20)return Promise.reject(Wr("redirect count exceeded"));if(Object.defineProperty(e,Kr,{value:(Reflect.get(e,Kr)||0)+1}),"cors"===e.mode&&(r.username||r.password)&&!$r(n,r))return Promise.reject(Wr('cross origin not allowed for request mode "cors"'));const o={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(o.method="GET",o.body=null,Hr.forEach(t=>{e.headers.delete(t)})),$r(n,r)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),o.headers=e.headers;const a=await fetch(new Request(r,o));return Object.defineProperty(a,"redirected",{value:!0,configurable:!0}),a}(a,n).then(e=>{i.resolve(e)},e=>{i.reject(e)})}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await qr(this.emitter,"response",{response:n.clone(),isMockedResponse:!0,request:a,requestId:r})),i.resolve(n)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),i.reject(e)}});return this.logger.info("[%s] %s",a.method,a.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await Vr({request:a,requestId:r,emitter:this.emitter,controller:s}),i},Object.defineProperty(globalThis.fetch,Kn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,Kn,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}};var Xr=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},eo=class extends Xr{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}},to="undefined"!=typeof ProgressEvent;function no(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const n=Reflect.getPrototypeOf(e);return n?no(n,t):null}function ro(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:n,getProperty:r,setProperty:o}=e,a={};void 0!==t&&(a.construct=function(e,n,r){const o=Reflect.construct.bind(null,e,n,r);return t.call(r,n,o)});return a.set=function(e,t,n){const r=()=>{const r=no(e,t)||e,o=Reflect.getOwnPropertyDescriptor(r,t);return void 0!==o?.set?(o.set.apply(e,[n]),!0):Reflect.defineProperty(r,t,{writable:!0,enumerable:!0,configurable:!0,value:n})};return void 0!==o?o.call(e,[t,n],r):r()},a.get=function(e,t,o){const a=()=>e[t],i=void 0!==r?r.call(e,[t,o],a):a();return"function"==typeof i?(...r)=>{const o=i.bind(e,...r);return void 0!==n?n.call(e,[t,r],o):o()}:i},a}(t))}function oo(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const e of n){if(""===e.trim())continue;const[n,...r]=e.split(": "),o=r.join(": ");t.append(n,o)}return t}async function ao(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}var io=Symbol("kIsRequestHandled"),so=zn(),co=Symbol("kFetchRequest"),uo=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[io]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Er(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=ro(e,{setProperty:([e,t],n)=>{if("ontimeout"===e){const r=e.slice(2);return this.request.addEventListener(r,t),n()}return n()},methodCall:([e,t],n)=>{switch(e){case"open":{const[e,r]=t;return void 0===r?(this.method="GET",this.url=lo(e)):(this.method=e,this.url=lo(r)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),n()}case"addEventListener":{const[e,r]=t;return this.registerEvent(e,r),this.logger.info("addEventListener",e,r),n()}case"setRequestHeader":{const[e,r]=t;return this.requestHeaders.set(e,r),this.logger.info("setRequestHeader",e,r),n()}case"send":{const[e]=t;this.request.addEventListener("load",()=>{if(void 0!==this.onResponse){const e=function(e,t){return new Zn(Zn.isResponseWithBody(e.status)?t:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:oo(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[io],request:a,requestId:this.requestId})}});const o="string"==typeof e?(r=e,Sr.encode(r)):e,a=this.toFetchApiRequest(o);this[co]=a.clone(),queueMicrotask(()=>{(this.onRequest?.call(this,{request:a,requestId:this.requestId})||Promise.resolve()).finally(()=>{if(!this[io])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),so&&this.request.setRequestHeader("x-interceptors-internal-request-id",this.requestId),n()})});break}default:return n()}var r}}),po(this.request,"upload",ro(this.request.upload,{setProperty:([e,t],n)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const n=e.slice(2);this.registerUploadEvent(n,t)}}return n()},methodCall:([e,t],n)=>{if("addEventListener"===e){const[e,r]=t;return this.registerUploadEvent(e,r),this.logger.info("upload.addEventListener",e,r),n()}}}))}registerEvent(e,t){const n=(this.events.get(e)||[]).concat(t);this.events.set(e,n),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const n=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,n),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[io]=!0,this[co]){const e=await ao(this[co]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),po(this.request,"status",e.status),po(this.request,"statusText",e.statusText),po(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,n,r)=>{if(this.logger.info("getResponseHeader",r[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const o=e.headers.get(r[0]);return this.logger.info('resolved response header "%s" to',r[0],o),o}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map(([e,t])=>`${e}: ${t}`).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await ao(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),o=async()=>{const{value:e,done:a}=await r.read();if(a)return this.logger.info("response body stream done!"),void n();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),o()};o()}else n()}responseBufferToText(){return e=this.responseBuffer,new TextDecoder(t).decode(e);var e,t}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=(e=this.responseBuffer).buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}var e}get responseText(){if(jn(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(jn(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):function(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(t=>e.startsWith(t))}(e)?(new DOMParser).parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[io]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(po(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,n){const r=t[`on${e}`],o=function(e,t,n){const r=to?ProgressEvent:eo;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new r(t,{lengthComputable:!0,loaded:n?.loaded||0,total:n?.total||0}):new Xr(t,{target:e,currentTarget:e})}(t,e,n);this.logger.info('trigger "%s"',e,n||""),"function"==typeof r&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,o));const a=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[n,r]of a)n===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',r.length,e),r.forEach(e=>e.call(t,o)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return po(n,"headers",ro(n.headers,{methodCall:([e,t],r)=>{switch(e){case"append":case"set":{const[e,n]=t;this.request.setRequestHeader(e,n);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return r()}})),er(n,this.request),this.logger.info("converted request to a Fetch API Request!",n),n}};function lo(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function po(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}var ho=class e extends xr{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(e.interceptorSymbol)}checkEnvironment(){return Ur("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;jn(!t[Kn],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(n,r,o){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(n,r,o),i=Object.getOwnPropertyDescriptors(n.prototype);for(const e in i)Reflect.defineProperty(a,e,i[e]);const s=new uo(a,t);return s.onRequest=async function({request:t,requestId:n}){const r=new Qn(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{Gr(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await Vr({request:t,requestId:n,controller:r,emitter:e})},s.onResponse=async function({response:t,isMockedResponse:n,request:r,requestId:o}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:n,request:r,requestId:o})},s.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,Kn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,Kn,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}};var fo=class extends Pt{context;constructor(...e){super(...e),jn(!zn(),p.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.context=this.createWorkerContext()}createWorkerContext(){const e=new Nn;return{isMockingEnabled:!1,startOptions:null,workerPromise:e,registration:void 0,getRequestHandlers:()=>this.handlersController.currentHandlers(),emitter:this.emitter,workerChannel:new Nr({worker:e})}}async start(e={}){if("waitUntilReady"in e&&p.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.isMockingEnabled)return p.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.'),this.context.registration;if(this.context.workerStoppedAt=void 0,this.context.startOptions=i(qn,e),function(e){wn.on("connection",async t=>{const n=e.getHandlers().filter(Ct("EventHandler"));if(n.length>0)return e?.onMockedConnection(t),void await Promise.all(n.map(e=>e.run(t)));const r=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await v(r,e.getUnhandledRequestStrategy()).catch(e=>{const n=new Event("error");Object.defineProperty(n,"cause",{enumerable:!0,configurable:!1,value:e}),t.client.socket.dispatchEvent(n)}),e?.onPassthroughConnection(t),t.server.connect()})}({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:e=>{this.context.startOptions.quiet||On(e)},onPassthroughConnection(){}}),wn.apply(),this.subscriptions.push(()=>{wn.dispose()}),!Vn()){const e=function(e,t){const n=new Cr({name:"fallback",interceptors:[new Zr,new ho]});return n.on("request",async({request:n,requestId:r,controller:o})=>{const a=n.clone(),i=await St(n,r,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onMockedResponse(n,{handler:r,parsedResult:o}){t.quiet||e.emitter.once("response:mocked",({response:e})=>{r.log({request:a,response:e,parsedResult:o})})}});i&&o.respondWith(i)}),n.on("response",({response:t,isMockedResponse:n,request:r,requestId:o})=>{e.emitter.emit(n?"response:mocked":"response:bypass",{response:t,request:r,requestId:o})}),n.apply(),n}(this.context,this.context.startOptions);return this.subscriptions.push(()=>{e.dispose()}),this.context.isMockingEnabled=!0,void Mn({message:"Mocking enabled (fallback mode).",quiet:this.context.startOptions.quiet})}const t=Rr(this.context),n=await t(this.context.startOptions,e);return this.context.isMockingEnabled=!0,n}stop(){super.dispose(),this.context.isMockingEnabled?(this.context.isMockingEnabled=!1,this.context.workerStoppedAt=Date.now(),this.context.emitter.removeAllListeners(),Vn()&&(this.context.workerChannel.removeAllListeners("RESPONSE"),window.clearInterval(this.context.keepAliveInterval)),window.postMessage({type:"msw/worker:stop"}),function(e={}){e.quiet||console.log(`%c${p.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}({quiet:this.context.startOptions?.quiet})):p.warn('Found a redundant "worker.stop()" call. Notice that stopping the worker after it has already been stopped has no effect. Consider removing this "worker.stop()" call.')}};const{message:go}=Xe;function mo(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a=t.delimiter,i=void 0===a?"/#?":a,s=[],c=0,u=0,l="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],o=r.type,a=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=i;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(vo(i),"]+?"):"(?:(?!".concat(vo(n),")[^").concat(vo(i),"])+?")};u<n.length;){var g=d("CHAR"),m=d("NAME"),y=d("PATTERN");if(m||y){var v=g||"";-1===o.indexOf(v)&&(l+=v,v=""),l&&(s.push(l),l=""),s.push({name:m||c++,prefix:v,suffix:"",pattern:y||f(v),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)l+=b;else if(l&&(s.push(l),l=""),d("OPEN")){v=h();var _=d("NAME")||"",k=d("PATTERN")||"",w=h();p("CLOSE"),s.push({name:_||(k?c++:""),pattern:_&&!k?f(v):k,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else p("END")}}return s}function yo(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,s=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):s[n.name]=o(r[e],n)},u=1;u<r.length;u++)c(u);return{path:a,index:i,params:s}}}(ko(e,n,t),n,t)}function vo(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bo(e){return e&&e.sensitive?"":"i"}function _o(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,a=n.start,i=void 0===a||a,s=n.end,c=void 0===s||s,u=n.encode,l=void 0===u?function(e){return e}:u,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(vo(void 0===h?"":h),"]|$"),g="[".concat(vo(p),"]"),m=i?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if("string"==typeof b)m+=vo(l(b));else{var _=vo(l(b.prefix)),k=vo(l(b.suffix));if(b.pattern)if(t&&t.push(b),_||k)if("+"===b.modifier||"*"===b.modifier){var w="*"===b.modifier?"?":"";m+="(?:".concat(_,"((?:").concat(b.pattern,")(?:").concat(k).concat(_,"(?:").concat(b.pattern,"))*)").concat(k,")").concat(w)}else m+="(?:".concat(_,"(").concat(b.pattern,")").concat(k,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(_).concat(k,")").concat(b.modifier)}}if(c)o||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var x=e[e.length-1],E="string"==typeof x?g.indexOf(x[x.length-1])>-1:void 0===x;o||(m+="(?:".concat(g,"(?=").concat(f,"))?")),E||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,bo(n))}(mo(e,n),t,n)}function ko(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return ko(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),bo(n))}(e,t,n):_o(e,t,n)}var wo=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}};function xo(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}(class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new en}get#a(){return this.handled}async passthrough(){l.as(wo,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){l.as(wo,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){l.as(wo,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}});var Eo=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return;const n=xo("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=xo("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}};new TextEncoder;const So=/[?|#].*$/g;function Co(e){return e.endsWith("?")?e:e.replace(So,"")}function Ro(e,t){if(e instanceof RegExp)return e;const n=function(e,t){if(/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e))return e;if(e.startsWith("*"))return e;const n=t||"undefined"!=typeof location&&location.href;return n?decodeURI(new URL(encodeURI(e),n).href):e}(e,t);return Co(n)}function Io(e,t,n){const r=Ro(t,n),o="string"==typeof r?function(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{const r="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${r}`:r}).replace(/([^/])(:)(?=\d+)/,"$1\\$2").replace(/^([^/]+)(:)(?=\/\/)/,"$1\\$2")}(r):r,a=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}(e),i=yo(o,{decode:decodeURIComponent})(a);return{matches:!1!==i,params:i&&i.params||{}}}var To=Object.create,Ao=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Po=Object.getOwnPropertyNames,Do=Object.getPrototypeOf,Lo=Object.prototype.hasOwnProperty,jo=((e,t)=>function(){return t||(0,e[Po(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(e,t){const n=new i,r=e.length;if(r<2)return n;const o=t?.decode||u;let a=0;do{const t=e.indexOf("=",a);if(-1===t)break;const i=e.indexOf(";",a),u=-1===i?r:i;if(t>u){a=e.lastIndexOf(";",t-1)+1;continue}const l=s(e,a,t),d=c(e,t,l),p=e.slice(l,d);if(void 0===n[p]){let r=s(e,t+1,u),a=c(e,u,r);const i=o(e.slice(r,a));n[p]=i}a=u+1}while(a<r);return n},e.serialize=function(e,i,s){const c=s?.encode||encodeURIComponent;if(!t.test(e))throw new TypeError(`argument name is invalid: ${e}`);const u=c(i);if(!n.test(u))throw new TypeError(`argument val is invalid: ${i}`);let l=e+"="+u;if(!s)return l;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);l+="; Max-Age="+s.maxAge}if(s.domain){if(!r.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);l+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);l+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);l+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(l+="; HttpOnly");s.secure&&(l+="; Secure");s.partitioned&&(l+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return l};var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function u(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}}}),zo=((e,t,n)=>(n=null!=e?To(Do(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Po(t))Lo.call(e,o)||o===n||Ao(e,o,{get:()=>t[o],enumerable:!(r=Oo(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Ao(n,"default",{value:e,enumerable:!0}),e)))(jo(),1),No=zo.default||zo,qo=No.parse,Uo=No.serialize;function Bo(e){const t=qo(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Mo(){return Bo(document.cookie)}function Fo(e){const t=e.headers.get("cookie"),n=t?Bo(t):{},r=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Mo():{}}case"include":return Mo();default:return{}}}(e);for(const t in r)e.headers.append("cookie",Uo(t,r[t]));const o=qe.getCookies(e.url),a=Object.fromEntries(o.map(e=>[e.key,e.value]));for(const t of o)e.headers.append("cookie",t.toString());return{...r,...a,...n}}var Go=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Go||{});class Vo extends m{constructor(e,t,n,r){const o="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${o?` ${o}`:""}`,path:t,method:e},resolver:n,options:r}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;Co(t)!==t&&p.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=Fo(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?Io(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=y(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),r=await async function(e){const t=e.clone(),n=await t.text(),r=t.status||200;return{status:r,statusText:t.statusText||go[r]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),o=(a=r.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(p.formatMessage(`${xn()} ${e.request.method} ${t} (%c${r.status} ${r.statusText}%c)`),`color:${o}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",r),console.groupEnd()}}function Wo(e){return(t,n,r={})=>new Vo(e,t,n,r)}const Ho={all:Wo(/.+/),head:Wo(Go.HEAD),get:Wo(Go.GET),post:Wo(Go.POST),put:Wo(Go.PUT),delete:Wo(Go.DELETE),patch:Wo(Go.PATCH),options:Wo(Go.OPTIONS)},Ko=Symbol("bodyType");class $o extends Eo{[Ko]=null;constructor(e,t){const n=Et(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,xt,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=kt.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new $o(e,n)}static json(e,t){const n=Et(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const r=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",r?new Blob([r]).size.toString():"0"),new $o(r,n)}static xml(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new $o(e,n)}static html(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new $o(e,n)}static arrayBuffer(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new $o(e,n)}static formData(e,t){return new $o(e,Et(t))}}l("undefined"!=typeof URL,p.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var Qo,Yo={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},Jo={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Zo={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Xo={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ea=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ta={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},na=[Ho.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return $o.json(Yo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return $o.json(Jo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return $o.json(Zo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return $o.json(Xo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return $o.json(ea)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return $o.json(ta)})],ra={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},oa={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},aa={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Qo||(Qo={}));var ia={sales_volume_metric_group:aa.sales_volume_metric_group,total_payments:aa.total_payments},sa=Ho.get("/api/insights/overview-metrics",function(){return $o.json(ia)}),ca=[Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.GENERAL),function(){return $o.json({sales_volume_metric_group:ia.sales_volume_metric_group})}),Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.LATENCY),function(){return $o.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.STATUS),function(){return $o.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.SUBSCRIPTIONS),function(){return $o.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],ua=e.__spreadArray([sa],ca,!0),la=e.__spreadArray([Ho.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return $o.json(ra)}),Ho.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return $o.json(oa)}),Ho.get("*/accounts/webhooks/:accountCode",function(){return $o.json({})}),Ho.get("*/accounts/webhooks/params-catalog",function(){return $o.json({})}),Ho.get("*/accounts/webhooks-v2/:accountCode",function(){return $o.json({})})],ua,!0),da={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},pa={total:100,page:1,page_size:10,total_pages:10},ha={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},fa={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},ga={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},ma=da,ya={data:[ha,e.__assign(e.__assign({},ha),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:pa},va=e.__assign(e.__assign({},da),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),ba={data:[e.__assign(e.__assign({},ha),{reconciliation_status:"STATUS_CONFLICT"})],pagination:e.__assign(e.__assign({},pa),{total:20,total_pages:2})},_a=e.__assign(e.__assign({},da),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),ka={data:[e.__assign(e.__assign({},ha),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:e.__assign(e.__assign({},pa),{total:10,total_pages:1})},wa={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},xa=e.__assign(e.__assign({},da),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),Ea={data:[e.__assign(e.__assign({},ha),{reconciliation_status:"DATE_CONFLICT"})],pagination:e.__assign(e.__assign({},pa),{total:55,total_pages:6})},Sa={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Ca=e.__assign(e.__assign({},da),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),Ra={data:[e.__assign(e.__assign({},fa),{fee_status:"MISMATCH"}),e.__assign(e.__assign({},fa),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:e.__assign(e.__assign({},pa),{total:15,total_pages:2})},Ia={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},Ta={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},Aa=e.__assign(e.__assign({},da),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Oa={data:[fa],pagination:e.__assign(e.__assign({},pa),{total:800,total_pages:80})},Pa={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Da=e.__assign(e.__assign({},da),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),La={data:[e.__assign(e.__assign({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:e.__assign(e.__assign({},pa),{total:25,total_pages:3})},ja={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},za={primary_key:"pk_mock_123",organization_code:"org_mock",account_id:"acc_mock",provider_merchant_id:"pmid_mock",provider_id:"provider_mock",acquirer:"acquirer_mock",country:"AR",payment_method_category:"CARD",payment_method_type:"CREDIT_CARD",settlement_batch_id:"batch_mock",payment_id:"pay_found_123",transaction_id:"txn_mock",provider_transaction_id:"ptxn_mock",third_party_transaction_id_transaction:"tp_txn_mock",merchant_order_id:"order_mock",merchant_reference:"ref_mock",transaction_date:"2026-05-06 13:48:17",settlement_date:"2026-05-08",type:"PURCHASE",reconciliation_status:"RECONCILED",reconciliation_sub_status:"MATCH_FOUND",reconciliation_id:"recon_mock",amount:19099,gross_currency:"ARS",gross_credit:19099,gross_debit:0,settlement_currency:"USD",fx_rate:.00115,settlement_gross_amount:21.96,fee_rate:.0349,settlement_fees:.77,settlement_fee_taxes:.04,settlement_taxes:0,settlement_net_credit:21.15,settlement_net_debit:0,card_brand:"VISA",card_type:"CREDIT",card_iin:"450799",card_lfd:"1234",authorization_code:"123456",installments:1,installment_number:1},Na="*/reconciliations/insights",qa=[Ho.post("".concat(Na,"/conflicts/summary"),function(){return $o.json(ga)}),Ho.post("".concat(Na,"/not-reconciled/aggregators"),function(){return $o.json(ma)}),Ho.post("".concat(Na,"/not-reconciled/list"),function(){return $o.json(ya)}),Ho.post("".concat(Na,"/status-conflict/aggregators"),function(){return $o.json(va)}),Ho.post("".concat(Na,"/status-conflict/list"),function(){return $o.json(ba)}),Ho.post("".concat(Na,"/amount-conflict/aggregators"),function(){return $o.json(_a)}),Ho.post("".concat(Na,"/amount-conflict/list"),function(){return $o.json(ka)}),Ho.post("".concat(Na,"/conflict-date/summary"),function(){return $o.json(wa)}),Ho.post("".concat(Na,"/conflict-date/aggregators"),function(){return $o.json(xa)}),Ho.post("".concat(Na,"/conflict-date/list"),function(){return $o.json(Ea)}),Ho.post("".concat(Na,"/incorrect-fees/summary"),function(){return $o.json(Sa)}),Ho.post("".concat(Na,"/incorrect-fees/aggregators"),function(){return $o.json(Ca)}),Ho.post("".concat(Na,"/incorrect-fees/list"),function(){return $o.json(Ra)}),Ho.post("".concat(Na,"/fees-charged/summary"),function(){return $o.json(Ia)}),Ho.post("".concat(Na,"/reconciled/summary"),function(){return $o.json(Ta)}),Ho.post("".concat(Na,"/reconciled/aggregators"),function(){return $o.json(Aa)}),Ho.post("".concat(Na,"/reconciled/list"),function(){return $o.json(Oa)}),Ho.post("".concat(Na,"/not-confirm/summary"),function(){return $o.json(Pa)}),Ho.post("".concat(Na,"/not-confirm/aggregators"),function(){return $o.json(Da)}),Ho.post("".concat(Na,"/not-confirm/list"),function(){return $o.json(La)}),Ho.post("".concat(Na,"/amount-to-be-settled/summary"),function(){return $o.json(ja)}),Ho.post("".concat(Na,"/reconciliation-rate/summary/by-provider"),function(){return $o.json({total:{total_transactions:0,transactions_percentage:0},data:[]})}),Ho.post("".concat(Na,"/reconciliation-rate/summary/by-account"),function(){return $o.json([])}),Ho.post("".concat(Na,"/reconciliation-rate/summary/by-currency"),function(){return $o.json([])}),Ho.post("".concat(Na,"/settlement/lookup"),function(){return $o.json(za)})],Ua=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],Ba={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},Ma={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Fa={deleted:!0},Ga=[Ho.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return $o.json(Ua)}),Ho.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return $o.json(Ba)}),Ho.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return $o.json(Ma)}),Ho.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return $o.json(Fa)})],Va={account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z"},Wa={data:[e.__assign({id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",date_of_birth:"1990-05-12",website:null,industry:null,merchant_category_code:null,document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"}},Va),e.__assign(e.__assign({id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",date_of_birth:null,website:"https://acmepayments.com",industry:"Financial Services",merchant_category_code:"5411",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"}},Va),{account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z"}),e.__assign(e.__assign({id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",date_of_birth:"1985-11-30",website:null,industry:null,merchant_category_code:null,document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"}},Va),{account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z"}),e.__assign(e.__assign({id:"rec_004",merchant_recipient_id:null,national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"TechPay Solutions S.A.",email:"admin@techpay.co",date_of_birth:null,website:"https://techpay.co",industry:"Technology",merchant_category_code:"7372",document:{number:"900123456",type:"NIT"},phone:{country_code:"+57",number:"3001234567"},address:{address_line_1:"Carrera 7 #80-49",address_line_2:"Oficina 605",city:"Bogotá",state:"Cundinamarca",zip_code:"110221",country:"CO"}},Va),{account_id:"acc_test_003",country:"CO",created_at:"2026-02-10T15:30:00.000Z",updated_at:"2026-03-01T11:00:00.000Z"}),e.__assign(e.__assign({id:"rec_005",merchant_recipient_id:"merch-rec-005",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"João",last_name:"Silva",legal_name:null,email:"joao.silva@example.com",date_of_birth:"1992-08-25",website:null,industry:null,merchant_category_code:null,document:{number:"98765432100",type:"CPF"},phone:{country_code:"+55",number:"21988776655"},address:{address_line_1:"Rua Voluntários da Pátria 45",address_line_2:null,city:"Rio de Janeiro",state:"RJ",zip_code:"22270-000",country:"BR"}},Va),{created_at:"2026-02-15T09:00:00.000Z",updated_at:"2026-03-01T17:45:00.000Z"})],pagination:{page:1,page_size:25,total_items:5,total_pages:1,has_next:!1,has_previous:!1}},Ha={id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z",document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"},withdrawal_method:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_001",provider_id:"stripe",provider:{name:"Stripe",icon:"https://cdn.y.uno/providers/stripe.svg"},status:"APPROVED",response_message:null,created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z"},{id:"onb_002",provider_id:"adyen",provider:{name:"Adyen",icon:"https://cdn.y.uno/providers/adyen.svg"},status:"PENDING",response_message:null,created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z"}]},Ka={id:"onb_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Stripe onboarding for payout capabilities",status:"APPROVED",response_message:null,callback_url:"https://example.com/callback/onboarding",provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:"acct_1NcVZQS0m7FGzPCG",recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:"ba_1Nc000",recipient_type:null,raw_notification:null,raw_response:null,response_code:"200",response_message:"OK"},documentation:[],legal_representatives:[],withdrawal_methods:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL"}},requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},terms_of_service:{acceptance:!0,date:"2026-01-16T08:00:00.000Z",ip:"200.100.50.25"},metadata:[],created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z",expires_at:null},$a=[{timestamp:"2026-01-16T08:00:00.000Z",event_type:"ONBOARDING_CREATED",status:"PENDING",event_data:{provider_id:"stripe",provider_status:null,provider_response_code:null,provider_response_message:null,provider_recipient_id:null,provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-16T08:01:30.000Z",event_type:"ONBOARDING_SUBMITTED",status:"IN_PROGRESS",event_data:{provider_id:"stripe",provider_status:"IN_PROGRESS",provider_response_code:"200",provider_response_message:"Onboarding submitted successfully",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-18T12:00:00.000Z",event_type:"ONBOARDING_APPROVED",status:"APPROVED",event_data:{provider_id:"stripe",provider_status:"APPROVED",provider_response_code:"200",provider_response_message:"Onboarding approved",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},change_type:null}}],Qa={id:"rec_new_001",merchant_recipient_id:null,national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"New",last_name:"Recipient",legal_name:null,email:"new.recipient@example.com",account_id:"acc_test_001",country:"BR",created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),document:{number:"11122233344",type:"CPF"},phone:{country_code:"+55",number:"11900001111"},address:null,withdrawal_method:null,documentation:[],onboardings:[]};e.__assign(e.__assign({},Ha),{updated_at:(new Date).toISOString()});var Ya={message:"Recipient deleted successfully"},Ja={id:"onb_new_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"New onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),expires_at:null},Za=e.__assign(e.__assign({},Ka),{updated_at:(new Date).toISOString()}),Xa=e.__assign(e.__assign({},Ka),{status:"BLOCKED",updated_at:(new Date).toISOString()}),ei=e.__assign(e.__assign({},Ka),{status:"APPROVED",updated_at:(new Date).toISOString()}),ti="https://dev.y.uno/dashboard-bff/api",ni={rec_001:Ha,rec_002:{id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"},withdrawal_method:{bank:{code:"341",branch:"0001",branch_digit:"0",account:"12345678",account_digit:"9",account_type:"CHECKINGS",routing:"34100001",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_003",provider_id:"dlocal",provider:{name:"dLocal",icon:"https://cdn.y.uno/providers/dlocal.svg"},status:"IN_PROGRESS",response_message:"Waiting for document verification",created_at:"2026-02-01T10:00:00.000Z",updated_at:"2026-02-15T14:00:00.000Z"}]},rec_003:{id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z",document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"},withdrawal_method:null,documentation:[],onboardings:[]}},ri={onb_001:Ka,onb_002:{id:"onb_002",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Adyen onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"adyen",connection_id:"conn_adyen_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z",expires_at:null}},oi=[Ho.get("".concat(ti,"/recipients"),function(){return $o.json(Wa)}),Ho.get("".concat(ti,"/recipients/:recipientId"),function(t){var n=t.params.recipientId,r=ni[n];return r?$o.json(r):$o.json(e.__assign(e.__assign({},Ha),{id:n}))}),Ho.get("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId"),function(t){var n=t.params.onboardingId,r=ri[n];return r?$o.json(r):$o.json(e.__assign(e.__assign({},Ka),{id:n}))}),Ho.get("".concat(ti,"/recipients/onboardings/:onboardingId/timeline"),function(){return $o.json($a)}),Ho.post("".concat(ti,"/recipients"),function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(r){switch(r.label){case 0:return[4,n.json()];case 1:return t=r.sent(),[2,$o.json(e.__assign(e.__assign(e.__assign({},Qa),t),{id:"rec_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),Ho.patch("".concat(ti,"/recipients/:recipientId"),function(t){var n=t.request,r=t.params;return e.__awaiter(void 0,void 0,void 0,function(){var t,o,a;return e.__generator(this,function(i){switch(i.label){case 0:return[4,n.json()];case 1:return t=i.sent(),o=r.recipientId,a=ni[o]||Ha,[2,$o.json(e.__assign(e.__assign(e.__assign({},a),t),{id:o,updated_at:(new Date).toISOString()}))]}})})}),Ho.delete("".concat(ti,"/recipients/:recipientId"),function(){return $o.json(Ya)}),Ho.post("".concat(ti,"/recipients/:recipientId/onboardings"),function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(r){switch(r.label){case 0:return[4,n.json()];case 1:return t=r.sent(),[2,$o.json(e.__assign(e.__assign(e.__assign({},Ja),t),{id:"onb_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),Ho.patch("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId"),function(t){var n=t.request,r=t.params;return e.__awaiter(void 0,void 0,void 0,function(){var t,o;return e.__generator(this,function(a){switch(a.label){case 0:return[4,n.json()];case 1:return t=a.sent(),o=r.onboardingId,[2,$o.json(e.__assign(e.__assign(e.__assign({},Za),t),{id:o,updated_at:(new Date).toISOString()}))]}})})}),Ho.post("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId/block"),function(t){var n=t.params.onboardingId;return $o.json(e.__assign(e.__assign({},Xa),{id:n,updated_at:(new Date).toISOString()}))}),Ho.post("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId/unblock"),function(t){var n=t.params.onboardingId;return $o.json(e.__assign(e.__assign({},ei),{id:n,updated_at:(new Date).toISOString()}))})],ai={data:[{code:"api-log-001",url:"/api/v1/payments",method:"POST",source:"dashboard",headers:{"Content-Type":"application/json",Authorization:"Bearer token123"},request:{amount:"100.00",currency:"USD"},response:{status:"success",payment_id:"pay_123"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-123-456",created_at:"2024-03-01T10:00:00Z",payment_code:"PAY001",transaction_code:"TXN001"},{code:"api-log-002",url:"/api/v1/payments/PAY001",method:"GET",source:"api",headers:{"Content-Type":"application/json"},request:{},response:{payment_code:"PAY001",amount:"100.00"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-789-012",created_at:"2024-03-01T10:05:00Z"}],page:1,size:10,total_rows:2,total_pages:1},ii=[Ho.post("https://dev.y.uno/dashboard-bff/api/v3/api-logs/organization",function(){return $o.json(ai)})],si={data:[{id:1,organization_code:"ORG001",account_code:"ACC001",type:"payment.succeeded",created_at:"2024-03-01T10:00:00Z",updated_at:"2024-03-01T10:00:00Z",time:250,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.succeeded",payment_code:"PAY001"}),response:JSON.stringify({received:!0}),response_status:200,connect_timeout:5e3,read_timeout:1e4,exception:"",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-001",origin_id:"origin-001",payment_code:"PAY001",transaction_code:"TXN001"},{id:2,organization_code:"ORG001",account_code:"ACC001",type:"payment.failed",created_at:"2024-03-01T10:05:00Z",updated_at:"2024-03-01T10:05:00Z",time:300,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.failed",payment_code:"PAY002"}),response:"",response_status:500,connect_timeout:5e3,read_timeout:1e4,exception:"Connection timeout",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-002",origin_id:"origin-002",payment_code:"PAY002"}],page:1,size:10,total_rows:2,total_pages:1},ci=[Ho.post("https://dev.y.uno/dashboard-bff/api/v3/webhooks/timeline",function(){return $o.json(si)})],ui=function(t){return void 0===t&&(t={}),e.__assign({id:1,code:"7471bbc5-76f0-4bb9-aad6-dd21fb68a0c8",account_code_live:"7471bbc5-76f0-4bb9-aad6-dd21fb68a0c8",account_code_testing:"56fc6485-6015-4c0b-b8ee-3fb687a107e6",status:"ACTIVE",active:!0,principal:!1,name:"Mock Account",organization_code:"daff0d16-9e94-45d4-8f9f-fe70a6d3bb3c",created_at:null,updated_at:null,user_account_code:"92f73a2c-2a6a-4ccb-85c5-68b61ad52686",role:{id:"rol_sAnEykYxo6e4x2wY",name:"Admin",admin:!0,staff:!0,permission_ids:["manage_accounts"]}},t)},li=ui(),di=ui({code:"ebad3a4e-a145-4bc9-9bba-d5d5f2130287",account_code_live:"ebad3a4e-a145-4bc9-9bba-d5d5f2130287",name:"Disabled Account",status:"INACTIVE",active:!1}),pi=[Ho.post("/v1/accounts/bulk-disable",function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,n.json()];case 1:return t=e.sent(),[2,$o.json(t.account_codes.map(function(e){return ui({code:e,status:"INACTIVE",active:!1})}))]}})})}),Ho.post("/v1/accounts/bulk-enable",function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,n.json()];case 1:return t=e.sent(),[2,$o.json(t.account_codes.map(function(e){return ui({code:e,status:"ACTIVE",active:!0})}))]}})})}),Ho.get("/v1/accounts/by-organization",function(e){var t=e.request,n="true"===new URL(t.url).searchParams.get("includeDisabled");return $o.json(n?[li,di]:[li])}),Ho.get("/v1/accounts/organization/:organizationCode",function(e){var t=e.request,n="true"===new URL(t.url).searchParams.get("includeDisabled");return $o.json(n?[li,di]:[li])})],hi=[Ho.get("".concat("https://dev.y.uno/dashboard-bff/api","/mfa/status"),function(){return $o.json({mfa_active:!0,factor_id:"auth_factor_123"})})],fi=[Ho.get("".concat("https://dev.y.uno/dashboard-bff/api","/hidden-fields"),function(e){var t=e.request,n=new URL(t.url).searchParams.get("scope");return n?$o.json([{scope:n,fields:[]}]):$o.json([])})],gi=e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray([],na,!0),la,!0),qa,!0),Ga,!0),oi,!0),ii,!0),ci,!0),pi,!0),hi,!0),fi,!0),mi=function(...e){return new fo(...e)}.apply(void 0,gi),yi="MSW_ENABLED";function vi(e){e?(localStorage.setItem(yi,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(yi),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function bi(){return"true"===localStorage.getItem(yi)}function _i(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return vi(!0)},window.disableMSW=function(){return vi(!1)},window.isMSWEnabled=bi);const{toString:ki}=Object.prototype,{getPrototypeOf:wi}=Object,{iterator:xi,toStringTag:Ei}=Symbol,Si=(Ci=Object.create(null),e=>{const t=ki.call(e);return Ci[t]||(Ci[t]=t.slice(8,-1).toLowerCase())});var Ci;const Ri=e=>(e=e.toLowerCase(),t=>Si(t)===e),Ii=e=>t=>typeof t===e,{isArray:Ti}=Array,Ai=Ii("undefined");function Oi(e){return null!==e&&!Ai(e)&&null!==e.constructor&&!Ai(e.constructor)&&Li(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pi=Ri("ArrayBuffer");const Di=Ii("string"),Li=Ii("function"),ji=Ii("number"),zi=e=>null!==e&&"object"==typeof e,Ni=e=>{if("object"!==Si(e))return!1;const t=wi(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ei in e||xi in e)},qi=Ri("Date"),Ui=Ri("File"),Bi=Ri("Blob"),Mi=Ri("FileList");const Fi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Gi=void 0!==Fi.FormData?Fi.FormData:void 0,Vi=Ri("URLSearchParams"),[Wi,Hi,Ki,$i]=["ReadableStream","Request","Response","Headers"].map(Ri);function Qi(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Ti(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Oi(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Yi(e,t){if(Oi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ji="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Zi=e=>!Ai(e)&&e!==Ji;const Xi=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&wi(Uint8Array)),es=Ri("HTMLFormElement"),ts=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ns=Ri("RegExp"),rs=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qi(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const os=Ri("AsyncFunction"),as=(is="function"==typeof setImmediate,ss=Li(Ji.postMessage),is?setImmediate:ss?(cs=`axios@${Math.random()}`,us=[],Ji.addEventListener("message",({source:e,data:t})=>{e===Ji&&t===cs&&us.length&&us.shift()()},!1),e=>{us.push(e),Ji.postMessage(cs,"*")}):e=>setTimeout(e));var is,ss,cs,us;const ls="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ji):"undefined"!=typeof process&&process.nextTick||as;var ds={isArray:Ti,isArrayBuffer:Pi,isBuffer:Oi,isFormData:e=>{if(!e)return!1;if(Gi&&e instanceof Gi)return!0;const t=wi(e);if(!t||t===Object.prototype)return!1;if(!Li(e.append))return!1;const n=Si(e);return"formdata"===n||"object"===n&&Li(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pi(e.buffer),t},isString:Di,isNumber:ji,isBoolean:e=>!0===e||!1===e,isObject:zi,isPlainObject:Ni,isEmptyObject:e=>{if(!zi(e)||Oi(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Wi,isRequest:Hi,isResponse:Ki,isHeaders:$i,isUndefined:Ai,isDate:qi,isFile:Ui,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Bi,isRegExp:ns,isFunction:Li,isStream:e=>zi(e)&&Li(e.pipe),isURLSearchParams:Vi,isTypedArray:Xi,isFileList:Mi,forEach:Qi,merge:function e(...t){const{caseless:n,skipUndefined:r}=Zi(this)&&this||{},o={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=n&&Yi(o,a)||a,s=ts(o,i)?o[i]:void 0;Ni(s)&&Ni(t)?o[i]=e(s,t):Ni(t)?o[i]=e({},t):Ti(t)?o[i]=t.slice():r&&Ai(t)||(o[i]=t)};for(let e=0,n=t.length;e<n;e++)t[e]&&Qi(t[e],a);return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Qi(t,(t,r)=>{n&&Li(t)?Object.defineProperty(e,r,{__proto__:null,value:_i(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&wi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Si,kindOfTest:Ri,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Ti(e))return e;let t=e.length;if(!ji(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[xi]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:es,hasOwnProperty:ts,hasOwnProp:ts,reduceDescriptors:rs,freezeMethods:e=>{rs(e,(t,n)=>{if(Li(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];Li(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ti(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Yi,global:Ji,isContextDefined:Zi,isSpecCompliantForm:function(e){return!!(e&&Li(e.append)&&"FormData"===e[Ei]&&e[xi])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(zi(e)){if(t.indexOf(e)>=0)return;if(Oi(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Ti(e)?[]:{};return Qi(e,(e,t)=>{const a=n(e,r+1);!Ai(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:os,isThenable:e=>e&&(zi(e)||Li(e))&&Li(e.then)&&Li(e.catch),setImmediate:as,asap:ls,isIterable:e=>null!=e&&Li(e[xi])};const ps=ds.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 hs=Symbol("internals"),fs=/[^\x09\x20-\x7E\x80-\xFF]/g;function gs(e){return e&&String(e).trim().toLowerCase()}function ms(e){return!1===e||null==e?e:ds.isArray(e)?e.map(ms):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(fs,""))}function ys(e,t,n,r,o){return ds.isFunction(r)?r.call(this,t,n):(o&&(t=n),ds.isString(t)?ds.isString(r)?-1!==t.indexOf(r):ds.isRegExp(r)?r.test(t):void 0:void 0)}class vs{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=gs(t);if(!o)throw new Error("header name must be a non-empty string");const a=ds.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=ms(e))}const a=(e,t)=>ds.forEach(e,(e,n)=>o(e,n,t));if(ds.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ds.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ps[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ds.isObject(e)&&ds.isIterable(e)){let n,r,o={};for(const t of e){if(!ds.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ds.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=gs(e)){const n=ds.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 r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ds.isFunction(t))return t.call(this,e,n);if(ds.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gs(e)){const n=ds.findKey(this,e);return!(!n||void 0===this[n]||t&&!ys(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=gs(e)){const o=ds.findKey(n,e);!o||t&&!ys(0,n[o],o,t)||(delete n[o],r=!0)}}return ds.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ys(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ds.forEach(this,(r,o)=>{const a=ds.findKey(n,o);if(a)return t[a]=ms(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=ms(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ds.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ds.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[hs]=this[hs]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=gs(e);t[r]||(!function(e,t){const n=ds.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ds.isArray(e)?e.forEach(r):r(e),this}}vs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ds.reduceDescriptors(vs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ds.freezeMethods(vs);var bs=vs;function _s(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(ds.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof bs&&(e=e.toJSON()),r.push(e),ds.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);ds.isUndefined(r)||(t[n]=r)});else{if(!ds.isPlainObject(e)&&function(e){if(ds.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ds.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,a]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(a);ds.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}class ks extends Error{static from(e,t,n,r,o,a){const i=new ks(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),a&&Object.assign(i,a),i}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&ds.hasOwnProp(e,"redact")?e.redact:void 0,n=ds.isArray(t)&&t.length>0?_s(e,t):ds.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}ks.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ks.ERR_BAD_OPTION="ERR_BAD_OPTION",ks.ECONNABORTED="ECONNABORTED",ks.ETIMEDOUT="ETIMEDOUT",ks.ECONNREFUSED="ECONNREFUSED",ks.ERR_NETWORK="ERR_NETWORK",ks.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ks.ERR_DEPRECATED="ERR_DEPRECATED",ks.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ks.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ks.ERR_CANCELED="ERR_CANCELED",ks.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ks.ERR_INVALID_URL="ERR_INVALID_URL",ks.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ws=ks;function xs(e){return ds.isPlainObject(e)||ds.isArray(e)}function Es(e){return ds.endsWith(e,"[]")?e.slice(0,-2):e}function Ss(e,t,n){return e?e.concat(t).map(function(e,t){return e=Es(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Cs=ds.toFlatObject(ds,{},null,function(e){return/^is[A-Z]/.test(e)});function Rs(e,t,n){if(!ds.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ds.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ds.isUndefined(t[e])})).metaTokens,o=n.visitor||d,a=n.dots,i=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,u=s&&ds.isSpecCompliantForm(t);if(!ds.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ds.isDate(e))return e.toISOString();if(ds.isBoolean(e))return e.toString();if(!u&&ds.isBlob(e))throw new ws("Blob is not supported. Use a Buffer instead.");return ds.isArrayBuffer(e)||ds.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,o){let s=e;if(ds.isReactNative(t)&&ds.isReactNativeBlob(e))return t.append(Ss(o,n,a),l(e)),!1;if(e&&!o&&"object"==typeof e)if(ds.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ds.isArray(e)&&function(e){return ds.isArray(e)&&!e.some(xs)}(e)||(ds.isFileList(e)||ds.endsWith(n,"[]"))&&(s=ds.toArray(e)))return n=Es(n),s.forEach(function(e,r){!ds.isUndefined(e)&&null!==e&&t.append(!0===i?Ss([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!xs(e)||(t.append(Ss(o,n,a),l(e)),!1)}const p=[],h=Object.assign(Cs,{defaultVisitor:d,convertValue:l,isVisitable:xs});if(!ds.isObject(e))throw new TypeError("data must be an object");return function e(n,r,a=0){if(!ds.isUndefined(n)){if(a>c)throw new ws("Object is too deeply nested ("+a+" levels). Max depth: "+c,ws.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),ds.forEach(n,function(n,i){!0===(!(ds.isUndefined(n)||null===n)&&o.call(t,n,ds.isString(i)?i.trim():i,r,h))&&e(n,r?r.concat(i):[i],a+1)}),p.pop()}}(e),t}function Is(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ts(e,t){this._pairs=[],e&&Rs(e,this,t)}const As=Ts.prototype;function Os(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ps(e,t,n){if(!t)return e;const r=n&&n.encode||Os,o=ds.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):ds.isURLSearchParams(t)?t.toString():new Ts(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}As.append=function(e,t){this._pairs.push([e,t])},As.toString=function(e){const t=e?function(t){return e.call(this,t,Is)}:Is;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ds=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){ds.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},js={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ts,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const zs="undefined"!=typeof window&&"undefined"!=typeof document,Ns="object"==typeof navigator&&navigator||void 0,qs=zs&&(!Ns||["ReactNative","NativeScript","NS"].indexOf(Ns.product)<0),Us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Bs=zs&&window.location.href||"http://localhost";var Ms={...Object.freeze({__proto__:null,hasBrowserEnv:zs,hasStandardBrowserEnv:qs,hasStandardBrowserWebWorkerEnv:Us,navigator:Ns,origin:Bs}),...js};function Fs(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&ds.isArray(r)?r.length:a,s)return ds.hasOwnProp(r,a)?r[a]=ds.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!i;r[a]&&ds.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&ds.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(ds.isFormData(e)&&ds.isFunction(e.entries)){const n={};return ds.forEachEntry(e,(e,r)=>{t(function(e){return ds.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Gs=(e,t)=>null!=e&&ds.hasOwnProp(e,t)?e[t]:void 0;const Vs={transitional:Ls,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ds.isObject(e);o&&ds.isHTMLForm(e)&&(e=new FormData(e));if(ds.isFormData(e))return r?JSON.stringify(Fs(e)):e;if(ds.isArrayBuffer(e)||ds.isBuffer(e)||ds.isStream(e)||ds.isFile(e)||ds.isBlob(e)||ds.isReadableStream(e))return e;if(ds.isArrayBufferView(e))return e.buffer;if(ds.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const t=Gs(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Rs(e,new Ms.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ms.isNode&&ds.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((a=ds.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Gs(this,"env"),r=n&&n.FormData;return Rs(a?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ds.isString(e))try{return(t||JSON.parse)(e),ds.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Gs(this,"transitional")||Vs.transitional,n=t&&t.forcedJSONParsing,r=Gs(this,"responseType"),o="json"===r;if(ds.isResponse(e)||ds.isReadableStream(e))return e;if(e&&ds.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Gs(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw ws.from(e,ws.ERR_BAD_RESPONSE,this,null,Gs(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ms.classes.FormData,Blob:Ms.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ds.forEach(["delete","get","head","post","put","patch","query"],e=>{Vs.headers[e]={}});var Ws=Vs;function Hs(e,t){const n=this||Ws,r=t||n,o=bs.from(r.headers);let a=r.data;return ds.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ks(e){return!(!e||!e.__CANCEL__)}var $s=class extends ws{constructor(e,t,n){super(null==e?"canceled":e,ws.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Qs(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ws("Request failed with status code "+n.status,n.status>=400&&n.status<500?ws.ERR_BAD_REQUEST:ws.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Ys=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[i];o||(o=c),n[a]=s,r[a]=c;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=null!=i?Math.min(a,i):a,c=Math.max(0,s-r),u=o(c);r=Math.max(r,s);e({loaded:s,total:i,progress:i?s/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i?(i-s)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Js=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Zs=e=>(...t)=>ds.asap(()=>e(...t));var Xs=Ms.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ms.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ms.origin),Ms.navigator&&/(msie|trident)/i.test(Ms.navigator.userAgent)):()=>!0,ec=Ms.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ds.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ds.isString(r)&&s.push(`path=${r}`),ds.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),ds.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tc(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const nc=e=>e instanceof bs?{...e}:e;function rc(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return ds.isPlainObject(e)&&ds.isPlainObject(t)?ds.merge.call({caseless:r},e,t):ds.isPlainObject(t)?ds.merge({},t):ds.isArray(t)?t.slice():t}function o(e,t,n,o){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!ds.isUndefined(t))return r(void 0,t)}function i(e,t){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return ds.hasOwnProp(t,a)?r(n,o):ds.hasOwnProp(e,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(nc(e),nc(t),0,!0)};return ds.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=ds.hasOwnProp(c,r)?c[r]:o,i=a(ds.hasOwnProp(e,r)?e[r]:void 0,ds.hasOwnProp(t,r)?t[r]:void 0,r);ds.isUndefined(i)&&a!==s||(n[r]=i)}),n}const oc=["content-type","content-length"];var ac=e=>{const t=rc({},e),n=e=>ds.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),i=n("xsrfCookieName");let s=n("headers");const c=n("auth"),u=n("baseURL"),l=n("allowAbsoluteUrls"),d=n("url");var p;if(t.headers=s=bs.from(s),t.url=Ps(tc(u,d,l),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?(p=c.password,encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),ds.isFormData(r)&&(Ms.hasStandardBrowserEnv||Ms.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):ds.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{oc.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),Ms.hasStandardBrowserEnv){ds.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Xs(t.url)){const e=a&&i&&ec.read(i);e&&s.set(a,e)}}return t};var ic="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ac(e);let o=r.data;const a=bs.from(r.headers).normalize();let i,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=bs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Qs(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ws("Request aborted",ws.ECONNABORTED,e,g)),f(),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ws(r,ws.ERR_NETWORK,e,g);o.event=t||null,n(o),f(),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ls;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ws(t,o.clarifyTimeoutError?ws.ETIMEDOUT:ws.ECONNABORTED,e,g)),f(),g=null},void 0===o&&a.setContentType(null),"setRequestHeader"in g&&ds.forEach(a.toJSON(),function(e,t){g.setRequestHeader(t,e)}),ds.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([c,l]=Ys(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([s,u]=Ys(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{g&&(n(!t||t.type?new $s(null,e,g):t),g.abort(),f(),g=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!y||Ms.protocols.includes(y)?g.send(o||null):n(new ws("Unsupported protocol "+y+":",ws.ERR_BAD_REQUEST,e))})};var sc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ws?t:new $s(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new ws(`timeout of ${t}ms exceeded`,ws.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ds.asap(i),s}};const cc=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},uc=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()}},lc=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of uc(e))yield*cc(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})};const dc="1.16.0",{isFunction:pc}=ds,hc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},fc=e=>{const t=ds.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ds.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:i}=e,s=o?pc(o):"function"==typeof fetch,c=pc(a),u=pc(i);if(!s)return!1;const l=s&&pc(n),d=s&&("function"==typeof r?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),p=c&&l&&hc(()=>{let e=!1;const t=new a(Ms.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=u&&l&&hc(()=>ds.isReadableStream(new i("").body)),f={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ws(`Response type '${e}' is not supported`,ws.ERR_NOT_SUPPORT,n)})});const g=async(e,t)=>{const n=ds.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ds.isBlob(e))return e.size;if(ds.isSpecCompliantForm(e)){const t=new a(Ms.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ds.isArrayBufferView(e)||ds.isArrayBuffer(e)?e.byteLength:(ds.isURLSearchParams(e)&&(e+=""),ds.isString(e)?(await d(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:s,signal:u,cancelToken:l,timeout:d,onDownloadProgress:m,onUploadProgress:y,responseType:v,headers:b,withCredentials:_="same-origin",fetchOptions:k,maxContentLength:w,maxBodyLength:x}=ac(e);const E=ds.isNumber(w)&&w>-1,S=ds.isNumber(x)&&x>-1;let C=o||fetch;v=v?(v+"").toLowerCase():"text";let R=sc([u,l&&l.toAbortSignal()],d),I=null;const T=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let A;try{if(E&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const a=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):a(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||a(o))&&n++;const i=3*Math.floor(e/4)-(n||0);return i>0?i:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>w)throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I)}if(S&&"get"!==n&&"head"!==n){const t=await g(b,s);if("number"==typeof t&&isFinite(t)&&t>x)throw new ws("Request body larger than maxBodyLength limit",ws.ERR_BAD_REQUEST,e,I)}if(y&&p&&"get"!==n&&"head"!==n&&0!==(A=await g(b,s))){let e,n=new a(t,{method:"POST",body:s,duplex:"half"});if(ds.isFormData(s)&&(e=n.headers.get("content-type"))&&b.setContentType(e),n.body){const[e,t]=Js(A,Ys(Zs(y)));s=lc(n.body,65536,e,t)}}ds.isString(_)||(_=_?"include":"omit");const o=c&&"credentials"in a.prototype;if(ds.isFormData(s)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}b.set("User-Agent","axios/"+dc,!1);const u={...k,signal:R,method:n.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:o?_:void 0};I=c&&new a(t,u);let l=await(c?C(I,k):C(t,u));if(E){const t=ds.toFiniteNumber(l.headers.get("content-length"));if(null!=t&&t>w)throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I)}const d=h&&("stream"===v||"response"===v);if(h&&l.body&&(m||E||d&&T)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=l[e]});const n=ds.toFiniteNumber(l.headers.get("content-length")),[r,o]=m&&Js(n,Ys(Zs(m),!0))||[];let a=0;const s=t=>{if(E&&(a=t,a>w))throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I);r&&r(t)};l=new i(lc(l.body,65536,s,()=>{o&&o(),T&&T()}),t)}v=v||"text";let O=await f[ds.findKey(f,v)||"text"](l,e);if(E&&!h&&!d){let t;if(null!=O&&("number"==typeof O.byteLength?t=O.byteLength:"number"==typeof O.size?t=O.size:"string"==typeof O&&(t="function"==typeof r?(new r).encode(O).byteLength:O.length)),"number"==typeof t&&t>w)throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I)}return!d&&T&&T(),await new Promise((t,n)=>{Qs(t,n,{data:O,headers:bs.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:I})})}catch(t){if(T&&T(),R&&R.aborted&&R.reason instanceof ws){const n=R.reason;throw n.config=e,I&&(n.request=I),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ws("Network Error",ws.ERR_NETWORK,e,I,t&&t.response),{cause:t.cause||t});throw ws.from(t,t&&t.code,e,I,t&&t.response)}}},gc=new Map,mc=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,c=a.length,u=gc;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:fc(t)),u=s;return s};mc();const yc={http:null,xhr:ic,fetch:{get:mc}};ds.forEach(yc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const vc=e=>`- ${e}`,bc=e=>ds.isFunction(e)||null===e||!1===e;var _c={getAdapter:function(e,t){e=ds.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!bc(r)&&(o=yc[(n=String(r)).toLowerCase()],void 0===o))throw new ws(`Unknown adapter '${n}'`);if(o&&(ds.isFunction(o)||(o=o.get(t))))break;a[n||"#"+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"));let t=n?e.length>1?"since :\n"+e.map(vc).join("\n"):" "+vc(e[0]):"as no adapter specified";throw new ws("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:yc};function kc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $s(null,e)}function wc(e){kc(e),e.headers=bs.from(e.headers),e.data=Hs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _c.getAdapter(e.adapter||Ws.adapter,e)(e).then(function(t){kc(e),e.response=t;try{t.data=Hs.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=bs.from(t.headers),t},function(t){if(!Ks(t)&&(kc(e),t&&t.response)){e.response=t.response;try{t.response.data=Hs.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=bs.from(t.response.headers)}return Promise.reject(t)})}const xc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ec={};xc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dc+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new ws(r(o," has been removed"+(t?" in "+t:"")),ws.ERR_DEPRECATED);return t&&!Ec[o]&&(Ec[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},xc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Sc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ws("options must be an object",ws.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new ws("option "+a+" must be "+n,ws.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ws("Unknown option "+a,ws.ERR_BAD_OPTION)}},validators:xc};const Cc=Sc.validators;let Rc=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ds,response:new Ds}}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=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Sc.assertOptions(n,{silentJSONParsing:Cc.transitional(Cc.boolean),forcedJSONParsing:Cc.transitional(Cc.boolean),clarifyTimeoutError:Cc.transitional(Cc.boolean),legacyInterceptorReqResOrdering:Cc.transitional(Cc.boolean)},!1),null!=r&&(ds.isFunction(r)?t.paramsSerializer={serialize:r}:Sc.assertOptions(r,{encode:Cc.function,serialize:Cc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Sc.assertOptions(t,{baseUrl:Cc.spelling("baseURL"),withXsrfToken:Cc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&ds.merge(o.common,o[t.method]);o&&ds.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=bs.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Ls;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[wc.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let p=t;for(;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=wc.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Ps(tc((e=rc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ds.forEach(["delete","get","head","options"],function(e){Rc.prototype[e]=function(t,n){return this.request(rc(n||{},{method:e,url:t,data:(n||{}).data}))}}),ds.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(rc(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Rc.prototype[e]=t(),"query"!==e&&(Rc.prototype[e+"Form"]=t(!0))});var Ic=Rc;class Tc{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 r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new $s(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Tc(function(t){e=t}),cancel:e}}}var Ac=Tc;const Oc={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Oc).forEach(([e,t])=>{Oc[t]=e});var Pc=Oc;const Dc=function e(t){const n=new Ic(t),r=_i(Ic.prototype.request,n);return ds.extend(r,Ic.prototype,n,{allOwnKeys:!0}),ds.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(rc(t,n))},r}(Ws);Dc.Axios=Ic,Dc.CanceledError=$s,Dc.CancelToken=Ac,Dc.isCancel=Ks,Dc.VERSION=dc,Dc.toFormData=Rs,Dc.AxiosError=ws,Dc.Cancel=Dc.CanceledError,Dc.all=function(e){return Promise.all(e)},Dc.spread=function(e){return function(t){return e.apply(null,t)}},Dc.isAxiosError=function(e){return ds.isObject(e)&&!0===e.isAxiosError},Dc.mergeConfig=rc,Dc.AxiosHeaders=bs,Dc.formToJSON=e=>Fs(ds.isHTMLForm(e)?new FormData(e):e),Dc.getAdapter=_c.getAdapter,Dc.HttpStatusCode=Pc,Dc.default=Dc;var Lc=Dc,jc=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];if(Array.isArray(r)){var o=r.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(o))}else null!=r&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(r))))}),t.join("&")},zc=function(t){function n(n){var r,o,a,i,s=this;return(s=t.call(this,n)||this).token="",null===(o=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===o||o.request.use(function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use(function(t){return e.__assign({},t)},function(e){return Promise.reject(e)}),s}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=Lc.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=Lc.create(e)}),Nc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Uc=TypeError,Bc=qc(Object.freeze({__proto__:null,default:{}})),Mc="function"==typeof Map&&Map.prototype,Fc=Object.getOwnPropertyDescriptor&&Mc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gc=Mc&&Fc&&"function"==typeof Fc.get?Fc.get:null,Vc=Mc&&Map.prototype.forEach,Wc="function"==typeof Set&&Set.prototype,Hc=Object.getOwnPropertyDescriptor&&Wc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Kc=Wc&&Hc&&"function"==typeof Hc.get?Hc.get:null,$c=Wc&&Set.prototype.forEach,Qc="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Yc="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Jc="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Zc=Boolean.prototype.valueOf,Xc=Object.prototype.toString,eu=Function.prototype.toString,tu=String.prototype.match,nu=String.prototype.slice,ru=String.prototype.replace,ou=String.prototype.toUpperCase,au=String.prototype.toLowerCase,iu=RegExp.prototype.test,su=Array.prototype.concat,cu=Array.prototype.join,uu=Array.prototype.slice,lu=Math.floor,du="function"==typeof BigInt?BigInt.prototype.valueOf:null,pu=Object.getOwnPropertySymbols,hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,fu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,gu="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===fu||"symbol")?Symbol.toStringTag:null,mu=Object.prototype.propertyIsEnumerable,yu=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vu(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||iu.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-lu(-e):lu(e);if(r!==e){var o=String(r),a=nu.call(t,o.length+1);return ru.call(o,n,"$&_")+"."+ru.call(ru.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ru.call(t,n,"$&_")}var bu=Bc,_u=bu.custom,ku=Au(_u)?_u:null,wu={__proto__:null,double:'"',single:"'"},xu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Eu=function e(t,n,r,o){var a=n||{};if(Pu(a,"quoteStyle")&&!Pu(wu,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Pu(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Pu(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Pu(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Pu(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.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 ju(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?vu(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?vu(t,u):u}var l=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=l&&l>0&&"object"==typeof t)return Iu(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=cu.call(Array(e.indent+1)," ")}return{base:n,prev:cu.call(Array(t+1),n)}}(a,r);if(void 0===o)o=[];else if(Lu(o,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(o=uu.call(o)).push(n),i){var s={depth:a.depth};return Pu(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,o)}return e(t,a,r+1,o)}if("function"==typeof t&&!Tu(t)){var h=function(e){if(e.name)return e.name;var t=tu.call(eu.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Mu(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+cu.call(f,", ")+" }":"")}if(Au(t)){var g=fu?ru.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):hu.call(t);return"object"!=typeof t||fu?g:Nu(g)}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 m="<"+au.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)m+=" "+y[v].name+"="+Su(Cu(y[v].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+au.call(String(t.nodeName))+">"}if(Iu(t)){if(0===t.length)return"[]";var b=Mu(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Lu(e[t],"\n")>=0)return!1;return!0}(b)?"["+Bu(b,d)+"]":"[ "+cu.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Du(e)&&Ru(e)}(t)){var _=Mu(t,p);return"cause"in Error.prototype||!("cause"in t)||mu.call(t,"cause")?0===_.length?"["+String(t)+"]":"{ ["+String(t)+"] "+cu.call(_,", ")+" }":"{ ["+String(t)+"] "+cu.call(su.call("[cause]: "+p(t.cause),_),", ")+" }"}if("object"==typeof t&&i){if(ku&&"function"==typeof t[ku]&&bu)return bu(t,{depth:l-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Gc||!e||"object"!=typeof e)return!1;try{Gc.call(e);try{Kc.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return Vc&&Vc.call(t,function(e,n){k.push(p(n,t,!0)+" => "+p(e,t))}),Uu("Map",Gc.call(t),k,d)}if(function(e){if(!Kc||!e||"object"!=typeof e)return!1;try{Kc.call(e);try{Gc.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return $c&&$c.call(t,function(e){w.push(p(e,t))}),Uu("Set",Kc.call(t),w,d)}if(function(e){if(!Qc||!e||"object"!=typeof e)return!1;try{Qc.call(e,Qc);try{Yc.call(e,Yc)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return qu("WeakMap");if(function(e){if(!Yc||!e||"object"!=typeof e)return!1;try{Yc.call(e,Yc);try{Qc.call(e,Qc)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return qu("WeakSet");if(function(e){if(!Jc||!e||"object"!=typeof e)return!1;try{return Jc.call(e),!0}catch(e){}return!1}(t))return qu("WeakRef");if(function(e){return"[object Number]"===Du(e)&&Ru(e)}(t))return Nu(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!du)return!1;try{return du.call(e),!0}catch(e){}return!1}(t))return Nu(p(du.call(t)));if(function(e){return"[object Boolean]"===Du(e)&&Ru(e)}(t))return Nu(Zc.call(t));if(function(e){return"[object String]"===Du(e)&&Ru(e)}(t))return Nu(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Nc&&t===Nc)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Du(e)&&Ru(e)}(t)&&!Tu(t)){var x=Mu(t,p),E=yu?yu(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",C=!E&&gu&&Object(t)===t&&gu in t?nu.call(Du(t),8,-1):S?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||S?"["+cu.call(su.call([],C||[],S||[]),": ")+"] ":"");return 0===x.length?R+"{}":d?R+"{"+Bu(x,d)+"}":R+"{ "+cu.call(x,", ")+" }"}return String(t)};function Su(e,t,n){var r=n.quoteStyle||t,o=wu[r];return o+e+o}function Cu(e){return ru.call(String(e),/"/g,""")}function Ru(e){return!gu||!("object"==typeof e&&(gu in e||void 0!==e[gu]))}function Iu(e){return"[object Array]"===Du(e)&&Ru(e)}function Tu(e){return"[object RegExp]"===Du(e)&&Ru(e)}function Au(e){if(fu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!hu)return!1;try{return hu.call(e),!0}catch(e){}return!1}var Ou=Object.prototype.hasOwnProperty||function(e){return e in this};function Pu(e,t){return Ou.call(e,t)}function Du(e){return Xc.call(e)}function Lu(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ju(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ju(nu.call(e,0,t.maxStringLength),t)+r}var o=xu[t.quoteStyle||"single"];return o.lastIndex=0,Su(ru.call(ru.call(e,o,"\\$1"),/[\x00-\x1f]/g,zu),"single",t)}function zu(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":"")+ou.call(t.toString(16))}function Nu(e){return"Object("+e+")"}function qu(e){return e+" { ? }"}function Uu(e,t,n,r){return e+" ("+t+") {"+(r?Bu(n,r):cu.call(n,", "))+"}"}function Bu(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+cu.call(e,","+n)+"\n"+t.prev}function Mu(e,t){var n=Iu(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Pu(e,o)?t(e[o],e):""}var a,i="function"==typeof pu?pu(e):[];if(fu){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Pu(e,c)&&(n&&String(Number(c))===c&&c<e.length||fu&&a["$"+c]instanceof Symbol||(iu.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof pu)for(var u=0;u<i.length;u++)mu.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var Fu=Eu,Gu=Uc,Vu=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r},Wu=Object,Hu=Error,Ku=EvalError,$u=RangeError,Qu=ReferenceError,Yu=SyntaxError,Ju=URIError,Zu=Math.abs,Xu=Math.floor,el=Math.max,tl=Math.min,nl=Math.pow,rl=Math.round,ol=Number.isNaN||function(e){return e!=e},al=Object.getOwnPropertyDescriptor;if(al)try{al([],"length")}catch(e){al=null}var il=al,sl=Object.defineProperty||!1;if(sl)try{sl({},"a",{value:1})}catch(e){sl=!1}var cl,ul,ll,dl,pl,hl,fl,gl,ml,yl,vl,bl,_l,kl,wl,xl,El=sl;function Sl(){return hl?pl:(hl=1,pl="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Cl(){return gl?fl:(gl=1,fl=Wu.getPrototypeOf||null)}function Rl(){if(yl)return ml;yl=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return ml=function(r){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=t(0,o.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(r,n(i,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a},ml}function Il(){if(bl)return vl;bl=1;var e=Rl();return vl=Function.prototype.bind||e}function Tl(){return kl?_l:(kl=1,_l=Function.prototype.call)}function Al(){return xl?wl:(xl=1,wl=Function.prototype.apply)}var Ol,Pl,Dl,Ll,jl,zl,Nl,ql="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Ul=Il(),Bl=Al(),Ml=Tl(),Fl=ql||Ul.call(Ml,Bl),Gl=Il(),Vl=Uc,Wl=Tl(),Hl=Fl,Kl=function(e){if(e.length<1||"function"!=typeof e[0])throw new Vl("a function is required");return Hl(Gl,Wl,e)};var $l=Wu,Ql=Hu,Yl=Ku,Jl=$u,Zl=Qu,Xl=Yu,ed=Uc,td=Ju,nd=Zu,rd=Xu,od=el,ad=tl,id=nl,sd=rl,cd=function(e){return ol(e)||0===e?e:e<0?-1:1},ud=Function,ld=function(e){try{return ud('"use strict"; return ('+e+").constructor;")()}catch(e){}},dd=il,pd=El,hd=function(){throw new ed},fd=dd?function(){try{return hd}catch(e){try{return dd(arguments,"callee").get}catch(e){return hd}}}():hd,gd=function(){if(dl)return ll;dl=1;var e="undefined"!=typeof Symbol&&Symbol,t=ul?cl:(ul=1,cl=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 r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return ll=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),md=function(){if(Ll)return Dl;Ll=1;var e=Sl(),t=Cl(),n=function(){if(Pl)return Ol;Pl=1;var e,t=Kl,n=il;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Ol=r&&"function"==typeof r.get?t([r.get]):"function"==typeof a&&function(e){return a(null==e?e:o(e))}}();return Dl=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}(),yd=Cl(),vd=Sl(),bd=Al(),_d=Tl(),kd={},wd="undefined"!=typeof Uint8Array&&md?md(Uint8Array):Nl,xd={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Nl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Nl:ArrayBuffer,"%ArrayIteratorPrototype%":gd&&md?md([][Symbol.iterator]()):Nl,"%AsyncFromSyncIteratorPrototype%":Nl,"%AsyncFunction%":kd,"%AsyncGenerator%":kd,"%AsyncGeneratorFunction%":kd,"%AsyncIteratorPrototype%":kd,"%Atomics%":"undefined"==typeof Atomics?Nl:Atomics,"%BigInt%":"undefined"==typeof BigInt?Nl:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Nl:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Nl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Nl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ql,"%eval%":eval,"%EvalError%":Yl,"%Float16Array%":"undefined"==typeof Float16Array?Nl:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Nl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Nl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Nl:FinalizationRegistry,"%Function%":ud,"%GeneratorFunction%":kd,"%Int8Array%":"undefined"==typeof Int8Array?Nl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Nl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Nl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gd&&md?md(md([][Symbol.iterator]())):Nl,"%JSON%":"object"==typeof JSON?JSON:Nl,"%Map%":"undefined"==typeof Map?Nl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&gd&&md?md((new Map)[Symbol.iterator]()):Nl,"%Math%":Math,"%Number%":Number,"%Object%":$l,"%Object.getOwnPropertyDescriptor%":dd,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Nl:Promise,"%Proxy%":"undefined"==typeof Proxy?Nl:Proxy,"%RangeError%":Jl,"%ReferenceError%":Zl,"%Reflect%":"undefined"==typeof Reflect?Nl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Nl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&gd&&md?md((new Set)[Symbol.iterator]()):Nl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Nl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gd&&md?md(""[Symbol.iterator]()):Nl,"%Symbol%":gd?Symbol:Nl,"%SyntaxError%":Xl,"%ThrowTypeError%":fd,"%TypedArray%":wd,"%TypeError%":ed,"%Uint8Array%":"undefined"==typeof Uint8Array?Nl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Nl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Nl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Nl:Uint32Array,"%URIError%":td,"%WeakMap%":"undefined"==typeof WeakMap?Nl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Nl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Nl:WeakSet,"%Function.prototype.call%":_d,"%Function.prototype.apply%":bd,"%Object.defineProperty%":pd,"%Object.getPrototypeOf%":yd,"%Math.abs%":nd,"%Math.floor%":rd,"%Math.max%":od,"%Math.min%":ad,"%Math.pow%":id,"%Math.round%":sd,"%Math.sign%":cd,"%Reflect.getPrototypeOf%":vd};if(md)try{null.error}catch(e){var Ed=md(md(e));xd["%Error.prototype%"]=Ed}var Sd,Cd,Rd,Id,Td,Ad,Od,Pd,Dd,Ld,jd,zd,Nd,qd,Ud,Bd,Md,Fd,Gd,Vd,Wd,Hd,Kd,$d=function e(t){var n;if("%AsyncFunction%"===t)n=ld("async function () {}");else if("%GeneratorFunction%"===t)n=ld("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=ld("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&md&&(n=md(o.prototype))}return xd[t]=n,n},Qd={__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"]},Yd=Il(),Jd=function(){if(zl)return jl;zl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Il();return jl=n.call(e,t)}(),Zd=Yd.call(_d,Array.prototype.concat),Xd=Yd.call(bd,Array.prototype.splice),ep=Yd.call(_d,String.prototype.replace),tp=Yd.call(_d,String.prototype.slice),np=Yd.call(_d,RegExp.prototype.exec),rp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,op=/\\(\\)?/g,ap=function(e,t){var n,r=e;if(Jd(Qd,r)&&(r="%"+(n=Qd[r])[0]+"%"),Jd(xd,r)){var o=xd[r];if(o===kd&&(o=$d(r)),void 0===o&&!t)throw new ed("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Xl("intrinsic "+e+" does not exist!")},ip=function(e,t){if("string"!=typeof e||0===e.length)throw new ed("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ed('"allowMissing" argument must be a boolean');if(null===np(/^%?[^%]*%?$/,e))throw new Xl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=tp(e,0,1),n=tp(e,-1);if("%"===t&&"%"!==n)throw new Xl("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Xl("invalid intrinsic syntax, expected opening `%`");var r=[];return ep(e,rp,function(e,t,n,o){r[r.length]=n?ep(o,op,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=ap("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],Xd(n,Zd([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var d=n[u],p=tp(d,0,1),h=tp(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Xl("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Jd(xd,a="%"+(r+="."+d)+"%"))i=xd[a];else if(null!=i){if(!(d in i)){if(!t)throw new ed("base intrinsic for "+e+" exists, but the property is not available.");return}if(dd&&u+1>=n.length){var f=dd(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Jd(i,d),i=i[d];l&&!s&&(xd[a]=i)}}return i},sp=ip,cp=Kl,up=cp([sp("%String.prototype.indexOf%")]),lp=function(e,t){var n=sp(e,!!t);return"function"==typeof n&&up(e,".prototype.")>-1?cp([n]):n},dp=lp,pp=Eu,hp=Uc,fp=ip("%Map%",!0),gp=dp("Map.prototype.get",!0),mp=dp("Map.prototype.set",!0),yp=dp("Map.prototype.has",!0),vp=dp("Map.prototype.delete",!0),bp=dp("Map.prototype.size",!0),_p=!!fp&&function(){var e,t={assert:function(e){if(!t.has(e))throw new hp("Side channel does not contain "+pp(e))},delete:function(t){if(e){var n=vp(e,t);return 0===bp(e)&&(e=void 0),n}return!1},get:function(t){if(e)return gp(e,t)},has:function(t){return!!e&&yp(e,t)},set:function(t,n){e||(e=new fp),mp(e,t,n)}};return t},kp=lp,wp=Eu,xp=_p,Ep=Uc,Sp=ip("%WeakMap%",!0),Cp=kp("WeakMap.prototype.get",!0),Rp=kp("WeakMap.prototype.set",!0),Ip=kp("WeakMap.prototype.has",!0),Tp=kp("WeakMap.prototype.delete",!0),Ap=Uc,Op=Eu,Pp=(Sp?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new Ep("Side channel does not contain "+wp(e))},delete:function(n){if(Sp&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Tp(e,n)}else if(xp&&t)return t.delete(n);return!1},get:function(n){return Sp&&n&&("object"==typeof n||"function"==typeof n)&&e?Cp(e,n):t&&t.get(n)},has:function(n){return Sp&&n&&("object"==typeof n||"function"==typeof n)&&e?Ip(e,n):!!t&&t.has(n)},set:function(n,r){Sp&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Sp),Rp(e,n,r)):xp&&(t||(t=xp()),t.set(n,r))}};return n}:xp)||_p||function(){var e,t={assert:function(e){if(!t.has(e))throw new Gu("Side channel does not contain "+Fu(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return Vu(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=Vu(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Vu(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=Vu(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Dp=function(){var e,t={assert:function(e){if(!t.has(e))throw new Ap("Side channel does not contain "+Op(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=Pp()),e.set(t,n)}};return t},Lp=String.prototype.replace,jp=/%20/g,zp="RFC3986",Np={default:zp,formatters:{RFC1738:function(e){return Lp.call(e,jp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:zp},qp=Np,Up=Dp,Bp=Object.prototype.hasOwnProperty,Mp=Array.isArray,Fp=Up(),Gp=function(e,t){return Fp.set(e,t),e},Vp=function(e){return Fp.has(e)},Wp=function(e){return Fp.get(e)},Hp=function(e,t){Fp.set(e,t)},Kp=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),$p=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Qp=1024,Yp={arrayToObject:$p,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,r){if(Vp(e)){var o=Wp(e)+1;return e[o]=t,Hp(e,o),e}var a=[].concat(e,t);return a.length>n?Gp($p(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:a,prop:c},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Mp(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Qp){for(var c=a.length>=Qp?a.slice(s,s+Qp):a,u=[],l=0;l<c.length;++l){var d=c.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===qp.RFC1738&&(40===d||41===d)?u[u.length]=c.charAt(l):d<128?u[u.length]=Kp[d]:d<2048?u[u.length]=Kp[192|d>>6]+Kp[128|63&d]:d<55296||d>=57344?u[u.length]=Kp[224|d>>12]+Kp[128|d>>6&63]+Kp[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(l)),u[u.length]=Kp[240|d>>18]+Kp[128|d>>12&63]+Kp[128|d>>6&63]+Kp[128|63&d])}i+=u.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:Vp,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:Gp,maybeMap:function(e,t){if(Mp(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(Mp(t)){var o=t.length;if(r&&"number"==typeof r.arrayLimit&&o>r.arrayLimit)return Gp($p(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(Vp(t)){var a=Wp(t)+1;t[a]=n,Hp(t,a)}else(r&&(r.plainObjects||r.allowPrototypes)||!Bp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t){if(Vp(n)){for(var i=Object.keys(n),s=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<i.length;c++){s[parseInt(i[c],10)+1]=n[i[c]]}return Gp(s,Wp(n)+1)}var u=[t].concat(n);return r&&"number"==typeof r.arrayLimit&&u.length>r.arrayLimit?Gp($p(u,r),u.length-1):u}var l=t;return Mp(t)&&!Mp(n)&&(l=$p(t,r)),Mp(t)&&Mp(n)?(n.forEach(function(n,o){if(Bp.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t[t.length]=n}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];if(Bp.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,Vp(n)&&!Vp(t)&&Gp(t,Wp(n)),Vp(t)){var i=parseInt(o,10);String(i)===o&&i>=0&&i>Wp(t)&&Hp(t,i)}return t},l)}},Jp=Dp,Zp=Yp,Xp=Np,eh=Object.prototype.hasOwnProperty,th={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},nh=Array.isArray,rh=Array.prototype.push,oh=function(e,t){rh.apply(e,nh(t)?t:[t])},ah=Date.prototype.toISOString,ih=Xp.default,sh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Zp.encode,encodeValuesOnly:!1,filter:void 0,format:ih,formatter:Xp.formatters[ih],indices:!1,serializeDate:function(e){return ah.call(e)},skipNulls:!1,strictNullHandling:!1},ch={},uh=function e(t,n,r,o,a,i,s,c,u,l,d,p,h,f,g,m,y,v){for(var b,_=t,k=v,w=0,x=!1;void 0!==(k=k.get(ch))&&!x;){var E=k.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");x=!0}void 0===k.get(ch)&&(w=0)}if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===r&&nh(_)&&(_=Zp.maybeMap(_,function(e){return e instanceof Date?h(e):e})),null===_){if(i)return u&&!m?u(n,sh.encoder,y,"key",f):n;_=""}if("string"==typeof(b=_)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Zp.isBuffer(_))return u?[g(m?n:u(n,sh.encoder,y,"key",f))+"="+g(u(_,sh.encoder,y,"value",f))]:[g(n)+"="+g(String(_))];var S,C=[];if(void 0===_)return C;if("comma"===r&&nh(_))m&&u&&(_=Zp.maybeMap(_,u)),S=[{value:_.length>0?_.join(",")||null:void 0}];else if(nh(l))S=l;else{var R=Object.keys(_);S=d?R.sort(d):R}var I=c?String(n).replace(/\./g,"%2E"):String(n),T=o&&nh(_)&&1===_.length?I+"[]":I;if(a&&nh(_)&&0===_.length)return T+"[]";for(var A=0;A<S.length;++A){var O=S[A],P="object"==typeof O&&O&&void 0!==O.value?O.value:_[O];if(!s||null!==P){var D=p&&c?String(O).replace(/\./g,"%2E"):String(O),L=nh(_)?"function"==typeof r?r(T,D):T:T+(p?"."+D:"["+D+"]");v.set(t,w);var j=Jp();j.set(ch,v),oh(C,e(P,L,r,o,a,i,s,c,"comma"===r&&m&&nh(_)?null:u,l,d,p,h,f,g,m,y,j))}}return C},lh=Yp,dh=Object.prototype.hasOwnProperty,ph=Array.isArray,hh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:lh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},fh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},gh=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},mh=function(e,t,n,r){if(e){var o=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&dh.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),a=o?n.slice(0,o.index):n,i=[];if(a){if(!t.plainObjects&&dh.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var s=0;null!==(o=r.exec(n))&&s<t.depth;){s+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&dh.call(Object.prototype,c)&&!t.allowPrototypes)return;i[i.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+n.slice(o.index)+"]"}return i}(e,n);if(o)return function(e,t,n,r){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var i=r?t:gh(t,n,o),s=e.length-1;s>=0;--s){var c,u=e[s];if("[]"===u&&n.parseArrays)c=lh.isOverflow(i)?i:n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:lh.combine([],i,n.arrayLimit,n.plainObjects);else{c=n.plainObjects?{__proto__:null}:{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),h=!isNaN(p)&&u!==d&&String(p)===d&&p>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(h&&p<n.arrayLimit)(c=[])[p]=i;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");h?(c[p]=i,lh.markOverflow(c,p)):"__proto__"!==d&&(c[d]=i)}else c={0:i}}i=c}return i}(o,t,n,r)}},yh=function(e,t){var n,r=e,o=function(e){if(!e)return sh;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||sh.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=Xp.default;if(void 0!==e.format){if(!eh.call(Xp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=Xp.formatters[n],a=sh.filter;if(("function"==typeof e.filter||nh(e.filter))&&(a=e.filter),r=e.arrayFormat in th?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":sh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||sh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:sh.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:sh.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:sh.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?sh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:sh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:sh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:sh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:sh.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:sh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:sh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:sh.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):nh(o.filter)&&(n=o.filter);var a=[];if("object"!=typeof r||null===r)return"";var i=th[o.arrayFormat],s="comma"===i&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=Jp(),u=0;u<n.length;++u){var l=n[u],d=r[l];o.skipNulls&&null===d||oh(a,uh(d,l,i,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=a.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},vh=function(e,t){var n=function(e){if(!e)return hh;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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?hh.charset:e.charset,n=void 0===e.duplicates?hh.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||hh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:hh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:hh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:hh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:hh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:hh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:hh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:hh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:hh.decoder,delimiter:"string"==typeof e.delimiter||lh.isRegExp(e.delimiter)?e.delimiter:hh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:hh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:hh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:hh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:hh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:hh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:hh.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var i,s=-1,c=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?c="utf-8":"utf8=%26%2310003%3B"===a[i]&&(c="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,l,d=a[i],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;if(-1===h?(u=t.decoder(d,hh.decoder,c,"key"),l=t.strictNullHandling?null:""):null!==(u=t.decoder(d.slice(0,h),hh.decoder,c,"key"))&&(l=lh.maybeMap(gh(d.slice(h+1),t,ph(n[u])?n[u].length:0),function(e){return t.decoder(e,hh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=fh(String(l))),d.indexOf("[]=")>-1&&(l=ph(l)?[l]:l),t.comma&&ph(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=lh.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==u){var f=dh.call(n,u);f&&"combine"===t.duplicates?n[u]=lh.combine(n[u],l,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(n[u]=l)}}return n}(e,n):e,o=n.plainObjects?{__proto__:null}:{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],c=mh(s,r[s],n,"string"==typeof e);o=lh.merge(o,c,n)}return!0===n.allowSparse?o:lh.compact(o)},bh={formats:Np,parse:vh,stringify:yh},_h={withCredentials:!1,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 bh.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,Sd=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(Cd=Sd.NotificationStatus||(Sd.NotificationStatus={})).SETTLED="SETTLED",Cd.NOT_SETTLED="NOT_SETTLED",(Rd=Sd.NotificationReason||(Sd.NotificationReason={})).REFUNDED="REFUNDED",Rd.RESOLVED="RESOLVED",Rd.CANCELLED="CANCELLED",Rd.SERVICE_SUSPENDED="SERVICE_SUSPENDED",Rd.ORDER_STOPPED="ORDER_STOPPED",Rd.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(Id=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",Id.INSIGHTS="insights",exports.Organization=void 0,Td=exports.Organization||(exports.Organization={}),(Ad=Td.CustomClaims||(Td.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",Ad.USER_CODE="https://dashboard.dev.y.uno/user_code",Ad.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,Od=exports.Country||(exports.Country={}),(Pd=Od.CountryCode||(Od.CountryCode={})).COLOMBIA="CO",Pd.MEXICO="MX",Pd.BRAZIL="BR",Pd.ARGENTINA="AR",Pd.CHILE="CL",Pd.PERU="PE",Pd.URUGUAY="UR",Pd.ECUADOR="EC",exports.ReportType=void 0,(Dd=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",Dd.TRANSACTIONS="TRANSACTIONS",Dd.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",Dd.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Ld=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Ld.DEFAULT="DEFAULT",Ld.CUSTOM="CUSTOM",exports.SmartRouting=void 0,(jd=exports.SmartRouting||(exports.SmartRouting={})).DEFAULT_ROUTING_TYPE="smart-routing",(zd=jd.StepType||(jd.StepType={})).FRAUD="FRAUD",zd.PAYMENT="PAYMENT",zd.THREE_D_SECURE="THREE_D_SECURE",zd.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(Nd=jd.DeclineGroupType||(jd.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",Nd.MAC_CODE="MAC_CODE",exports.DataReport=void 0,qd=exports.DataReport||(exports.DataReport={}),(Ud=qd.InsightsVolumeMetricsV2Path||(qd.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Ud.APPROVED_PAYMENTS="approved-payments",Ud.PAYMENT_METHODS="payment-methods",Ud.PROVIDERS="providers",Ud.COUNTRIES="countries",Ud.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Ud.TOTAL_PAYMENTS="total-payments",Ud.CARD_TYPES="card-types",Ud.CARD_BRANDS="card-brands",Ud.ISSUERS="issuers",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(qd.OverviewMetricType||(qd.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(Bd=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",Bd.SETTLEMENTS="SETTLEMENTS",Bd.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",Bd.AGENDA="AGENDA",Bd.SALES_CONCILIATION="SALES_CONCILIATION",Bd.FEES="FEES",Bd.ADVANCEMENTS="ADVANCEMENTS",Bd.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",Bd.SETTLEMENTS_FEES="SETTLEMENTS_FEES",Bd.CASHFLOW="CASHFLOW",Bd.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS",exports.ReconciliationAgendaInsight=void 0,(Md=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",Md.DAILY="AGENDA_DAILY_DISTRIBUTION",Md.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",Md.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.Audit=void 0,Fd=exports.Audit||(exports.Audit={}),(Gd=Fd.AuditExportReportType||(Fd.AuditExportReportType={})).DASHBOARD="DASHBOARD",Gd.API="API",Gd.WEBHOOKS="WEBHOOKS",Gd.MONITORS="MONITORS",exports.AI=void 0,Vd=exports.AI||(exports.AI={}),(Wd=Vd.AIGenerateStatus||(Vd.AIGenerateStatus={})).ACCEPTED="ACCEPTED",Wd.REFUSED="REFUSED",Wd.FRONT_FAILED="FRONT_FAILED",exports.OrganizationConfig=void 0,Hd=exports.OrganizationConfig||(exports.OrganizationConfig={}),(Kd=Hd.ConfigType||(Hd.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",Kd.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",Kd.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN";var kh=["PAUSED","ACTIVE"],wh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},xh="DELETED",Eh={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"};const Sh=[];for(let e=0;e<256;++e)Sh.push((e+256).toString(16).slice(1));let Ch;const Rh=new Uint8Array(16);var Ih={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Th(e,t,n){if(Ih.randomUUID&&!t&&!e)return Ih.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!Ch){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ch=crypto.getRandomValues.bind(crypto)}return Ch(Rh)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[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]=r[e];return t}return function(e,t=0){return(Sh[e[t+0]]+Sh[e[t+1]]+Sh[e[t+2]]+Sh[e[t+3]]+"-"+Sh[e[t+4]]+Sh[e[t+5]]+"-"+Sh[e[t+6]]+Sh[e[t+7]]+"-"+Sh[e[t+8]]+Sh[e[t+9]]+"-"+Sh[e[t+10]]+Sh[e[t+11]]+Sh[e[t+12]]+Sh[e[t+13]]+Sh[e[t+14]]+Sh[e[t+15]]).toLowerCase()}(r)}var Ah=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function Oh(e){return e&&0!==e.length?{metadata_filters:e.map(function(e){var t=e.field,n=e.type,r=e.values;return{key:t,conditional:n,values:Array.isArray(r)?r:[r]}})}:{}}var Ph=function(t){function n(n){var r=n?e.__assign(e.__assign({},_h),n):_h;return t.call(this,r)||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,r=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",r)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,r=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",r)},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.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.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},n.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},n.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},n.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},n.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},n.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},n.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},n.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},n.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},n.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},n.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(r).length>0?{params:r}:void 0)},n.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(r).length>0?{params:r}:void 0)},n.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},n.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},n.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},n.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},n.prototype.getReconciliationInsightsReconciliationRateByProvider=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-provider",e)},n.prototype.getReconciliationInsightsReconciliationRateByAccount=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-account",e)},n.prototype.getReconciliationInsightsReconciliationRateByCurrency=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-currency",e)},n.prototype.getReconciliationInsightsSettlementLookup=function(e){return this.post("/reconciliations/insights/settlement/lookup",e)},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},n.prototype.postPayouts=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.getHiddenFields=function(e){var t=e.scope;return this.get("/hidden-fields",{params:{scope:t}})},n.prototype.postPaymentsEvaluated=function(t){t.account_code;var n=e.__rest(t,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/evaluated",n)},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.postTransactions=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return this.post("/v2/transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return this.post("/fraud-transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},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.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,r=e.country,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(r),o?{}:{headers:a})},n.prototype.createOperationTransaction=function(e,t,n,r){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(r),e)},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},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.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},n.prototype.uploadChargebacks=function(e,t,n,r){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":Th()}})},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,n,r){var o={};return e&&(o["x-password"]=e),t&&(o["x-account-code"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/v2/developers/credentials",{headers:o})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{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.getProviderParams=function(e,t){var n,r=localStorage.getItem("x-organization-code"),o={"x-organization-code":r?null===(n=JSON.parse(r))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{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.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},n.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},n.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},n.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},n.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},n.prototype.getConnectionsByPaymentMethod=function(t,n,r){return void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE),e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n).concat("routing-payouts"===r?"?flow_type=PAYOUT":""))]})})},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.getOnboardingStatus=function(e){return this.get("/onboarding/status/".concat(e))},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,r="/connections/change-status";if(t.status==xh)return delete t.status,this.delete(r,{data:t});Object.values(kh).includes(null==t?void 0:t.status)&&(r="".concat(r,"/").concat(wh[t.status]),delete t.status);var o={"x-account-code":n};return this.post(r,t,{headers:o})},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postIntegrationRequest=function(e){var t=e.payload;return this.post("/integration-requests",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.patchConnection=function(t){var n,r=t.payload,o=t.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(o),e.__assign({account_code:i},r))},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},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.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.postWebhookLogs=function(t){var n=t.payload,r=n.account_code,o=e.__rest(n,["account_code"]),a={account_codes:r};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:jc})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:jc})},n.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:jc})},n.prototype.getApiLogsV3=function(e){return this.get("/v3/api-logs/payment/".concat(e))},n.prototype.getWebhookTimeline=function(e){return this.get("/v3/webhooks/payment/".concat(e))},n.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:jc})},n.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:jc})},n.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},n.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},n.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},n.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},n.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},n.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},n.prototype.postApiLogs=function(t){var n=t.payload,r=n.account_code,o=e.__rest(n,["account_code"]),a={account_codes:r};return this.post("/v2/api-logs/organization",a,{params:o,paramsSerializer:jc})},n.prototype.getApiLogsDetailByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},n.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},n.prototype.postApiLogsStatsRequests=function(e){return this.post("/v3/api-logs/organization/stats/requests",e)},n.prototype.postApiLogsStatsErrors=function(e){return this.post("/v3/api-logs/organization/stats/errors",e)},n.prototype.postApiLogsStatsErrorsByEndpoint=function(e){return this.post("/v3/api-logs/organization/stats/errors-by-endpoint",e)},n.prototype.postApiLogsList=function(e){return this.post("/v3/api-logs/organization/list",e)},n.prototype.getApiLogsV3ByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},n.prototype.createAuditSubscription=function(e){return this.post("/audit-logs/subscriptions",e)},n.prototype.listAuditSubscriptions=function(e){return void 0===e&&(e={}),this.post("/audit-logs/subscriptions/list",e)},n.prototype.deleteAuditSubscription=function(e){return this.delete("/audit-logs/subscriptions/".concat(e))},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},n.prototype.getSmartRoutingMethods=function(e,t){void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var n="routing-payouts"===t?"/".concat(t,"/config/withdrawal-methods"):"/".concat(t,"/methods/").concat(e);return this.get(n)},n.prototype.putSmartRoutingToggleMethod=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="/".concat(r,"/methods/").concat(e,"/").concat(t);return this.put(o,{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/config/condition-types/").concat(t):"/".concat(n,"/condition-types/").concat(e,"/").concat(t);return this.get(r)},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,r){return void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===r?this.post("/".concat(r,"/config/next-steps"),{step_type:t,status:n}):this.get("/".concat(r,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflow-version/").concat(t):"/".concat(n,"/workflow-version/").concat(e,"/").concat(t);return this.get(r)},n.prototype.getSmartRoutingWorkflow=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/workflow/").concat(e,"/").concat(t);return this.get(r)},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){var r;if(void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n){var o=(null===(r=t.version)||void 0===r?void 0:r.code)||t.code;return this.put("/".concat(n,"/workflows/").concat(o),t)}return this.put("/".concat(n,"/update-workflow/").concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/name/").concat(t.code):"/".concat(n,"/workflow/").concat(e,"/edit-name");return this.put(r,t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n?this.post("/".concat(n,"/workflows"),t):this.post("/".concat(n,"/create-workflow/").concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o={"x-organization-code":n},a="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/publish"):"/".concat(r,"/publish-version/").concat(e,"/").concat(t);return this.post(a,{},{headers:o})},n.prototype.deleteSmartRoutingVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/delete-version/").concat(e,"/").concat(t);return this.delete(r)},n.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t,"/duplicate"):"/".concat(n,"/duplicate-version/").concat(e,"/").concat(t);return this.post(r,{})},n.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/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.getSmartRoutingPaymentRoute=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/payments/").concat(t,"/route"):"/".concat(n,"/payment-route/").concat(e,"/").concat(t);return this.get(r)},n.prototype.updateSmartRoutingFavorite=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/favorite/").concat(t):"/".concat(r,"/favorite/").concat(e,"/").concat(t);return this.put(o,{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/simulate"):"/".concat(r,"/simulate-transaction/").concat(e,"/").concat(t);return this.post(o,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.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},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.getInsightsMetricsConversionRateV2=function(t,n){var r=t.account_code,o=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ah(r);return o&&(s.connection_name=o.split(",")),a&&(s=e.__assign(e.__assign({},s),Oh(a))),this.post("/insights/conversion-rate/".concat(n),s,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var r=t.account_code,o=t.metadata,a=e.__rest(t,["account_code","metadata"]),i=Ah(r);return o&&(i=e.__assign(e.__assign({},i),Oh(o))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),i,{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]),a=Ah(n);return r&&(a=e.__assign(e.__assign({},a),Oh(r))),this.post("/insights/conversion-rate/fallback",a,{params:o})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,r){var o=r.connection_name,a=r.metadata,i=e.__rest(r,["connection_name","metadata"]),s={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o&&(s=e.__assign(e.__assign({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=e.__assign(e.__assign({},s),Oh(a))),this.post("/insights/volume/".concat(n),s,{params:i})},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.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",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.getInsightOverviewV3=function(t,n){var r=t.account_code,o=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ah(r);return o&&(s=e.__assign(e.__assign({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=e.__assign(e.__assign({},s),Oh(a))),this.post("/insights/overview/".concat(n),s,{params:i})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".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.getPaymentMethodAccounts=function(e){var t=e.paymentMethod,n={"x-organization-code":e.organizationCode};return this.get("/checkouts/payment-methods/".concat(t,"/accounts"),{headers: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.updateIsActiveCheckout=function(t){var n=t.accountCode,r=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",r,{headers:{"x-account-code":n}})},n.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},n.prototype.publishCheckout=function(t){var n=t.accountCode,r=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",r,{headers:{"x-account-code":n}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,r={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:r})},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/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.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},n.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},n.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},n.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},n.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},n.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},n.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},n.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},n.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},n.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},n.prototype.getRefundPdf=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:r})},n.prototype.getProofOfCancel=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:r})},n.prototype.getProofOfPayment=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:r})},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.getUserFull=function(){return this.get("/user-full")},n.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},n.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},n.prototype.getUsersToImpersonate=function(t,n,r,o,a,i){void 0===r&&(r=1),void 0===o&&(o=10);var s=e.__assign(e.__assign({account_codes:n||[],page:r,page_size:o},a&&{search_value:a}),(null==i?void 0:i.length)&&{role_ids:i});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),s)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.getRolesForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/roles"))},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},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.putAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:r})},n.prototype.deleteAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:r})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},n.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},n.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:r})},n.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:r},{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.bulkDisableAccounts=function(e){return this.post("/v1/accounts/bulk-disable",{account_codes:e.accountCodes})},n.prototype.bulkEnableAccounts=function(e){return this.post("/v1/accounts/bulk-enable",{account_codes:e.accountCodes})},n.prototype.getAccountsByOrganization=function(e){return this.get("/v1/accounts/by-organization",{params:e})},n.prototype.getAccountsByOrganizationCode=function(e,t){return this.get("/v1/accounts/organization/".concat(e),{params:t})},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.postSlackFeatureNotification=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.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:r,status:o,role_id:a,statuses:i,role_ids:s,page:c,page_size:u},{headers:l})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},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,r=e.id;return this.patch("/teams/roles/".concat(r),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,r=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:r})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.accountCode;return e.__awaiter(this,void 0,void 0,function(){var t,r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,this.get("/feature-flags/names",n?{headers:{"x-account-code":n}}:{})];case 1:return t=e.sent(),r={},t.data.feature_flag_names.forEach(function(e){r[e]=!0}),[2,{data:r,status:200,statusText:"OK",headers:{},config:{}}]}})})},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.getOrgRolesPermissions=function(){return this.get("/teams/permissions?type=ORGANIZATION")},n.prototype.getOrgPermissionsCatalog=function(){return this.get("/teams/permissions-catalog?role_type=ORGANIZATION")},n.prototype.createOrgRole=function(e){return this.post("/teams/roles",e)},n.prototype.editOrgRole=function(e){var t=e.payload,n=e.id;return this.patch("/teams/roles/".concat(n),t)},n.prototype.deleteOrgRole=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getOrgRoleAssignments=function(){return this.get("/teams/organization-roles/assignments")},n.prototype.assignOrgRole=function(e){return this.post("/teams/organization-roles/assign",e)},n.prototype.unassignOrgRole=function(e){return this.delete("/teams/organization-roles/assign/".concat(e))},n.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},n.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},n.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(o))},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.workosPasswordReset=function(e){return this.post("/workos/password-reset",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public")})},n.prototype.workosAdminPortal=function(){return this.post("/workos/admin-portal",{})},n.prototype.workosDomainVerificationPortal=function(){return this.post("/workos/domain-verification-portal",{})},n.prototype.workosDomainStatus=function(){return this.get("/workos/domain-status")},n.prototype.workosSsoConfigStatus=function(){return this.get("/workos/sso-config-status")},n.prototype.workosVerifyMfa=function(e){return this.post("/workos/verify-mfa",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public"),withCredentials:!0})},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},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(t){var n=t.account_code,r=e.__rest(t,["account_code"]);return this.post("v2/events/organization",{account_codes:n},{params:r,paramsSerializer:jc})},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,r=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(r),t)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.uploadPaymentLinkLogo=function(e){var t=e.payload;return this.post("/v1/checkouts/payment-link/logo",t)},n.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},n.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},n.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},n.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},n.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},n.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},n.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},n.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},n.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},n.prototype.getInstallmentPlans=function(e){var t=e?jc(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},n.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},n.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},n.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},n.prototype.searchInstallmentsPlans=function(e){return this.post("/v2/installments-plans/search",e)},n.prototype.bulkCreateInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk",e)},n.prototype.bulkDeleteInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk-delete",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.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.confirmMfaOtp=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.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,r){var o={name:t,account_codes:e,page:n,size:r};return this.post("/blacklist",o)},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,r,o){void 0===n&&(n=26),void 0===r&&(r=null),void 0===o&&(o=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(a+="&search=".concat(o)),this.get(a,r?{headers:{"x-account-code":r}}:{})},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.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,n=e.accountCode,r=n?{headers:{"x-account-code":n}}:void 0;return this.post("/blacklist/items",t,r)},n.prototype.postBlackListBatch=function(t){var n=t.blacklist_code,r=t.expiration_days,o=t.file,a=t.handleSetProgress,i=t.accountCode;return this.post("/blacklist/create-batch/".concat(n),{expiration_days:r,file:o},e.__assign({onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}},i&&{headers:{"x-account-code":i}}))},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,r=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":r}})},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.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,r=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:r.token}),cancel:function(){return r.cancel()}}},n.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,r=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:r.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return r.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.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:r})},n.prototype.getBatchRefundUserFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:r})},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.getWorkOsMfaStatus=function(){return this.get("/mfa/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.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,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},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,n,r){var o={};return t&&(o["x-password"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:o})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.buildAuthHeaders=function(e,t,n){var r={};return e&&(r["x-password"]=e),t&&(r["x-otp"]=t),n&&(r["x-mfa-token"]=n),r},n.prototype.getOrganizationKeysMetadata=function(){return this.get("/v2/developers/organization-keys/metadata")},n.prototype.patchOrganizationKeysNote=function(e,t){return this.patch("/v2/developers/organization-keys/note",e,{headers:{"x-password":t}})},n.prototype.postOrganizationKeysRoll=function(e,t,n){return this.post("/v2/developers/organization-keys/roll",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysTamRequest=function(e,t,n){return this.post("/v2/developers/organization-keys/tam-request",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysMarkRevealed=function(e,t,n){return this.post("/v2/developers/organization-keys/mark-revealed",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(Eh[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(Eh[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.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.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},n.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},n.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},n.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},n.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},n.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},n.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},n.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},n.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},n.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},n.prototype.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},n.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},n.prototype.getLanguages=function(){return this.get("/languages")},n.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},n.prototype.getCommunications=function(e){return this.post("/communications",e)},n.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},n.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},n.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},n.prototype.getRecipientsV2=function(e,t){var n={"x-organization-code":e};return this.get("/v2/recipients",{headers:n,params:t})},n.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},n.prototype.getOnboardingDetail=function(e,t,n){var r={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:r})},n.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},n.prototype.createRecipientExport=function(e,t){var n={"x-account-code":t};return this.post("/v1/recipients/exports",e,{headers:n})},n.prototype.getRecipientExports=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports",{headers:n,params:e})},n.prototype.downloadRecipientExport=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports/".concat(e,"/download"),{headers:n})},n.prototype.createRecipient=function(e,t){var n={"x-organization-code":e};return this.post("/recipients",t,{headers:n})},n.prototype.updateRecipient=function(e,t,n){var r={"x-organization-code":e};return this.patch("/recipients/".concat(t),n,{headers:r})},n.prototype.deleteRecipient=function(e,t){var n={"x-organization-code":e};return this.delete("/recipients/".concat(t),{headers:n})},n.prototype.createCertificate=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t};return this.post("/certificates",n,{headers:r})},n.prototype.getCertificates=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t},o=n?{type:n}:void 0;return this.get("/certificates",{headers:r,params:o})},n.prototype.downloadCertificate=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t};return this.get("/certificates/".concat(n,"/download"),{headers:r})},n.prototype.updateCertificateAccounts=function(e,t,n,r){var o={"x-organization-code":e,"x-account-code":t};return this.patch("/certificates/".concat(n,"/accounts"),r,{headers:o})},n.prototype.deleteCertificate=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t};return this.delete("/certificates/".concat(n),{headers:r})},n.prototype.deleteCertificateAccount=function(e,t,n,r){var o={"x-organization-code":e,"x-account-code":t};return this.delete("/certificates/".concat(n,"/accounts/").concat(r),{headers:o})},n.prototype.createOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings"),n,{headers:r})},n.prototype.updateOnboarding=function(e,t,n,r){var o={"x-organization-code":e};return this.patch("/recipients/".concat(t,"/onboardings/").concat(n),r,{headers:o})},n.prototype.blockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/block"),{},{headers:r})},n.prototype.unblockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/unblock"),{},{headers:r})},n.prototype.getConciergeAlerts=function(){return this.get("/concierge/alerts")},n.prototype.getConciergeAlertById=function(e){return this.get("/concierge/alerts/".concat(e))},n.prototype.createConciergeAlert=function(e){return this.post("/concierge/alerts",e)},n.prototype.deleteConciergeAlert=function(e){return this.delete("/concierge/alerts/".concat(e))},n.prototype.enableConciergeAlert=function(e,t){return this.post("/concierge/alerts/enable/".concat(e),t)},n.prototype.postPlaygroundExecuteFlow=function(e){return this.post("/playground/payment-flows",e)},n.prototype.postApiLogsListV2=function(e){return this.post("/api-logs/organization/list",e)},n.prototype.getApiLogsByPaymentId=function(e,t,n){return this.get("/api-logs/payment/".concat(e),{headers:{"x-account-code":t},params:n?{created_at_from:n}:void 0})},n.prototype.postApiLogsStatsRequestsV2=function(e){return this.post("/api-logs/organization/stats/requests",e)},n.prototype.postApiLogsStatsErrorsV2=function(e){return this.post("/api-logs/organization/stats/errors",e)},n.prototype.postApiLogsStatsErrorsByEndpointV2=function(e){return this.post("/api-logs/organization/stats/errors-by-endpoint",e)},n.prototype.postApiLogsExport=function(e){return this.post("/api-logs/exports",e)},n.prototype.getApiLogsExportStatus=function(e){return this.get("/api-logs/exports/".concat(e))},n.prototype.getApiLogsExportsList=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),this.get("/api-logs/exports",{params:{page:e,size:t}})},n.prototype.postWebhookLogsV2=function(t){var n=t.payload,r=n.account_code,o=e.__rest(n,["account_code"]);return this.post("/webhook-logs/organization",{accounts:r},{params:o,paramsSerializer:jc})},n.prototype.postWebhookLogsExport=function(e){return this.post("/webhook-logs/exports",e)},n.prototype.getWebhookLogsExportStatus=function(e){return this.get("/webhook-logs/exports/".concat(e))},n.prototype.getWebhookLogsExportsList=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),this.get("/webhook-logs/exports",{params:{page:e,size:t}})},n.prototype.postMonitorLogsV2=function(t){var n=t.payload,r=n.account_codes,o=e.__rest(n,["account_codes"]);return this.post("/monitor-logs/organization",{accounts:r},{params:o,paramsSerializer:jc})},n.prototype.postMonitorLogsExport=function(e){return this.post("/monitor-logs/exports",e)},n.prototype.getMonitorLogsExportStatus=function(e){return this.get("/monitor-logs/exports/".concat(e))},n.prototype.getMonitorLogsExportsList=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),this.get("/monitor-logs/exports",{params:{page:e,size:t}})},n}(zc),Dh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"https://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff/api")}}(),Lh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"wss://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff")}}(),jh={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:null!=Dh?Dh:process.env.BFF_URL_PROD,BFF_URL_SBX:null!=Dh?Dh:process.env.BFF_URL_SBX,BFF_URL_STG:null!=Dh?Dh:process.env.BFF_URL_STG,BFF_URL_DEV:null!=Dh?Dh:process.env.BFF_URL_DEV,BFF_URL_LOCAL:null!=Dh?Dh:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:null!=Lh?Lh:process.env.WS_URL_LOCAL,WS_URL_PROD:null!=Lh?Lh:process.env.WS_URL_PROD,WS_URL_SBX:null!=Lh?Lh:process.env.WS_URL_SBX,WS_URL_STG:null!=Lh?Lh:process.env.WS_URL_STG,WS_URL_DEV:null!=Lh?Lh:process.env.WS_URL_DEV},zh="yuno-dashboard:session-expired",Nh=!1;function qh(){if(!Nh){Nh=!0;var e=function(){try{return document.referrer?new URL(document.referrer).origin:null}catch(e){return null}}();if(e)try{window.parent.postMessage({type:zh},e)}catch(e){console.warn("[yuno] postMessage to parent failed",e)}}}var Uh=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.registerCanaryInterceptor=function(){var e;null===(e=this.classInstance.instance.interceptors)||void 0===e||e.request.use(function(e){return"true"===localStorage.getItem("canary-enabled")&&e.headers&&(e.headers["x-canary-traffic"]="canary-traffic"),e},function(e){return Promise.reject(e)})},n.refreshInstance=function(t){var r;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:jh["BFF_URL_".concat(jh.ENVIRONMENT)]})),this.registerCanaryInterceptor(),null===(r=this.classInstance.instance.interceptors)||void 0===r||r.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);"undefined"!=typeof window&&window.parent!==window?qh():window.location.href="/auth/logout"}),this.classInstance},n.getInstance=function(t){var r,o;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(o=null===(r=JSON.parse(a))||void 0===r?void 0:r.value)||void 0===o?void 0:o.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||jh["BFF_URL_".concat(jh.ENVIRONMENT)]})),this.registerCanaryInterceptor(),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}(Ph);class Bh{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 Mh="undefined"==typeof window||"Deno"in window;function Fh(){}function Gh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Vh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wh(e,t,n){return of(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Hh(e,t,n){return of(e)?[{...t,queryKey:e},n]:[e||{},t]}function Kh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(of(i))if(r){if(t.queryHash!==Qh(i,t.options))return!1}else if(!Jh(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function $h(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(of(a)){if(!t.options.mutationKey)return!1;if(n){if(Yh(t.options.mutationKey)!==Yh(a))return!1}else if(!Jh(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function Qh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Yh)(e)}function Yh(e){return JSON.stringify(e,(e,t)=>nf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Jh(e,t){return Zh(e,t)}function Zh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Zh(e[n],t[n])))}function Xh(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=tf(e)&&tf(t);if(r||nf(e)&&nf(t)){const o=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,s=r?[]:{};let c=0;for(let o=0;o<i;o++){const i=r?o:a[o];s[i]=Xh(e[i],t[i],n+1),s[i]===e[i]&&c++}return o===i&&c===o?e:s}return t}function ef(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nf(e){if(!rf(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!rf(n)&&!!n.hasOwnProperty("isPrototypeOf")}function rf(e){return"[object Object]"===Object.prototype.toString.call(e)}function of(e){return Array.isArray(e)}function af(e){return new Promise(t=>{setTimeout(t,e)})}function sf(e){af(0).then(e)}function cf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Xh(e,t):t}const uf=new class extends Bh{constructor(){super(),this.setup=e=>{if(!Mh&&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)}},lf=["online","offline"];const df=new class extends Bh{constructor(){super(),this.setup=e=>{if(!Mh&&window.addEventListener){const t=()=>e();return lf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{lf.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 pf(e){return Math.min(1e3*2**e,3e4)}function hf(e){return"online"!==(null!=e?e:"online")||df.isOnline()}class ff{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function gf(e){return e instanceof ff}function mf(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,r=t}),c=()=>!uf.isFocused()||"always"!==e.networkMode&&!df.isOnline(),u=r=>{i||(i=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,r;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:pf,h="function"==typeof u?u(a,t):u,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!o&&f?(a++,null==e.onFail||e.onFail(a,t),af(h).then(()=>{if(c())return d()}).then(()=>{o?l(t):p()})):l(t)})};return hf(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new ff(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const yf=console;const vf=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):sf(()=>{n(r)})},a=()=>{const t=e;e=[],t.length&&sf(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class bf{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:Mh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _f extends bf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||yf,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,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r: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=cf(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||!Vh(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,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,r,o;(gf(e)&&e.silent||this.dispatch({type:"error",error:e}),gf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=mf({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;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:hf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return gf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vf.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class kf extends Bh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:Qh(o,t);let i=this.get(a);return i||(i=new _f({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}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(){vf.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Hh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Kh(n,e))}findAll(e,t){const[n]=Hh(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Kh(n,e)):this.queries}notify(e){vf.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){vf.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){vf.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class wf extends bf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||yf,this.observers=[],this.state=e.state||xf(),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=mf({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,r,o,a,i,s,c,u;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,g,m,y,v,b,_,k;throw await(null==(f=(g=this.mutationCache.config).onError)?void 0:f.call(g,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(m=(y=this.options).onError)?void 0:m.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=this.options).onSettled)?void 0:_.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!hf(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),vf.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function xf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Ef extends Bh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new wf({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(r),r}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(){vf.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=>$h(e,t))}findAll(e){return this.mutations.filter(t=>$h(e,t))}notify(e){vf.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 vf.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Fh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Sf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),v=(t,n,r,o)=>{if(g)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{g=!0}),e.signal}});const s=m(a);return Promise.resolve(s).then(e=>y(t,r,e,o))};let b;if(p.length)if(l){const t=void 0!==u,n=t?u:Cf(e.options,p);b=v(p,t,n)}else if(d){const t=void 0!==u,n=t?u:(_=e.options,k=p,null==_.getPreviousPageParam?void 0:_.getPreviousPageParam(k[0],k));b=v(p,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?v([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then(r=>{if(!s||!p[n]||s(p[n],n,p)){const o=t?h[n]:Cf(e.options,r);return v(r,t,o)}return Promise.resolve(y(r,h[n],p[n]))})}else b=v([]);var _,k;const w=b.then(e=>({pages:e,pageParams:f}));return w}}}}function Cf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Rf extends Bh{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),If(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,r=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"),ef(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&Af(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}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(!ef(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(),Mh||this.currentResult.isStale||!Gh(this.options.staleTime))return;const e=Vh(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,!Mh&&!1!==this.options.enabled&&Gh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||uf.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,r=this.options,o=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:g,status:m}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&If(e,t),i=o&&Af(e,n,t,r);(a||i)&&(g=hf(e.options.networkMode)?"fetching":"paused",p||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==m)d=u.data,p=u.dataUpdatedAt,m=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=cf(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===m){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(m="success",d=cf(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),m="error");const b="fetching"===g,_="loading"===m,k="error"===m;return{status:m,fetchStatus:g,isLoading:_,isSuccess:"success"===m,isError:k,isInitialLoading:_&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,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&&!_,isLoadingError:k&&0===l.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:y,isRefetchError:k&&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,ef(n,t))return;this.currentResult=n;const r={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 r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(r.listeners=!0),this.notify({...r,...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||gf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){vf.batch(()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,c;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function If(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 r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Of(e,t)}return!1}function Af(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Of(e,n)}function Of(e,t){return e.isStaleByTime(t.staleTime)}class Pf extends Bh{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),ef(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){vf.batch(()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,c;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var Df,Lf={exports:{}},jf={};var zf,Nf={};
|
|
41
|
+
*/function ut(e){if(ct.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var lt=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],dt=new RegExp(`(^[${lt.join("")}]|$[${lt.join("")}])`,"g");function pt(e){return e.replace(dt,"")}function ht(e){if("string"!=typeof e)return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>127||!ft(n))return!1}return!0}function ft(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function gt(e){if("string"!=typeof e)return!1;if(e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var mt,yt,vt,bt=Symbol("normalizedHeaders"),_t=Symbol("rawHeaderNames"),kt=class e{constructor(t){if(this[mt]={},this[yt]=new Map,this[vt]="Headers",["Headers","HeadersPolyfill"].includes(t?.constructor.name)||t instanceof e||void 0!==globalThis.Headers&&t instanceof globalThis.Headers){t.forEach((e,t)=>{this.append(t,e)},this)}else Array.isArray(t)?t.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(mt=bt,yt=_t,vt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[bt]).sort((e,t)=>e.localeCompare(t));for(const t of e)if("set-cookie"===t)for(const e of this.getSetCookie())yield[t,e];else yield[t,this.get(t)]}has(e){if(!ht(e))throw new TypeError(`Invalid header name "${e}"`);return this[bt].hasOwnProperty(ut(e))}get(e){if(!ht(e))throw TypeError(`Invalid header name "${e}"`);return this[bt][ut(e)]??null}set(e,t){if(!ht(e)||!gt(t))return;const n=ut(e),r=pt(t);this[bt][n]=pt(r),this[_t].set(n,e)}append(e,t){if(!ht(e)||!gt(t))return;const n=ut(e),r=pt(t);let o=this.has(n)?`${this.get(n)}, ${r}`:r;this.set(e,o)}delete(e){if(!ht(e))return;if(!this.has(e))return;const t=ut(e);delete this[bt][t],this[_t].delete(t)}forEach(e,t){for(const[n,r]of this.entries())e.call(t,r,n,this)}getSetCookie(){const e=this.get("set-cookie");return null===e?[]:""===e?[""]:(0,st.splitCookiesString)(e)}};const{message:wt}=Xe,xt=Symbol("kSetCookie");function Et(e={}){const t=e?.status||200,n=e?.statusText||wt[t]||"",r=new Headers(e?.headers);return{...e,headers:r,status:t,statusText:n}}async function St(e,t,n,r,o,a){if(o.emit("request:start",{request:e,requestId:t}),e.headers.get("accept")?.includes("msw/passthrough"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(()=>(async({request:e,requestId:t,handlers:n,resolutionContext:r})=>{let o=null,a=null;for(const i of n)if(a=await i.run({request:e,requestId:t,resolutionContext:r}),null!==a&&(o=i),a?.response)break;return o?{handler:o,parsedResult:a?.parsedResult,response:a?.response}:null})({request:e,requestId:t,handlers:n,resolutionContext:a?.resolutionContext}));if(i)throw o.emit("unhandledException",{error:i,request:e,requestId:t}),i;if(!s)return await v(e,r.onUnhandledRequest),o.emit("request:unhandled",{request:e,requestId:t}),o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const{response:c}=s;if(!c)return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);if(302===c.status&&"passthrough"===c.headers.get("x-msw-intention"))return o.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);await async function(e,t){const n=Reflect.get(t,xt);n&&await qe.setCookie(n,e.url)}(e,c),o.emit("request:match",{request:e,requestId:t});const u=s;return a?.onMockedResponse?.(c,u),o.emit("request:end",{request:e,requestId:t}),c}function Ct(e){return t=>null!=t&&"object"==typeof t&&"__kind"in t&&t.__kind===e}var Rt=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},It=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=It.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new Rt(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},Tt=It;Tt.defaultMaxListeners=10;class At{subscriptions=[];dispose(){let e;for(;e=this.subscriptions.shift();)e()}}class Ot{constructor(e){this.initialHandlers=e,this.handlers=[...e]}handlers;prepend(e){this.handlers.unshift(...e)}reset(e){this.handlers=e.length>0?[...e]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Pt extends At{handlersController;emitter;publicEmitter;events;constructor(...e){super(),l(this.validateHandlers(e),p.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Ot(e),this.emitter=new Tt,this.publicEmitter=new Tt,function(e,t){const n=e.emit;if(n._isPiped)return;const r=function(e,...r){return t.emit(e,...r),n.call(this,e,...r)};r._isPiped=!0,e.emit=r}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(e){return e.every(e=>!Array.isArray(e))}use(...e){l(this.validateHandlers(e),p.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(e)}restoreHandlers(){this.handlersController.currentHandlers().forEach(e=>{"isUsed"in e&&(e.isUsed=!1)})}resetHandlers(...e){this.handlersController.reset(e)}listHandlers(){return function(e){const t=[...e];return Object.freeze(t),t}(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}}var Dt=Object.defineProperty,Lt={};function jt(e){return`[33m${e}[0m`}function zt(e){return`[34m${e}[0m`}function Nt(e){return`[90m${e}[0m`}function qt(e){return`[31m${e}[0m`}function Ut(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)Dt(e,n,{get:t[n],enumerable:!0})})(Lt,{blue:()=>zt,gray:()=>Nt,green:()=>Ut,red:()=>qt,yellow:()=>jt});var Bt=b(),Mt=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=Kt("DEBUG"),n=Kt("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=$t(n,"debug")?Gt:this.debug,this.info=$t(n,"info")?Gt:this.info,this.success=$t(n,"success")?Gt:this.success,this.warning=$t(n,"warning")?Gt:this.warning,this.error=$t(n,"error")?Gt:this.error):(this.info=Gt,this.success=Gt,this.warning=Gt,this.error=Gt,this.only=Gt)}prefix;extend(e){return new Mt(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:Nt(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new Ft;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${Nt(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:Lt[o?.timestamp||"gray"],prefix:Lt[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(Qt(n)).join(" "),...a.map(Qt))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return Vt;case"warning":return Wt;case"error":return Ht}}},Ft=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},Gt=()=>{};function Vt(e,...t){Bt?process.stdout.write(c(e,...t)+"\n"):console.log(e,...t)}function Wt(e,...t){Bt?process.stderr.write(c(e,...t)+"\n"):console.warn(e,...t)}function Ht(e,...t){Bt?process.stderr.write(c(e,...t)+"\n"):console.error(e,...t)}function Kt(e){return Bt?process.env[e]:globalThis[e]?.toString()}function $t(e,t){return void 0!==e&&e!==t}function Qt(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}function Yt(e){return globalThis[e]||void 0}let Jt=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({});var Zt=class{constructor(e){this.symbol=e,this.readyState=Jt.INACTIVE,this.emitter=new Tt,this.subscriptions=[],this.logger=new Mt(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===Jt.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=Jt.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=Jt.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=Jt.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===Jt.DISPOSING||this.readyState===Jt.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==Jt.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=Jt.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",Yt(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=Jt.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=Yt(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Xt(e){if("string"==typeof e)return Xt(new URL(e,"undefined"!=typeof location?location.href:void 0));if("http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),"ws:"!==e.protocol&&"wss:"!==e.protocol)throw new SyntaxError(`Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. '${e.protocol}' is not allowed.`);if(""!==e.hash)throw new SyntaxError(`Failed to construct 'WebSocket': The URL contains a fragment identifier ('${e.hash}'). Fragment identifiers are not allowed in WebSocket URLs.`);return e.href}var en=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}};function tn(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}const nn=Symbol("kCancelable"),rn=Symbol("kDefaultPrevented");var on=class extends MessageEvent{constructor(e,t){super(e,t),this[nn]=!!t.cancelable,this[rn]=!1}get cancelable(){return this[nn]}set cancelable(e){this[nn]=e}get defaultPrevented(){return this[rn]}set defaultPrevented(e){this[rn]=e}preventDefault(){this.cancelable&&!this[rn]&&(this[rn]=!0)}},an=class extends Event{constructor(e,t={}){super(e,t),this.code=void 0===t.code?0:t.code,this.reason=void 0===t.reason?"":t.reason,this.wasClean=void 0!==t.wasClean&&t.wasClean}},sn=class extends an{constructor(e,t={}){super(e,t),this[nn]=!!t.cancelable,this[rn]=!1}get cancelable(){return this[nn]}set cancelable(e){this[nn]=e}get defaultPrevented(){return this[rn]}set defaultPrevented(e){this[rn]=e}preventDefault(){this.cancelable&&!this[rn]&&(this[rn]=!0)}};const cn=Symbol("kEmitter"),un=Symbol("kBoundListener");var ln=class{constructor(e,t){this.socket=e,this.transport=t,this.id=Math.random().toString(16).slice(2),this.url=new URL(e.url),this[cn]=new EventTarget,this.transport.addEventListener("outgoing",e=>{const t=tn(this.socket,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[cn].dispatchEvent(t),t.defaultPrevented&&e.preventDefault()}),this.transport.addEventListener("close",e=>{this[cn].dispatchEvent(tn(this.socket,new an("close",e)))})}addEventListener(e,t,n){if(!Reflect.has(t,un)){const e=t.bind(this.socket);Object.defineProperty(t,un,{value:e,enumerable:!1,configurable:!1})}this[cn].addEventListener(e,Reflect.get(t,un),n)}removeEventListener(e,t,n){this[cn].removeEventListener(e,Reflect.get(t,un),n)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}};const dn="InvalidAccessError: close code out of user configurable range",pn=Symbol("kPassthroughPromise"),hn=Symbol("kOnSend"),fn=Symbol("kClose");var gn=class extends EventTarget{static{this.CONNECTING=0}static{this.OPEN=1}static{this.CLOSING=2}static{this.CLOSED=3}constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=Xt(e),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[pn]=new en,queueMicrotask(async()=>{await this[pn]||(this.protocol="string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(tn(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,null!==e&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,null!==e&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,null!==e&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,null!==e&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.bufferedAmount+=function(e){return"string"==typeof e?e.length:e instanceof Blob?e.size:e.byteLength}(e),queueMicrotask(()=>{this.bufferedAmount=0,this[hn]?.(e)}))}close(e=1e3,t){l(e,dn),l(1e3===e||e>=3e3&&e<=4999,dn),this[fn](e,t)}[fn](e=1e3,t,n=!0){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(tn(this,new an("close",{code:e,reason:t,wasClean:n}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,n){return super.addEventListener(e,t,n)}removeEventListener(e,t,n){return super.removeEventListener(e,t,n)}};const mn=Symbol("kEmitter"),yn=Symbol("kBoundListener"),vn=Symbol("kSend");var bn=class{constructor(e,t,n){this.client=e,this.transport=t,this.createConnection=n,this[mn]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",e=>{void 0!==this.realWebSocket&&queueMicrotask(()=>{e.defaultPrevented||this[vn](e.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return l(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){l(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",e=>{this[mn].dispatchEvent(tn(this.realWebSocket,new Event("open",e)))},{once:!0}),e.addEventListener("message",e=>{this.transport.dispatchEvent(tn(this.realWebSocket,new MessageEvent("incoming",{data:e.data,origin:e.origin})))}),this.client.addEventListener("close",e=>{this.handleMockClose(e)},{signal:this.mockCloseController.signal}),e.addEventListener("close",e=>{this.handleRealClose(e)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=tn(e,new Event("error",{cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(tn(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,n){if(!Reflect.has(t,yn)){const e=t.bind(this.client);Object.defineProperty(t,yn,{value:e,enumerable:!1})}this[mn].addEventListener(e,Reflect.get(t,yn),n)}removeEventListener(e,t,n){this[mn].removeEventListener(e,Reflect.get(t,yn),n)}send(e){this[vn](e)}[vn](e){const{realWebSocket:t}=this;l(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),t.readyState!==WebSocket.CLOSING&&t.readyState!==WebSocket.CLOSED&&(t.readyState!==WebSocket.CONNECTING?t.send(e):t.addEventListener("open",()=>{t.send(e)},{once:!0}))}close(){const{realWebSocket:e}=this;l(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),e.readyState!==WebSocket.CLOSING&&e.readyState!==WebSocket.CLOSED&&(e.close(),queueMicrotask(()=>{this[mn].dispatchEvent(tn(this.realWebSocket,new sn("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=tn(e.target,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(tn(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=tn(this.realWebSocket,new sn("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[mn].dispatchEvent(t),t.defaultPrevented||this.client[fn](e.code,e.reason)}},_n=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",e=>{this.dispatchEvent(tn(this.socket,new an("close",e)))}),this.socket[hn]=e=>{this.dispatchEvent(tn(this.socket,new on("outgoing",{data:e,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,n){return super.addEventListener(e,t,n)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(tn(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[fn](e,t)}},kn=class e extends Zt{static{this.symbol=Symbol("websocket")}constructor(){super(e.symbol)}checkEnvironment(){return function(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return!(void 0===t||"function"==typeof t.get&&void 0===t.get()||void 0===t.get&&null==t.value||void 0===t.set&&!t.configurable&&(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),1))}("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(e,t,n)=>{const[r,o]=t,a=()=>Reflect.construct(e,t,n),i=new gn(r,o),s=new _n(i);return queueMicrotask(async()=>{try{const e=new bn(i,s,a),t=this.emitter.listenerCount("connection")>0;await async function(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}(this.emitter,"connection",{client:new ln(i,s),server:e,info:{protocols:o}}),t?i[pn].resolve(!1):(i[pn].resolve(!0),e.connect(),e.addEventListener("open",()=>{i.dispatchEvent(tn(i,new Event("open"))),e.realWebSocket&&(i.protocol=e.realWebSocket.protocol)}))}catch(e){e instanceof Error&&(i.dispatchEvent(new Event("error")),i.readyState!==WebSocket.CLOSING&&i.readyState!==WebSocket.CLOSED&&i[fn](1011,e.message,!1),console.error(e))}}),i}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}};const wn=new kn;function xn(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e?.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}function En(e){return e instanceof Blob?e.size:a(e)&&"byteLength"in e?e.byteLength:new Blob([e]).size}function Sn(e){return e.length<=24?e:`${e.slice(0,24)}…`}async function Cn(e){if(e instanceof Blob){return`Blob(${Sn(await e.text())})`}if(a(e)){return`ArrayBuffer(${Sn((new TextDecoder).decode(e))})`}return Sn(e)}const Rn="#3b82f6",In="#22c55e",Tn="#ef4444",An="#ff6a33";function On(e){const{client:t,server:n}=e;!function(e){const t=y(e.url);console.groupCollapsed(p.formatMessage(`${xn()} %c▶%c ${t}`),`color:${Rn}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}(t),t.addEventListener("message",e=>{!async function(e){const t=En(e.data),n=await Cn(e.data),r=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${In}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)}),t.addEventListener("close",e=>{!function(e){const t=e.target,n=y(t.url);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c■%c ${n}`),`color:${Rn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.socket.addEventListener("error",e=>{!function(e){const t=e.target,n=y(t.url);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c×%c ${n}`),`color:${Rn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.send=new Proxy(t.send,{apply(e,n,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{!async function(e){const t=En(e.data),n=await Cn(e.data);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c⬇%c ${n} %c${t}%c`),`color:${An}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a)}),Reflect.apply(e,n,r)}}),n.addEventListener("open",()=>{n.addEventListener("message",e=>{!async function(e){const t=En(e.data),n=await Cn(e.data),r=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c${r}%c ${n} %c${t}%c`),`color:${Tn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)})},{once:!0}),n.send=new Proxy(n.send,{apply(e,t,r){const[o]=r,a=new MessageEvent("message",{data:o});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:n.socket},target:{enumerable:!0,writable:!1,value:n.socket}}),async function(e){const t=En(e.data),n=await Cn(e.data);console.groupCollapsed(p.formatMessage(`${xn({milliseconds:!0})} %c⬆%c ${n} %c${t}%c`),`color:${An}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a),Reflect.apply(e,t,r)}})}var Pn=/(%?)(%([sdijo]))/g;function Dn(e,...t){if(0===t.length)return e;let n=0,r=e.replace(Pn,(e,r,o,a)=>{const i=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;const t=JSON.stringify(e);return"{}"===t||"[]"===t||/^\[object .+?\]$/.test(t)?e:t}}}(t[n],a);return r?e:(n++,i)});return n<t.length&&(r+=` ${t.slice(n).join(" ")}`),r=r.replace(/%{2,2}/g,"%"),r}var Ln=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Dn(e,...t),function(e){if(!e.stack)return;const t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},jn=(e,t,...n)=>{if(!e)throw new Ln(t,...n)};function zn(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if("undefined"!=typeof process){const e=process.type;return"renderer"!==e&&"worker"!==e&&!(!process.versions||!process.versions.node)}return!1}jn.as=(e,t,n,...r)=>{if(!t){const t=0===r.length?n:Dn(n,...r);let o;try{o=Reflect.construct(e,[t])}catch(n){o=e(t)}throw o}};var Nn=class extends Promise{#r;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,r)=>{t(n,r),e?.(t.resolve,t.reject)}),this.#r=t,this.resolve=this.#r.resolve,this.reject=this.#r.reject}get state(){return this.#r.state}get rejectionReason(){return this.#r.rejectionReason}then(e,t){return this.#o(super.then(e,t))}catch(e){return this.#o(super.catch(e))}finally(e){return this.#o(super.finally(e))}#o(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}},qn={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t};function Un(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var Bn=async(e,t={},n)=>{const r=new URL(e,location.href).href;const o=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>Un(e,r,n)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[a]=o;if(a)return a.update(),[Un(a,r,n),a];const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(async()=>{const o=await navigator.serviceWorker.register(e,t);return[Un(o,r,n),o]});if(i){if(i.message.includes("(404)")){const e=new URL(t?.scope||"/",location.href);throw new Error(p.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${r}'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init <PUBLIC_DIR>"?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(p.formatMessage("Failed to register the Service Worker:\n\n%s",i.message))}return s};function Mn(e={}){if(e.quiet)return;const t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${p.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),e.client&&console.log("Client ID: %s (%s)",e.client.id,e.client.frameType),console.groupEnd()}function Fn(e){if(!["HEAD","GET"].includes(e.method))return e.body}function Gn(e){return new Request(e.url,{...e,body:Fn(e)})}function Vn(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"undefined"!=typeof location&&"file:"!==location.protocol}var Wn=function(){try{const e=new ReadableStream({start:e=>e.close()});return(new MessageChannel).port1.postMessage(e,[e]),!0}catch{return!1}}(),Hn=(e,t)=>async n=>{if(!e.isMockingEnabled&&e.workerStoppedAt&&n.data.interceptedAt>e.workerStoppedAt)return void n.postMessage("PASSTHROUGH");const r=n.data.id,o=Gn(n.data),a=o.clone(),i=o.clone();m.cache.set(o,i);try{await St(o,r,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onPassthroughResponse(){n.postMessage("PASSTHROUGH")},async onMockedResponse(r,{handler:o,parsedResult:i}){const s=r.clone(),c=r.clone(),u=function(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}(r);if(Wn){const e=r.body;n.postMessage("MOCK_RESPONSE",{...u,body:e},e?[e]:void 0)}else{const e=null===r.body?null:await s.arrayBuffer();n.postMessage("MOCK_RESPONSE",{...u,body:e})}t.quiet||e.emitter.once("response:mocked",()=>{o.log({request:a,response:c,parsedResult:i})})}})}catch(e){e instanceof Error&&(p.error('Uncaught exception in the request handler for "%s %s":\n\n%s\n\nThis exception has been gracefully handled as a 500 response, however, it\'s strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/http/mocking-responses/error-responses',o.method,o.url,e.stack??e),n.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}};var Kn=Symbol("isPatchedModule"),$n=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}},Qn=class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new Nn}get#a(){return this.handled}async passthrough(){jn.as($n,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){jn.as($n,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){jn.as($n,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}};function Yn(e){try{return new URL(e),!0}catch(e){return!1}}function Jn(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}var Zn=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!Yn(e))return;const n=Jn("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=Jn("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}},Xn=Symbol("kRawRequest");function er(e,t){Reflect.set(e,Xn,t)}var tr=Object.defineProperty,nr={};function rr(e){return`[33m${e}[0m`}function or(e){return`[34m${e}[0m`}function ar(e){return`[90m${e}[0m`}function ir(e){return`[31m${e}[0m`}function sr(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)tr(e,n,{get:t[n],enumerable:!0})})(nr,{blue:()=>or,gray:()=>ar,green:()=>sr,red:()=>ir,yellow:()=>rr});var cr=zn(),ur=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=gr("DEBUG"),n=gr("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=mr(n,"debug")?dr:this.debug,this.info=mr(n,"info")?dr:this.info,this.success=mr(n,"success")?dr:this.success,this.warning=mr(n,"warning")?dr:this.warning,this.error=mr(n,"error")?dr:this.error):(this.info=dr,this.success=dr,this.warning=dr,this.error=dr,this.only=dr)}prefix;extend(e){return new ur(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:ar(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new lr;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${ar(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:r,colors:o,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:nr[o?.timestamp||"gray"],prefix:nr[o?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=r?s.prefix(r):[]).concat(yr(n)).join(" "),...a.map(yr))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return pr;case"warning":return hr;case"error":return fr}}},lr=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},dr=()=>{};function pr(e,...t){cr?process.stdout.write(Dn(e,...t)+"\n"):console.log(e,...t)}function hr(e,...t){cr?process.stderr.write(Dn(e,...t)+"\n"):console.warn(e,...t)}function fr(e,...t){cr?process.stderr.write(Dn(e,...t)+"\n"):console.error(e,...t)}function gr(e){return cr?process.env[e]:globalThis[e]?.toString()}function mr(e,t){return void 0!==e&&e!==t}function yr(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}var vr=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},br=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=br.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...r)=>(this.removeListener(e,n),t.apply(this,r));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new vr(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},_r=br;_r.defaultMaxListeners=10;function kr(e){return globalThis[e]||void 0}var wr=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({}),xr=class{constructor(e){this.symbol=e,this.readyState=wr.INACTIVE,this.emitter=new _r,this.subscriptions=[],this.logger=new ur(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===wr.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=wr.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,r)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,r),this.subscriptions.push(()=>{t.emitter.removeListener(n,r),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=wr.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=wr.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===wr.DISPOSING||this.readyState===wr.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==wr.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=wr.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",kr(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=wr.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=kr(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Er(){return Math.random().toString(16).slice(2)}var Sr=new TextEncoder;var Cr=class e extends xr{constructor(t){e.symbol=Symbol(t.name),super(e.symbol),this.interceptors=t.interceptors}setup(){const e=this.logger.extend("setup");e.info("applying all %d interceptors...",this.interceptors.length);for(const t of this.interceptors)e.info('applying "%s" interceptor...',t.constructor.name),t.apply(),e.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>t.dispose())}on(e,t){for(const n of this.interceptors)n.on(e,t);return this}once(e,t){for(const n of this.interceptors)n.once(e,t);return this}off(e,t){for(const n of this.interceptors)n.off(e,t);return this}removeAllListeners(e){for(const t of this.interceptors)t.removeAllListeners(e);return this}};var Rr=e=>function(t,n){const r=(async()=>{e.workerChannel.removeAllListeners(),e.workerChannel.on("REQUEST",Hn(e,t)),e.workerChannel.on("RESPONSE",function(e){return t=>{const n=t.data,r=Gn(n.request);if(n.response.type?.includes("opaque"))return;const o=0===n.response.status?Response.error():new Zn(Zn.isResponseWithBody(n.response.status)?n.response.body:null,{...n.response,url:r.url});e.emitter.emit(n.isMockedResponse?"response:mocked":"response:bypass",{requestId:n.request.id,request:r,response:o})}}(e));const r=await Bn(t.serviceWorker.url,t.serviceWorker.options,t.findWorker),[o,a]=r;if(!o){const e=n?.findWorker?p.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',t.serviceWorker.url):p.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',t.serviceWorker.url,location.host);throw new Error(e)}return e.workerPromise.resolve(o),e.registration=a,window.addEventListener("beforeunload",()=>{"redundant"!==o.state&&e.workerChannel.postMessage("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await function(e){const t=new Nn;return e.workerChannel.postMessage("INTEGRITY_CHECK_REQUEST"),e.workerChannel.once("INTEGRITY_CHECK_RESPONSE",e=>{const{checksum:n,packageVersion:r}=e.data;"4db4a41e972cec1b64cc569c66952d82"!==n&&p.warn(`The currently registered Service Worker has been generated by a different version of MSW (${r}) and may not be fully compatible with the installed version.\n\nIt's recommended you update your worker script by running this command:\n\n • npx msw init <PUBLIC_DIR>\n\nYou can also automate this process and make the worker script update automatically upon the library installations. Read more: https://mswjs.io/docs/cli/init.`),t.resolve()}),t}(e).catch(e=>{p.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),console.error(e)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.postMessage("KEEPALIVE_REQUEST"),5e3),function(e,t){t?.quiet||location.href.startsWith(e.scope)||p.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${e.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}(a,e.startOptions),a})().then(async n=>{const r=n.installing||n.waiting;if(r){const e=new Nn;r.addEventListener("statechange",()=>{"activated"===r.state&&e.resolve()}),await e}return await function(e,t){const n=new Nn;return e.workerChannel.postMessage("MOCK_ACTIVATE"),e.workerChannel.once("MOCKING_ENABLED",async r=>{e.isMockingEnabled=!0;const o=await e.workerPromise;Mn({quiet:t.quiet,workerScope:e.registration?.scope,workerUrl:o.scriptURL,client:r.data.client}),n.resolve(!0)}),n}(e,t).catch(e=>{throw p.error("Failed to enable mocking. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),e}),n});return r},Ir=class{#i;#s;constructor(){this.#i=[],this.#s=new Map}get[Symbol.iterator](){return this.#i[Symbol.iterator].bind(this.#i)}entries(){return this.#s.entries()}get(e){return this.#s.get(e)||[]}getAll(){return this.#i.map(([,e])=>e)}append(e,t){this.#i.push([e,t]),this.#c(e,e=>e.push(t))}prepend(e,t){this.#i.unshift([e,t]),this.#c(e,e=>e.unshift(t))}delete(e,t){if(0!==this.size){this.#i=this.#i.filter(e=>e[1]!==t);for(const[n,r]of this.#s)n===e&&r.includes(t)&&r.splice(r.indexOf(t),1)}}deleteAll(e){0!==this.size&&(this.#i=this.#i.filter(t=>t[0]!==e),this.#s.delete(e))}get size(){return this.#i.length}clear(){0!==this.size&&(this.#i.length=0,this.#s.clear())}#c(e,t){t(this.#s.get(e)||this.#s.set(e,[]).get(e))}},Tr=Symbol("kDefaultPrevented"),Ar=Symbol("kPropagationStopped"),Or=Symbol("kImmediatePropagationStopped"),Pr=class extends MessageEvent{#u;[Tr];[Ar];[Or];constructor(...e){super(e[0],e[1]),this[Tr]=!1}get defaultPrevented(){return this[Tr]}preventDefault(){super.preventDefault(),this[Tr]=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this[Or]=!0}},Dr=Symbol("kListenerOptions"),Lr=class{#l;constructor(){this.#l=new Ir}on(e,t,n){return this.#d(e,t,n),this}once(e,t,n){return this.on(e,t,{...n||{},once:!0})}earlyOn(e,t,n){return this.#d(e,t,n,"prepend"),this}earlyOnce(e,t,n){return this.earlyOn(e,t,{...n||{},once:!0})}emit(e){if(0===this.#l.size)return!1;const t=this.listenerCount(e.type)>0,n=this.#p(e);for(const t of this.#h(e.type)){if(null!=n.event[Ar]&&n.event[Ar]!==this)return n.revoke(),!1;if(n.event[Or])break;this.#f(n.event,t)}return n.revoke(),t}async emitAsPromise(e){if(0===this.#l.size)return[];const t=[],n=this.#p(e);for(const r of this.#h(e.type)){if(null!=n.event[Ar]&&n.event[Ar]!==this)return n.revoke(),[];if(n.event[Or])break;const e=await Promise.resolve(this.#f(n.event,r));this.#g(r)||t.push(e)}return n.revoke(),Promise.allSettled(t).then(e=>e.map(e=>"fulfilled"===e.status?e.value:e.reason))}*emitAsGenerator(e){if(0===this.#l.size)return;const t=this.#p(e);for(const n of this.#h(e.type)){if(null!=t.event[Ar]&&t.event[Ar]!==this)return void t.revoke();if(t.event[Or])break;const e=this.#f(t.event,n);this.#g(n)||(yield e)}t.revoke()}removeListener(e,t){this.#l.delete(e,t)}removeAllListeners(e){null!=e?this.#l.deleteAll(e):this.#l.clear()}listeners(e){return null==e?this.#l.getAll():this.#l.get(e)}listenerCount(e){return null==e?this.#l.size:this.listeners(e).length}#d(e,t,n,r="append"){"prepend"===r?this.#l.prepend(e,t):this.#l.append(e,t),n&&(Object.defineProperty(t,Dr,{value:n,enumerable:!1,writable:!1}),n.signal&&n.signal.addEventListener("abort",()=>{this.removeListener(e,t)},{once:!0}))}#p(e){const{stopPropagation:t}=e;return e.stopPropagation=new Proxy(e.stopPropagation,{apply:(t,n,r)=>(e[Ar]=this,Reflect.apply(t,n,r))}),{event:e,revoke(){e.stopPropagation=t}}}#f(e,t){const n=t.call(this,e);if(t[Dr]?.once){const n=this.#g(t)?"*":e.type;this.#l.delete(n,t)}return n}*#h(e){for(const[t,n]of this.#l)"*"!==t&&t!==e||(yield n)}#g(e){return this.#l.get("*").includes(e)}},jr=Vn(),zr=class extends Pr{#m;constructor(e){super(e.data.type,{data:e.data.payload}),this.#m=e}get ports(){return this.#m.ports}postMessage(e,...t){this.#m.ports[0].postMessage({type:e,data:t[0]},{transfer:t[1]})}},Nr=class extends Lr{constructor(e){super(),this.options=e,jr&&navigator.serviceWorker.addEventListener("message",async e=>{const t=await this.options.worker;null!=e.source&&e.source!==t||e.data&&a(e.data)&&"type"in e.data&&this.emit(new zr(e))})}postMessage(e){jn(jr,"Failed to post message on a WorkerChannel: the Service Worker API is unavailable in this context. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.options.worker.then(t=>{t.postMessage(e)})}};async function qr(e,t,...n){const r=e.listeners(t);if(0!==r.length)for(const t of r)await t.apply(e,n)}function Ur(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==t&&(("function"!=typeof t.get||void 0!==t.get())&&((void 0!==t.get||null!=t.value)&&(!(void 0===t.set&&!t.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}var Br=async e=>{try{return{error:null,data:await e().catch(e=>{throw e})}}catch(e){return{error:e,data:null}}};function Mr(e,t=!1){return t?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function Fr(e,t){try{return e[t],!0}catch{return!1}}function Gr(e){return null!=e&&e instanceof Response&&Fr(e,"type")&&"error"===e.type}async function Vr(e){const t=async t=>{return t instanceof Error?(await e.controller.errorWith(t),!0):Gr(t)?(await e.controller.respondWith(t),!0):Mr(n=t,!0)&&Fr(n,"status")&&Fr(n,"statusText")&&Fr(n,"bodyUsed")?(await e.controller.respondWith(t),!0):!!Mr(t)&&(await e.controller.errorWith(t),!0);var n},n=async n=>{if(n instanceof $n)throw o.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(n)?(await e.controller.errorWith(n),!0):n instanceof Response&&await t(n)},r=new Nn;if(e.request.signal){if(e.request.signal.aborted)return void await e.controller.errorWith(e.request.signal.reason);e.request.signal.addEventListener("abort",()=>{r.reject(e.request.signal.reason)},{once:!0})}const o=await Br(async()=>{const t=qr(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});await Promise.race([r,t,e.controller.handled])});if("rejected"!==r.state){var a;if(!o.error)return e.controller.readyState===Qn.PENDING?await e.controller.passthrough():e.controller.handled;if(await n(o.error))return;if(e.emitter.listenerCount("unhandledException")>0){const n=new Qn(e.request,{passthrough(){},async respondWith(e){await t(e)},async errorWith(t){await e.controller.errorWith(t)}});if(await qr(e.emitter,"unhandledException",{error:o.error,request:e.request,requestId:e.requestId,controller:n}),n.readyState!==Qn.PENDING)return}await e.controller.respondWith((a=o.error,new Response(JSON.stringify(a instanceof Error?{name:a.name,message:a.message,stack:a.stack}:a),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await e.controller.errorWith(r.rejectionReason)}function Wr(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var Hr=["content-encoding","content-language","content-location","content-type","content-length"],Kr=Symbol("kRedirectCount");function $r(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var Qr=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},Yr=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((e,t)=>e.pipeThrough(t));Object.defineProperty(this,"readable",{get:()=>n})}};function Jr(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map(e=>e.trim())}(e);return 0===t.length?null:new Yr(t.reduceRight((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new Qr):(e.length=0,e),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var Zr=class e extends xr{static{this.symbol=Symbol("fetch")}constructor(){super(e.symbol)}checkEnvironment(){return Ur("fetch")}async setup(){const e=globalThis.fetch;jn(!e[Kn],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const r=Er(),o="string"!=typeof t||"undefined"==typeof location||Yn(t)?t:new URL(t,location.href),a=new Request(o,n);t instanceof Request&&er(a,t);const i=new Nn,s=new Qn(a,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const t=a.clone(),{error:n,data:o}=await Br(()=>e(a));if(n)return i.reject(n);if(this.logger.info("original fetch performed",o),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const e=o.clone();await qr(this.emitter,"response",{response:e,isMockedResponse:!1,request:t,requestId:r})}i.resolve(o)},respondWith:async e=>{if(Gr(e))return this.logger.info("request has errored!",{response:e}),void i.reject(Wr(e));this.logger.info("received mocked response!",{rawResponse:e});const t=Jr(e),n=null===t?e:new Zn(t,e);if(Zn.setUrl(a.url,n),Zn.isRedirectResponse(n.status)){if("error"===a.redirect)return void i.reject(Wr("unexpected redirect"));if("follow"===a.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(Wr());const n=new URL(e.url);let r;try{r=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(Wr(e))}if("http:"!==r.protocol&&"https:"!==r.protocol)return Promise.reject(Wr("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,Kr)>20)return Promise.reject(Wr("redirect count exceeded"));if(Object.defineProperty(e,Kr,{value:(Reflect.get(e,Kr)||0)+1}),"cors"===e.mode&&(r.username||r.password)&&!$r(n,r))return Promise.reject(Wr('cross origin not allowed for request mode "cors"'));const o={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(o.method="GET",o.body=null,Hr.forEach(t=>{e.headers.delete(t)})),$r(n,r)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),o.headers=e.headers;const a=await fetch(new Request(r,o));return Object.defineProperty(a,"redirected",{value:!0,configurable:!0}),a}(a,n).then(e=>{i.resolve(e)},e=>{i.reject(e)})}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await qr(this.emitter,"response",{response:n.clone(),isMockedResponse:!0,request:a,requestId:r})),i.resolve(n)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),i.reject(e)}});return this.logger.info("[%s] %s",a.method,a.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await Vr({request:a,requestId:r,emitter:this.emitter,controller:s}),i},Object.defineProperty(globalThis.fetch,Kn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,Kn,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}};var Xr=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},eo=class extends Xr{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}},to="undefined"!=typeof ProgressEvent;function no(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const n=Reflect.getPrototypeOf(e);return n?no(n,t):null}function ro(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:n,getProperty:r,setProperty:o}=e,a={};void 0!==t&&(a.construct=function(e,n,r){const o=Reflect.construct.bind(null,e,n,r);return t.call(r,n,o)});return a.set=function(e,t,n){const r=()=>{const r=no(e,t)||e,o=Reflect.getOwnPropertyDescriptor(r,t);return void 0!==o?.set?(o.set.apply(e,[n]),!0):Reflect.defineProperty(r,t,{writable:!0,enumerable:!0,configurable:!0,value:n})};return void 0!==o?o.call(e,[t,n],r):r()},a.get=function(e,t,o){const a=()=>e[t],i=void 0!==r?r.call(e,[t,o],a):a();return"function"==typeof i?(...r)=>{const o=i.bind(e,...r);return void 0!==n?n.call(e,[t,r],o):o()}:i},a}(t))}function oo(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const e of n){if(""===e.trim())continue;const[n,...r]=e.split(": "),o=r.join(": ");t.append(n,o)}return t}async function ao(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}var io=Symbol("kIsRequestHandled"),so=zn(),co=Symbol("kFetchRequest"),uo=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[io]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Er(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=ro(e,{setProperty:([e,t],n)=>{if("ontimeout"===e){const r=e.slice(2);return this.request.addEventListener(r,t),n()}return n()},methodCall:([e,t],n)=>{switch(e){case"open":{const[e,r]=t;return void 0===r?(this.method="GET",this.url=lo(e)):(this.method=e,this.url=lo(r)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),n()}case"addEventListener":{const[e,r]=t;return this.registerEvent(e,r),this.logger.info("addEventListener",e,r),n()}case"setRequestHeader":{const[e,r]=t;return this.requestHeaders.set(e,r),this.logger.info("setRequestHeader",e,r),n()}case"send":{const[e]=t;this.request.addEventListener("load",()=>{if(void 0!==this.onResponse){const e=function(e,t){return new Zn(Zn.isResponseWithBody(e.status)?t:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:oo(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[io],request:a,requestId:this.requestId})}});const o="string"==typeof e?(r=e,Sr.encode(r)):e,a=this.toFetchApiRequest(o);this[co]=a.clone(),queueMicrotask(()=>{(this.onRequest?.call(this,{request:a,requestId:this.requestId})||Promise.resolve()).finally(()=>{if(!this[io])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),so&&this.request.setRequestHeader("x-interceptors-internal-request-id",this.requestId),n()})});break}default:return n()}var r}}),po(this.request,"upload",ro(this.request.upload,{setProperty:([e,t],n)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const n=e.slice(2);this.registerUploadEvent(n,t)}}return n()},methodCall:([e,t],n)=>{if("addEventListener"===e){const[e,r]=t;return this.registerUploadEvent(e,r),this.logger.info("upload.addEventListener",e,r),n()}}}))}registerEvent(e,t){const n=(this.events.get(e)||[]).concat(t);this.events.set(e,n),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const n=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,n),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[io]=!0,this[co]){const e=await ao(this[co]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),po(this.request,"status",e.status),po(this.request,"statusText",e.statusText),po(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,n,r)=>{if(this.logger.info("getResponseHeader",r[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const o=e.headers.get(r[0]);return this.logger.info('resolved response header "%s" to',r[0],o),o}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map(([e,t])=>`${e}: ${t}`).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await ao(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),o=async()=>{const{value:e,done:a}=await r.read();if(a)return this.logger.info("response body stream done!"),void n();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),o()};o()}else n()}responseBufferToText(){return e=this.responseBuffer,new TextDecoder(t).decode(e);var e,t}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=(e=this.responseBuffer).buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}var e}get responseText(){if(jn(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(jn(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):function(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(t=>e.startsWith(t))}(e)?(new DOMParser).parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[io]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(po(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,n){const r=t[`on${e}`],o=function(e,t,n){const r=to?ProgressEvent:eo;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new r(t,{lengthComputable:!0,loaded:n?.loaded||0,total:n?.total||0}):new Xr(t,{target:e,currentTarget:e})}(t,e,n);this.logger.info('trigger "%s"',e,n||""),"function"==typeof r&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,o));const a=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[n,r]of a)n===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',r.length,e),r.forEach(e=>e.call(t,o)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return po(n,"headers",ro(n.headers,{methodCall:([e,t],r)=>{switch(e){case"append":case"set":{const[e,n]=t;this.request.setRequestHeader(e,n);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return r()}})),er(n,this.request),this.logger.info("converted request to a Fetch API Request!",n),n}};function lo(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function po(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}var ho=class e extends xr{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(e.interceptorSymbol)}checkEnvironment(){return Ur("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;jn(!t[Kn],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(n,r,o){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(n,r,o),i=Object.getOwnPropertyDescriptors(n.prototype);for(const e in i)Reflect.defineProperty(a,e,i[e]);const s=new uo(a,t);return s.onRequest=async function({request:t,requestId:n}){const r=new Qn(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{Gr(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await Vr({request:t,requestId:n,controller:r,emitter:e})},s.onResponse=async function({response:t,isMockedResponse:n,request:r,requestId:o}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:n,request:r,requestId:o})},s.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,Kn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,Kn,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}};var fo=class extends Pt{context;constructor(...e){super(...e),jn(!zn(),p.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.context=this.createWorkerContext()}createWorkerContext(){const e=new Nn;return{isMockingEnabled:!1,startOptions:null,workerPromise:e,registration:void 0,getRequestHandlers:()=>this.handlersController.currentHandlers(),emitter:this.emitter,workerChannel:new Nr({worker:e})}}async start(e={}){if("waitUntilReady"in e&&p.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.isMockingEnabled)return p.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.'),this.context.registration;if(this.context.workerStoppedAt=void 0,this.context.startOptions=i(qn,e),function(e){wn.on("connection",async t=>{const n=e.getHandlers().filter(Ct("EventHandler"));if(n.length>0)return e?.onMockedConnection(t),void await Promise.all(n.map(e=>e.run(t)));const r=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await v(r,e.getUnhandledRequestStrategy()).catch(e=>{const n=new Event("error");Object.defineProperty(n,"cause",{enumerable:!0,configurable:!1,value:e}),t.client.socket.dispatchEvent(n)}),e?.onPassthroughConnection(t),t.server.connect()})}({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:e=>{this.context.startOptions.quiet||On(e)},onPassthroughConnection(){}}),wn.apply(),this.subscriptions.push(()=>{wn.dispose()}),!Vn()){const e=function(e,t){const n=new Cr({name:"fallback",interceptors:[new Zr,new ho]});return n.on("request",async({request:n,requestId:r,controller:o})=>{const a=n.clone(),i=await St(n,r,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onMockedResponse(n,{handler:r,parsedResult:o}){t.quiet||e.emitter.once("response:mocked",({response:e})=>{r.log({request:a,response:e,parsedResult:o})})}});i&&o.respondWith(i)}),n.on("response",({response:t,isMockedResponse:n,request:r,requestId:o})=>{e.emitter.emit(n?"response:mocked":"response:bypass",{response:t,request:r,requestId:o})}),n.apply(),n}(this.context,this.context.startOptions);return this.subscriptions.push(()=>{e.dispose()}),this.context.isMockingEnabled=!0,void Mn({message:"Mocking enabled (fallback mode).",quiet:this.context.startOptions.quiet})}const t=Rr(this.context),n=await t(this.context.startOptions,e);return this.context.isMockingEnabled=!0,n}stop(){super.dispose(),this.context.isMockingEnabled?(this.context.isMockingEnabled=!1,this.context.workerStoppedAt=Date.now(),this.context.emitter.removeAllListeners(),Vn()&&(this.context.workerChannel.removeAllListeners("RESPONSE"),window.clearInterval(this.context.keepAliveInterval)),window.postMessage({type:"msw/worker:stop"}),function(e={}){e.quiet||console.log(`%c${p.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}({quiet:this.context.startOptions?.quiet})):p.warn('Found a redundant "worker.stop()" call. Notice that stopping the worker after it has already been stopped has no effect. Consider removing this "worker.stop()" call.')}};const{message:go}=Xe;function mo(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a=t.delimiter,i=void 0===a?"/#?":a,s=[],c=0,u=0,l="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],o=r.type,a=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=i;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(vo(i),"]+?"):"(?:(?!".concat(vo(n),")[^").concat(vo(i),"])+?")};u<n.length;){var g=d("CHAR"),m=d("NAME"),y=d("PATTERN");if(m||y){var v=g||"";-1===o.indexOf(v)&&(l+=v,v=""),l&&(s.push(l),l=""),s.push({name:m||c++,prefix:v,suffix:"",pattern:y||f(v),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)l+=b;else if(l&&(s.push(l),l=""),d("OPEN")){v=h();var _=d("NAME")||"",k=d("PATTERN")||"",w=h();p("CLOSE"),s.push({name:_||(k?c++:""),pattern:_&&!k?f(v):k,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else p("END")}}return s}function yo(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,s=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):s[n.name]=o(r[e],n)},u=1;u<r.length;u++)c(u);return{path:a,index:i,params:s}}}(ko(e,n,t),n,t)}function vo(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bo(e){return e&&e.sensitive?"":"i"}function _o(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,a=n.start,i=void 0===a||a,s=n.end,c=void 0===s||s,u=n.encode,l=void 0===u?function(e){return e}:u,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(vo(void 0===h?"":h),"]|$"),g="[".concat(vo(p),"]"),m=i?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if("string"==typeof b)m+=vo(l(b));else{var _=vo(l(b.prefix)),k=vo(l(b.suffix));if(b.pattern)if(t&&t.push(b),_||k)if("+"===b.modifier||"*"===b.modifier){var w="*"===b.modifier?"?":"";m+="(?:".concat(_,"((?:").concat(b.pattern,")(?:").concat(k).concat(_,"(?:").concat(b.pattern,"))*)").concat(k,")").concat(w)}else m+="(?:".concat(_,"(").concat(b.pattern,")").concat(k,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(_).concat(k,")").concat(b.modifier)}}if(c)o||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var x=e[e.length-1],E="string"==typeof x?g.indexOf(x[x.length-1])>-1:void 0===x;o||(m+="(?:".concat(g,"(?=").concat(f,"))?")),E||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,bo(n))}(mo(e,n),t,n)}function ko(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return ko(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),bo(n))}(e,t,n):_o(e,t,n)}var wo=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}};function xo(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}(class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new en}get#a(){return this.handled}async passthrough(){l.as(wo,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){l.as(wo,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){l.as(wo,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}});var Eo=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return;const n=xo("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const r=n.status??200,o=e.isConfigurableStatusCode(r)?r:200;if(super(e.isResponseWithBody(r)?t:null,{status:o,statusText:n.statusText,headers:n.headers}),r!==o){const e=xo("state",this);e?e.status=r:Object.defineProperty(this,"status",{value:r,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}};new TextEncoder;const So=/[?|#].*$/g;function Co(e){return e.endsWith("?")?e:e.replace(So,"")}function Ro(e,t){if(e instanceof RegExp)return e;const n=function(e,t){if(/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e))return e;if(e.startsWith("*"))return e;const n=t||"undefined"!=typeof location&&location.href;return n?decodeURI(new URL(encodeURI(e),n).href):e}(e,t);return Co(n)}function Io(e,t,n){const r=Ro(t,n),o="string"==typeof r?function(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{const r="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${r}`:r}).replace(/([^/])(:)(?=\d+)/,"$1\\$2").replace(/^([^/]+)(:)(?=\/\/)/,"$1\\$2")}(r):r,a=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}(e),i=yo(o,{decode:decodeURIComponent})(a);return{matches:!1!==i,params:i&&i.params||{}}}var To=Object.create,Ao=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Po=Object.getOwnPropertyNames,Do=Object.getPrototypeOf,Lo=Object.prototype.hasOwnProperty,jo=((e,t)=>function(){return t||(0,e[Po(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(e,t){const n=new i,r=e.length;if(r<2)return n;const o=t?.decode||u;let a=0;do{const t=e.indexOf("=",a);if(-1===t)break;const i=e.indexOf(";",a),u=-1===i?r:i;if(t>u){a=e.lastIndexOf(";",t-1)+1;continue}const l=s(e,a,t),d=c(e,t,l),p=e.slice(l,d);if(void 0===n[p]){let r=s(e,t+1,u),a=c(e,u,r);const i=o(e.slice(r,a));n[p]=i}a=u+1}while(a<r);return n},e.serialize=function(e,i,s){const c=s?.encode||encodeURIComponent;if(!t.test(e))throw new TypeError(`argument name is invalid: ${e}`);const u=c(i);if(!n.test(u))throw new TypeError(`argument val is invalid: ${i}`);let l=e+"="+u;if(!s)return l;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);l+="; Max-Age="+s.maxAge}if(s.domain){if(!r.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);l+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);l+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);l+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(l+="; HttpOnly");s.secure&&(l+="; Secure");s.partitioned&&(l+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return l};var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function u(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}}}),zo=((e,t,n)=>(n=null!=e?To(Do(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Po(t))Lo.call(e,o)||o===n||Ao(e,o,{get:()=>t[o],enumerable:!(r=Oo(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Ao(n,"default",{value:e,enumerable:!0}),e)))(jo(),1),No=zo.default||zo,qo=No.parse,Uo=No.serialize;function Bo(e){const t=qo(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Mo(){return Bo(document.cookie)}function Fo(e){const t=e.headers.get("cookie"),n=t?Bo(t):{},r=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Mo():{}}case"include":return Mo();default:return{}}}(e);for(const t in r)e.headers.append("cookie",Uo(t,r[t]));const o=qe.getCookies(e.url),a=Object.fromEntries(o.map(e=>[e.key,e.value]));for(const t of o)e.headers.append("cookie",t.toString());return{...r,...a,...n}}var Go=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Go||{});class Vo extends m{constructor(e,t,n,r){const o="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${o?` ${o}`:""}`,path:t,method:e},resolver:n,options:r}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;Co(t)!==t&&p.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=Fo(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?Io(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=y(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),r=await async function(e){const t=e.clone(),n=await t.text(),r=t.status||200;return{status:r,statusText:t.statusText||go[r]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),o=(a=r.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(p.formatMessage(`${xn()} ${e.request.method} ${t} (%c${r.status} ${r.statusText}%c)`),`color:${o}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",r),console.groupEnd()}}function Wo(e){return(t,n,r={})=>new Vo(e,t,n,r)}const Ho={all:Wo(/.+/),head:Wo(Go.HEAD),get:Wo(Go.GET),post:Wo(Go.POST),put:Wo(Go.PUT),delete:Wo(Go.DELETE),patch:Wo(Go.PATCH),options:Wo(Go.OPTIONS)},Ko=Symbol("bodyType");class $o extends Eo{[Ko]=null;constructor(e,t){const n=Et(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,xt,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=kt.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new $o(e,n)}static json(e,t){const n=Et(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const r=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",r?new Blob([r]).size.toString():"0"),new $o(r,n)}static xml(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new $o(e,n)}static html(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new $o(e,n)}static arrayBuffer(e,t){const n=Et(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new $o(e,n)}static formData(e,t){return new $o(e,Et(t))}}l("undefined"!=typeof URL,p.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var Qo,Yo={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},Jo={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Zo={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Xo={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ea=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ta={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},na=[Ho.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return $o.json(Yo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return $o.json(Jo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return $o.json(Zo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return $o.json(Xo)}),Ho.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return $o.json(ea)}),Ho.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return $o.json(ta)})],ra={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},oa={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},aa={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Qo||(Qo={}));var ia={sales_volume_metric_group:aa.sales_volume_metric_group,total_payments:aa.total_payments},sa=Ho.get("/api/insights/overview-metrics",function(){return $o.json(ia)}),ca=[Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.GENERAL),function(){return $o.json({sales_volume_metric_group:ia.sales_volume_metric_group})}),Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.LATENCY),function(){return $o.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.STATUS),function(){return $o.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),Ho.get("/api/v3/insights/overview-metrics/".concat(Qo.SUBSCRIPTIONS),function(){return $o.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],ua=e.__spreadArray([sa],ca,!0),la=e.__spreadArray([Ho.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return $o.json(ra)}),Ho.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return $o.json(oa)}),Ho.get("*/accounts/webhooks/:accountCode",function(){return $o.json({})}),Ho.get("*/accounts/webhooks/params-catalog",function(){return $o.json({})}),Ho.get("*/accounts/webhooks-v2/:accountCode",function(){return $o.json({})})],ua,!0),da={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},pa={total:100,page:1,page_size:10,total_pages:10},ha={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},fa={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},ga={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},ma=da,ya={data:[ha,e.__assign(e.__assign({},ha),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:pa},va=e.__assign(e.__assign({},da),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),ba={data:[e.__assign(e.__assign({},ha),{reconciliation_status:"STATUS_CONFLICT"})],pagination:e.__assign(e.__assign({},pa),{total:20,total_pages:2})},_a=e.__assign(e.__assign({},da),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),ka={data:[e.__assign(e.__assign({},ha),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:e.__assign(e.__assign({},pa),{total:10,total_pages:1})},wa={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},xa=e.__assign(e.__assign({},da),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),Ea={data:[e.__assign(e.__assign({},ha),{reconciliation_status:"DATE_CONFLICT"})],pagination:e.__assign(e.__assign({},pa),{total:55,total_pages:6})},Sa={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Ca=e.__assign(e.__assign({},da),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),Ra={data:[e.__assign(e.__assign({},fa),{fee_status:"MISMATCH"}),e.__assign(e.__assign({},fa),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:e.__assign(e.__assign({},pa),{total:15,total_pages:2})},Ia={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},Ta={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},Aa=e.__assign(e.__assign({},da),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Oa={data:[fa],pagination:e.__assign(e.__assign({},pa),{total:800,total_pages:80})},Pa={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Da=e.__assign(e.__assign({},da),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),La={data:[e.__assign(e.__assign({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:e.__assign(e.__assign({},pa),{total:25,total_pages:3})},ja={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},za={primary_key:"pk_mock_123",organization_code:"org_mock",account_id:"acc_mock",provider_merchant_id:"pmid_mock",provider_id:"provider_mock",acquirer:"acquirer_mock",country:"AR",payment_method_category:"CARD",payment_method_type:"CREDIT_CARD",settlement_batch_id:"batch_mock",payment_id:"pay_found_123",transaction_id:"txn_mock",provider_transaction_id:"ptxn_mock",third_party_transaction_id_transaction:"tp_txn_mock",merchant_order_id:"order_mock",merchant_reference:"ref_mock",transaction_date:"2026-05-06 13:48:17",settlement_date:"2026-05-08",type:"PURCHASE",reconciliation_status:"RECONCILED",reconciliation_sub_status:"MATCH_FOUND",reconciliation_id:"recon_mock",amount:19099,gross_currency:"ARS",gross_credit:19099,gross_debit:0,settlement_currency:"USD",fx_rate:.00115,settlement_gross_amount:21.96,fee_rate:.0349,settlement_fees:.77,settlement_fee_taxes:.04,settlement_taxes:0,settlement_net_credit:21.15,settlement_net_debit:0,card_brand:"VISA",card_type:"CREDIT",card_iin:"450799",card_lfd:"1234",authorization_code:"123456",installments:1,installment_number:1},Na="*/reconciliations/insights",qa=[Ho.post("".concat(Na,"/conflicts/summary"),function(){return $o.json(ga)}),Ho.post("".concat(Na,"/not-reconciled/aggregators"),function(){return $o.json(ma)}),Ho.post("".concat(Na,"/not-reconciled/list"),function(){return $o.json(ya)}),Ho.post("".concat(Na,"/status-conflict/aggregators"),function(){return $o.json(va)}),Ho.post("".concat(Na,"/status-conflict/list"),function(){return $o.json(ba)}),Ho.post("".concat(Na,"/amount-conflict/aggregators"),function(){return $o.json(_a)}),Ho.post("".concat(Na,"/amount-conflict/list"),function(){return $o.json(ka)}),Ho.post("".concat(Na,"/conflict-date/summary"),function(){return $o.json(wa)}),Ho.post("".concat(Na,"/conflict-date/aggregators"),function(){return $o.json(xa)}),Ho.post("".concat(Na,"/conflict-date/list"),function(){return $o.json(Ea)}),Ho.post("".concat(Na,"/incorrect-fees/summary"),function(){return $o.json(Sa)}),Ho.post("".concat(Na,"/incorrect-fees/aggregators"),function(){return $o.json(Ca)}),Ho.post("".concat(Na,"/incorrect-fees/list"),function(){return $o.json(Ra)}),Ho.post("".concat(Na,"/fees-charged/summary"),function(){return $o.json(Ia)}),Ho.post("".concat(Na,"/reconciled/summary"),function(){return $o.json(Ta)}),Ho.post("".concat(Na,"/reconciled/aggregators"),function(){return $o.json(Aa)}),Ho.post("".concat(Na,"/reconciled/list"),function(){return $o.json(Oa)}),Ho.post("".concat(Na,"/not-confirm/summary"),function(){return $o.json(Pa)}),Ho.post("".concat(Na,"/not-confirm/aggregators"),function(){return $o.json(Da)}),Ho.post("".concat(Na,"/not-confirm/list"),function(){return $o.json(La)}),Ho.post("".concat(Na,"/amount-to-be-settled/summary"),function(){return $o.json(ja)}),Ho.post("".concat(Na,"/reconciliation-rate/summary/by-provider"),function(){return $o.json({total:{total_transactions:0,transactions_percentage:0},data:[]})}),Ho.post("".concat(Na,"/reconciliation-rate/summary/by-account"),function(){return $o.json([])}),Ho.post("".concat(Na,"/reconciliation-rate/summary/by-currency"),function(){return $o.json([])}),Ho.post("".concat(Na,"/settlement/lookup"),function(){return $o.json(za)})],Ua=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],Ba={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},Ma={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Fa={deleted:!0},Ga=[Ho.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return $o.json(Ua)}),Ho.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return $o.json(Ba)}),Ho.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return $o.json(Ma)}),Ho.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return $o.json(Fa)})],Va={account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z"},Wa={data:[e.__assign({id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",date_of_birth:"1990-05-12",website:null,industry:null,merchant_category_code:null,document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"}},Va),e.__assign(e.__assign({id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",date_of_birth:null,website:"https://acmepayments.com",industry:"Financial Services",merchant_category_code:"5411",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"}},Va),{account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z"}),e.__assign(e.__assign({id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",date_of_birth:"1985-11-30",website:null,industry:null,merchant_category_code:null,document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"}},Va),{account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z"}),e.__assign(e.__assign({id:"rec_004",merchant_recipient_id:null,national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"TechPay Solutions S.A.",email:"admin@techpay.co",date_of_birth:null,website:"https://techpay.co",industry:"Technology",merchant_category_code:"7372",document:{number:"900123456",type:"NIT"},phone:{country_code:"+57",number:"3001234567"},address:{address_line_1:"Carrera 7 #80-49",address_line_2:"Oficina 605",city:"Bogotá",state:"Cundinamarca",zip_code:"110221",country:"CO"}},Va),{account_id:"acc_test_003",country:"CO",created_at:"2026-02-10T15:30:00.000Z",updated_at:"2026-03-01T11:00:00.000Z"}),e.__assign(e.__assign({id:"rec_005",merchant_recipient_id:"merch-rec-005",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"João",last_name:"Silva",legal_name:null,email:"joao.silva@example.com",date_of_birth:"1992-08-25",website:null,industry:null,merchant_category_code:null,document:{number:"98765432100",type:"CPF"},phone:{country_code:"+55",number:"21988776655"},address:{address_line_1:"Rua Voluntários da Pátria 45",address_line_2:null,city:"Rio de Janeiro",state:"RJ",zip_code:"22270-000",country:"BR"}},Va),{created_at:"2026-02-15T09:00:00.000Z",updated_at:"2026-03-01T17:45:00.000Z"})],pagination:{page:1,page_size:25,total_items:5,total_pages:1,has_next:!1,has_previous:!1}},Ha={id:"rec_001",merchant_recipient_id:"merch-rec-001",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"Carlos",last_name:"Rodríguez",legal_name:null,email:"carlos.rodriguez@example.com",account_id:"acc_test_001",country:"BR",created_at:"2026-01-15T10:30:00.000Z",updated_at:"2026-02-20T14:45:00.000Z",document:{number:"12345678901",type:"CPF"},phone:{country_code:"+55",number:"11999887766"},address:{address_line_1:"Rua Augusta 1200",address_line_2:"Apto 301",city:"São Paulo",state:"SP",zip_code:"01304-001",country:"BR"},withdrawal_method:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_001",provider_id:"stripe",provider:{name:"Stripe",icon:"https://cdn.y.uno/providers/stripe.svg"},status:"APPROVED",response_message:null,created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z"},{id:"onb_002",provider_id:"adyen",provider:{name:"Adyen",icon:"https://cdn.y.uno/providers/adyen.svg"},status:"PENDING",response_message:null,created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z"}]},Ka={id:"onb_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Stripe onboarding for payout capabilities",status:"APPROVED",response_message:null,callback_url:"https://example.com/callback/onboarding",provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:"acct_1NcVZQS0m7FGzPCG",recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:"ba_1Nc000",recipient_type:null,raw_notification:null,raw_response:null,response_code:"200",response_message:"OK"},documentation:[],legal_representatives:[],withdrawal_methods:{bank:{code:"001",branch:"1234",branch_digit:"5",account:"98765432",account_digit:"1",account_type:"CHECKINGS",routing:"00119876",country:"BR",currency:"BRL"}},requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},terms_of_service:{acceptance:!0,date:"2026-01-16T08:00:00.000Z",ip:"200.100.50.25"},metadata:[],created_at:"2026-01-16T08:00:00.000Z",updated_at:"2026-01-18T12:00:00.000Z",expires_at:null},$a=[{timestamp:"2026-01-16T08:00:00.000Z",event_type:"ONBOARDING_CREATED",status:"PENDING",event_data:{provider_id:"stripe",provider_status:null,provider_response_code:null,provider_response_message:null,provider_recipient_id:null,provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-16T08:01:30.000Z",event_type:"ONBOARDING_SUBMITTED",status:"IN_PROGRESS",event_data:{provider_id:"stripe",provider_status:"IN_PROGRESS",provider_response_code:"200",provider_response_message:"Onboarding submitted successfully",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:null,change_type:null}},{timestamp:"2026-01-18T12:00:00.000Z",event_type:"ONBOARDING_APPROVED",status:"APPROVED",event_data:{provider_id:"stripe",provider_status:"APPROVED",provider_response_code:"200",provider_response_message:"Onboarding approved",provider_recipient_id:"acct_1NcVZQS0m7FGzPCG",provider_redirect_url:null,requirements:[],capabilities:{payouts:{status:"ACTIVE",requirements:[]},send_transfers:{status:"ACTIVE",requirements:[]},receive_transfers:{status:"ACTIVE",requirements:[]},payments:{status:"ACTIVE",requirements:[]}},change_type:null}}],Qa={id:"rec_new_001",merchant_recipient_id:null,national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"New",last_name:"Recipient",legal_name:null,email:"new.recipient@example.com",account_id:"acc_test_001",country:"BR",created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),document:{number:"11122233344",type:"CPF"},phone:{country_code:"+55",number:"11900001111"},address:null,withdrawal_method:null,documentation:[],onboardings:[]};e.__assign(e.__assign({},Ha),{updated_at:(new Date).toISOString()});var Ya={message:"Recipient deleted successfully"},Ja={id:"onb_new_001",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"New onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"stripe",connection_id:"conn_stripe_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),expires_at:null},Za=e.__assign(e.__assign({},Ka),{updated_at:(new Date).toISOString()}),Xa=e.__assign(e.__assign({},Ka),{status:"BLOCKED",updated_at:(new Date).toISOString()}),ei=e.__assign(e.__assign({},Ka),{status:"APPROVED",updated_at:(new Date).toISOString()}),ti="https://dev.y.uno/dashboard-bff/api",ni={rec_001:Ha,rec_002:{id:"rec_002",merchant_recipient_id:"merch-rec-002",national_entity:"ENTITY",entity_type:"PRIVATE",first_name:null,last_name:null,legal_name:"Acme Payments Ltda",email:"finance@acmepayments.com",account_id:"acc_test_002",country:"BR",created_at:"2026-01-20T08:00:00.000Z",updated_at:"2026-02-22T16:30:00.000Z",document:{number:"12345678000199",type:"CNPJ"},phone:{country_code:"+55",number:"1133445566"},address:{address_line_1:"Av. Paulista 900",address_line_2:"Sala 1201",city:"São Paulo",state:"SP",zip_code:"01310-100",country:"BR"},withdrawal_method:{bank:{code:"341",branch:"0001",branch_digit:"0",account:"12345678",account_digit:"9",account_type:"CHECKINGS",routing:"34100001",country:"BR",currency:"BRL",payout_schedule:null}},documentation:[],onboardings:[{id:"onb_003",provider_id:"dlocal",provider:{name:"dLocal",icon:"https://cdn.y.uno/providers/dlocal.svg"},status:"IN_PROGRESS",response_message:"Waiting for document verification",created_at:"2026-02-01T10:00:00.000Z",updated_at:"2026-02-15T14:00:00.000Z"}]},rec_003:{id:"rec_003",merchant_recipient_id:"merch-rec-003",national_entity:"INDIVIDUAL",entity_type:"INDIVIDUAL",first_name:"María",last_name:"González",legal_name:null,email:"maria.gonzalez@example.com",account_id:"acc_test_001",country:"AR",created_at:"2026-02-01T12:00:00.000Z",updated_at:"2026-02-28T09:15:00.000Z",document:{number:"87654321",type:"DNI"},phone:{country_code:"+54",number:"1155667788"},address:{address_line_1:"Av. Corrientes 1234",address_line_2:null,city:"Buenos Aires",state:"CABA",zip_code:"C1043",country:"AR"},withdrawal_method:null,documentation:[],onboardings:[]}},ri={onb_001:Ka,onb_002:{id:"onb_002",type:"ONBOARD_ONTO_THE_PROVIDER",workflow:"DIRECT",description:"Adyen onboarding",status:"PENDING",response_message:null,callback_url:null,provider:{id:"adyen",connection_id:"conn_adyen_001",redirect_url:null,recipient_id:null,recipient_additional_id:null,onboarding_url:null,legal_entity:null,balance_account_id:null,recipient_type:null,raw_notification:null,raw_response:null,response_code:null,response_message:null},documentation:[],legal_representatives:[],withdrawal_methods:null,requirements:[],capabilities:null,terms_of_service:null,metadata:[],created_at:"2026-02-10T09:00:00.000Z",updated_at:"2026-02-10T09:00:00.000Z",expires_at:null}},oi=[Ho.get("".concat(ti,"/recipients"),function(){return $o.json(Wa)}),Ho.get("".concat(ti,"/recipients/:recipientId"),function(t){var n=t.params.recipientId,r=ni[n];return r?$o.json(r):$o.json(e.__assign(e.__assign({},Ha),{id:n}))}),Ho.get("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId"),function(t){var n=t.params.onboardingId,r=ri[n];return r?$o.json(r):$o.json(e.__assign(e.__assign({},Ka),{id:n}))}),Ho.get("".concat(ti,"/recipients/onboardings/:onboardingId/timeline"),function(){return $o.json($a)}),Ho.post("".concat(ti,"/recipients"),function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(r){switch(r.label){case 0:return[4,n.json()];case 1:return t=r.sent(),[2,$o.json(e.__assign(e.__assign(e.__assign({},Qa),t),{id:"rec_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),Ho.patch("".concat(ti,"/recipients/:recipientId"),function(t){var n=t.request,r=t.params;return e.__awaiter(void 0,void 0,void 0,function(){var t,o,a;return e.__generator(this,function(i){switch(i.label){case 0:return[4,n.json()];case 1:return t=i.sent(),o=r.recipientId,a=ni[o]||Ha,[2,$o.json(e.__assign(e.__assign(e.__assign({},a),t),{id:o,updated_at:(new Date).toISOString()}))]}})})}),Ho.delete("".concat(ti,"/recipients/:recipientId"),function(){return $o.json(Ya)}),Ho.post("".concat(ti,"/recipients/:recipientId/onboardings"),function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(r){switch(r.label){case 0:return[4,n.json()];case 1:return t=r.sent(),[2,$o.json(e.__assign(e.__assign(e.__assign({},Ja),t),{id:"onb_".concat(Date.now()),created_at:(new Date).toISOString(),updated_at:(new Date).toISOString()}),{status:201})]}})})}),Ho.patch("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId"),function(t){var n=t.request,r=t.params;return e.__awaiter(void 0,void 0,void 0,function(){var t,o;return e.__generator(this,function(a){switch(a.label){case 0:return[4,n.json()];case 1:return t=a.sent(),o=r.onboardingId,[2,$o.json(e.__assign(e.__assign(e.__assign({},Za),t),{id:o,updated_at:(new Date).toISOString()}))]}})})}),Ho.post("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId/block"),function(t){var n=t.params.onboardingId;return $o.json(e.__assign(e.__assign({},Xa),{id:n,updated_at:(new Date).toISOString()}))}),Ho.post("".concat(ti,"/recipients/:recipientId/onboardings/:onboardingId/unblock"),function(t){var n=t.params.onboardingId;return $o.json(e.__assign(e.__assign({},ei),{id:n,updated_at:(new Date).toISOString()}))})],ai={data:[{code:"api-log-001",url:"/api/v1/payments",method:"POST",source:"dashboard",headers:{"Content-Type":"application/json",Authorization:"Bearer token123"},request:{amount:"100.00",currency:"USD"},response:{status:"success",payment_id:"pay_123"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-123-456",created_at:"2024-03-01T10:00:00Z",payment_code:"PAY001",transaction_code:"TXN001"},{code:"api-log-002",url:"/api/v1/payments/PAY001",method:"GET",source:"api",headers:{"Content-Type":"application/json"},request:{},response:{payment_code:"PAY001",amount:"100.00"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-789-012",created_at:"2024-03-01T10:05:00Z"}],page:1,size:10,total_rows:2,total_pages:1},ii=[Ho.post("https://dev.y.uno/dashboard-bff/api/v3/api-logs/organization",function(){return $o.json(ai)})],si={data:[{id:1,organization_code:"ORG001",account_code:"ACC001",type:"payment.succeeded",created_at:"2024-03-01T10:00:00Z",updated_at:"2024-03-01T10:00:00Z",time:250,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.succeeded",payment_code:"PAY001"}),response:JSON.stringify({received:!0}),response_status:200,connect_timeout:5e3,read_timeout:1e4,exception:"",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-001",origin_id:"origin-001",payment_code:"PAY001",transaction_code:"TXN001"},{id:2,organization_code:"ORG001",account_code:"ACC001",type:"payment.failed",created_at:"2024-03-01T10:05:00Z",updated_at:"2024-03-01T10:05:00Z",time:300,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.failed",payment_code:"PAY002"}),response:"",response_status:500,connect_timeout:5e3,read_timeout:1e4,exception:"Connection timeout",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-002",origin_id:"origin-002",payment_code:"PAY002"}],page:1,size:10,total_rows:2,total_pages:1},ci=[Ho.post("https://dev.y.uno/dashboard-bff/api/v3/webhooks/timeline",function(){return $o.json(si)})],ui=function(t){return void 0===t&&(t={}),e.__assign({id:1,code:"7471bbc5-76f0-4bb9-aad6-dd21fb68a0c8",account_code_live:"7471bbc5-76f0-4bb9-aad6-dd21fb68a0c8",account_code_testing:"56fc6485-6015-4c0b-b8ee-3fb687a107e6",status:"ACTIVE",active:!0,principal:!1,name:"Mock Account",organization_code:"daff0d16-9e94-45d4-8f9f-fe70a6d3bb3c",created_at:null,updated_at:null,user_account_code:"92f73a2c-2a6a-4ccb-85c5-68b61ad52686",role:{id:"rol_sAnEykYxo6e4x2wY",name:"Admin",admin:!0,staff:!0,permission_ids:["manage_accounts"]}},t)},li=ui(),di=ui({code:"ebad3a4e-a145-4bc9-9bba-d5d5f2130287",account_code_live:"ebad3a4e-a145-4bc9-9bba-d5d5f2130287",name:"Disabled Account",status:"INACTIVE",active:!1}),pi=[Ho.post("/v1/accounts/bulk-disable",function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,n.json()];case 1:return t=e.sent(),[2,$o.json(t.account_codes.map(function(e){return ui({code:e,status:"INACTIVE",active:!1})}))]}})})}),Ho.post("/v1/accounts/bulk-enable",function(t){var n=t.request;return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,n.json()];case 1:return t=e.sent(),[2,$o.json(t.account_codes.map(function(e){return ui({code:e,status:"ACTIVE",active:!0})}))]}})})}),Ho.get("/v1/accounts/by-organization",function(e){var t=e.request,n="true"===new URL(t.url).searchParams.get("includeDisabled");return $o.json(n?[li,di]:[li])}),Ho.get("/v1/accounts/organization/:organizationCode",function(e){var t=e.request,n="true"===new URL(t.url).searchParams.get("includeDisabled");return $o.json(n?[li,di]:[li])})],hi=[Ho.get("".concat("https://dev.y.uno/dashboard-bff/api","/mfa/status"),function(){return $o.json({mfa_active:!0,factor_id:"auth_factor_123"})})],fi=[Ho.get("".concat("https://dev.y.uno/dashboard-bff/api","/hidden-fields"),function(e){var t=e.request,n=new URL(t.url).searchParams.get("scope");return n?$o.json([{scope:n,fields:[]}]):$o.json([])})],gi=e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray([],na,!0),la,!0),qa,!0),Ga,!0),oi,!0),ii,!0),ci,!0),pi,!0),hi,!0),fi,!0),mi=function(...e){return new fo(...e)}.apply(void 0,gi),yi="MSW_ENABLED";function vi(e){e?(localStorage.setItem(yi,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(yi),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function bi(){return"true"===localStorage.getItem(yi)}function _i(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return vi(!0)},window.disableMSW=function(){return vi(!1)},window.isMSWEnabled=bi);const{toString:ki}=Object.prototype,{getPrototypeOf:wi}=Object,{iterator:xi,toStringTag:Ei}=Symbol,Si=(Ci=Object.create(null),e=>{const t=ki.call(e);return Ci[t]||(Ci[t]=t.slice(8,-1).toLowerCase())});var Ci;const Ri=e=>(e=e.toLowerCase(),t=>Si(t)===e),Ii=e=>t=>typeof t===e,{isArray:Ti}=Array,Ai=Ii("undefined");function Oi(e){return null!==e&&!Ai(e)&&null!==e.constructor&&!Ai(e.constructor)&&Li(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pi=Ri("ArrayBuffer");const Di=Ii("string"),Li=Ii("function"),ji=Ii("number"),zi=e=>null!==e&&"object"==typeof e,Ni=e=>{if("object"!==Si(e))return!1;const t=wi(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ei in e||xi in e)},qi=Ri("Date"),Ui=Ri("File"),Bi=Ri("Blob"),Mi=Ri("FileList");const Fi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Gi=void 0!==Fi.FormData?Fi.FormData:void 0,Vi=Ri("URLSearchParams"),[Wi,Hi,Ki,$i]=["ReadableStream","Request","Response","Headers"].map(Ri);function Qi(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Ti(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Oi(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Yi(e,t){if(Oi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ji="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Zi=e=>!Ai(e)&&e!==Ji;const Xi=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&wi(Uint8Array)),es=Ri("HTMLFormElement"),ts=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ns=Ri("RegExp"),rs=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qi(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const os=Ri("AsyncFunction"),as=(is="function"==typeof setImmediate,ss=Li(Ji.postMessage),is?setImmediate:ss?(cs=`axios@${Math.random()}`,us=[],Ji.addEventListener("message",({source:e,data:t})=>{e===Ji&&t===cs&&us.length&&us.shift()()},!1),e=>{us.push(e),Ji.postMessage(cs,"*")}):e=>setTimeout(e));var is,ss,cs,us;const ls="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ji):"undefined"!=typeof process&&process.nextTick||as;var ds={isArray:Ti,isArrayBuffer:Pi,isBuffer:Oi,isFormData:e=>{if(!e)return!1;if(Gi&&e instanceof Gi)return!0;const t=wi(e);if(!t||t===Object.prototype)return!1;if(!Li(e.append))return!1;const n=Si(e);return"formdata"===n||"object"===n&&Li(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pi(e.buffer),t},isString:Di,isNumber:ji,isBoolean:e=>!0===e||!1===e,isObject:zi,isPlainObject:Ni,isEmptyObject:e=>{if(!zi(e)||Oi(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Wi,isRequest:Hi,isResponse:Ki,isHeaders:$i,isUndefined:Ai,isDate:qi,isFile:Ui,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Bi,isRegExp:ns,isFunction:Li,isStream:e=>zi(e)&&Li(e.pipe),isURLSearchParams:Vi,isTypedArray:Xi,isFileList:Mi,forEach:Qi,merge:function e(...t){const{caseless:n,skipUndefined:r}=Zi(this)&&this||{},o={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=n&&Yi(o,a)||a,s=ts(o,i)?o[i]:void 0;Ni(s)&&Ni(t)?o[i]=e(s,t):Ni(t)?o[i]=e({},t):Ti(t)?o[i]=t.slice():r&&Ai(t)||(o[i]=t)};for(let e=0,n=t.length;e<n;e++)t[e]&&Qi(t[e],a);return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Qi(t,(t,r)=>{n&&Li(t)?Object.defineProperty(e,r,{__proto__:null,value:_i(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&wi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Si,kindOfTest:Ri,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Ti(e))return e;let t=e.length;if(!ji(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[xi]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:es,hasOwnProperty:ts,hasOwnProp:ts,reduceDescriptors:rs,freezeMethods:e=>{rs(e,(t,n)=>{if(Li(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];Li(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ti(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Yi,global:Ji,isContextDefined:Zi,isSpecCompliantForm:function(e){return!!(e&&Li(e.append)&&"FormData"===e[Ei]&&e[xi])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(zi(e)){if(t.indexOf(e)>=0)return;if(Oi(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Ti(e)?[]:{};return Qi(e,(e,t)=>{const a=n(e,r+1);!Ai(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:os,isThenable:e=>e&&(zi(e)||Li(e))&&Li(e.then)&&Li(e.catch),setImmediate:as,asap:ls,isIterable:e=>null!=e&&Li(e[xi])};const ps=ds.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 hs=Symbol("internals"),fs=/[^\x09\x20-\x7E\x80-\xFF]/g;function gs(e){return e&&String(e).trim().toLowerCase()}function ms(e){return!1===e||null==e?e:ds.isArray(e)?e.map(ms):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(fs,""))}function ys(e,t,n,r,o){return ds.isFunction(r)?r.call(this,t,n):(o&&(t=n),ds.isString(t)?ds.isString(r)?-1!==t.indexOf(r):ds.isRegExp(r)?r.test(t):void 0:void 0)}class vs{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=gs(t);if(!o)throw new Error("header name must be a non-empty string");const a=ds.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=ms(e))}const a=(e,t)=>ds.forEach(e,(e,n)=>o(e,n,t));if(ds.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ds.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ps[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ds.isObject(e)&&ds.isIterable(e)){let n,r,o={};for(const t of e){if(!ds.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ds.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=gs(e)){const n=ds.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 r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ds.isFunction(t))return t.call(this,e,n);if(ds.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gs(e)){const n=ds.findKey(this,e);return!(!n||void 0===this[n]||t&&!ys(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=gs(e)){const o=ds.findKey(n,e);!o||t&&!ys(0,n[o],o,t)||(delete n[o],r=!0)}}return ds.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ys(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ds.forEach(this,(r,o)=>{const a=ds.findKey(n,o);if(a)return t[a]=ms(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=ms(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ds.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ds.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[hs]=this[hs]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=gs(e);t[r]||(!function(e,t){const n=ds.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ds.isArray(e)?e.forEach(r):r(e),this}}vs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ds.reduceDescriptors(vs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ds.freezeMethods(vs);var bs=vs;function _s(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(ds.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof bs&&(e=e.toJSON()),r.push(e),ds.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);ds.isUndefined(r)||(t[n]=r)});else{if(!ds.isPlainObject(e)&&function(e){if(ds.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ds.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,a]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(a);ds.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}class ks extends Error{static from(e,t,n,r,o,a){const i=new ks(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),a&&Object.assign(i,a),i}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&ds.hasOwnProp(e,"redact")?e.redact:void 0,n=ds.isArray(t)&&t.length>0?_s(e,t):ds.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}ks.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ks.ERR_BAD_OPTION="ERR_BAD_OPTION",ks.ECONNABORTED="ECONNABORTED",ks.ETIMEDOUT="ETIMEDOUT",ks.ECONNREFUSED="ECONNREFUSED",ks.ERR_NETWORK="ERR_NETWORK",ks.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ks.ERR_DEPRECATED="ERR_DEPRECATED",ks.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ks.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ks.ERR_CANCELED="ERR_CANCELED",ks.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ks.ERR_INVALID_URL="ERR_INVALID_URL",ks.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ws=ks;function xs(e){return ds.isPlainObject(e)||ds.isArray(e)}function Es(e){return ds.endsWith(e,"[]")?e.slice(0,-2):e}function Ss(e,t,n){return e?e.concat(t).map(function(e,t){return e=Es(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Cs=ds.toFlatObject(ds,{},null,function(e){return/^is[A-Z]/.test(e)});function Rs(e,t,n){if(!ds.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ds.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ds.isUndefined(t[e])})).metaTokens,o=n.visitor||d,a=n.dots,i=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,u=s&&ds.isSpecCompliantForm(t);if(!ds.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ds.isDate(e))return e.toISOString();if(ds.isBoolean(e))return e.toString();if(!u&&ds.isBlob(e))throw new ws("Blob is not supported. Use a Buffer instead.");return ds.isArrayBuffer(e)||ds.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,o){let s=e;if(ds.isReactNative(t)&&ds.isReactNativeBlob(e))return t.append(Ss(o,n,a),l(e)),!1;if(e&&!o&&"object"==typeof e)if(ds.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ds.isArray(e)&&function(e){return ds.isArray(e)&&!e.some(xs)}(e)||(ds.isFileList(e)||ds.endsWith(n,"[]"))&&(s=ds.toArray(e)))return n=Es(n),s.forEach(function(e,r){!ds.isUndefined(e)&&null!==e&&t.append(!0===i?Ss([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!xs(e)||(t.append(Ss(o,n,a),l(e)),!1)}const p=[],h=Object.assign(Cs,{defaultVisitor:d,convertValue:l,isVisitable:xs});if(!ds.isObject(e))throw new TypeError("data must be an object");return function e(n,r,a=0){if(!ds.isUndefined(n)){if(a>c)throw new ws("Object is too deeply nested ("+a+" levels). Max depth: "+c,ws.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),ds.forEach(n,function(n,i){!0===(!(ds.isUndefined(n)||null===n)&&o.call(t,n,ds.isString(i)?i.trim():i,r,h))&&e(n,r?r.concat(i):[i],a+1)}),p.pop()}}(e),t}function Is(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ts(e,t){this._pairs=[],e&&Rs(e,this,t)}const As=Ts.prototype;function Os(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ps(e,t,n){if(!t)return e;const r=n&&n.encode||Os,o=ds.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):ds.isURLSearchParams(t)?t.toString():new Ts(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}As.append=function(e,t){this._pairs.push([e,t])},As.toString=function(e){const t=e?function(t){return e.call(this,t,Is)}:Is;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ds=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){ds.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},js={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ts,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const zs="undefined"!=typeof window&&"undefined"!=typeof document,Ns="object"==typeof navigator&&navigator||void 0,qs=zs&&(!Ns||["ReactNative","NativeScript","NS"].indexOf(Ns.product)<0),Us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Bs=zs&&window.location.href||"http://localhost";var Ms={...Object.freeze({__proto__:null,hasBrowserEnv:zs,hasStandardBrowserEnv:qs,hasStandardBrowserWebWorkerEnv:Us,navigator:Ns,origin:Bs}),...js};function Fs(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&ds.isArray(r)?r.length:a,s)return ds.hasOwnProp(r,a)?r[a]=ds.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!i;r[a]&&ds.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&ds.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(ds.isFormData(e)&&ds.isFunction(e.entries)){const n={};return ds.forEachEntry(e,(e,r)=>{t(function(e){return ds.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Gs=(e,t)=>null!=e&&ds.hasOwnProp(e,t)?e[t]:void 0;const Vs={transitional:Ls,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ds.isObject(e);o&&ds.isHTMLForm(e)&&(e=new FormData(e));if(ds.isFormData(e))return r?JSON.stringify(Fs(e)):e;if(ds.isArrayBuffer(e)||ds.isBuffer(e)||ds.isStream(e)||ds.isFile(e)||ds.isBlob(e)||ds.isReadableStream(e))return e;if(ds.isArrayBufferView(e))return e.buffer;if(ds.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const t=Gs(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Rs(e,new Ms.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ms.isNode&&ds.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((a=ds.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Gs(this,"env"),r=n&&n.FormData;return Rs(a?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ds.isString(e))try{return(t||JSON.parse)(e),ds.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Gs(this,"transitional")||Vs.transitional,n=t&&t.forcedJSONParsing,r=Gs(this,"responseType"),o="json"===r;if(ds.isResponse(e)||ds.isReadableStream(e))return e;if(e&&ds.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Gs(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw ws.from(e,ws.ERR_BAD_RESPONSE,this,null,Gs(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ms.classes.FormData,Blob:Ms.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ds.forEach(["delete","get","head","post","put","patch","query"],e=>{Vs.headers[e]={}});var Ws=Vs;function Hs(e,t){const n=this||Ws,r=t||n,o=bs.from(r.headers);let a=r.data;return ds.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ks(e){return!(!e||!e.__CANCEL__)}var $s=class extends ws{constructor(e,t,n){super(null==e?"canceled":e,ws.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Qs(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ws("Request failed with status code "+n.status,n.status>=400&&n.status<500?ws.ERR_BAD_REQUEST:ws.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Ys=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[i];o||(o=c),n[a]=s,r[a]=c;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=null!=i?Math.min(a,i):a,c=Math.max(0,s-r),u=o(c);r=Math.max(r,s);e({loaded:s,total:i,progress:i?s/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i?(i-s)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Js=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Zs=e=>(...t)=>ds.asap(()=>e(...t));var Xs=Ms.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ms.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ms.origin),Ms.navigator&&/(msie|trident)/i.test(Ms.navigator.userAgent)):()=>!0,ec=Ms.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ds.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ds.isString(r)&&s.push(`path=${r}`),ds.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),ds.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tc(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const nc=e=>e instanceof bs?{...e}:e;function rc(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return ds.isPlainObject(e)&&ds.isPlainObject(t)?ds.merge.call({caseless:r},e,t):ds.isPlainObject(t)?ds.merge({},t):ds.isArray(t)?t.slice():t}function o(e,t,n,o){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!ds.isUndefined(t))return r(void 0,t)}function i(e,t){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return ds.hasOwnProp(t,a)?r(n,o):ds.hasOwnProp(e,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(nc(e),nc(t),0,!0)};return ds.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=ds.hasOwnProp(c,r)?c[r]:o,i=a(ds.hasOwnProp(e,r)?e[r]:void 0,ds.hasOwnProp(t,r)?t[r]:void 0,r);ds.isUndefined(i)&&a!==s||(n[r]=i)}),n}const oc=["content-type","content-length"];var ac=e=>{const t=rc({},e),n=e=>ds.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),i=n("xsrfCookieName");let s=n("headers");const c=n("auth"),u=n("baseURL"),l=n("allowAbsoluteUrls"),d=n("url");var p;if(t.headers=s=bs.from(s),t.url=Ps(tc(u,d,l),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?(p=c.password,encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),ds.isFormData(r)&&(Ms.hasStandardBrowserEnv||Ms.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):ds.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{oc.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),Ms.hasStandardBrowserEnv){ds.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Xs(t.url)){const e=a&&i&&ec.read(i);e&&s.set(a,e)}}return t};var ic="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ac(e);let o=r.data;const a=bs.from(r.headers).normalize();let i,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=bs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Qs(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ws("Request aborted",ws.ECONNABORTED,e,g)),f(),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ws(r,ws.ERR_NETWORK,e,g);o.event=t||null,n(o),f(),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ls;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ws(t,o.clarifyTimeoutError?ws.ETIMEDOUT:ws.ECONNABORTED,e,g)),f(),g=null},void 0===o&&a.setContentType(null),"setRequestHeader"in g&&ds.forEach(a.toJSON(),function(e,t){g.setRequestHeader(t,e)}),ds.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([c,l]=Ys(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([s,u]=Ys(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{g&&(n(!t||t.type?new $s(null,e,g):t),g.abort(),f(),g=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!y||Ms.protocols.includes(y)?g.send(o||null):n(new ws("Unsupported protocol "+y+":",ws.ERR_BAD_REQUEST,e))})};var sc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ws?t:new $s(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new ws(`timeout of ${t}ms exceeded`,ws.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ds.asap(i),s}};const cc=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},uc=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()}},lc=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of uc(e))yield*cc(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})};const dc="1.16.0",{isFunction:pc}=ds,hc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},fc=e=>{const t=ds.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ds.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:i}=e,s=o?pc(o):"function"==typeof fetch,c=pc(a),u=pc(i);if(!s)return!1;const l=s&&pc(n),d=s&&("function"==typeof r?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),p=c&&l&&hc(()=>{let e=!1;const t=new a(Ms.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=u&&l&&hc(()=>ds.isReadableStream(new i("").body)),f={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ws(`Response type '${e}' is not supported`,ws.ERR_NOT_SUPPORT,n)})});const g=async(e,t)=>{const n=ds.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ds.isBlob(e))return e.size;if(ds.isSpecCompliantForm(e)){const t=new a(Ms.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ds.isArrayBufferView(e)||ds.isArrayBuffer(e)?e.byteLength:(ds.isURLSearchParams(e)&&(e+=""),ds.isString(e)?(await d(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:s,signal:u,cancelToken:l,timeout:d,onDownloadProgress:m,onUploadProgress:y,responseType:v,headers:b,withCredentials:_="same-origin",fetchOptions:k,maxContentLength:w,maxBodyLength:x}=ac(e);const E=ds.isNumber(w)&&w>-1,S=ds.isNumber(x)&&x>-1;let C=o||fetch;v=v?(v+"").toLowerCase():"text";let R=sc([u,l&&l.toAbortSignal()],d),I=null;const T=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let A;try{if(E&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const a=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):a(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||a(o))&&n++;const i=3*Math.floor(e/4)-(n||0);return i>0?i:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>w)throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I)}if(S&&"get"!==n&&"head"!==n){const t=await g(b,s);if("number"==typeof t&&isFinite(t)&&t>x)throw new ws("Request body larger than maxBodyLength limit",ws.ERR_BAD_REQUEST,e,I)}if(y&&p&&"get"!==n&&"head"!==n&&0!==(A=await g(b,s))){let e,n=new a(t,{method:"POST",body:s,duplex:"half"});if(ds.isFormData(s)&&(e=n.headers.get("content-type"))&&b.setContentType(e),n.body){const[e,t]=Js(A,Ys(Zs(y)));s=lc(n.body,65536,e,t)}}ds.isString(_)||(_=_?"include":"omit");const o=c&&"credentials"in a.prototype;if(ds.isFormData(s)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}b.set("User-Agent","axios/"+dc,!1);const u={...k,signal:R,method:n.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:o?_:void 0};I=c&&new a(t,u);let l=await(c?C(I,k):C(t,u));if(E){const t=ds.toFiniteNumber(l.headers.get("content-length"));if(null!=t&&t>w)throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I)}const d=h&&("stream"===v||"response"===v);if(h&&l.body&&(m||E||d&&T)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=l[e]});const n=ds.toFiniteNumber(l.headers.get("content-length")),[r,o]=m&&Js(n,Ys(Zs(m),!0))||[];let a=0;const s=t=>{if(E&&(a=t,a>w))throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I);r&&r(t)};l=new i(lc(l.body,65536,s,()=>{o&&o(),T&&T()}),t)}v=v||"text";let O=await f[ds.findKey(f,v)||"text"](l,e);if(E&&!h&&!d){let t;if(null!=O&&("number"==typeof O.byteLength?t=O.byteLength:"number"==typeof O.size?t=O.size:"string"==typeof O&&(t="function"==typeof r?(new r).encode(O).byteLength:O.length)),"number"==typeof t&&t>w)throw new ws("maxContentLength size of "+w+" exceeded",ws.ERR_BAD_RESPONSE,e,I)}return!d&&T&&T(),await new Promise((t,n)=>{Qs(t,n,{data:O,headers:bs.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:I})})}catch(t){if(T&&T(),R&&R.aborted&&R.reason instanceof ws){const n=R.reason;throw n.config=e,I&&(n.request=I),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ws("Network Error",ws.ERR_NETWORK,e,I,t&&t.response),{cause:t.cause||t});throw ws.from(t,t&&t.code,e,I,t&&t.response)}}},gc=new Map,mc=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,c=a.length,u=gc;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:fc(t)),u=s;return s};mc();const yc={http:null,xhr:ic,fetch:{get:mc}};ds.forEach(yc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const vc=e=>`- ${e}`,bc=e=>ds.isFunction(e)||null===e||!1===e;var _c={getAdapter:function(e,t){e=ds.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!bc(r)&&(o=yc[(n=String(r)).toLowerCase()],void 0===o))throw new ws(`Unknown adapter '${n}'`);if(o&&(ds.isFunction(o)||(o=o.get(t))))break;a[n||"#"+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"));let t=n?e.length>1?"since :\n"+e.map(vc).join("\n"):" "+vc(e[0]):"as no adapter specified";throw new ws("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:yc};function kc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $s(null,e)}function wc(e){kc(e),e.headers=bs.from(e.headers),e.data=Hs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _c.getAdapter(e.adapter||Ws.adapter,e)(e).then(function(t){kc(e),e.response=t;try{t.data=Hs.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=bs.from(t.headers),t},function(t){if(!Ks(t)&&(kc(e),t&&t.response)){e.response=t.response;try{t.response.data=Hs.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=bs.from(t.response.headers)}return Promise.reject(t)})}const xc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ec={};xc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dc+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new ws(r(o," has been removed"+(t?" in "+t:"")),ws.ERR_DEPRECATED);return t&&!Ec[o]&&(Ec[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},xc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Sc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ws("options must be an object",ws.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new ws("option "+a+" must be "+n,ws.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ws("Unknown option "+a,ws.ERR_BAD_OPTION)}},validators:xc};const Cc=Sc.validators;let Rc=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ds,response:new Ds}}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=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Sc.assertOptions(n,{silentJSONParsing:Cc.transitional(Cc.boolean),forcedJSONParsing:Cc.transitional(Cc.boolean),clarifyTimeoutError:Cc.transitional(Cc.boolean),legacyInterceptorReqResOrdering:Cc.transitional(Cc.boolean)},!1),null!=r&&(ds.isFunction(r)?t.paramsSerializer={serialize:r}:Sc.assertOptions(r,{encode:Cc.function,serialize:Cc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Sc.assertOptions(t,{baseUrl:Cc.spelling("baseURL"),withXsrfToken:Cc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&ds.merge(o.common,o[t.method]);o&&ds.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=bs.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Ls;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[wc.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let p=t;for(;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=wc.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Ps(tc((e=rc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ds.forEach(["delete","get","head","options"],function(e){Rc.prototype[e]=function(t,n){return this.request(rc(n||{},{method:e,url:t,data:(n||{}).data}))}}),ds.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(rc(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Rc.prototype[e]=t(),"query"!==e&&(Rc.prototype[e+"Form"]=t(!0))});var Ic=Rc;class Tc{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 r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new $s(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Tc(function(t){e=t}),cancel:e}}}var Ac=Tc;const Oc={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Oc).forEach(([e,t])=>{Oc[t]=e});var Pc=Oc;const Dc=function e(t){const n=new Ic(t),r=_i(Ic.prototype.request,n);return ds.extend(r,Ic.prototype,n,{allOwnKeys:!0}),ds.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(rc(t,n))},r}(Ws);Dc.Axios=Ic,Dc.CanceledError=$s,Dc.CancelToken=Ac,Dc.isCancel=Ks,Dc.VERSION=dc,Dc.toFormData=Rs,Dc.AxiosError=ws,Dc.Cancel=Dc.CanceledError,Dc.all=function(e){return Promise.all(e)},Dc.spread=function(e){return function(t){return e.apply(null,t)}},Dc.isAxiosError=function(e){return ds.isObject(e)&&!0===e.isAxiosError},Dc.mergeConfig=rc,Dc.AxiosHeaders=bs,Dc.formToJSON=e=>Fs(ds.isHTMLForm(e)?new FormData(e):e),Dc.getAdapter=_c.getAdapter,Dc.HttpStatusCode=Pc,Dc.default=Dc;var Lc=Dc,jc=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];if(Array.isArray(r)){var o=r.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(o))}else null!=r&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(r))))}),t.join("&")},zc=function(t){function n(n){var r,o,a,i,s=this;return(s=t.call(this,n)||this).token="",null===(o=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===o||o.request.use(function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use(function(t){return e.__assign({},t)},function(e){return Promise.reject(e)}),s}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=Lc.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=Lc.create(e)}),Nc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Uc=TypeError,Bc=qc(Object.freeze({__proto__:null,default:{}})),Mc="function"==typeof Map&&Map.prototype,Fc=Object.getOwnPropertyDescriptor&&Mc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gc=Mc&&Fc&&"function"==typeof Fc.get?Fc.get:null,Vc=Mc&&Map.prototype.forEach,Wc="function"==typeof Set&&Set.prototype,Hc=Object.getOwnPropertyDescriptor&&Wc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Kc=Wc&&Hc&&"function"==typeof Hc.get?Hc.get:null,$c=Wc&&Set.prototype.forEach,Qc="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Yc="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Jc="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Zc=Boolean.prototype.valueOf,Xc=Object.prototype.toString,eu=Function.prototype.toString,tu=String.prototype.match,nu=String.prototype.slice,ru=String.prototype.replace,ou=String.prototype.toUpperCase,au=String.prototype.toLowerCase,iu=RegExp.prototype.test,su=Array.prototype.concat,cu=Array.prototype.join,uu=Array.prototype.slice,lu=Math.floor,du="function"==typeof BigInt?BigInt.prototype.valueOf:null,pu=Object.getOwnPropertySymbols,hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,fu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,gu="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===fu||"symbol")?Symbol.toStringTag:null,mu=Object.prototype.propertyIsEnumerable,yu=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vu(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||iu.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-lu(-e):lu(e);if(r!==e){var o=String(r),a=nu.call(t,o.length+1);return ru.call(o,n,"$&_")+"."+ru.call(ru.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ru.call(t,n,"$&_")}var bu=Bc,_u=bu.custom,ku=Au(_u)?_u:null,wu={__proto__:null,double:'"',single:"'"},xu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Eu=function e(t,n,r,o){var a=n||{};if(Pu(a,"quoteStyle")&&!Pu(wu,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Pu(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Pu(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Pu(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Pu(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.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 ju(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?vu(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?vu(t,u):u}var l=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=l&&l>0&&"object"==typeof t)return Iu(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=cu.call(Array(e.indent+1)," ")}return{base:n,prev:cu.call(Array(t+1),n)}}(a,r);if(void 0===o)o=[];else if(Lu(o,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(o=uu.call(o)).push(n),i){var s={depth:a.depth};return Pu(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,o)}return e(t,a,r+1,o)}if("function"==typeof t&&!Tu(t)){var h=function(e){if(e.name)return e.name;var t=tu.call(eu.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Mu(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+cu.call(f,", ")+" }":"")}if(Au(t)){var g=fu?ru.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):hu.call(t);return"object"!=typeof t||fu?g:Nu(g)}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 m="<"+au.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)m+=" "+y[v].name+"="+Su(Cu(y[v].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+au.call(String(t.nodeName))+">"}if(Iu(t)){if(0===t.length)return"[]";var b=Mu(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Lu(e[t],"\n")>=0)return!1;return!0}(b)?"["+Bu(b,d)+"]":"[ "+cu.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Du(e)&&Ru(e)}(t)){var _=Mu(t,p);return"cause"in Error.prototype||!("cause"in t)||mu.call(t,"cause")?0===_.length?"["+String(t)+"]":"{ ["+String(t)+"] "+cu.call(_,", ")+" }":"{ ["+String(t)+"] "+cu.call(su.call("[cause]: "+p(t.cause),_),", ")+" }"}if("object"==typeof t&&i){if(ku&&"function"==typeof t[ku]&&bu)return bu(t,{depth:l-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Gc||!e||"object"!=typeof e)return!1;try{Gc.call(e);try{Kc.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return Vc&&Vc.call(t,function(e,n){k.push(p(n,t,!0)+" => "+p(e,t))}),Uu("Map",Gc.call(t),k,d)}if(function(e){if(!Kc||!e||"object"!=typeof e)return!1;try{Kc.call(e);try{Gc.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return $c&&$c.call(t,function(e){w.push(p(e,t))}),Uu("Set",Kc.call(t),w,d)}if(function(e){if(!Qc||!e||"object"!=typeof e)return!1;try{Qc.call(e,Qc);try{Yc.call(e,Yc)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return qu("WeakMap");if(function(e){if(!Yc||!e||"object"!=typeof e)return!1;try{Yc.call(e,Yc);try{Qc.call(e,Qc)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return qu("WeakSet");if(function(e){if(!Jc||!e||"object"!=typeof e)return!1;try{return Jc.call(e),!0}catch(e){}return!1}(t))return qu("WeakRef");if(function(e){return"[object Number]"===Du(e)&&Ru(e)}(t))return Nu(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!du)return!1;try{return du.call(e),!0}catch(e){}return!1}(t))return Nu(p(du.call(t)));if(function(e){return"[object Boolean]"===Du(e)&&Ru(e)}(t))return Nu(Zc.call(t));if(function(e){return"[object String]"===Du(e)&&Ru(e)}(t))return Nu(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Nc&&t===Nc)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Du(e)&&Ru(e)}(t)&&!Tu(t)){var x=Mu(t,p),E=yu?yu(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",C=!E&&gu&&Object(t)===t&&gu in t?nu.call(Du(t),8,-1):S?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||S?"["+cu.call(su.call([],C||[],S||[]),": ")+"] ":"");return 0===x.length?R+"{}":d?R+"{"+Bu(x,d)+"}":R+"{ "+cu.call(x,", ")+" }"}return String(t)};function Su(e,t,n){var r=n.quoteStyle||t,o=wu[r];return o+e+o}function Cu(e){return ru.call(String(e),/"/g,""")}function Ru(e){return!gu||!("object"==typeof e&&(gu in e||void 0!==e[gu]))}function Iu(e){return"[object Array]"===Du(e)&&Ru(e)}function Tu(e){return"[object RegExp]"===Du(e)&&Ru(e)}function Au(e){if(fu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!hu)return!1;try{return hu.call(e),!0}catch(e){}return!1}var Ou=Object.prototype.hasOwnProperty||function(e){return e in this};function Pu(e,t){return Ou.call(e,t)}function Du(e){return Xc.call(e)}function Lu(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ju(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ju(nu.call(e,0,t.maxStringLength),t)+r}var o=xu[t.quoteStyle||"single"];return o.lastIndex=0,Su(ru.call(ru.call(e,o,"\\$1"),/[\x00-\x1f]/g,zu),"single",t)}function zu(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":"")+ou.call(t.toString(16))}function Nu(e){return"Object("+e+")"}function qu(e){return e+" { ? }"}function Uu(e,t,n,r){return e+" ("+t+") {"+(r?Bu(n,r):cu.call(n,", "))+"}"}function Bu(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+cu.call(e,","+n)+"\n"+t.prev}function Mu(e,t){var n=Iu(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Pu(e,o)?t(e[o],e):""}var a,i="function"==typeof pu?pu(e):[];if(fu){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Pu(e,c)&&(n&&String(Number(c))===c&&c<e.length||fu&&a["$"+c]instanceof Symbol||(iu.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof pu)for(var u=0;u<i.length;u++)mu.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var Fu=Eu,Gu=Uc,Vu=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r},Wu=Object,Hu=Error,Ku=EvalError,$u=RangeError,Qu=ReferenceError,Yu=SyntaxError,Ju=URIError,Zu=Math.abs,Xu=Math.floor,el=Math.max,tl=Math.min,nl=Math.pow,rl=Math.round,ol=Number.isNaN||function(e){return e!=e},al=Object.getOwnPropertyDescriptor;if(al)try{al([],"length")}catch(e){al=null}var il=al,sl=Object.defineProperty||!1;if(sl)try{sl({},"a",{value:1})}catch(e){sl=!1}var cl,ul,ll,dl,pl,hl,fl,gl,ml,yl,vl,bl,_l,kl,wl,xl,El=sl;function Sl(){return hl?pl:(hl=1,pl="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Cl(){return gl?fl:(gl=1,fl=Wu.getPrototypeOf||null)}function Rl(){if(yl)return ml;yl=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return ml=function(r){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=t(0,o.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(r,n(i,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a},ml}function Il(){if(bl)return vl;bl=1;var e=Rl();return vl=Function.prototype.bind||e}function Tl(){return kl?_l:(kl=1,_l=Function.prototype.call)}function Al(){return xl?wl:(xl=1,wl=Function.prototype.apply)}var Ol,Pl,Dl,Ll,jl,zl,Nl,ql="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Ul=Il(),Bl=Al(),Ml=Tl(),Fl=ql||Ul.call(Ml,Bl),Gl=Il(),Vl=Uc,Wl=Tl(),Hl=Fl,Kl=function(e){if(e.length<1||"function"!=typeof e[0])throw new Vl("a function is required");return Hl(Gl,Wl,e)};var $l=Wu,Ql=Hu,Yl=Ku,Jl=$u,Zl=Qu,Xl=Yu,ed=Uc,td=Ju,nd=Zu,rd=Xu,od=el,ad=tl,id=nl,sd=rl,cd=function(e){return ol(e)||0===e?e:e<0?-1:1},ud=Function,ld=function(e){try{return ud('"use strict"; return ('+e+").constructor;")()}catch(e){}},dd=il,pd=El,hd=function(){throw new ed},fd=dd?function(){try{return hd}catch(e){try{return dd(arguments,"callee").get}catch(e){return hd}}}():hd,gd=function(){if(dl)return ll;dl=1;var e="undefined"!=typeof Symbol&&Symbol,t=ul?cl:(ul=1,cl=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 r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return ll=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),md=function(){if(Ll)return Dl;Ll=1;var e=Sl(),t=Cl(),n=function(){if(Pl)return Ol;Pl=1;var e,t=Kl,n=il;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Ol=r&&"function"==typeof r.get?t([r.get]):"function"==typeof a&&function(e){return a(null==e?e:o(e))}}();return Dl=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}(),yd=Cl(),vd=Sl(),bd=Al(),_d=Tl(),kd={},wd="undefined"!=typeof Uint8Array&&md?md(Uint8Array):Nl,xd={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Nl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Nl:ArrayBuffer,"%ArrayIteratorPrototype%":gd&&md?md([][Symbol.iterator]()):Nl,"%AsyncFromSyncIteratorPrototype%":Nl,"%AsyncFunction%":kd,"%AsyncGenerator%":kd,"%AsyncGeneratorFunction%":kd,"%AsyncIteratorPrototype%":kd,"%Atomics%":"undefined"==typeof Atomics?Nl:Atomics,"%BigInt%":"undefined"==typeof BigInt?Nl:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Nl:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Nl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Nl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ql,"%eval%":eval,"%EvalError%":Yl,"%Float16Array%":"undefined"==typeof Float16Array?Nl:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Nl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Nl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Nl:FinalizationRegistry,"%Function%":ud,"%GeneratorFunction%":kd,"%Int8Array%":"undefined"==typeof Int8Array?Nl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Nl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Nl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gd&&md?md(md([][Symbol.iterator]())):Nl,"%JSON%":"object"==typeof JSON?JSON:Nl,"%Map%":"undefined"==typeof Map?Nl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&gd&&md?md((new Map)[Symbol.iterator]()):Nl,"%Math%":Math,"%Number%":Number,"%Object%":$l,"%Object.getOwnPropertyDescriptor%":dd,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Nl:Promise,"%Proxy%":"undefined"==typeof Proxy?Nl:Proxy,"%RangeError%":Jl,"%ReferenceError%":Zl,"%Reflect%":"undefined"==typeof Reflect?Nl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Nl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&gd&&md?md((new Set)[Symbol.iterator]()):Nl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Nl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gd&&md?md(""[Symbol.iterator]()):Nl,"%Symbol%":gd?Symbol:Nl,"%SyntaxError%":Xl,"%ThrowTypeError%":fd,"%TypedArray%":wd,"%TypeError%":ed,"%Uint8Array%":"undefined"==typeof Uint8Array?Nl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Nl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Nl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Nl:Uint32Array,"%URIError%":td,"%WeakMap%":"undefined"==typeof WeakMap?Nl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Nl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Nl:WeakSet,"%Function.prototype.call%":_d,"%Function.prototype.apply%":bd,"%Object.defineProperty%":pd,"%Object.getPrototypeOf%":yd,"%Math.abs%":nd,"%Math.floor%":rd,"%Math.max%":od,"%Math.min%":ad,"%Math.pow%":id,"%Math.round%":sd,"%Math.sign%":cd,"%Reflect.getPrototypeOf%":vd};if(md)try{null.error}catch(e){var Ed=md(md(e));xd["%Error.prototype%"]=Ed}var Sd,Cd,Rd,Id,Td,Ad,Od,Pd,Dd,Ld,jd,zd,Nd,qd,Ud,Bd,Md,Fd,Gd,Vd,Wd,Hd,Kd,$d=function e(t){var n;if("%AsyncFunction%"===t)n=ld("async function () {}");else if("%GeneratorFunction%"===t)n=ld("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=ld("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&md&&(n=md(o.prototype))}return xd[t]=n,n},Qd={__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"]},Yd=Il(),Jd=function(){if(zl)return jl;zl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Il();return jl=n.call(e,t)}(),Zd=Yd.call(_d,Array.prototype.concat),Xd=Yd.call(bd,Array.prototype.splice),ep=Yd.call(_d,String.prototype.replace),tp=Yd.call(_d,String.prototype.slice),np=Yd.call(_d,RegExp.prototype.exec),rp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,op=/\\(\\)?/g,ap=function(e,t){var n,r=e;if(Jd(Qd,r)&&(r="%"+(n=Qd[r])[0]+"%"),Jd(xd,r)){var o=xd[r];if(o===kd&&(o=$d(r)),void 0===o&&!t)throw new ed("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Xl("intrinsic "+e+" does not exist!")},ip=function(e,t){if("string"!=typeof e||0===e.length)throw new ed("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ed('"allowMissing" argument must be a boolean');if(null===np(/^%?[^%]*%?$/,e))throw new Xl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=tp(e,0,1),n=tp(e,-1);if("%"===t&&"%"!==n)throw new Xl("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Xl("invalid intrinsic syntax, expected opening `%`");var r=[];return ep(e,rp,function(e,t,n,o){r[r.length]=n?ep(o,op,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=ap("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],Xd(n,Zd([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var d=n[u],p=tp(d,0,1),h=tp(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Xl("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Jd(xd,a="%"+(r+="."+d)+"%"))i=xd[a];else if(null!=i){if(!(d in i)){if(!t)throw new ed("base intrinsic for "+e+" exists, but the property is not available.");return}if(dd&&u+1>=n.length){var f=dd(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Jd(i,d),i=i[d];l&&!s&&(xd[a]=i)}}return i},sp=ip,cp=Kl,up=cp([sp("%String.prototype.indexOf%")]),lp=function(e,t){var n=sp(e,!!t);return"function"==typeof n&&up(e,".prototype.")>-1?cp([n]):n},dp=lp,pp=Eu,hp=Uc,fp=ip("%Map%",!0),gp=dp("Map.prototype.get",!0),mp=dp("Map.prototype.set",!0),yp=dp("Map.prototype.has",!0),vp=dp("Map.prototype.delete",!0),bp=dp("Map.prototype.size",!0),_p=!!fp&&function(){var e,t={assert:function(e){if(!t.has(e))throw new hp("Side channel does not contain "+pp(e))},delete:function(t){if(e){var n=vp(e,t);return 0===bp(e)&&(e=void 0),n}return!1},get:function(t){if(e)return gp(e,t)},has:function(t){return!!e&&yp(e,t)},set:function(t,n){e||(e=new fp),mp(e,t,n)}};return t},kp=lp,wp=Eu,xp=_p,Ep=Uc,Sp=ip("%WeakMap%",!0),Cp=kp("WeakMap.prototype.get",!0),Rp=kp("WeakMap.prototype.set",!0),Ip=kp("WeakMap.prototype.has",!0),Tp=kp("WeakMap.prototype.delete",!0),Ap=Uc,Op=Eu,Pp=(Sp?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new Ep("Side channel does not contain "+wp(e))},delete:function(n){if(Sp&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Tp(e,n)}else if(xp&&t)return t.delete(n);return!1},get:function(n){return Sp&&n&&("object"==typeof n||"function"==typeof n)&&e?Cp(e,n):t&&t.get(n)},has:function(n){return Sp&&n&&("object"==typeof n||"function"==typeof n)&&e?Ip(e,n):!!t&&t.has(n)},set:function(n,r){Sp&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Sp),Rp(e,n,r)):xp&&(t||(t=xp()),t.set(n,r))}};return n}:xp)||_p||function(){var e,t={assert:function(e){if(!t.has(e))throw new Gu("Side channel does not contain "+Fu(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return Vu(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=Vu(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Vu(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=Vu(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Dp=function(){var e,t={assert:function(e){if(!t.has(e))throw new Ap("Side channel does not contain "+Op(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=Pp()),e.set(t,n)}};return t},Lp=String.prototype.replace,jp=/%20/g,zp="RFC3986",Np={default:zp,formatters:{RFC1738:function(e){return Lp.call(e,jp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:zp},qp=Np,Up=Dp,Bp=Object.prototype.hasOwnProperty,Mp=Array.isArray,Fp=Up(),Gp=function(e,t){return Fp.set(e,t),e},Vp=function(e){return Fp.has(e)},Wp=function(e){return Fp.get(e)},Hp=function(e,t){Fp.set(e,t)},Kp=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),$p=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Qp=1024,Yp={arrayToObject:$p,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,r){if(Vp(e)){var o=Wp(e)+1;return e[o]=t,Hp(e,o),e}var a=[].concat(e,t);return a.length>n?Gp($p(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:a,prop:c},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Mp(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Qp){for(var c=a.length>=Qp?a.slice(s,s+Qp):a,u=[],l=0;l<c.length;++l){var d=c.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===qp.RFC1738&&(40===d||41===d)?u[u.length]=c.charAt(l):d<128?u[u.length]=Kp[d]:d<2048?u[u.length]=Kp[192|d>>6]+Kp[128|63&d]:d<55296||d>=57344?u[u.length]=Kp[224|d>>12]+Kp[128|d>>6&63]+Kp[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(l)),u[u.length]=Kp[240|d>>18]+Kp[128|d>>12&63]+Kp[128|d>>6&63]+Kp[128|63&d])}i+=u.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:Vp,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:Gp,maybeMap:function(e,t){if(Mp(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(Mp(t)){var o=t.length;if(r&&"number"==typeof r.arrayLimit&&o>r.arrayLimit)return Gp($p(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(Vp(t)){var a=Wp(t)+1;t[a]=n,Hp(t,a)}else(r&&(r.plainObjects||r.allowPrototypes)||!Bp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t){if(Vp(n)){for(var i=Object.keys(n),s=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<i.length;c++){s[parseInt(i[c],10)+1]=n[i[c]]}return Gp(s,Wp(n)+1)}var u=[t].concat(n);return r&&"number"==typeof r.arrayLimit&&u.length>r.arrayLimit?Gp($p(u,r),u.length-1):u}var l=t;return Mp(t)&&!Mp(n)&&(l=$p(t,r)),Mp(t)&&Mp(n)?(n.forEach(function(n,o){if(Bp.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t[t.length]=n}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];if(Bp.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,Vp(n)&&!Vp(t)&&Gp(t,Wp(n)),Vp(t)){var i=parseInt(o,10);String(i)===o&&i>=0&&i>Wp(t)&&Hp(t,i)}return t},l)}},Jp=Dp,Zp=Yp,Xp=Np,eh=Object.prototype.hasOwnProperty,th={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},nh=Array.isArray,rh=Array.prototype.push,oh=function(e,t){rh.apply(e,nh(t)?t:[t])},ah=Date.prototype.toISOString,ih=Xp.default,sh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Zp.encode,encodeValuesOnly:!1,filter:void 0,format:ih,formatter:Xp.formatters[ih],indices:!1,serializeDate:function(e){return ah.call(e)},skipNulls:!1,strictNullHandling:!1},ch={},uh=function e(t,n,r,o,a,i,s,c,u,l,d,p,h,f,g,m,y,v){for(var b,_=t,k=v,w=0,x=!1;void 0!==(k=k.get(ch))&&!x;){var E=k.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");x=!0}void 0===k.get(ch)&&(w=0)}if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===r&&nh(_)&&(_=Zp.maybeMap(_,function(e){return e instanceof Date?h(e):e})),null===_){if(i)return u&&!m?u(n,sh.encoder,y,"key",f):n;_=""}if("string"==typeof(b=_)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Zp.isBuffer(_))return u?[g(m?n:u(n,sh.encoder,y,"key",f))+"="+g(u(_,sh.encoder,y,"value",f))]:[g(n)+"="+g(String(_))];var S,C=[];if(void 0===_)return C;if("comma"===r&&nh(_))m&&u&&(_=Zp.maybeMap(_,u)),S=[{value:_.length>0?_.join(",")||null:void 0}];else if(nh(l))S=l;else{var R=Object.keys(_);S=d?R.sort(d):R}var I=c?String(n).replace(/\./g,"%2E"):String(n),T=o&&nh(_)&&1===_.length?I+"[]":I;if(a&&nh(_)&&0===_.length)return T+"[]";for(var A=0;A<S.length;++A){var O=S[A],P="object"==typeof O&&O&&void 0!==O.value?O.value:_[O];if(!s||null!==P){var D=p&&c?String(O).replace(/\./g,"%2E"):String(O),L=nh(_)?"function"==typeof r?r(T,D):T:T+(p?"."+D:"["+D+"]");v.set(t,w);var j=Jp();j.set(ch,v),oh(C,e(P,L,r,o,a,i,s,c,"comma"===r&&m&&nh(_)?null:u,l,d,p,h,f,g,m,y,j))}}return C},lh=Yp,dh=Object.prototype.hasOwnProperty,ph=Array.isArray,hh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:lh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},fh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},gh=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},mh=function(e,t,n,r){if(e){var o=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&dh.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),a=o?n.slice(0,o.index):n,i=[];if(a){if(!t.plainObjects&&dh.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var s=0;null!==(o=r.exec(n))&&s<t.depth;){s+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&dh.call(Object.prototype,c)&&!t.allowPrototypes)return;i[i.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+n.slice(o.index)+"]"}return i}(e,n);if(o)return function(e,t,n,r){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var i=r?t:gh(t,n,o),s=e.length-1;s>=0;--s){var c,u=e[s];if("[]"===u&&n.parseArrays)c=lh.isOverflow(i)?i:n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:lh.combine([],i,n.arrayLimit,n.plainObjects);else{c=n.plainObjects?{__proto__:null}:{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),h=!isNaN(p)&&u!==d&&String(p)===d&&p>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(h&&p<n.arrayLimit)(c=[])[p]=i;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");h?(c[p]=i,lh.markOverflow(c,p)):"__proto__"!==d&&(c[d]=i)}else c={0:i}}i=c}return i}(o,t,n,r)}},yh=function(e,t){var n,r=e,o=function(e){if(!e)return sh;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||sh.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=Xp.default;if(void 0!==e.format){if(!eh.call(Xp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=Xp.formatters[n],a=sh.filter;if(("function"==typeof e.filter||nh(e.filter))&&(a=e.filter),r=e.arrayFormat in th?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":sh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||sh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:sh.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:sh.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:sh.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?sh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:sh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:sh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:sh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:sh.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:sh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:sh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:sh.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):nh(o.filter)&&(n=o.filter);var a=[];if("object"!=typeof r||null===r)return"";var i=th[o.arrayFormat],s="comma"===i&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=Jp(),u=0;u<n.length;++u){var l=n[u],d=r[l];o.skipNulls&&null===d||oh(a,uh(d,l,i,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=a.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},vh=function(e,t){var n=function(e){if(!e)return hh;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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?hh.charset:e.charset,n=void 0===e.duplicates?hh.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||hh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:hh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:hh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:hh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:hh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:hh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:hh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:hh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:hh.decoder,delimiter:"string"==typeof e.delimiter||lh.isRegExp(e.delimiter)?e.delimiter:hh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:hh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:hh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:hh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:hh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:hh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:hh.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var i,s=-1,c=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?c="utf-8":"utf8=%26%2310003%3B"===a[i]&&(c="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,l,d=a[i],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;if(-1===h?(u=t.decoder(d,hh.decoder,c,"key"),l=t.strictNullHandling?null:""):null!==(u=t.decoder(d.slice(0,h),hh.decoder,c,"key"))&&(l=lh.maybeMap(gh(d.slice(h+1),t,ph(n[u])?n[u].length:0),function(e){return t.decoder(e,hh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=fh(String(l))),d.indexOf("[]=")>-1&&(l=ph(l)?[l]:l),t.comma&&ph(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=lh.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==u){var f=dh.call(n,u);f&&"combine"===t.duplicates?n[u]=lh.combine(n[u],l,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(n[u]=l)}}return n}(e,n):e,o=n.plainObjects?{__proto__:null}:{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],c=mh(s,r[s],n,"string"==typeof e);o=lh.merge(o,c,n)}return!0===n.allowSparse?o:lh.compact(o)},bh={formats:Np,parse:vh,stringify:yh},_h={withCredentials:!1,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 bh.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,Sd=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(Cd=Sd.NotificationStatus||(Sd.NotificationStatus={})).SETTLED="SETTLED",Cd.NOT_SETTLED="NOT_SETTLED",(Rd=Sd.NotificationReason||(Sd.NotificationReason={})).REFUNDED="REFUNDED",Rd.RESOLVED="RESOLVED",Rd.CANCELLED="CANCELLED",Rd.SERVICE_SUSPENDED="SERVICE_SUSPENDED",Rd.ORDER_STOPPED="ORDER_STOPPED",Rd.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(Id=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",Id.INSIGHTS="insights",exports.Organization=void 0,Td=exports.Organization||(exports.Organization={}),(Ad=Td.CustomClaims||(Td.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",Ad.USER_CODE="https://dashboard.dev.y.uno/user_code",Ad.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,Od=exports.Country||(exports.Country={}),(Pd=Od.CountryCode||(Od.CountryCode={})).COLOMBIA="CO",Pd.MEXICO="MX",Pd.BRAZIL="BR",Pd.ARGENTINA="AR",Pd.CHILE="CL",Pd.PERU="PE",Pd.URUGUAY="UR",Pd.ECUADOR="EC",exports.ReportType=void 0,(Dd=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",Dd.TRANSACTIONS="TRANSACTIONS",Dd.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",Dd.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Ld=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Ld.DEFAULT="DEFAULT",Ld.CUSTOM="CUSTOM",exports.SmartRouting=void 0,(jd=exports.SmartRouting||(exports.SmartRouting={})).DEFAULT_ROUTING_TYPE="smart-routing",(zd=jd.StepType||(jd.StepType={})).FRAUD="FRAUD",zd.PAYMENT="PAYMENT",zd.THREE_D_SECURE="THREE_D_SECURE",zd.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(Nd=jd.DeclineGroupType||(jd.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",Nd.MAC_CODE="MAC_CODE",exports.DataReport=void 0,qd=exports.DataReport||(exports.DataReport={}),(Ud=qd.InsightsVolumeMetricsV2Path||(qd.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Ud.APPROVED_PAYMENTS="approved-payments",Ud.PAYMENT_METHODS="payment-methods",Ud.PROVIDERS="providers",Ud.COUNTRIES="countries",Ud.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Ud.TOTAL_PAYMENTS="total-payments",Ud.CARD_TYPES="card-types",Ud.CARD_BRANDS="card-brands",Ud.ISSUERS="issuers",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(qd.OverviewMetricType||(qd.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(Bd=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",Bd.SETTLEMENTS="SETTLEMENTS",Bd.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",Bd.AGENDA="AGENDA",Bd.SALES_CONCILIATION="SALES_CONCILIATION",Bd.FEES="FEES",Bd.ADVANCEMENTS="ADVANCEMENTS",Bd.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",Bd.SETTLEMENTS_FEES="SETTLEMENTS_FEES",Bd.CASHFLOW="CASHFLOW",Bd.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS",exports.ReconciliationAgendaInsight=void 0,(Md=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",Md.DAILY="AGENDA_DAILY_DISTRIBUTION",Md.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",Md.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.Audit=void 0,Fd=exports.Audit||(exports.Audit={}),(Gd=Fd.AuditExportReportType||(Fd.AuditExportReportType={})).DASHBOARD="DASHBOARD",Gd.API="API",Gd.WEBHOOKS="WEBHOOKS",Gd.MONITORS="MONITORS",exports.AI=void 0,Vd=exports.AI||(exports.AI={}),(Wd=Vd.AIGenerateStatus||(Vd.AIGenerateStatus={})).ACCEPTED="ACCEPTED",Wd.REFUSED="REFUSED",Wd.FRONT_FAILED="FRONT_FAILED",exports.OrganizationConfig=void 0,Hd=exports.OrganizationConfig||(exports.OrganizationConfig={}),(Kd=Hd.ConfigType||(Hd.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",Kd.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",Kd.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN";var kh=["PAUSED","ACTIVE"],wh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},xh="DELETED",Eh={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"};const Sh=[];for(let e=0;e<256;++e)Sh.push((e+256).toString(16).slice(1));let Ch;const Rh=new Uint8Array(16);var Ih={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Th(e,t,n){if(Ih.randomUUID&&!t&&!e)return Ih.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!Ch){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ch=crypto.getRandomValues.bind(crypto)}return Ch(Rh)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[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]=r[e];return t}return function(e,t=0){return(Sh[e[t+0]]+Sh[e[t+1]]+Sh[e[t+2]]+Sh[e[t+3]]+"-"+Sh[e[t+4]]+Sh[e[t+5]]+"-"+Sh[e[t+6]]+Sh[e[t+7]]+"-"+Sh[e[t+8]]+Sh[e[t+9]]+"-"+Sh[e[t+10]]+Sh[e[t+11]]+Sh[e[t+12]]+Sh[e[t+13]]+Sh[e[t+14]]+Sh[e[t+15]]).toLowerCase()}(r)}var Ah=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function Oh(e){return e&&0!==e.length?{metadata_filters:e.map(function(e){var t=e.field,n=e.type,r=e.values;return{key:t,conditional:n,values:Array.isArray(r)?r:[r]}})}:{}}var Ph=function(t){function n(n){var r=n?e.__assign(e.__assign({},_h),n):_h;return t.call(this,r)||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,r=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",r)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,r=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",r)},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.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.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},n.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},n.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},n.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},n.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},n.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},n.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},n.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},n.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},n.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},n.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(r).length>0?{params:r}:void 0)},n.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var r={};return t&&(r.date_filter=t),n&&(r.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(r).length>0?{params:r}:void 0)},n.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},n.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},n.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},n.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},n.prototype.getReconciliationInsightsReconciliationRateByProvider=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-provider",e)},n.prototype.getReconciliationInsightsReconciliationRateByAccount=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-account",e)},n.prototype.getReconciliationInsightsReconciliationRateByCurrency=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-currency",e)},n.prototype.getReconciliationInsightsSettlementLookup=function(e){return this.post("/reconciliations/insights/settlement/lookup",e)},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},n.prototype.postPayouts=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.getHiddenFields=function(e){var t=e.scope;return this.get("/hidden-fields",{params:{scope:t}})},n.prototype.postPaymentsEvaluated=function(t){t.account_code;var n=e.__rest(t,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/evaluated",n)},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.postTransactions=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return this.post("/v2/transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]);return this.post("/fraud-transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},Oh(r)),{params:o})},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.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,r=e.country,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(r),o?{}:{headers:a})},n.prototype.createOperationTransaction=function(e,t,n,r){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(r),e)},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},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.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},n.prototype.uploadChargebacks=function(e,t,n,r){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":Th()}})},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,n,r){var o={};return e&&(o["x-password"]=e),t&&(o["x-account-code"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/v2/developers/credentials",{headers:o})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{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.getProviderParams=function(e,t){var n,r=localStorage.getItem("x-organization-code"),o={"x-organization-code":r?null===(n=JSON.parse(r))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{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.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},n.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},n.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},n.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},n.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},n.prototype.getConnectionsByPaymentMethod=function(t,n,r){return void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE),e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n).concat("routing-payouts"===r?"?flow_type=PAYOUT":""))]})})},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.getOnboardingStatus=function(e){return this.get("/onboarding/status/".concat(e))},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,r="/connections/change-status";if(t.status==xh)return delete t.status,this.delete(r,{data:t});Object.values(kh).includes(null==t?void 0:t.status)&&(r="".concat(r,"/").concat(wh[t.status]),delete t.status);var o={"x-account-code":n};return this.post(r,t,{headers:o})},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postIntegrationRequest=function(e){var t=e.payload;return this.post("/integration-requests",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.patchConnection=function(t){var n,r=t.payload,o=t.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(o),e.__assign({account_code:i},r))},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},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.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.postWebhookLogs=function(t){var n=t.payload,r=n.account_code,o=e.__rest(n,["account_code"]),a={account_codes:r};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:jc})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:jc})},n.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:jc})},n.prototype.getApiLogsV3=function(e){return this.get("/v3/api-logs/payment/".concat(e))},n.prototype.getWebhookTimeline=function(e){return this.get("/v3/webhooks/payment/".concat(e))},n.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:jc})},n.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:jc})},n.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},n.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},n.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},n.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},n.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},n.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},n.prototype.postApiLogs=function(t){var n=t.payload,r=n.account_code,o=e.__rest(n,["account_code"]),a={account_codes:r};return this.post("/v2/api-logs/organization",a,{params:o,paramsSerializer:jc})},n.prototype.getApiLogsDetailByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},n.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},n.prototype.postApiLogsStatsRequests=function(e){return this.post("/v3/api-logs/organization/stats/requests",e)},n.prototype.postApiLogsStatsErrors=function(e){return this.post("/v3/api-logs/organization/stats/errors",e)},n.prototype.postApiLogsStatsErrorsByEndpoint=function(e){return this.post("/v3/api-logs/organization/stats/errors-by-endpoint",e)},n.prototype.postApiLogsList=function(e){return this.post("/v3/api-logs/organization/list",e)},n.prototype.getApiLogsV3ByPaymentCode=function(e,t){return this.get("/v3/api-logs/payment/".concat(e),{params:t?{created_at_from:t}:void 0})},n.prototype.createAuditSubscription=function(e){return this.post("/audit-logs/subscriptions",e)},n.prototype.listAuditSubscriptions=function(){return this.post("/audit-logs/subscriptions/list",{})},n.prototype.deleteAuditSubscription=function(e){return this.delete("/audit-logs/subscriptions/".concat(e))},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},n.prototype.getSmartRoutingMethods=function(e,t){void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var n="routing-payouts"===t?"/".concat(t,"/config/withdrawal-methods"):"/".concat(t,"/methods/").concat(e);return this.get(n)},n.prototype.putSmartRoutingToggleMethod=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="/".concat(r,"/methods/").concat(e,"/").concat(t);return this.put(o,{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/config/condition-types/").concat(t):"/".concat(n,"/condition-types/").concat(e,"/").concat(t);return this.get(r)},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,r){return void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===r?this.post("/".concat(r,"/config/next-steps"),{step_type:t,status:n}):this.get("/".concat(r,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflow-version/").concat(t):"/".concat(n,"/workflow-version/").concat(e,"/").concat(t);return this.get(r)},n.prototype.getSmartRoutingWorkflow=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/workflow/").concat(e,"/").concat(t);return this.get(r)},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){var r;if(void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n){var o=(null===(r=t.version)||void 0===r?void 0:r.code)||t.code;return this.put("/".concat(n,"/workflows/").concat(o),t)}return this.put("/".concat(n,"/update-workflow/").concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/name/").concat(t.code):"/".concat(n,"/workflow/").concat(e,"/edit-name");return this.put(r,t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n?this.post("/".concat(n,"/workflows"),t):this.post("/".concat(n,"/create-workflow/").concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o={"x-organization-code":n},a="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/publish"):"/".concat(r,"/publish-version/").concat(e,"/").concat(t);return this.post(a,{},{headers:o})},n.prototype.deleteSmartRoutingVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/delete-version/").concat(e,"/").concat(t);return this.delete(r)},n.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t,"/duplicate"):"/".concat(n,"/duplicate-version/").concat(e,"/").concat(t);return this.post(r,{})},n.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/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.getSmartRoutingPaymentRoute=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===n?"/".concat(n,"/payments/").concat(t,"/route"):"/".concat(n,"/payment-route/").concat(e,"/").concat(t);return this.get(r)},n.prototype.updateSmartRoutingFavorite=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/favorite/").concat(t):"/".concat(r,"/favorite/").concat(e,"/").concat(t);return this.put(o,{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n,r){void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===r?"/".concat(r,"/workflows/").concat(t,"/simulate"):"/".concat(r,"/simulate-transaction/").concat(e,"/").concat(t);return this.post(o,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.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},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.getInsightsMetricsConversionRateV2=function(t,n){var r=t.account_code,o=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ah(r);return o&&(s.connection_name=o.split(",")),a&&(s=e.__assign(e.__assign({},s),Oh(a))),this.post("/insights/conversion-rate/".concat(n),s,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var r=t.account_code,o=t.metadata,a=e.__rest(t,["account_code","metadata"]),i=Ah(r);return o&&(i=e.__assign(e.__assign({},i),Oh(o))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),i,{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,r=t.metadata,o=e.__rest(t,["account_code","metadata"]),a=Ah(n);return r&&(a=e.__assign(e.__assign({},a),Oh(r))),this.post("/insights/conversion-rate/fallback",a,{params:o})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,r){var o=r.connection_name,a=r.metadata,i=e.__rest(r,["connection_name","metadata"]),s={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o&&(s=e.__assign(e.__assign({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=e.__assign(e.__assign({},s),Oh(a))),this.post("/insights/volume/".concat(n),s,{params:i})},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.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",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.getInsightOverviewV3=function(t,n){var r=t.account_code,o=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=Ah(r);return o&&(s=e.__assign(e.__assign({},s),{connection_name:null==o?void 0:o.split(",")})),a&&(s=e.__assign(e.__assign({},s),Oh(a))),this.post("/insights/overview/".concat(n),s,{params:i})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".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.getPaymentMethodAccounts=function(e){var t=e.paymentMethod,n={"x-organization-code":e.organizationCode};return this.get("/checkouts/payment-methods/".concat(t,"/accounts"),{headers: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.updateIsActiveCheckout=function(t){var n=t.accountCode,r=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",r,{headers:{"x-account-code":n}})},n.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},n.prototype.publishCheckout=function(t){var n=t.accountCode,r=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",r,{headers:{"x-account-code":n}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,r={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:r})},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/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.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},n.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},n.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},n.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},n.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},n.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},n.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},n.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},n.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},n.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},n.prototype.getRefundPdf=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:r})},n.prototype.getProofOfCancel=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:r})},n.prototype.getProofOfPayment=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:r})},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.getUserFull=function(){return this.get("/user-full")},n.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},n.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},n.prototype.getUsersToImpersonate=function(t,n,r,o,a,i){void 0===r&&(r=1),void 0===o&&(o=10);var s=e.__assign(e.__assign({account_codes:n||[],page:r,page_size:o},a&&{search_value:a}),(null==i?void 0:i.length)&&{role_ids:i});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),s)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.getRolesForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/roles"))},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},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.putAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:r})},n.prototype.deleteAccountsUserMassive=function(e,t,n){var r={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:r})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},n.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},n.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:r})},n.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,r=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:r},{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.bulkDisableAccounts=function(e){return this.post("/v1/accounts/bulk-disable",{account_codes:e.accountCodes})},n.prototype.bulkEnableAccounts=function(e){return this.post("/v1/accounts/bulk-enable",{account_codes:e.accountCodes})},n.prototype.getAccountsByOrganization=function(e){return this.get("/v1/accounts/by-organization",{params:e})},n.prototype.getAccountsByOrganizationCode=function(e,t){return this.get("/v1/accounts/organization/".concat(e),{params:t})},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.postSlackFeatureNotification=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.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:r,status:o,role_id:a,statuses:i,role_ids:s,page:c,page_size:u},{headers:l})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},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,r=e.id;return this.patch("/teams/roles/".concat(r),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,r=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:r})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.accountCode;return e.__awaiter(this,void 0,void 0,function(){var t,r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,this.get("/feature-flags/names",n?{headers:{"x-account-code":n}}:{})];case 1:return t=e.sent(),r={},t.data.feature_flag_names.forEach(function(e){r[e]=!0}),[2,{data:r,status:200,statusText:"OK",headers:{},config:{}}]}})})},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.getOrgRolesPermissions=function(){return this.get("/teams/permissions?type=ORGANIZATION")},n.prototype.getOrgPermissionsCatalog=function(){return this.get("/teams/permissions-catalog?role_type=ORGANIZATION")},n.prototype.createOrgRole=function(e){return this.post("/teams/roles",e)},n.prototype.editOrgRole=function(e){var t=e.payload,n=e.id;return this.patch("/teams/roles/".concat(n),t)},n.prototype.deleteOrgRole=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getOrgRoleAssignments=function(){return this.get("/teams/organization-roles/assignments")},n.prototype.assignOrgRole=function(e){return this.post("/teams/organization-roles/assign",e)},n.prototype.unassignOrgRole=function(e){return this.delete("/teams/organization-roles/assign/".concat(e))},n.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},n.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},n.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(o))},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.workosPasswordReset=function(e){return this.post("/workos/password-reset",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public")})},n.prototype.workosAdminPortal=function(){return this.post("/workos/admin-portal",{})},n.prototype.workosDomainVerificationPortal=function(){return this.post("/workos/domain-verification-portal",{})},n.prototype.workosDomainStatus=function(){return this.get("/workos/domain-status")},n.prototype.workosSsoConfigStatus=function(){return this.get("/workos/sso-config-status")},n.prototype.workosVerifyMfa=function(e){return this.post("/workos/verify-mfa",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public"),withCredentials:!0})},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},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(t){var n=t.account_code,r=e.__rest(t,["account_code"]);return this.post("v2/events/organization",{account_codes:n},{params:r,paramsSerializer:jc})},n.prototype.getAuditEventByCode=function(e,t){return this.post("v2/events/organization/".concat(e),{account_codes:t})},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,r=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(r),t)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.uploadPaymentLinkLogo=function(e){var t=e.payload;return this.post("/v1/checkouts/payment-link/logo",t)},n.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},n.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},n.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},n.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},n.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},n.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},n.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},n.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},n.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},n.prototype.getInstallmentPlans=function(e){var t=e?jc(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},n.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},n.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},n.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},n.prototype.searchInstallmentsPlans=function(e){return this.post("/v2/installments-plans/search",e)},n.prototype.bulkCreateInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk",e)},n.prototype.bulkDeleteInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk-delete",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.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.confirmMfaOtp=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.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,r){var o={name:t,account_codes:e,page:n,size:r};return this.post("/blacklist",o)},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,r,o){void 0===n&&(n=26),void 0===r&&(r=null),void 0===o&&(o=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(a+="&search=".concat(o)),this.get(a,r?{headers:{"x-account-code":r}}:{})},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.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,n=e.accountCode,r=n?{headers:{"x-account-code":n}}:void 0;return this.post("/blacklist/items",t,r)},n.prototype.postBlackListBatch=function(t){var n=t.blacklist_code,r=t.expiration_days,o=t.file,a=t.handleSetProgress,i=t.accountCode;return this.post("/blacklist/create-batch/".concat(n),{expiration_days:r,file:o},e.__assign({onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}},i&&{headers:{"x-account-code":i}}))},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,r=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":r}})},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.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,r=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:r.token}),cancel:function(){return r.cancel()}}},n.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,r=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:r.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return r.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.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:r})},n.prototype.getBatchRefundUserFileDownload=function(e,t,n){var r={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:r})},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.getWorkOsMfaStatus=function(){return this.get("/mfa/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.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,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},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,n,r){var o={};return t&&(o["x-password"]=t),n&&(o["x-otp"]=n),r&&(o["x-mfa-token"]=r),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:o})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.buildAuthHeaders=function(e,t,n){var r={};return e&&(r["x-password"]=e),t&&(r["x-otp"]=t),n&&(r["x-mfa-token"]=n),r},n.prototype.getOrganizationKeysMetadata=function(){return this.get("/v2/developers/organization-keys/metadata")},n.prototype.patchOrganizationKeysNote=function(e,t){return this.patch("/v2/developers/organization-keys/note",e,{headers:{"x-password":t}})},n.prototype.postOrganizationKeysRoll=function(e,t,n){return this.post("/v2/developers/organization-keys/roll",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysTamRequest=function(e,t,n){return this.post("/v2/developers/organization-keys/tam-request",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysMarkRevealed=function(e,t,n){return this.post("/v2/developers/organization-keys/mark-revealed",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(Eh[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(Eh[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.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.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},n.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},n.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},n.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},n.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},n.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},n.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},n.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},n.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},n.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},n.prototype.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},n.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},n.prototype.getLanguages=function(){return this.get("/languages")},n.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},n.prototype.getCommunications=function(e){return this.post("/communications",e)},n.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},n.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},n.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},n.prototype.getRecipientsV2=function(e,t){var n={"x-organization-code":e};return this.get("/v2/recipients",{headers:n,params:t})},n.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},n.prototype.getOnboardingDetail=function(e,t,n){var r={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:r})},n.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},n.prototype.createRecipientExport=function(e,t){var n={"x-account-code":t};return this.post("/v1/recipients/exports",e,{headers:n})},n.prototype.getRecipientExports=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports",{headers:n,params:e})},n.prototype.downloadRecipientExport=function(e,t){var n={"x-account-code":t};return this.get("/v1/recipients/exports/".concat(e,"/download"),{headers:n})},n.prototype.createRecipient=function(e,t){var n={"x-organization-code":e};return this.post("/recipients",t,{headers:n})},n.prototype.updateRecipient=function(e,t,n){var r={"x-organization-code":e};return this.patch("/recipients/".concat(t),n,{headers:r})},n.prototype.deleteRecipient=function(e,t){var n={"x-organization-code":e};return this.delete("/recipients/".concat(t),{headers:n})},n.prototype.createCertificate=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t};return this.post("/certificates",n,{headers:r})},n.prototype.getCertificates=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t},o=n?{type:n}:void 0;return this.get("/certificates",{headers:r,params:o})},n.prototype.downloadCertificate=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t};return this.get("/certificates/".concat(n,"/download"),{headers:r})},n.prototype.updateCertificateAccounts=function(e,t,n,r){var o={"x-organization-code":e,"x-account-code":t};return this.patch("/certificates/".concat(n,"/accounts"),r,{headers:o})},n.prototype.deleteCertificate=function(e,t,n){var r={"x-organization-code":e,"x-account-code":t};return this.delete("/certificates/".concat(n),{headers:r})},n.prototype.deleteCertificateAccount=function(e,t,n,r){var o={"x-organization-code":e,"x-account-code":t};return this.delete("/certificates/".concat(n,"/accounts/").concat(r),{headers:o})},n.prototype.createOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings"),n,{headers:r})},n.prototype.updateOnboarding=function(e,t,n,r){var o={"x-organization-code":e};return this.patch("/recipients/".concat(t,"/onboardings/").concat(n),r,{headers:o})},n.prototype.blockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/block"),{},{headers:r})},n.prototype.unblockOnboarding=function(e,t,n){var r={"x-organization-code":e};return this.post("/recipients/".concat(t,"/onboardings/").concat(n,"/unblock"),{},{headers:r})},n.prototype.getConciergeAlerts=function(){return this.get("/concierge/alerts")},n.prototype.getConciergeAlertById=function(e){return this.get("/concierge/alerts/".concat(e))},n.prototype.createConciergeAlert=function(e){return this.post("/concierge/alerts",e)},n.prototype.deleteConciergeAlert=function(e){return this.delete("/concierge/alerts/".concat(e))},n.prototype.enableConciergeAlert=function(e,t){return this.post("/concierge/alerts/enable/".concat(e),t)},n.prototype.postPlaygroundExecuteFlow=function(e){return this.post("/playground/payment-flows",e)},n.prototype.postApiLogsListV2=function(e){return this.post("/api-logs/list",e)},n.prototype.getApiLogsByPaymentId=function(e,t,n){return this.get("/api-logs/payment/".concat(e),{headers:{"x-account-code":t},params:n?{created_at_from:n}:void 0})},n.prototype.postApiLogsStatsRequestsV2=function(e){return this.post("/api-logs/stats/requests",e)},n.prototype.postApiLogsStatsErrorsV2=function(e){return this.post("/api-logs/stats/errors",e)},n.prototype.postApiLogsStatsErrorsByEndpointV2=function(e){return this.post("/api-logs/stats/errors-by-endpoint",e)},n.prototype.postApiLogsExport=function(e){return this.post("/api-logs/exports",e)},n.prototype.getApiLogsExportStatus=function(e){return this.get("/api-logs/exports/".concat(e))},n.prototype.getApiLogsExportsList=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),this.get("/api-logs/exports",{params:{page:e,size:t}})},n.prototype.postWebhookLogsV2=function(t){var n=t.payload,r=n.account_code,o=e.__rest(n,["account_code"]);return this.post("/webhook-logs",{account_codes:r},{params:o,paramsSerializer:jc})},n.prototype.postWebhookLogsExport=function(e){return this.post("/webhook-logs/exports",e)},n.prototype.getWebhookLogsExportStatus=function(e){return this.get("/webhook-logs/exports/".concat(e))},n.prototype.getWebhookLogsExportsList=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),this.get("/webhook-logs/exports",{params:{page:e,size:t}})},n.prototype.postMonitorLogsV2=function(t){var n=t.payload,r=n.account_codes,o=e.__rest(n,["account_codes"]);return this.post("/monitor-logs",{account_codes:r},{params:o,paramsSerializer:jc})},n.prototype.postMonitorLogsExport=function(e){return this.post("/monitor-logs/exports",e)},n.prototype.getMonitorLogsExportStatus=function(e){return this.get("/monitor-logs/exports/".concat(e))},n.prototype.getMonitorLogsExportsList=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),this.get("/monitor-logs/exports",{params:{page:e,size:t}})},n}(zc),Dh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"https://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff/api")}}(),Lh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"wss://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff")}}(),jh={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:null!=Dh?Dh:process.env.BFF_URL_PROD,BFF_URL_SBX:null!=Dh?Dh:process.env.BFF_URL_SBX,BFF_URL_STG:null!=Dh?Dh:process.env.BFF_URL_STG,BFF_URL_DEV:null!=Dh?Dh:process.env.BFF_URL_DEV,BFF_URL_LOCAL:null!=Dh?Dh:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:null!=Lh?Lh:process.env.WS_URL_LOCAL,WS_URL_PROD:null!=Lh?Lh:process.env.WS_URL_PROD,WS_URL_SBX:null!=Lh?Lh:process.env.WS_URL_SBX,WS_URL_STG:null!=Lh?Lh:process.env.WS_URL_STG,WS_URL_DEV:null!=Lh?Lh:process.env.WS_URL_DEV},zh="yuno-dashboard:session-expired",Nh=!1;function qh(){if(!Nh){Nh=!0;var e=function(){try{return document.referrer?new URL(document.referrer).origin:null}catch(e){return null}}();if(e)try{window.parent.postMessage({type:zh},e)}catch(e){console.warn("[yuno] postMessage to parent failed",e)}}}var Uh=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.registerCanaryInterceptor=function(){var e;null===(e=this.classInstance.instance.interceptors)||void 0===e||e.request.use(function(e){return"true"===localStorage.getItem("canary-enabled")&&e.headers&&(e.headers["x-canary-traffic"]="canary-traffic"),e},function(e){return Promise.reject(e)})},n.refreshInstance=function(t){var r;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:jh["BFF_URL_".concat(jh.ENVIRONMENT)]})),this.registerCanaryInterceptor(),null===(r=this.classInstance.instance.interceptors)||void 0===r||r.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);"undefined"!=typeof window&&window.parent!==window?qh():window.location.href="/auth/logout"}),this.classInstance},n.getInstance=function(t){var r,o;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(o=null===(r=JSON.parse(a))||void 0===r?void 0:r.value)||void 0===o?void 0:o.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||jh["BFF_URL_".concat(jh.ENVIRONMENT)]})),this.registerCanaryInterceptor(),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}(Ph);class Bh{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 Mh="undefined"==typeof window||"Deno"in window;function Fh(){}function Gh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Vh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wh(e,t,n){return of(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Hh(e,t,n){return of(e)?[{...t,queryKey:e},n]:[e||{},t]}function Kh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(of(i))if(r){if(t.queryHash!==Qh(i,t.options))return!1}else if(!Jh(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function $h(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(of(a)){if(!t.options.mutationKey)return!1;if(n){if(Yh(t.options.mutationKey)!==Yh(a))return!1}else if(!Jh(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function Qh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Yh)(e)}function Yh(e){return JSON.stringify(e,(e,t)=>nf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Jh(e,t){return Zh(e,t)}function Zh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Zh(e[n],t[n])))}function Xh(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=tf(e)&&tf(t);if(r||nf(e)&&nf(t)){const o=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,s=r?[]:{};let c=0;for(let o=0;o<i;o++){const i=r?o:a[o];s[i]=Xh(e[i],t[i],n+1),s[i]===e[i]&&c++}return o===i&&c===o?e:s}return t}function ef(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nf(e){if(!rf(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!rf(n)&&!!n.hasOwnProperty("isPrototypeOf")}function rf(e){return"[object Object]"===Object.prototype.toString.call(e)}function of(e){return Array.isArray(e)}function af(e){return new Promise(t=>{setTimeout(t,e)})}function sf(e){af(0).then(e)}function cf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Xh(e,t):t}const uf=new class extends Bh{constructor(){super(),this.setup=e=>{if(!Mh&&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)}},lf=["online","offline"];const df=new class extends Bh{constructor(){super(),this.setup=e=>{if(!Mh&&window.addEventListener){const t=()=>e();return lf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{lf.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 pf(e){return Math.min(1e3*2**e,3e4)}function hf(e){return"online"!==(null!=e?e:"online")||df.isOnline()}class ff{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function gf(e){return e instanceof ff}function mf(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,r=t}),c=()=>!uf.isFocused()||"always"!==e.networkMode&&!df.isOnline(),u=r=>{i||(i=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,r;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:pf,h="function"==typeof u?u(a,t):u,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!o&&f?(a++,null==e.onFail||e.onFail(a,t),af(h).then(()=>{if(c())return d()}).then(()=>{o?l(t):p()})):l(t)})};return hf(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new ff(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const yf=console;const vf=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):sf(()=>{n(r)})},a=()=>{const t=e;e=[],t.length&&sf(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class bf{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:Mh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _f extends bf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||yf,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,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r: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=cf(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||!Vh(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,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,r,o;(gf(e)&&e.silent||this.dispatch({type:"error",error:e}),gf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=mf({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;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:hf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return gf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vf.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class kf extends Bh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:Qh(o,t);let i=this.get(a);return i||(i=new _f({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}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(){vf.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Hh(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Kh(n,e))}findAll(e,t){const[n]=Hh(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Kh(n,e)):this.queries}notify(e){vf.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){vf.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){vf.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class wf extends bf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||yf,this.observers=[],this.state=e.state||xf(),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=mf({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,r,o,a,i,s,c,u;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,g,m,y,v,b,_,k;throw await(null==(f=(g=this.mutationCache.config).onError)?void 0:f.call(g,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(m=(y=this.options).onError)?void 0:m.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=this.options).onSettled)?void 0:_.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!hf(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),vf.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function xf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Ef extends Bh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new wf({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(r),r}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(){vf.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=>$h(e,t))}findAll(e){return this.mutations.filter(t=>$h(e,t))}notify(e){vf.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 vf.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Fh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Sf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),v=(t,n,r,o)=>{if(g)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{g=!0}),e.signal}});const s=m(a);return Promise.resolve(s).then(e=>y(t,r,e,o))};let b;if(p.length)if(l){const t=void 0!==u,n=t?u:Cf(e.options,p);b=v(p,t,n)}else if(d){const t=void 0!==u,n=t?u:(_=e.options,k=p,null==_.getPreviousPageParam?void 0:_.getPreviousPageParam(k[0],k));b=v(p,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?v([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then(r=>{if(!s||!p[n]||s(p[n],n,p)){const o=t?h[n]:Cf(e.options,r);return v(r,t,o)}return Promise.resolve(y(r,h[n],p[n]))})}else b=v([]);var _,k;const w=b.then(e=>({pages:e,pageParams:f}));return w}}}}function Cf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Rf extends Bh{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),If(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,r=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"),ef(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&Af(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}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(!ef(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(),Mh||this.currentResult.isStale||!Gh(this.options.staleTime))return;const e=Vh(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,!Mh&&!1!==this.options.enabled&&Gh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||uf.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,r=this.options,o=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:g,status:m}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&If(e,t),i=o&&Af(e,n,t,r);(a||i)&&(g=hf(e.options.networkMode)?"fetching":"paused",p||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==m)d=u.data,p=u.dataUpdatedAt,m=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=cf(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===m){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(m="success",d=cf(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),m="error");const b="fetching"===g,_="loading"===m,k="error"===m;return{status:m,fetchStatus:g,isLoading:_,isSuccess:"success"===m,isError:k,isInitialLoading:_&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,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&&!_,isLoadingError:k&&0===l.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:y,isRefetchError:k&&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,ef(n,t))return;this.currentResult=n;const r={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 r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(r.listeners=!0),this.notify({...r,...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||gf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){vf.batch(()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,c;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function If(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 r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Of(e,t)}return!1}function Af(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Of(e,n)}function Of(e,t){return e.isStaleByTime(t.staleTime)}class Pf extends Bh{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),ef(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){vf.batch(()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,c;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var Df,Lf={exports:{}},jf={};var zf,Nf={};
|
|
42
42
|
/**
|
|
43
43
|
* @license React
|
|
44
44
|
* use-sync-external-store-shim.development.js
|
|
@@ -64,5 +64,5 @@ statuses/index.js:
|
|
|
64
64
|
* @copyright (c) 2099 Kent C. Dodds
|
|
65
65
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
66
66
|
*/
|
|
67
|
-
const Dg=7,Lg=6,jg=5,zg=4,Ng=3,qg=2,Ug=1,Bg=0;function Mg(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:Ug,!n.accessors){const r=Fg(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=Hg(o),i=Vg(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:Bg,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=Fg(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=Ug?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function Fg(e,t,n){return e=Gg(e,n),(t=Gg(t,n)).length>e.length?Bg:e===t?Dg:(e=e.toLowerCase())===(t=t.toLowerCase())?Lg:e.startsWith(t)?jg:e.includes(` ${t}`)?zg:e.includes(t)?Ng:1===t.length?Bg:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?qg:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return Ug+o*r}const i=o(t[0],e,0);if(i<0)return Bg;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return Bg}const s=r-i;return a(s)}(e,t)}function Gg(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Pg,e=>Ag[e])),e}function Vg(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const Wg={maxRanking:1/0,minRanking:-1/0};function Hg(e){return"function"==typeof e?Wg:{...Wg,...e}}function Kg(e,t){const[n,r]=o.useState();o.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,o.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var $g,Qg=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}(),Yg=function(){function e(e){this.generateIdentifier=e,this.kv=new Qg}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}(),Jg=($g=function(e,t){return $g=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])},$g(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}$g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zg=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return Jg(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}(Yg),Xg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function em(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 r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function tm(e,t){Object.entries(e).forEach(function(e){var n=Xg(e,2),r=n[0],o=n[1];return t(o,r)})}function nm(e,t){return-1!==e.indexOf(t)}function rm(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var om=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return em(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),am=function(e){return void 0===e},im=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},sm=function(e){return im(e)&&0===Object.keys(e).length},cm=function(e){return Array.isArray(e)},um=function(e){return e instanceof Map},lm=function(e){return e instanceof Set},dm=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},pm=function(e){return"number"==typeof e&&isNaN(e)},hm=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||am(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||dm(e)},fm=function(e){return e.replace(/\./g,"\\.")},gm=function(e){return e.map(String).map(fm).join(".")},mm=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},ym=function(){return ym=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ym.apply(this,arguments)},vm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},bm=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function _m(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var km=[_m(am,"undefined",function(){return null},function(){}),_m(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)}),_m(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),_m(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}),_m(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)}),_m(lm,"set",function(e){return bm([],vm(e.values()))},function(e){return new Set(e)}),_m(um,"map",function(e){return bm([],vm(e.entries()))},function(e){return new Map(e)}),_m(function(e){return pm(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return pm(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),_m(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),_m(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function wm(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var xm=wm(function(e,t){return!!dm(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Em=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Sm=wm(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return bm([],vm(e))},function(e,t){var n=Em[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Cm(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Rm=wm(Cm,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return ym({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),Im=wm(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 r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Tm=[Rm,xm,Im,Sm],Am=function(e,t){var n=rm(Tm,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=rm(km,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},Om={};km.forEach(function(e){Om[e.annotation]=e});var Pm=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Dm(e){if(nm(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(nm(e,"prototype"))throw new Error("prototype is not allowed as a property");if(nm(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Lm=function(e,t,n){if(Dm(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(cm(r))r=r[+a];else if(im(r))r=r[a];else if(lm(r)){r=Pm(r,i=+a)}else if(um(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=Pm(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(cm(r)?r[+u]=n(r[+u]):im(r)&&(r[u]=n(r[u])),lm(r)){var l=Pm(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(um(r)){i=+t[t.length-2];var p=Pm(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},jm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},zm=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Nm(e,t,n){if(void 0===n&&(n=[]),e)if(cm(e)){var r=jm(e,2),o=r[0],a=r[1];a&&tm(a,function(e,r){Nm(e,t,zm(zm([],jm(n)),jm(mm(r))))}),t(o,n)}else tm(e,function(e,r){return Nm(e,t,zm(zm([],jm(n)),jm(mm(r))))})}function qm(e,t,n){return Nm(t,function(t,r){e=Lm(e,r,function(e){return function(e,t,n){if(!cm(t)){var r=Om[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return xm.untransform(e,t,n);case"class":return Rm.untransform(e,t,n);case"custom":return Im.untransform(e,t,n);case"typed-array":return Sm.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Um(e,t){function n(t,n){var r=function(e,t){Dm(t);for(var n=0;n<t.length;n++){var r=t[n];if(lm(e))e=Pm(e,+r);else if(um(e)){var o=+r,a=0===+t[++n]?"key":"value",i=Pm(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,mm(n));t.map(mm).forEach(function(t){e=Lm(e,t,function(){return r})})}if(cm(t)){var r=jm(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Lm(e,mm(t),function(){return e})}),a&&tm(a,n)}else tm(t,n);return e}var Bm=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=hm(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return im(e)||cm(e)||um(e)||lm(e)||Cm(e,t)}(e,n)){var l=Am(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(nm(a,e))return{transformedValue:null};var p=Am(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=cm(h)?[]:{},g={};tm(h,function(s,c){var u=Bm(s,t,n,r,zm(zm([],jm(o)),[c]),zm(zm([],jm(a)),[e]),i);f[c]=u.transformedValue,cm(u.annotations)?g[c]=u.annotations:im(u.annotations)&&tm(u.annotations,function(e,t){g[fm(c)+"."+t]=e})});var m=sm(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return c||i.set(e,m),m};function Mm(e){return Object.prototype.toString.call(e).slice(8,-1)}function Fm(e){return"Array"===Mm(e)}function Gm(e,t={}){if(Fm(e))return e.map(e=>Gm(e,t));if(!function(e){if("Object"!==Mm(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,r)=>{if(Fm(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,Gm(e[r],t),e,t.nonenumerable),n},{})}var Vm=function(){return Vm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vm.apply(this,arguments)},Wm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Hm=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Km=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Zg,this.symbolRegistry=new Yg(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new om,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Bm(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=Vm(Vm({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=jm(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(gm):i[gm(n)]=r.map(gm)}}),s?sm(i)?[s]:[s,i]:sm(i)?void 0:i);return c&&(r.meta=Vm(Vm({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=Gm(t);return(null==n?void 0:n.values)&&(r=qm(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=Um(r,n.referentialEqualities)),r},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(Vm({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,Hm([],Wm(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 $m={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Qm=o.createContext($m);function Ym({theme:e,...t}){return o.createElement(Qm.Provider,Tg({value:e},t))}function Jm({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function Zm(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Xm(e,t,n={}){return o.forwardRef(({style:r,...a},i)=>{const s=o.useContext(Qm),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=o.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return o.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e,{});return o.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...r,...c},ref:i})})}const ey=(e,t=!1)=>{const{json:n}=Km.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ty=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,ny=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,ry={"Status > Last Updated":(e,t)=>ty(e)===ty(t)?ny(e,t):ty(e)>ty(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":ny},oy=500,ay={top:"bottom",bottom:"top",left:"right",right:"left"};function iy(e){return["left","right"].includes(e)}function sy(e){return ay[e]}function cy(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function uy(e="bottom"){const t=iy(e),n=sy(e),r=cy("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const ly=Xm("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"}}),dy=Xm("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),py=Xm("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"})),hy=Xm("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),fy=Xm("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),gy=Xm("code",{fontSize:".9em",color:"inherit",background:"inherit"}),my=Xm("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),yy=Xm("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 vy({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const by=Xm("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),_y=Xm("span",{color:"white"}),ky=Xm("button",{cursor:"pointer",color:"white"}),wy=Xm("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),xy=({value:e})=>{const[t,n]=o.useState("NoCopy");return o.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Km.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?o.createElement(Iy,null):"SuccessCopy"===t?o.createElement(Ay,null):o.createElement(Ty,null))},Ey=Xm("span",(e,t)=>({color:t.danger})),Sy=Xm("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Cy=Xm("span",{color:"grey",fontSize:".7em"}),Ry=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Iy=()=>o.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},o.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"}),o.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"}))),Ty=()=>o.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},o.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"})),o.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Ay=()=>o.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},o.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},o.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 Oy=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=o.useState([]);return o.createElement(by,{key:t},a.length?o.createElement(o.Fragment,null,o.createElement(wy,{onClick:()=>u()},o.createElement(Ry,{expanded:s})," ",t," ",o.createElement(Cy,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?o.createElement(xy,{value:n}):null,s?1===a.length?o.createElement(Sy,null,r.map(e)):o.createElement(Sy,null,a.map((t,n)=>o.createElement("div",{key:n},o.createElement(by,null,o.createElement(ky,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},o.createElement(Ry,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?o.createElement(Sy,null,t.map(e)):null)))):null):o.createElement(o.Fragment,null,o.createElement(_y,null,t,":")," ",o.createElement(Ey,null,ey(n))))};function Py({value:e,defaultExpanded:t,renderer:n=Oy,pageSize:r=100,copyable:a=!1,...i}){const[s,c]=o.useState(Boolean(t)),u=o.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>o.createElement(Py,Tg({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:a,toggleExpanded:u,pageSize:r,...i})}function Dy(e){return o.createElement("svg",Tg({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),o.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-33.000000, 0.000000)"},o.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) "}),o.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"}),o.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 Ly=(e,t,n=!1)=>qf.useSyncExternalStore(o.useCallback(t=>n?()=>{}:e.subscribe(vf.batchCalls(t)),[e,n]),t,t),jy=o.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:a,context:i,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Gf({context:i}),y=m.getQueryCache(),[v,b]=Kg("reactQueryDevtoolsSortFn",Object.keys(ry)[0]),[_,k]=Kg("reactQueryDevtoolsFilter",""),[w,x]=Kg("reactQueryDevtoolsBaseSort",1),E=o.useMemo(()=>ry[v],[v]),S=Ly(y,()=>y.getAll().length,!n),[C,R]=Kg("reactQueryDevtoolsActiveQueryHash",""),I=o.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=_?e.filter(e=>Mg(e.queryHash,_).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,_,S,y]),[T,A]=o.useState(!1);return o.createElement(Ym,{theme:$m},o.createElement(ly,Tg({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:oy,position:"relative",...h.style}}),o.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+$m.backgroundAlt+" "+$m.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: "+$m.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+$m.gray+";\n border-radius: .5em;\n border: 3px solid "+$m.backgroundAlt+";\n }\n "}}),o.createElement("div",{style:uy(l),onMouseDown:s}),n&&o.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+$m.grayAlt,display:"flex",flexDirection:"column"}},o.createElement("div",{style:{padding:".5em",background:$m.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},o.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"}},o.createElement(Dy,{"aria-hidden":!0}),o.createElement(vy,{text:"Close React Query Devtools"})),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},o.createElement(Ny,{queryCache:y}),l&&c?o.createElement(yy,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},o.createElement("option",{value:"left"},"Left"),o.createElement("option",{value:"right"},"Right"),o.createElement("option",{value:"top"},"Top"),o.createElement("option",{value:"bottom"},"Bottom")):null),o.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},o.createElement(my,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=_?_:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),o.createElement(yy,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(ry).map(e=>o.createElement("option",{key:e,value:e},"Sort by ",e))),o.createElement(py,{type:"button",onClick:()=>x(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),o.createElement(py,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),o.createElement(py,{type:"button",onClick:()=>{T?(df.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(df.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"}},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?$m.danger:"currentColor",fill:"none"},T?o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.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"}),o.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"}),o.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),o.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),o.createElement(vy,{text:T?"Restore offline mock":"Mock offline behavior"}))))),o.createElement("div",{style:{overflowY:"auto",flex:"1"}},I.map(e=>o.createElement(qy,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:R,key:e.queryHash,queryCache:y})))),C&&n?o.createElement(zy,{activeQueryHash:C,queryCache:y,queryClient:m,errorTypes:p}):null,u?o.createElement(py,Tg({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{a(!1),null==f||f(e)}}),"Close"):null))}),zy=({queryCache:e,activeQueryHash:n,queryClient:r,errorTypes:a})=>{var i,s;const c=Ly(e,()=>e.getAll().find(e=>e.queryHash===n)),u=Ly(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.state}),l=null!=(i=Ly(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.isStale()}))&&i,d=null!=(s=Ly(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.getObserversCount()}))?s:0,p=t.useMemo(()=>{if(c&&null!=u&&u.error){const e=a.find(e=>{var t;return e.initializer(c).toString()===(null==(t=u.error)?void 0:t.toString())});return null==e?void 0:e.name}},[c,null==u?void 0:u.error,a]);if(!c||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(c))?t:new Error("Unknown error from devtools"),r=c.options;c.setState({status:"error",error:n,fetchMeta:{...c.state.fetchMeta,__previousQueryOptions:r}})};return o.createElement(dy,null,o.createElement("div",{style:{padding:".5em",background:$m.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),o.createElement("div",{style:{padding:".5em"}},o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},o.createElement(gy,{style:{lineHeight:"1.8em"}},o.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},ey(c.queryKey,!0))),o.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Jm({queryState:u,isStale:l,observerCount:d,theme:$m}),flexShrink:0}},Zm(c))),o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",o.createElement(gy,null,d)),o.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",o.createElement(gy,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),o.createElement("div",{style:{background:$m.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),o.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},o.createElement(py,{type:"button",onClick:()=>{const e=null==c?void 0:c.fetch();null==e||e.catch(Uy)},disabled:"fetching"===u.fetchStatus,style:{background:$m.active}},"Refetch")," ",o.createElement(py,{type:"button",onClick:()=>r.invalidateQueries(c),style:{background:$m.warning,color:$m.inputTextColor}},"Invalidate")," ",o.createElement(py,{type:"button",onClick:()=>r.resetQueries(c),style:{background:$m.gray}},"Reset")," ",o.createElement(py,{type:"button",onClick:()=>r.removeQueries(c),style:{background:$m.danger}},"Remove")," ",o.createElement(py,{type:"button",onClick:()=>{var e;if("fetching"!==c.state.fetchStatus||void 0!==(null==(e=c.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===c.state.data)c.fetch(c.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=c.options;c.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),c.setState({data:void 0,status:"loading",fetchMeta:{...c.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:$m.paused}},"loading"===c.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===c.state.status?o.createElement(py,{type:"button",onClick:()=>{c.state.error?r.resetQueries(c):h()},style:{background:$m.danger}},"error"===c.state.status?"Restore":"Trigger"," error"):o.createElement("label",null,"Trigger error:",o.createElement(yy,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);h(t)}},o.createElement("option",{key:"",value:""}),a.map(e=>o.createElement("option",{key:e.name,value:e.name},e.name))))),o.createElement("div",{style:{background:$m.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(Py,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),o.createElement("div",{style:{background:$m.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(Py,{label:"Query",value:c,defaultExpanded:{queryKey:!0}})))},Ny=({queryCache:e})=>{const t=Ly(e,()=>e.getAll().filter(e=>"fresh"===Zm(e)).length),n=Ly(e,()=>e.getAll().filter(e=>"fetching"===Zm(e)).length),r=Ly(e,()=>e.getAll().filter(e=>"paused"===Zm(e)).length),a=Ly(e,()=>e.getAll().filter(e=>"stale"===Zm(e)).length),i=Ly(e,()=>e.getAll().filter(e=>"inactive"===Zm(e)).length);return o.createElement(hy,null,o.createElement(fy,{style:{background:$m.success,opacity:t?1:.3}},"fresh ",o.createElement(gy,null,"(",t,")"))," ",o.createElement(fy,{style:{background:$m.active,opacity:n?1:.3}},"fetching ",o.createElement(gy,null,"(",n,")"))," ",o.createElement(fy,{style:{background:$m.paused,opacity:r?1:.3}},"paused ",o.createElement(gy,null,"(",r,")"))," ",o.createElement(fy,{style:{background:$m.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",o.createElement(gy,null,"(",a,")"))," ",o.createElement(fy,{style:{background:$m.gray,opacity:i?1:.3}},"inactive ",o.createElement(gy,null,"(",i,")")))},qy=o.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var a,i,s,c;const u=null!=(a=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?a:"",l=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(i=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&i,p=null!=(s=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?o.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+$m.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},o.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Jm({queryState:l,isStale:d,observerCount:h,theme:$m}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?o.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:$m.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,o.createElement(gy,{style:{padding:".5em"}},""+u)):null});function Uy(){}qy.displayName="QueryRow";const By="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:i="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=o.useRef(null),p=o.useRef(null),[h,f]=Kg("reactQueryDevtoolsOpen",e),[g,m]=Kg("reactQueryDevtoolsHeight",oy),[y,v]=Kg("reactQueryDevtoolsWidth",oy),[b="bottom",_]=Kg("reactQueryDevtoolsPanelPosition",u),[k,w]=o.useState(!1),[x,E]=o.useState(!1),S=function(){const e=o.useRef(!1),t=o.useCallback(()=>e.current,[]);return o.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();o.useEffect(()=>{w(null!=h&&h)},[h,k,w]),o.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),o.useEffect(()=>{var e;if(k&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=cy("padding",b),n=iy(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:g)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[k,b,g,y]);const{style:C={},...R}=t,{style:I={},onClick:T,...A}=r,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=sy(e),c=cy("border",s),u=iy(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:oy}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:oy}}}({position:b,devtoolsTheme:$m,isOpen:k,height:g,width:y,isResizing:x,panelStyle:C});return S()?o.createElement(i,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},o.createElement(Ym,{theme:$m},o.createElement(jy,Tg({ref:p,context:s,styleNonce:c,position:b,onPositionChange:_,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:k,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=iy(b);E(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},u=()=>{x&&E(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),k?null:o.createElement("button",Tg({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!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"},...I}}),o.createElement(Dy,{"aria-hidden":!0}),o.createElement(vy,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var My,Fy={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(My=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",My.ETIMEDOUT="ETIMEDOUT",My.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var Gy=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Gy&&function(){e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:if(!bi())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,mi.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=Ph,exports.ApiProvider=function(n){var r=this,o=n.children,a=process.env.ENVIRONMENT,i=t.useMemo(function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"},[a]),s=t.useState(!1),c=s[0],u=s[1],l=t.useCallback(function(t){return e.__awaiter(r,void 0,void 0,function(){var n,r,o,a,s;return e.__generator(this,function(c){switch(c.label){case 0:return n=localStorage.getItem("headers"),r=n&&JSON.parse(n),o=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",a=localStorage.getItem("x-organization-code"),s=a?JSON.parse(a).value:"",[4,Uh.refreshInstance({headers:e.__assign(e.__assign({},r),{"X-Environment":o||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return c.sent(),[2]}})})},[i]);t.useEffect(function(){return addEventListener("ACCOUNT_CHANGED",l),function(){window.removeEventListener("ACCOUNT_CHANGED",l)}},[l]);var d=t.useCallback(function(t){return e.__awaiter(r,void 0,void 0,function(){var n,r,o,a,s,c,l;return e.__generator(this,function(d){switch(d.label){case 0:return n=localStorage.getItem("headers"),(r=n&&JSON.parse(n))?(o=localStorage.getItem("x-organization-code"),a=localStorage.getItem("account"),s=a?null===(l=JSON.parse(a).value)||void 0===l?void 0:l.code:"",c=o?JSON.parse(o).value:"",[4,Uh.refreshInstance({headers:e.__assign(e.__assign({},r),{"X-Environment":t||i,"x-organization-code":c,"x-account-code":s,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:d.sent(),og.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),u(!0),d.label=2;case 2:return[2]}})})},[i,u]);return t.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?d(n):"token"===t.key&&d(e)}}),d(e)},[u,d]),c?React.createElement(Vf,{client:og},o,React.createElement(By,{initialIsOpen:!1})):React.createElement("div",{style:Fy})},exports.ApiSingleton=Uh,exports.CONCIERGE_ALERTS_QUERY_KEY=ug,exports.CONCIERGE_ALERT_BY_ID_QUERY_KEY=lg,exports.FEEDBACK_ISSUE_OPTIONS=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}],exports.SESSION_EXPIRED_MESSAGE_TYPE=zh,exports.emitExpired=qh,exports.getDatadogEnvironment=function(){if("undefined"==typeof window||"undefined"==typeof localStorage)return"dev";var e="ON"===localStorage.getItem("isTesting"),t=window.location.host;return"dashboard.y.uno"===t?e?"sb":"prod":"dashboard.staging.y.uno"===t?"stg":"dev"},exports.getQueryKeyGetNameAndIcon=pg,exports.getQueryKeyPaymentMethodAccounts=fg,exports.getQueryKeyRequiredFields=hg,exports.queryCache=rg,exports.queryClient=og,exports.resetExpiredGuard=function(){Nh=!1},exports.use3DSExemptions=function(){var t=this;return Qf({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,Uh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Yf(function(e){return Uh.getInstance().generateAIWorkflowRoutes(t,e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAccountCode=ng,exports.useAddToRiskList=function(){return Yf(function(e){var t=e.paymentId,n=e.payload;return Uh.getInstance().addToRiskList(t,n)})},exports.useAllFeatureFlags=kg,exports.useAllowListDetail=function(e,t,n){return Qf(["allow-list-detail",e],function(){return Uh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})},exports.useBlackListDetail=function(e,t,n,r,o,a){return Qf(["black-list-detail",e,t,r,o,a],function(){return Uh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})},exports.useBlockOnboarding=function(){var e=Gf();return Yf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Uh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useBulkCreateInstallmentsPlans=function(){return Yf(["bulk-create-installments-plans"],function(e){var t=e.payload;return Uh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkDeleteInstallmentsPlans=function(){return Yf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return Uh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkDisableAccounts=function(){return Yf(function(e){return Uh.getInstance().bulkDisableAccounts(e)},{useErrorBoundary:!1})},exports.useBulkEnableAccounts=function(){return Yf(function(e){return Uh.getInstance().bulkEnableAccounts(e)},{useErrorBoundary:!1})},exports.useBulkToggleMethod=function(t,n){var r=this;return void 0===n&&(n=null),Yf(function(n){return e.__awaiter(r,void 0,void 0,function(){var r,o,a,i,s,c;return e.__generator(this,function(e){switch(e.label){case 0:return r=Uh.getInstance(),o=n.map(function(e){return r.putSmartRoutingToggleMethod(t,e.paymentMethod,e.active,e.routingType)}),[4,Promise.allSettled(o)];case 1:return a=e.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,t){return{paymentMethod:n[t].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:n.length,errors:c}]}})})},n)},exports.useCachedFeatureFlag=wg,exports.useCancelReport=function(){return Yf(function(e){return Uh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})},exports.useCancelSubscription=function(){return Yf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useChangePasswordV2=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().changePasswordV2(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useChangePaymentsWebhook=function(){return Yf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Uh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusBlackList=function(){return Yf(["change-blacklist"],function(e){return Uh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusItemBlackList=function(){return Yf(["change-blacklist-item"],function(e){return Uh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStylingSettings=function(){return Yf(function(e){var t=e.accountCode,n=e.payload;return Uh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useChangeTemplateStatus=function(){var t=this;return Yf(["PATCH/template-reporting/report-templates/status"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().changeTemplateStatus(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Yf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return Uh.getInstance().uploadChargebacks(t,n,r,o)})},exports.useChartAssistantSocket=function(){var e=t.useRef(null),n=t.useRef(null),r=t.useRef(null),o=t.useState(!1),a=o[0],i=o[1],s=t.useState(null),c=s[0],u=s[1],l=t.useState(null),d=l[0],p=l[1],h=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearTimeout(r.current),r.current=null)},[]),f=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearTimeout(r.current),r.current=null),p(null);try{var t=new WebSocket("".concat(jh["WS_URL_".concat(jh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=t,t.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&t.send(JSON.stringify({type:"auth",token:e})),n.current=setInterval(function(){t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:"ping"})):(h(),i(!1))},3e4)},t.onmessage=function(e){try{var t=JSON.parse(e.data);u(t)}catch(e){p("Failed to parse server response")}},t.onerror=function(e){p("Connection error occurred"),i(!1)},t.onclose=function(e){i(!1),h(),e.wasClean||1e3===e.code||(r.current=setTimeout(function(){f()},5e3))}}catch(e){p("Failed to establish connection")}},[]),g=t.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),m=t.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),y=t.useCallback(function(){u(null)},[]),v=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearTimeout(r.current),r.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return t.useEffect(function(){return f(),function(){h(),v()}},[]),{subscribe:g,unsubscribe:m,disconnect:v,connect:f,clearChartData:y,isConnected:a,chartData:c,connectionError:d}},exports.useChartExecute=function(e){return Qf(["chartgpt-chart-execute",e],function(){return Uh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Yf(["POST/template-reporting/report-templates/clone"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().cloneReportTemplate(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Qf(["fetch-communication-details",e],function(){return Uh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})},exports.useCommunications=function(e){var t;return Qf(["fetch-communications",e],function(){return Uh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-communications-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-day",r)];case 1:return o=e.sent(),[2,(a=o.data,i=r.start_date,s=r.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=Eg(null==u?void 0:u.rows,i,s),h=Eg(null==l?void 0:l.rows,i,s),f=Eg(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:xg(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:xg(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsBySubstatus=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-communications-by-substatus",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-substatus",r)];case 1:return o=e.sent(),[2,Sg(o.data)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsFilters=function(){return Qf(["fetch-communications-filters"],function(){return Uh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsSubstatusByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-communications-substatus-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-substatus-by-day",r)];case 1:return o=e.sent(),[2,Cg(o.data,r.start_date,r.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useConfirmedOtpMfa=function(){return Yf(function(e){return Uh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})},exports.useCountRowsForReport=function(){return Yf(function(e){return Uh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useCreateAndExecuteChart=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,r,o,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(r=null!==(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:r}]}})})},{useErrorBoundary:!1})},exports.useCreateAndExecuteChartWithTimezone=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,r,o,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(r=null!==(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:r}]}})})},{useErrorBoundary:!1})},exports.useCreateAuditSubscription=function(){var e=Gf();return Yf(["create-audit-subscription"],function(e){return Uh.getInstance().createAuditSubscription(e).then(function(e){return{alreadyExists:!1,subscription:null==e?void 0:e.data}}).catch(function(e){var t;if(409===(null===(t=e.response)||void 0===t?void 0:t.status)&&"subscription_already_exists"===cg(e))return{alreadyExists:!0};throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})},exports.useCreateCertificate=function(){var e=Gf();return Yf(["create-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.payload;return Uh.getInstance().createCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useCreateChart=function(){return Yf(function(e){return Uh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Yf(function(e){return Uh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateConciergeAlert=function(){return Yf(["POST/concierge/alerts"],function(e){return Uh.getInstance().createConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries([ug]),og.invalidateQueries([lg])},useErrorBoundary:!1})},exports.useCreateInstallmentsPlan=function(){return Yf(["create-installments-plan"],function(e){var t=e.payload;return Uh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useCreateMonitorTemplate=function(e){return Yf(function(t){return Uh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})},exports.useCreateMonitorThreshold=function(e){return Yf(function(t){return Uh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},exports.useCreateOnboarding=function(){var e=Gf();return Yf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Uh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useCreateOperationTransaction=function(){return Yf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return Uh.getInstance().createOperationTransaction(t,n,r,o)})},exports.useCreateOrgRole=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreatePaymentLinks=function(){return Yf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRecipient=function(){var e=Gf();return Yf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return Uh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useCreateRecipientExport=function(){return Yf(function(e){var t=e.accountCode,n=e.payload;return Uh.getInstance().createRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReconciliationAlert=function(){return Yf(["POST/reconciliation/alerts"],function(e){return Uh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Yf(function(){return Uh.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,r;return e.__generator(this,function(o){switch(o.label){case 0:return[4,og.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return o.sent(),n=null===(r=og.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===r?void 0:r.templates,og.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){og.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){og.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Yf(function(e){return Uh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReconciliationsReportV3=function(){return Yf(function(e){return Uh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Yf(function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.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(r){switch(r.label){case 0:return[4,og.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=og.getQueryData(["GET/reports/templates"]),og.setQueryData(["GET/reports/templates"],function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){og.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){og.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Yf(function(e){return Uh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRoles=function(){return Yf(function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Yf(function(e){return Uh.getInstance().createSamlConfig(e)})},exports.useCreateSchedule=function(){var t=this;return Yf(["POST/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().createReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})},exports.useCreateSubscription=function(){return Yf(["post-subscription"],function(e){return Uh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateTemplate=function(){var t=this;return Yf(["POST/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().createTemplateReporting(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCreateWorkflow=function(t,n,r){var o=this;void 0===r&&(r=null);var a=(null==r?void 0:r.basePath)||exports.SmartRouting.DEFAULT_ROUTING_TYPE;return Yf(function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().postSmartRoutingCreateWorkflow(t,n,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},r)},exports.useDeleteAccountsUserMassive=function(){return Yf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Uh.getInstance().deleteAccountsUserMassive(t,n,r)})},exports.useDeleteAllowlistItem=function(){return Yf(["delete-allowlist-item"],function(e){return Uh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteAuditSubscription=function(){var e=Gf();return Yf(["delete-audit-subscription"],function(e){return Uh.getInstance().deleteAuditSubscription(e).then(function(){}).catch(function(e){var t;if(404!==(null===(t=e.response)||void 0===t?void 0:t.status)||"subscription_not_found"!==cg(e))throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})},exports.useDeleteBlackListType=function(){return Yf(["delete-blacklist"],function(e){var t=e.black_list_code;return Uh.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 Yf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return Uh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteCertificate=function(){var e=Gf();return Yf(["delete-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode;return Uh.getInstance().deleteCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useDeleteCertificateAccount=function(){var e=Gf();return Yf(["delete-certificate-account"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.accountCodeToRemove;return Uh.getInstance().deleteCertificateAccount(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useDeleteChart=function(){return Yf(function(e){return Uh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDeleteConciergeAlert=function(){return Yf(["DELETE/concierge/alerts"],function(e){return Uh.getInstance().deleteConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries([ug]),og.invalidateQueries([lg])},useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Yf(function(e){var t=e.code;return Uh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteInstallmentsPlan=function(){return Yf(["delete-installments-plan"],function(e){var t=e.code;return Uh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteOrgRole=function(){return Yf(function(e){return Uh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeletePaymentLink=function(){return Yf(["post-delete-payment-link"],function(e){var t=e.code;return Uh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteRecipient=function(){var e=Gf();return Yf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return Uh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useDeleteReconciliationAlert=function(){return Yf(["DELETE/reconciliation/alerts"],function(e){return Uh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteReportTemplate=function(){return Yf(function(e){return Uh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteRoles=function(){return Yf(function(e){return Uh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteSamlConfig=function(){return Yf(function(){return Uh.getInstance().deleteSamlConfig()})},exports.useDeleteSchedule=function(){var t=this;return Yf(["DELETE/template-reporting/report-schedules"],function(n){var r=n.scheduleId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().deleteReportSchedule(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Yf(function(e){return Uh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteTemplate=function(){var t=this;return Yf(["DELETE/template-reporting/report-templates"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().deleteReportTemplate(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Yf(function(e){var t=e.userCode,n=e.organizationCode;return Uh.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,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useDeleteWebhookV2=function(e){return Yf(function(e){var t=e.code,n=e.accountCode;return Uh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDisableSchedule=function(){var t=this;return Yf(["PATCH/template-reporting/report-schedules/disable"],function(n){var r=n.scheduleId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().disableReportSchedule(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDownloadCertificate=function(t,n,r,o){var a=this;return void 0===o&&(o=!0),Qf(["download-certificate",t,n,r],function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().downloadCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n&&!!r&&o,cacheTime:0,useErrorBoundary:!1})},exports.useDownloadRecipientExport=function(){return Yf(function(e){var t=e.accountCode,n=e.exportCode;return Uh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDuplicateAccount=function(){return Yf(function(t){var n=e.__spreadArray([exports.DuplicateSetting.ACCOUNT],t.duplicate_order,!0);return Uh.getInstance().duplicateAccount(e.__assign(e.__assign({},t),{duplicate_order:n}))})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)},exports.useEditOrgRole=function(){var t=this;return Yf(function(n){var r=n.payload,o=n.id;return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().editOrgRole({payload:r,id:o})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEditPaymentLinks=function(){return Yf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return Uh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})},exports.useEditRoles=function(){var t=this;return Yf(function(n){var r=n.payload,o=n.id,a=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,Uh.getInstance().editRoles({payload:r,id:o},a)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Qf(["email-verification",e],function(){return Uh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useEnableConciergeAlert=function(){return Yf(["POST/concierge/alerts/enable"],function(e){var t=e.alertId,n=e.payload;return Uh.getInstance().enableConciergeAlert(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries([ug]),og.invalidateQueries([lg])},useErrorBoundary:!1})},exports.useExcludeUsers=function(){return Yf(function(e){var t=e.payload,n=e.organizationCode;return Uh.getInstance().mfaExcludeUsers(t,n)})},exports.useExportApiLogs=function(){return Yf(function(e){return Uh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportDashboardLogs=function(){return Yf(function(e){return Uh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportMonitorsLogs=function(){return Yf(function(e){return Uh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportWebhooksLogs=function(){return Yf(function(e){return Uh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useFeatureFlags=_g,exports.useFetchUserExportDetail=function(){var t=this,n=Gf();return function(r){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,n.fetchQuery(["user-export-status",r],function(){return Uh.getInstance().getUserExportStatus({exportCode:r}).then(function(e){return null==e?void 0:e.data})})]})})}},exports.useFirebaseUserSubscribe=function(e){return Yf(function(e){var t=e.payload;return Uh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Yf(function(e){return Uh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},t),{useErrorBoundary:!1}))},exports.useGetAccounts=function(e){var t,n=tg(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Qf({queryKey:["accounts",r],queryFn:function(){return Uh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})},exports.useGetAccountsByOrganization=function(e){var t=null==e?void 0:e.includeDisabled;return Qf(["accounts-by-organization",{includeDisabled:t}],function(){return Uh.getInstance().getAccountsByOrganization({includeDisabled:t}).then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAccountsByUser=function(e){return Qf(["accountsV2-by-user",e],function(){return e?Uh.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.useGetAccountsForImpersonation=function(t,n){var r=this;return Qf({queryKey:["accounts-for-impersonation",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getAccountsForImpersonation(t).then(function(e){var t,r;return(null===(r=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:n?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetAccountsV2=function(e){return Qf(["accountsV2",e],function(){return Uh.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 Qf(["config-rules"],function(){return Uh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/advancements/list",t,n],function(){return Uh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/agenda/list",t,n],function(){return Uh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/alerts/list",t,n],function(){return Uh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/fees/list",t,n],function(){return Uh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/sales/list",t,n],function(){return Uh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Qf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Uh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useGetAllowedIps=function(){return Qf(["developers-get-allowed-ips"],function(){return Uh.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.useGetApiLogsByTransactionCode=function(e,t){return Qf(["api-logs-by-transaction",e,t],function(){return Uh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsDetailByPaymentCode=function(e,t){return Qf(["api-logs-detail",e,t],function(){return Uh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsList=function(t){return Qf(["api-logs-list",t],function(){return Uh.getInstance().postApiLogsList(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsStatsErrors=function(t){return Qf(["api-logs-stats-errors",t],function(){return Uh.getInstance().postApiLogsStatsErrors(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsStatsErrorsByEndpoint=function(t){return Qf(["api-logs-stats-errors-by-endpoint",t],function(){return Uh.getInstance().postApiLogsStatsErrorsByEndpoint(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsStatsRequests=function(t){return Qf(["api-logs-stats-requests",t],function(){return Uh.getInstance().postApiLogsStatsRequests(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsV3=function(t){var n=this,r=t.paymentCode,o=t.enabled;return Qf({queryKey:["api-logs-v3",r],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getApiLogsV3(r).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===o||o)&&!!r,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetApiLogsV3ByPaymentCode=function(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Qf(["api-logs-v2-payment",t,n],function(){return Uh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditEvents=function(e){return Qf(["events",e],function(){return Uh.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.useGetAuditExportDownload=function(e,t,n){return void 0===t&&(t=!1),Qf(["audit-export-download",e],function(){return Uh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})},exports.useGetAuditExportsList=function(e,t){return void 0===t&&(t=!0),Qf(["audit-exports-list",e],function(){return Uh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditMonitorEventDetail=function(e){return Qf(["audit-monitor-event-detail",e],function(){return Uh.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 Yf(function(n){var r=n.batchRefundId,o=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getBatchRefundProcessedFileDownload(r,o,a).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Yf(function(n){var r=n.batchRefundId,o=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getBatchRefundUserFileDownload(r,o,a).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var r=this;return void 0===t&&(t=26),void 0===n&&(n=0),Qf(["batch-refunds",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.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,t){return void 0===t&&(t=!0),Qf(["get-black-list",e],function(){return Uh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})},exports.useGetBlockListSummary=function(e,t,n){return Qf(["get-block-list-summary",e,t,n],function(){var r=Uh.getInstance();return n?r.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 Qf(["GET/catalog/card-brands"],function(){return Uh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetCertificates=function(t,n,r,o){var a=this;return void 0===r&&(r=!0),Qf(["certificates",t,n,null!=o?o:null],function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getCertificates(t,n,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetChartFeedback=function(t){var n=this,r=t.chartCode,o=t.enabled;return Qf(["chart-feedback",r],function(){return e.__awaiter(n,void 0,void 0,function(){var t,n,o,a,i;return e.__generator(this,function(e){switch(e.label){case 0:t=Uh.getInstance(),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.getChartFeedback(r)];case 2:return n=e.sent(),(o=null==n?void 0:n.data)&&o.rating?[2,o]:[2,null];case 3:if(a=e.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===o||o)&&!!r,staleTime:3e5})},exports.useGetChartsByUser=function(){return Qf(["chartgpt-user-charts"],function(){return Uh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Qf(["chartgpt-user-charts-with-results"],function(){return e.__awaiter(t,void 0,void 0,function(){var t,n,r,o=this;return e.__generator(this,function(a){switch(a.label){case 0:return[4,(t=Uh.getInstance()).getChartsByUser()];case 1:return n=a.sent(),r=(null==n?void 0:n.data)||[],[4,Promise.all(r.map(function(n){return e.__awaiter(o,void 0,void 0,function(){var r,o,a,i,s,c,u,l;return e.__generator(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return r=d.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(i=null===(a=null==r?void 0:r.data)||void 0===a?void 0:a.user_prompt)&&void 0!==i?i:n.user_prompt,unit_to_display:null!==(c=null===(s=null==r?void 0:r.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==c?c:n.unit_to_display,results:null!==(l=null===(u=null==r?void 0:r.data)||void 0===u?void 0:u.results)&&void 0!==l?l:[]})];case 2:return o=d.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),o),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,a.sent()]}})})})},exports.useGetCheckouts=function(t,n){var r=t.accountCode,o=Qf(["checkouts",r],function(){return Uh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},e.__assign({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n)),a=o.refetch;return e.__assign(e.__assign({},o),{refetch:function(e){return a(null!=e?e:void 0)}})},exports.useGetConciergeAlertById=function(e){return Qf([lg,e],function(){return Uh.getInstance().getConciergeAlertById(e).then(function(e){return e.data})},{enabled:!!e,useErrorBoundary:!1})},exports.useGetConciergeAlerts=function(){return Qf([ug],function(){return Uh.getInstance().getConciergeAlerts().then(function(e){return e.data})},{useErrorBoundary:!1})},exports.useGetConditionalConfigRules=function(){return Yf(function(e){return Uh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetConfigAllowlist=function(e,t){return Qf(["get-cofig-allow-list",e],function(){return Uh.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 Qf(["connections"],function(){return Uh.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,r=e.basePath,o=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return Qf(["fetch-connections-by-payment-method",n,t,o],function(){return Uh.getInstance().getConnectionsByPaymentMethod(t,n,o).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),Qf(["countries",e],function(){return Uh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})},exports.useGetCountriesConfigPaymentLinkV2=function(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Qf(["countries-v2",n],function(){return Uh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})},exports.useGetCountryData=function(e){return Qf(["checkout-builder-country-data",e],function(){return Uh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},exports.useGetCredentials=function(t){var n=t.password,r=t.accountCode,o=t.otp,a=t.mfaToken;return Qf(["developers"],function(){return Uh.getInstance().getDeveloperCredentials(n,r,o,a).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 Yf(function(t){var n=t.password,r=t.accountCode,o=t.otp,a=t.mfaToken;return Uh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})},exports.useGetCustomizedApiKeys=function(e){return Qf(["fetch-customized-api-keys",e],function(){return Uh.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 Qf(["fetch-customized-api-keys-accounts"],function(){return Uh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Qf(["fetch-customized-api-keys-members"],function(){return Uh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Qf(["fetch-customized-api-keys-products"],function(){return Uh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Yf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return Uh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),Qf(["reports/".concat(e)],function(){return Uh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Yf(function(){return Uh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})},exports.useGetHashPylon=function(){var t=this;return Qf(["fetch-hash-pylon"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetHiddenFields=function(t){var n=this,r=t.scope,o=t.enabled;return Qf(["hidden-fields",r],function(){return e.__awaiter(n,void 0,void 0,function(){var t,n;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getHiddenFields({scope:r})];case 1:return t=e.sent(),[2,null!==(n=null==t?void 0:t.data)&&void 0!==n?n:[]]}})})},{enabled:!!r&&(void 0===o||o),staleTime:3e5,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Qf(["fetch-impersonation-enabled"],function(){return Uh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Qf(["fetch-impersonation-users"],function(){return Uh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetInsightsReport=function(e){return Qf(["get-insights-reports",e],function(){return Uh.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 Qf(["get-insights-reports-again",e],function(){return Uh.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.useGetInstallmentsPlans=function(e,t,n){return void 0===t&&(t=!0),Qf(["installments-plans",e,n],function(){return Uh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,r=tg();return Qf(["organizations-account-integrations",t,n],function(){return Uh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Qf(["integration-params",t,r],function(){return t.includes("undefined")?{}:Uh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})},exports.useGetLanguages=function(){return Qf(["languages"],function(){return Uh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})},exports.useGetLoginMethods=function(){return Qf({queryKey:["get-login-methods"],queryFn:function(){return Uh.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 Qf(["mfa-config",n],function(){return Uh.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 Qf(["mfa-excluded-users",n],function(){return Uh.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 Qf(["mfa-enforcement-status",e.accountCode],function(){return Uh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})},exports.useGetMergedNotifications=function(){return Qf(["notifications-merged"],function(){return Uh.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,r=e.type;return Qf(pg({paymentMethodType:n,type:r}),function(){return Uh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetNetworkTokensOnboardingByOrganization=function(t){var n=this;return Qf({queryKey:["network-tokens-onboarding",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}})})},enabled:!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetNotificationsCustomer=function(e){return Qf(["notifications-customer",e],function(){return Uh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumberMutation=function(){return Yf(function(e){return Uh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetOnboardingDetail=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-onboarding-detail",t,n.recipient_id,n.onboarding_id],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getOnboardingDetail(t,n.recipient_id,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&!!n.onboarding_id&&r,cacheTime:500,useErrorBoundary:!1})},exports.useGetOnboardingStatus=function(e){var t=e.accountCode,n=e.enabled;return Qf(["onboarding-status",t],function(){return Uh.getInstance().getOnboardingStatus(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.useGetOnboardingTimeline=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-onboarding-timeline",t,n.onboarding_id],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getOnboardingTimeline(t,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.onboarding_id&&r,cacheTime:500,useErrorBoundary:!1})},exports.useGetOrgPermissionsCatalog=function(){return Qf(["fetch-org-permissions-catalog"],function(){return Uh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetOrgRolesPermissions=function(){return Qf(["fetch-org-roles-permissions"],function(){return Uh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetOrganization=function(){return Qf(["fetch-organizations"],function(){return Uh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetOrganizationConfigs=function(){return Qf({queryKey:["organization-configs"],queryFn:function(){return Uh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})},exports.useGetOrganizationKeysMetadata=function(){return Yf(function(){return Uh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Qf(["payment-filters",e,t],function(){return Uh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Qf(["payment-link"],function(){return Uh.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 Qf(["fetch-payment-links",e,t],function(){return Uh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodAccounts=function(t,n){var r=t.paymentMethod,o=t.organizationCode;return Qf(fg({paymentMethod:r,organizationCode:o}),function(){return Uh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},e.__assign({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))},exports.useGetPaymentMethodsAndProviders=function(){return Qf({queryKey:["/payment-methods/providers"],queryFn:function(){return Uh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Qf(["payment-metrics-filters"],function(){return Uh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Qf(["payment-transaction-details",t],function(){return Uh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetPaymentV2=function(t){var n=this,r=t.paymentCode,o=t.enabled,a=void 0===o||o,i=Uh.getInstance();return Qf(["get-payment-v2",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getPaymentV2(r).then(function(e){return e.data})]})})},{enabled:a,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=tg();return Qf(["payment-methods",e],function(){return Uh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})},exports.useGetPayoutDetail=function(e){return Qf(["GET/payout-detail",JSON.stringify(e)],function(){var t=Uh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useGetPayoutHistoryDetail=function(e){var t=tg();return Qf(["GET/payout-history-detail",JSON.stringify(e)],function(){return Uh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useGetPayoutTimeline=function(t,n){var r=this;void 0===n&&(n=!0);var o=tg();return Qf(["getPayoutTimeline",t,o],function(){return e.__awaiter(r,void 0,void 0,function(){var n;return e.__generator(this,function(e){return n=Uh.getInstance(),t?[2,n.getPayoutTimeline(t,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:n&&!!t&&!!o,cacheTime:500,useErrorBoundary:!1})},exports.useGetPayoutTransactionDetail=function(e){return Qf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Uh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})},exports.useGetPendingDuplicateAccounts=function(e){return Qf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Uh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})},exports.useGetPermissions=function(e,t){return Qf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.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 Qf(["fetch-permissions-catalog"],function(){return Uh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useGetProfile=ig,exports.useGetProofOfCancel=function(t,n){var r=this,o=tg();return Qf(["GET/useGetProofOfCancel",o,t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getProofOfCancel(t,o,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!o&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var r=this,o=tg();return Qf(["GET/useGetProofOfPayment",o,t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getProofOfPayment(t,o,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!o&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=tg();return Qf(["organizations-provider-params",e],function(e){var n=e.queryKey;return Uh.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.useGetRecipientById=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipient-by-id",t,n.recipient_id],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipientById(t,n.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&r,cacheTime:500,useErrorBoundary:!1})},exports.useGetRecipientExportDownload=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipient-export-download",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetRecipientExports=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipient-exports",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipientExports(n,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetRecipients=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipients",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipients(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetRecipientsV2=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipients-v2",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipientsV2(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Qf(["GET/v1/reconciliation/active"],function(){return Uh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/agenda/insights",t,n],function(){return Uh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Qf(["GET-reconciliation-filters"],function(){return Uh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-amount-conflict-list",t],function(){return Uh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountToBeSettledSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return Uh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflict-date-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflict-date-list",t],function(){return Uh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflict-date-summary",t],function(){return Uh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictsSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflicts-summary",t],function(){return Uh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsFeesChargedSummary=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-fees-charged-summary",t,n],function(){return Uh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesAggregators=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return Uh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesList=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return Uh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesSummary=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return Uh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-confirm-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-confirm-list",t],function(){return Uh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-confirm-summary",t],function(){return Uh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-reconciled-list",t],function(){return Uh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledAggregators=function(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Qf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return Uh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledList=function(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Qf(["reconciliation-insights-reconciled-list",t,n,r],function(){return Uh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledSummary=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-reconciled-summary",t,n],function(){return Uh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByAccount=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return Uh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByCurrency=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return Uh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByProvider=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return Uh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsSettlementLookup=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-settlement-lookup",t],function(){return Uh.getInstance().getReconciliationInsightsSettlementLookup(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-status-conflict-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-status-conflict-list",t],function(){return Uh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Qf(["fetch-reconciliation-metrics",e],function(){return Uh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactions=function(e,t){return Qf(["fetch-reconciliation-transaction",e],function(){return Uh.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 Qf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Uh.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 Qf(["GET/reconciliation/reports/templates"],function(){return Uh.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,n){var r=this,o=tg();return Qf(["getRefundPdf",t,o,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRefundPdf(t,o,n).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,r){var o=this;return Qf(["GET/reports/columns/".concat(n,"/").concat(r)],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(t){return[2,Uh.getInstance().getReportColumns(n,r).then(function(t){return n===exports.TemplateType.ALL&&r===exports.ReportType.PAYMENTS?e.__spreadArray(e.__spreadArray([],(null==t?void 0:t.data)||[],!0),[gg],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Qf(["GET/reports/templates"],function(){return Uh.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 Qf(["reports"],function(){return Uh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Qf(["reports-multi-env"],function(){return Uh.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,r=e.type;return Qf(hg({paymentMethodType:n,type:r}),function(){return Uh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetRoles=function(){return Qf(["fetch-roles"],function(){return Uh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetRolesForImpersonation=function(t){var n=this;return Qf({queryKey:["roles-for-impersonation",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRolesForImpersonation(t).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetRolesPermissions=function(){return Qf(["fetch-rolespermissions"],function(){return Uh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetRoutingMonitorsTemplate=function(e,t){return Qf(["fetch-routing-monitors-template",e],function(){return Uh.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 Qf(["fetch-routing-monitors-templates",e],function(){return Uh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Yf(function(e){return Uh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetSamlConfig=function(e){return Qf(["fetch-organization-saml-config",e],function(){return Uh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return Qf(["GET/scheduled-reports",e],function(){return Uh.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 Qf(["fetch-reconciliation-settlements",e],function(){return Uh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return Qf(["smart-routing-condition-payment-method",e,t],function(){return Uh.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,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-condition-types",e,t,n],function(){return Uh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Qf(["smart-routing-condition-types-values",t,e],function(){return Uh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Qf(["data-report",e],function(){return Uh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-decline-groups",e,t],function(){return Uh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-methods",e,t],function(){return Uh.getInstance().getSmartRoutingMethods(e,t).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,r){return void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-next-route",e,n,t,r],function(){return Uh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingPaymentRoute=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-payment-route",e,t,n],function(){return Uh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Qf(["smart-routing-search-condition-values",t,n],function(){return Uh.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,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-simulate-condition-type-values",e,t],function(){return Uh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-workflow",t,e,n],function(){return Uh.getInstance().getSmartRoutingWorkflow(e,t,n).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,r=e.routingType,o=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return Qf(["smart-routing-workflow-version",n,t,o],function(){return Uh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSdkDynamic=function(e){var t=e.accountCode;return Qf(["styling-sdk-dynamic",t],function(){return Uh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingSettingsV2=function(e){var t=e.accountCode;return Qf(["styling-settings-v2",t],function(){return Uh.getInstance().getStylingSettingsV2({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.useGetSubscriptionByCode=function(e,t){return void 0===t&&(t=!0),Qf(["subscription",e],function(){return Uh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})},exports.useGetSubscriptionPayments=function(e,t,n,r){return void 0===r&&(r=!0),Qf(["subscription-payments",e,t,n],function(){return Uh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})},exports.useGetTeamsFiltersMembers=function(){var e=tg();return Qf(["teams-filters-members"],function(){return Uh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetTokenValidation=function(){return Yf(function(e){var t=e.password,n=e.otp;return Uh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useGetTransactionDetailsV2=function(t){var n=this,r=t.payment_code,o=t.enabled,a=void 0===o||o,i=Uh.getInstance();return Qf(["get-payment-transaction-details-v2",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionDetailsV2({payment_code:r}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!r&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Qf(["transaction-history",t],function(){return Uh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,r=t.transaction_code,o=t.enabled,a=void 0===o||o,i=Uh.getInstance();return Qf(["get-payment-transaction-raw-response",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionRawResponse({transaction_code:r})]})})},{enabled:!!r&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Qf(["translations",e],function(){return Uh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUnifiedExportStatus=function(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Qf(["unified-export-status",t,n],function(){return Uh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})},exports.useGetUnifiedExportsList=function(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Qf(["unified-exports-list",t,r,a],function(){return Uh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})},exports.useGetUserExportStatus=function(e){var t=e.exportCode,n=e.enabled;return Qf(["user-export-status",t],function(){return Uh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})},exports.useGetUserFull=function(){var t=this;return Qf(["get-user-full"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,r,o,a,i){var s=this;return void 0===r&&(r=1),void 0===o&&(o=10),Qf(["get-users-to-impersonate",t,n,r,o,a,i],function(){return e.__awaiter(s,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getUsersToImpersonate(t,n,r,o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetValidateOpsgenieKey=function(e){return Qf(["validate-opsgenie-key",e],function(){return Uh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})},exports.useGetWebhookParamsV2=function(){return Qf(["params-catalog"],function(){return Uh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})},exports.useGetWebhookTimeline=function(t){var n=this,r=t.paymentCode,o=t.enabled;return Qf({queryKey:["webhook-timeline",r],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getWebhookTimeline(r).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===o||o)&&!!r,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Qf(["webhooks-detail",t],function(){return Uh.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 Qf(["webhooks",t,n],function(){return Uh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})},exports.useGetWorkOsMfaStatus=function(e){return Qf(["workos-mfa-status"],function(){return Uh.getInstance().getWorkOsMfaStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:e.enabled})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksTotalRateAndEvolution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksTotalRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetricsV2=function(e,t,n,r){return void 0===n&&(n=!0),Qf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Uh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})},exports.useInsightsFallbackMetrics=function(e){return Qf(["get-insights-conversion-rate-fallback-metrics",e],function(){return Uh.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,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return Qf(["get-insights-home-metrics",e],function(){return Uh.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.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Qf(["get-insights-overview-v3",e,t],function(){return Uh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Qf(["get-insights-volume-metrics-v2",t,e,n],function(){return Uh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsersMultiaccountMassive=function(){return Yf(function(e){return Uh.getInstance().inviteUsersMassive(e,e.organizationCode)})},exports.useInviteUsersMultiaccountMassiveV2=function(){return Yf(function(e){return Uh.getInstance().inviteUsersMassiveV2(e)})},exports.useIsTesting=Xf,exports.useListAuditSubscriptions=function(e){return void 0===e&&(e={}),Qf(["audit-subscriptions",e],function(){return Uh.getInstance().listAuditSubscriptions(e).then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.data)||[]})},{cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})},exports.useListSubscriptions=function(){return Yf(["post-list-subscriptions"],function(e){return Uh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})},exports.useListUserExports=function(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Qf(["user-exports-list",n,o],function(){return Uh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})},exports.useLocalStorage=eg,exports.useLoginMethods=function(){return Yf(function(e){return Uh.getInstance().changeLoginMethods(e)})},exports.useNetworkTokensOnboarding=function(){var t=this;return Qf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Yf(["new-post-connection-validate"],function(){return Uh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useOrganizationCode=tg,exports.usePatchAccountV2=function(){return Yf(function(e){var t=e.name,n=e.code,r=e.principal;return Uh.getInstance().patchAccountV2({name:t,code:n,principal:r})})},exports.usePatchAddAllowlistItems=function(){return Yf(["post-add-allowlist-items"],function(e){var t=e.payload;return Uh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAllowedIps=function(){return Yf(["developers-patch-allowed-ips"],function(t){return Uh.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 Yf(["patch-allowlist"],function(e){var t=e.payload;return Uh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAndExecuteChart=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["chartgpt-patch-and-execute",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){var r,o,a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return[4,(r=Uh.getInstance()).patchChartGPTChart(t,n)];case 1:return o=e.sent(),a=null==o?void 0:o.data,[4,r.executeChartGPTChart(t)];case 2:return i=e.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:r&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Yf(function(e){var t=e.payload,n=e.code,r=e.password;return Uh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlist=function(){return Yf(["patch-change-status-allowlist"],function(e){var t=e.payload;return Uh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlistItem=function(){return Yf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Uh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChartName=function(){return Yf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return Uh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Yf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Uh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.usePatchOrganizationKeysNote=function(){return Yf(function(e){var t=e.note,n=e.password;return Uh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePathCreateCustomizedApiKeys=function(){return Yf(function(e){var t=e.payload,n=e.code;return Uh.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 Yf(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,Uh.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})})},exports.usePauseSubscription=function(){return Yf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var r=tg();return Qf(["getPayoutsFilters",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getPayoutsFilters(r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:t&&!!r})},exports.usePayoutsList=function(e){return Qf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Uh.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 Yf(function(e){var t=e.name,n=e.principal;return Uh.getInstance().postAccount(t,n)})},exports.usePostAllowlistMultiAccount=function(e,t){return void 0===t&&(t=!0),Qf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Uh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Yf(function(e){var t=e.payload,n=e.code,r=e.password;return Uh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePostApiLogs=function(e){return Qf(["api-logs",e],function(){return Uh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostAuditMonitors=function(e){return Yf(function(e){var t=e.payload;return Uh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.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 Yf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file,a=e.accountCode;return Uh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t,accountCode:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListItems=function(){return Yf(["post-blacklist-items"],function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postBlackListItems({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListMultiAccount=function(){return Yf(["post-blacklist-multi-account"],function(e){var t=e.payload;return Uh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostBlockList=function(e,t,n,r){var o;return Qf(["post-black-list",e],function(){return Uh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Yf(function(e){return Uh.getInstance().postCall(e)})},exports.usePostChangeStatusConnection=function(){return Yf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Yf(["post-connection"],function(e){var t=e.payload;return Uh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.usePostCreateAllowlistMultiAccount=function(){return Yf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Uh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateCustomizedApiKeys=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateInsightsReport=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateRuleMultiAccount=function(){return Yf(function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCredentialsValidatePassword=function(){return Yf(function(e){var t=e.passwordOtp;return Uh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostCredentialsValidatePasswordRegularUser=function(){return Yf(function(e){var t=e.password;return Uh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostCredentialsWithOtpMfa=function(){return Yf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return Uh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostDefaultRoutes=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostEditRule=function(){return Yf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return Uh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostFraudTransactions=function(t){var n=this;return Qf(["POST/fraud-transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().postFraudTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostGetAllowlistItems=function(){return Yf(["post-get-allowlist-items"],function(e){var t=e.payload;return Uh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostGetAllowlistMultiAccount=function(){return Yf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Uh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostIntegrationRequest=function(){return Yf(["post-integration-request"],function(e){var t=e.payload;return Uh.getInstance().postIntegrationRequest({payload:t}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=tg();return Qf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return Uh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Yf(function(n){var r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().postNetworkTokensOnboarding(r)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})},exports.usePostOrganizationConfigs=function(){return Yf(function(e){return Uh.getInstance().postOrganizationConfigs(e)})},exports.usePostOrganizationKeysMarkRevealed=function(){return Yf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Uh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysRoll=function(){return Yf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Uh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysTamRequest=function(){return Yf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Uh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostPaymentsEvaluated=function(e){return Qf(["fetch-payments-evaluated",e],function(){return Uh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPaymentsLazy=function(t){var n=this;return Qf(["fetch-payments-lazy",t],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().postPaymentsLazy(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPlaygroundExecuteFlow=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postPlaygroundExecuteFlow(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostSlackFeatureNotification=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postSlackFeatureNotification(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostTransactions=function(t){var n=this;return Qf(["POST/transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().postTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=ag,exports.usePostUserSettingsPinned=function(e){return Yf(["pinned-sections"],function(e){var t=e.payload;return Uh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Yf(function(e){var t=e.payload,n=e.section;return Uh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(t){var n=og.getQueryData(["fetch-profile"]);t.data&&og.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Yf(function(e){return Uh.getInstance().postUserThemeSettings(e)})},exports.usePostValideStatusConnection=function(){return Yf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Uh.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 Qf(["velocity-rules",e],function(){var t=Uh.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.usePostWebhookLogs=function(e){var t=e.params;return Qf(["webhook-logs",t],function(){return Uh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostWebhookMultiAccount=function(e){return Yf(function(e){var t=e.payload;return Uh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Qf(["smart-routing-conversion-rates"],function(){return Uh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})},exports.useProviderRawResponse=function(){return Yf(function(e){var t=e.transactionCode,n=e.payload;return Uh.getInstance().postProviderRawResponse(t,n)})},exports.usePublishCheckout=function(n){var r=ng(),o=t.useRef(r);return o.current=r,Yf(function(t){return Uh.getInstance().publishCheckout(e.__assign(e.__assign({},t),{accountCode:o.current}))},n)},exports.usePublishVersion=function(t,n){var r=this,o=t.versionCode,a=t.accountCode,i=t.organizationCode,s=t.routingType,c=void 0===s?exports.SmartRouting.DEFAULT_ROUTING_TYPE:s;return void 0===n&&(n=null),Yf(function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().postSmartRoutingPublishVersion(a,o,i,c).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},n)},exports.usePutAccountPrincipal=function(){return Yf(function(e){var t=e.account_code;return Uh.getInstance().putAccountPrincipal({account_code:t})})},exports.usePutAccountsUserMassive=function(){return Yf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Uh.getInstance().putAccountsUserMassive(t,n,r)})},exports.usePutBlackListType=function(){return Yf(["put-blacklist"],function(e){return Uh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePutCosts=function(){return Yf(function(e){return Uh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.usePutOrganizationConfigsByAccount=function(){return Yf(function(e){return Uh.getInstance().putOrganizationConfigsByAccount(e)})},exports.useRecoveredPaymentsByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-recovered-payments-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-payments-by-day",r)];case 1:return o=e.sent(),[2,Ig(o.data,r.start_date,r.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRecoveredTPVByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-recovered-tpv-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-tpv-by-day",r)];case 1:return o=e.sent(),[2,Rg(o.data,r.start_date,r.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRescheduleSubscription=function(){return Yf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useResendWebhooks=function(){return Yf(function(e){var t=e.codes;return Uh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})},exports.useResumeSubscription=function(){return Yf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useRetryDuplicateAccount=function(){return Yf(function(e){return Uh.getInstance().retryDuplicateAccount(e)})},exports.useSaveVersion=function(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)},exports.useSearchInstallmentsPlans=function(e,t){return void 0===t&&(t=!0),Qf(["search-installments-plans",JSON.stringify(e)],function(){return Uh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})},exports.useSearchScheduleById=function(t,n,r){var o=this;return Qf(["POST/template-reporting/schedule-by-id/search",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportScheduleById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:r&&!!t,useErrorBoundary:!1})},exports.useSearchSchedules=function(t,n){var r=this;return Qf(["POST/template-reporting/schedules/search",t],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportSchedules(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSearchTemplateById=function(t,n,r){var o=this;return Qf(["POST/template-reporting/template-by-id/search",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportTemplateById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:r&&!!t,useErrorBoundary:!1})},exports.useSearchTemplates=function(t,n){var r=this;return Qf(["POST/template-reporting/templates/search",t],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportTemplates(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSendPaymentNotification=function(t,n,r){var o=this,a=Uh.getInstance();return Qf(["send-payment-notification",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){var o,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.sendPaymentNotification(t,n)];case 1:return o=e.sent(),r.onSuccess(),[2,o.data];case 2:throw i=e.sent(),r.onError(),i;case 3:return[2]}})})},{enabled:r.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Yf(function(){return Uh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Yf(function(e){return void 0===e&&(e=null),Uh.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,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Yf(function(e){var n=e.payload;return Uh.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={}),Yf(function(e){var n=e.declinedGroupCode;return Uh.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,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(e){return Uh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(e){return void 0===e&&(e=!1),Uh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Yf(function(e){return void 0===e&&(e=null),Uh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),Yf(function(t){return Uh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)},exports.useStartUserExport=function(){return Yf(function(e){return Uh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useSubmitChartFeedback=function(e,t){var n=e.chartCode,r=Gf();return Yf(function(e){return Uh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})},exports.useTableOnboarding=function(n,r,o){var a,i,s=ig(),c=ag().mutate,u=s.data,l=s.isLoading||!s.isFetched,d=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],p="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),h=d.includes(p),f=t.useCallback(function(){var t=null;og.setQueryData(sg,function(n){var r,o,a;if(!n)return n;var i=null!==(o=null===(r=n.settings)||void 0===r?void 0:r.viewed_tutorials)&&void 0!==o?o:[];if(i.includes(p))return n;var s=e.__spreadArray(e.__spreadArray([],i,!0),[p],!1);return t=s,e.__assign(e.__assign({},n),{settings:e.__assign(e.__assign({},null!==(a=n.settings)&&void 0!==a?a:{}),{viewed_tutorials:s})})}),t&&c({payload:{viewed_tutorials:t}})},[p,c]);return{hasSeenOnboarding:h,dismiss:f,id:p,isProfileLoading:l}},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)},exports.useUnInviteUsersV2=function(){return Yf(function(e){var t=e.userCode,n=e.organizationCode;return Uh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})},exports.useUnblockOnboarding=function(){var e=Gf();return Yf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Uh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useUnifiedExportStart=function(){return Yf(function(e){var t=e.tab,n=e.payload;return Uh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUnrollUserV2=function(){return Yf(function(e){return Uh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateCertificateAccounts=function(){var e=Gf();return Yf(["update-certificate-accounts"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.payload;return Uh.getInstance().updateCertificateAccounts(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useUpdateInstallmentsPlan=function(){return Yf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return Uh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateIsActiveCheckout=function(n){var r=ng(),o=t.useRef(r);return o.current=r,Yf(function(t){return Uh.getInstance().updateIsActiveCheckout(e.__assign(e.__assign({},t),{accountCode:o.current}))},n)},exports.useUpdateMFAConfig=function(){return Yf(function(e){var t=e.payload,n=e.organizationCode;return Uh.getInstance().updateMFAConfig(t,n)})},exports.useUpdateOnboarding=function(){var e=Gf();return Yf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return Uh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useUpdateOrganizationStatus=function(){return Yf(["patch-organizations"],function(){return Uh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})},exports.useUpdateProfile=function(e){return Yf(function(e){return Uh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateRecipient=function(){var e=Gf();return Yf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Uh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useUpdateReconciliationAlert=function(){return Yf(["UPDATE/reconciliation/alerts"],function(e){return Uh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Yf(function(){return Uh.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 Yf(function(){return Uh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateSamlConfig=function(){return Yf(function(e){return Uh.getInstance().updateSamlConfig(e)})},exports.useUpdateScheduledReport=function(){return Yf(function(e){var t=e.reportCode,n=e.payload;return Uh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useUpdateSubscription=function(){return Yf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return Uh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateTemplateSelection=function(){var t=this;return Yf(["PATCH/template-reporting/report-templates/selection"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().updateTemplateSelection(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Yf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return Uh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var n=e.fileName,r=e.onSuccess,o=e.onError,a=t.useState(0),i=a[0],s=a[1],c=t.useRef({cancel:function(){return null}}),u=Yf(["upload-file-chargeback",n],function(e){var t=Uh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),n=t.promise,a=t.cancel;return c.current.cancel=a,n.then(function(e){return null==r||r(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==o||o(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:c.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Yf(function(e){return Uh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=t.useRef({cancel:function(){return null}}),n=Yf(["upload-file"],function(t){var n=Uh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:n,cancelRequest:e.current.cancel}},exports.useUploadPaymentLinkLogo=function(){return Yf(["upload-payment-link-logo"],function(e){var t=e.payload;return Uh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.useValiateAllowlistItems=function(){return Yf(["validate-allowlist-items"],function(e){return Uh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})},exports.useValidateBlockListItems=function(){return Yf(["valiate-blacklist-items"],function(e){return Uh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useValidateCredentials=function(){return Yf(function(e){return Uh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useValidatePasswordStatus=function(){return Yf(function(){return Uh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})},exports.useViewMoreMetrics=function(e,t){return Qf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Uh.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})},exports.useWorkosAdminPortal=function(){var t=this;return Yf(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosDomainStatus=function(){var t=this;return Qf(["workos-domain-status"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosDomainVerificationPortal=function(){var t=this;return Yf(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosPasswordReset=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosPasswordReset(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosSsoConfigStatus=function(){var t=this;return Qf(["workos-sso-config-status"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosSsoConfigStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosVerifyMfa=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosVerifyMfa(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})};
|
|
67
|
+
const Dg=7,Lg=6,jg=5,zg=4,Ng=3,qg=2,Ug=1,Bg=0;function Mg(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:Ug,!n.accessors){const r=Fg(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=Hg(o),i=Vg(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:Bg,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=Fg(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=Ug?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function Fg(e,t,n){return e=Gg(e,n),(t=Gg(t,n)).length>e.length?Bg:e===t?Dg:(e=e.toLowerCase())===(t=t.toLowerCase())?Lg:e.startsWith(t)?jg:e.includes(` ${t}`)?zg:e.includes(t)?Ng:1===t.length?Bg:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?qg:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return Ug+o*r}const i=o(t[0],e,0);if(i<0)return Bg;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return Bg}const s=r-i;return a(s)}(e,t)}function Gg(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Pg,e=>Ag[e])),e}function Vg(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const Wg={maxRanking:1/0,minRanking:-1/0};function Hg(e){return"function"==typeof e?Wg:{...Wg,...e}}function Kg(e,t){const[n,r]=o.useState();o.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,o.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var $g,Qg=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}(),Yg=function(){function e(e){this.generateIdentifier=e,this.kv=new Qg}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}(),Jg=($g=function(e,t){return $g=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])},$g(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}$g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zg=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return Jg(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}(Yg),Xg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function em(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 r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function tm(e,t){Object.entries(e).forEach(function(e){var n=Xg(e,2),r=n[0],o=n[1];return t(o,r)})}function nm(e,t){return-1!==e.indexOf(t)}function rm(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var om=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return em(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),am=function(e){return void 0===e},im=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},sm=function(e){return im(e)&&0===Object.keys(e).length},cm=function(e){return Array.isArray(e)},um=function(e){return e instanceof Map},lm=function(e){return e instanceof Set},dm=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},pm=function(e){return"number"==typeof e&&isNaN(e)},hm=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||am(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||dm(e)},fm=function(e){return e.replace(/\./g,"\\.")},gm=function(e){return e.map(String).map(fm).join(".")},mm=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},ym=function(){return ym=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ym.apply(this,arguments)},vm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},bm=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function _m(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var km=[_m(am,"undefined",function(){return null},function(){}),_m(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)}),_m(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),_m(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}),_m(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)}),_m(lm,"set",function(e){return bm([],vm(e.values()))},function(e){return new Set(e)}),_m(um,"map",function(e){return bm([],vm(e.entries()))},function(e){return new Map(e)}),_m(function(e){return pm(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return pm(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),_m(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),_m(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function wm(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var xm=wm(function(e,t){return!!dm(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Em=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Sm=wm(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return bm([],vm(e))},function(e,t){var n=Em[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Cm(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Rm=wm(Cm,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return ym({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),Im=wm(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 r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Tm=[Rm,xm,Im,Sm],Am=function(e,t){var n=rm(Tm,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=rm(km,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},Om={};km.forEach(function(e){Om[e.annotation]=e});var Pm=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Dm(e){if(nm(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(nm(e,"prototype"))throw new Error("prototype is not allowed as a property");if(nm(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Lm=function(e,t,n){if(Dm(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(cm(r))r=r[+a];else if(im(r))r=r[a];else if(lm(r)){r=Pm(r,i=+a)}else if(um(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=Pm(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(cm(r)?r[+u]=n(r[+u]):im(r)&&(r[u]=n(r[u])),lm(r)){var l=Pm(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(um(r)){i=+t[t.length-2];var p=Pm(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},jm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},zm=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Nm(e,t,n){if(void 0===n&&(n=[]),e)if(cm(e)){var r=jm(e,2),o=r[0],a=r[1];a&&tm(a,function(e,r){Nm(e,t,zm(zm([],jm(n)),jm(mm(r))))}),t(o,n)}else tm(e,function(e,r){return Nm(e,t,zm(zm([],jm(n)),jm(mm(r))))})}function qm(e,t,n){return Nm(t,function(t,r){e=Lm(e,r,function(e){return function(e,t,n){if(!cm(t)){var r=Om[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return xm.untransform(e,t,n);case"class":return Rm.untransform(e,t,n);case"custom":return Im.untransform(e,t,n);case"typed-array":return Sm.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Um(e,t){function n(t,n){var r=function(e,t){Dm(t);for(var n=0;n<t.length;n++){var r=t[n];if(lm(e))e=Pm(e,+r);else if(um(e)){var o=+r,a=0===+t[++n]?"key":"value",i=Pm(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,mm(n));t.map(mm).forEach(function(t){e=Lm(e,t,function(){return r})})}if(cm(t)){var r=jm(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Lm(e,mm(t),function(){return e})}),a&&tm(a,n)}else tm(t,n);return e}var Bm=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=hm(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return im(e)||cm(e)||um(e)||lm(e)||Cm(e,t)}(e,n)){var l=Am(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(nm(a,e))return{transformedValue:null};var p=Am(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=cm(h)?[]:{},g={};tm(h,function(s,c){var u=Bm(s,t,n,r,zm(zm([],jm(o)),[c]),zm(zm([],jm(a)),[e]),i);f[c]=u.transformedValue,cm(u.annotations)?g[c]=u.annotations:im(u.annotations)&&tm(u.annotations,function(e,t){g[fm(c)+"."+t]=e})});var m=sm(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return c||i.set(e,m),m};function Mm(e){return Object.prototype.toString.call(e).slice(8,-1)}function Fm(e){return"Array"===Mm(e)}function Gm(e,t={}){if(Fm(e))return e.map(e=>Gm(e,t));if(!function(e){if("Object"!==Mm(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,r)=>{if(Fm(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,Gm(e[r],t),e,t.nonenumerable),n},{})}var Vm=function(){return Vm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vm.apply(this,arguments)},Wm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Hm=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Km=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Zg,this.symbolRegistry=new Yg(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new om,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Bm(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=Vm(Vm({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=jm(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(gm):i[gm(n)]=r.map(gm)}}),s?sm(i)?[s]:[s,i]:sm(i)?void 0:i);return c&&(r.meta=Vm(Vm({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=Gm(t);return(null==n?void 0:n.values)&&(r=qm(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=Um(r,n.referentialEqualities)),r},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(Vm({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,Hm([],Wm(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 $m={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Qm=o.createContext($m);function Ym({theme:e,...t}){return o.createElement(Qm.Provider,Tg({value:e},t))}function Jm({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function Zm(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Xm(e,t,n={}){return o.forwardRef(({style:r,...a},i)=>{const s=o.useContext(Qm),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=o.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return o.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e,{});return o.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...r,...c},ref:i})})}const ey=(e,t=!1)=>{const{json:n}=Km.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ty=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,ny=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,ry={"Status > Last Updated":(e,t)=>ty(e)===ty(t)?ny(e,t):ty(e)>ty(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":ny},oy=500,ay={top:"bottom",bottom:"top",left:"right",right:"left"};function iy(e){return["left","right"].includes(e)}function sy(e){return ay[e]}function cy(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function uy(e="bottom"){const t=iy(e),n=sy(e),r=cy("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const ly=Xm("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"}}),dy=Xm("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),py=Xm("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"})),hy=Xm("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),fy=Xm("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),gy=Xm("code",{fontSize:".9em",color:"inherit",background:"inherit"}),my=Xm("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),yy=Xm("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 vy({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const by=Xm("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),_y=Xm("span",{color:"white"}),ky=Xm("button",{cursor:"pointer",color:"white"}),wy=Xm("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),xy=({value:e})=>{const[t,n]=o.useState("NoCopy");return o.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Km.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?o.createElement(Iy,null):"SuccessCopy"===t?o.createElement(Ay,null):o.createElement(Ty,null))},Ey=Xm("span",(e,t)=>({color:t.danger})),Sy=Xm("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Cy=Xm("span",{color:"grey",fontSize:".7em"}),Ry=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Iy=()=>o.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},o.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"}),o.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"}))),Ty=()=>o.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},o.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"})),o.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Ay=()=>o.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},o.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},o.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 Oy=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=o.useState([]);return o.createElement(by,{key:t},a.length?o.createElement(o.Fragment,null,o.createElement(wy,{onClick:()=>u()},o.createElement(Ry,{expanded:s})," ",t," ",o.createElement(Cy,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?o.createElement(xy,{value:n}):null,s?1===a.length?o.createElement(Sy,null,r.map(e)):o.createElement(Sy,null,a.map((t,n)=>o.createElement("div",{key:n},o.createElement(by,null,o.createElement(ky,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},o.createElement(Ry,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?o.createElement(Sy,null,t.map(e)):null)))):null):o.createElement(o.Fragment,null,o.createElement(_y,null,t,":")," ",o.createElement(Ey,null,ey(n))))};function Py({value:e,defaultExpanded:t,renderer:n=Oy,pageSize:r=100,copyable:a=!1,...i}){const[s,c]=o.useState(Boolean(t)),u=o.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>o.createElement(Py,Tg({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:a,toggleExpanded:u,pageSize:r,...i})}function Dy(e){return o.createElement("svg",Tg({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),o.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-33.000000, 0.000000)"},o.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) "}),o.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"}),o.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 Ly=(e,t,n=!1)=>qf.useSyncExternalStore(o.useCallback(t=>n?()=>{}:e.subscribe(vf.batchCalls(t)),[e,n]),t,t),jy=o.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:a,context:i,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Gf({context:i}),y=m.getQueryCache(),[v,b]=Kg("reactQueryDevtoolsSortFn",Object.keys(ry)[0]),[_,k]=Kg("reactQueryDevtoolsFilter",""),[w,x]=Kg("reactQueryDevtoolsBaseSort",1),E=o.useMemo(()=>ry[v],[v]),S=Ly(y,()=>y.getAll().length,!n),[C,R]=Kg("reactQueryDevtoolsActiveQueryHash",""),I=o.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=_?e.filter(e=>Mg(e.queryHash,_).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,_,S,y]),[T,A]=o.useState(!1);return o.createElement(Ym,{theme:$m},o.createElement(ly,Tg({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:oy,position:"relative",...h.style}}),o.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+$m.backgroundAlt+" "+$m.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: "+$m.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+$m.gray+";\n border-radius: .5em;\n border: 3px solid "+$m.backgroundAlt+";\n }\n "}}),o.createElement("div",{style:uy(l),onMouseDown:s}),n&&o.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+$m.grayAlt,display:"flex",flexDirection:"column"}},o.createElement("div",{style:{padding:".5em",background:$m.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},o.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"}},o.createElement(Dy,{"aria-hidden":!0}),o.createElement(vy,{text:"Close React Query Devtools"})),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},o.createElement(Ny,{queryCache:y}),l&&c?o.createElement(yy,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},o.createElement("option",{value:"left"},"Left"),o.createElement("option",{value:"right"},"Right"),o.createElement("option",{value:"top"},"Top"),o.createElement("option",{value:"bottom"},"Bottom")):null),o.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},o.createElement(my,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=_?_:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),o.createElement(yy,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(ry).map(e=>o.createElement("option",{key:e,value:e},"Sort by ",e))),o.createElement(py,{type:"button",onClick:()=>x(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),o.createElement(py,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),o.createElement(py,{type:"button",onClick:()=>{T?(df.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(df.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"}},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?$m.danger:"currentColor",fill:"none"},T?o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.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"}),o.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"}),o.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),o.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),o.createElement(vy,{text:T?"Restore offline mock":"Mock offline behavior"}))))),o.createElement("div",{style:{overflowY:"auto",flex:"1"}},I.map(e=>o.createElement(qy,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:R,key:e.queryHash,queryCache:y})))),C&&n?o.createElement(zy,{activeQueryHash:C,queryCache:y,queryClient:m,errorTypes:p}):null,u?o.createElement(py,Tg({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{a(!1),null==f||f(e)}}),"Close"):null))}),zy=({queryCache:e,activeQueryHash:n,queryClient:r,errorTypes:a})=>{var i,s;const c=Ly(e,()=>e.getAll().find(e=>e.queryHash===n)),u=Ly(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.state}),l=null!=(i=Ly(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.isStale()}))&&i,d=null!=(s=Ly(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.getObserversCount()}))?s:0,p=t.useMemo(()=>{if(c&&null!=u&&u.error){const e=a.find(e=>{var t;return e.initializer(c).toString()===(null==(t=u.error)?void 0:t.toString())});return null==e?void 0:e.name}},[c,null==u?void 0:u.error,a]);if(!c||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(c))?t:new Error("Unknown error from devtools"),r=c.options;c.setState({status:"error",error:n,fetchMeta:{...c.state.fetchMeta,__previousQueryOptions:r}})};return o.createElement(dy,null,o.createElement("div",{style:{padding:".5em",background:$m.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),o.createElement("div",{style:{padding:".5em"}},o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},o.createElement(gy,{style:{lineHeight:"1.8em"}},o.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},ey(c.queryKey,!0))),o.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Jm({queryState:u,isStale:l,observerCount:d,theme:$m}),flexShrink:0}},Zm(c))),o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",o.createElement(gy,null,d)),o.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",o.createElement(gy,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),o.createElement("div",{style:{background:$m.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),o.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},o.createElement(py,{type:"button",onClick:()=>{const e=null==c?void 0:c.fetch();null==e||e.catch(Uy)},disabled:"fetching"===u.fetchStatus,style:{background:$m.active}},"Refetch")," ",o.createElement(py,{type:"button",onClick:()=>r.invalidateQueries(c),style:{background:$m.warning,color:$m.inputTextColor}},"Invalidate")," ",o.createElement(py,{type:"button",onClick:()=>r.resetQueries(c),style:{background:$m.gray}},"Reset")," ",o.createElement(py,{type:"button",onClick:()=>r.removeQueries(c),style:{background:$m.danger}},"Remove")," ",o.createElement(py,{type:"button",onClick:()=>{var e;if("fetching"!==c.state.fetchStatus||void 0!==(null==(e=c.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===c.state.data)c.fetch(c.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=c.options;c.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),c.setState({data:void 0,status:"loading",fetchMeta:{...c.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:$m.paused}},"loading"===c.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===c.state.status?o.createElement(py,{type:"button",onClick:()=>{c.state.error?r.resetQueries(c):h()},style:{background:$m.danger}},"error"===c.state.status?"Restore":"Trigger"," error"):o.createElement("label",null,"Trigger error:",o.createElement(yy,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);h(t)}},o.createElement("option",{key:"",value:""}),a.map(e=>o.createElement("option",{key:e.name,value:e.name},e.name))))),o.createElement("div",{style:{background:$m.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(Py,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),o.createElement("div",{style:{background:$m.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(Py,{label:"Query",value:c,defaultExpanded:{queryKey:!0}})))},Ny=({queryCache:e})=>{const t=Ly(e,()=>e.getAll().filter(e=>"fresh"===Zm(e)).length),n=Ly(e,()=>e.getAll().filter(e=>"fetching"===Zm(e)).length),r=Ly(e,()=>e.getAll().filter(e=>"paused"===Zm(e)).length),a=Ly(e,()=>e.getAll().filter(e=>"stale"===Zm(e)).length),i=Ly(e,()=>e.getAll().filter(e=>"inactive"===Zm(e)).length);return o.createElement(hy,null,o.createElement(fy,{style:{background:$m.success,opacity:t?1:.3}},"fresh ",o.createElement(gy,null,"(",t,")"))," ",o.createElement(fy,{style:{background:$m.active,opacity:n?1:.3}},"fetching ",o.createElement(gy,null,"(",n,")"))," ",o.createElement(fy,{style:{background:$m.paused,opacity:r?1:.3}},"paused ",o.createElement(gy,null,"(",r,")"))," ",o.createElement(fy,{style:{background:$m.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",o.createElement(gy,null,"(",a,")"))," ",o.createElement(fy,{style:{background:$m.gray,opacity:i?1:.3}},"inactive ",o.createElement(gy,null,"(",i,")")))},qy=o.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var a,i,s,c;const u=null!=(a=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?a:"",l=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(i=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&i,p=null!=(s=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=Ly(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?o.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+$m.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},o.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Jm({queryState:l,isStale:d,observerCount:h,theme:$m}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?o.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:$m.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,o.createElement(gy,{style:{padding:".5em"}},""+u)):null});function Uy(){}qy.displayName="QueryRow";const By="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:i="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=o.useRef(null),p=o.useRef(null),[h,f]=Kg("reactQueryDevtoolsOpen",e),[g,m]=Kg("reactQueryDevtoolsHeight",oy),[y,v]=Kg("reactQueryDevtoolsWidth",oy),[b="bottom",_]=Kg("reactQueryDevtoolsPanelPosition",u),[k,w]=o.useState(!1),[x,E]=o.useState(!1),S=function(){const e=o.useRef(!1),t=o.useCallback(()=>e.current,[]);return o.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();o.useEffect(()=>{w(null!=h&&h)},[h,k,w]),o.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),o.useEffect(()=>{var e;if(k&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=cy("padding",b),n=iy(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:g)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[k,b,g,y]);const{style:C={},...R}=t,{style:I={},onClick:T,...A}=r,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=sy(e),c=cy("border",s),u=iy(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:oy}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:oy}}}({position:b,devtoolsTheme:$m,isOpen:k,height:g,width:y,isResizing:x,panelStyle:C});return S()?o.createElement(i,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},o.createElement(Ym,{theme:$m},o.createElement(jy,Tg({ref:p,context:s,styleNonce:c,position:b,onPositionChange:_,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:k,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=iy(b);E(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},u=()=>{x&&E(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),k?null:o.createElement("button",Tg({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!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"},...I}}),o.createElement(Dy,{"aria-hidden":!0}),o.createElement(vy,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var My,Fy={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(My=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",My.ETIMEDOUT="ETIMEDOUT",My.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var Gy=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Gy&&function(){e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:if(!bi())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,mi.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=Ph,exports.ApiProvider=function(n){var r=this,o=n.children,a=process.env.ENVIRONMENT,i=t.useMemo(function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"},[a]),s=t.useState(!1),c=s[0],u=s[1],l=t.useCallback(function(t){return e.__awaiter(r,void 0,void 0,function(){var n,r,o,a,s;return e.__generator(this,function(c){switch(c.label){case 0:return n=localStorage.getItem("headers"),r=n&&JSON.parse(n),o=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",a=localStorage.getItem("x-organization-code"),s=a?JSON.parse(a).value:"",[4,Uh.refreshInstance({headers:e.__assign(e.__assign({},r),{"X-Environment":o||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return c.sent(),[2]}})})},[i]);t.useEffect(function(){return addEventListener("ACCOUNT_CHANGED",l),function(){window.removeEventListener("ACCOUNT_CHANGED",l)}},[l]);var d=t.useCallback(function(t){return e.__awaiter(r,void 0,void 0,function(){var n,r,o,a,s,c,l;return e.__generator(this,function(d){switch(d.label){case 0:return n=localStorage.getItem("headers"),(r=n&&JSON.parse(n))?(o=localStorage.getItem("x-organization-code"),a=localStorage.getItem("account"),s=a?null===(l=JSON.parse(a).value)||void 0===l?void 0:l.code:"",c=o?JSON.parse(o).value:"",[4,Uh.refreshInstance({headers:e.__assign(e.__assign({},r),{"X-Environment":t||i,"x-organization-code":c,"x-account-code":s,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:d.sent(),og.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),u(!0),d.label=2;case 2:return[2]}})})},[i,u]);return t.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?d(n):"token"===t.key&&d(e)}}),d(e)},[u,d]),c?React.createElement(Vf,{client:og},o,React.createElement(By,{initialIsOpen:!1})):React.createElement("div",{style:Fy})},exports.ApiSingleton=Uh,exports.CONCIERGE_ALERTS_QUERY_KEY=ug,exports.CONCIERGE_ALERT_BY_ID_QUERY_KEY=lg,exports.FEEDBACK_ISSUE_OPTIONS=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}],exports.SESSION_EXPIRED_MESSAGE_TYPE=zh,exports.emitExpired=qh,exports.getDatadogEnvironment=function(){if("undefined"==typeof window||"undefined"==typeof localStorage)return"dev";var e="ON"===localStorage.getItem("isTesting"),t=window.location.host;return"dashboard.y.uno"===t?e?"sb":"prod":"dashboard.staging.y.uno"===t?"stg":"dev"},exports.getQueryKeyGetNameAndIcon=pg,exports.getQueryKeyPaymentMethodAccounts=fg,exports.getQueryKeyRequiredFields=hg,exports.queryCache=rg,exports.queryClient=og,exports.resetExpiredGuard=function(){Nh=!1},exports.use3DSExemptions=function(){var t=this;return Qf({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,Uh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Yf(function(e){return Uh.getInstance().generateAIWorkflowRoutes(t,e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAccountCode=ng,exports.useAddToRiskList=function(){return Yf(function(e){var t=e.paymentId,n=e.payload;return Uh.getInstance().addToRiskList(t,n)})},exports.useAllFeatureFlags=kg,exports.useAllowListDetail=function(e,t,n){return Qf(["allow-list-detail",e],function(){return Uh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})},exports.useBlackListDetail=function(e,t,n,r,o,a){return Qf(["black-list-detail",e,t,r,o,a],function(){return Uh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})},exports.useBlockOnboarding=function(){var e=Gf();return Yf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Uh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useBulkCreateInstallmentsPlans=function(){return Yf(["bulk-create-installments-plans"],function(e){var t=e.payload;return Uh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkDeleteInstallmentsPlans=function(){return Yf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return Uh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkDisableAccounts=function(){return Yf(function(e){return Uh.getInstance().bulkDisableAccounts(e)},{useErrorBoundary:!1})},exports.useBulkEnableAccounts=function(){return Yf(function(e){return Uh.getInstance().bulkEnableAccounts(e)},{useErrorBoundary:!1})},exports.useBulkToggleMethod=function(t,n){var r=this;return void 0===n&&(n=null),Yf(function(n){return e.__awaiter(r,void 0,void 0,function(){var r,o,a,i,s,c;return e.__generator(this,function(e){switch(e.label){case 0:return r=Uh.getInstance(),o=n.map(function(e){return r.putSmartRoutingToggleMethod(t,e.paymentMethod,e.active,e.routingType)}),[4,Promise.allSettled(o)];case 1:return a=e.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,t){return{paymentMethod:n[t].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:n.length,errors:c}]}})})},n)},exports.useCachedFeatureFlag=wg,exports.useCancelReport=function(){return Yf(function(e){return Uh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})},exports.useCancelSubscription=function(){return Yf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useChangePasswordV2=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().changePasswordV2(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useChangePaymentsWebhook=function(){return Yf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Uh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusBlackList=function(){return Yf(["change-blacklist"],function(e){return Uh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusItemBlackList=function(){return Yf(["change-blacklist-item"],function(e){return Uh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStylingSettings=function(){return Yf(function(e){var t=e.accountCode,n=e.payload;return Uh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useChangeTemplateStatus=function(){var t=this;return Yf(["PATCH/template-reporting/report-templates/status"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().changeTemplateStatus(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Yf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return Uh.getInstance().uploadChargebacks(t,n,r,o)})},exports.useChartAssistantSocket=function(){var e=t.useRef(null),n=t.useRef(null),r=t.useRef(null),o=t.useState(!1),a=o[0],i=o[1],s=t.useState(null),c=s[0],u=s[1],l=t.useState(null),d=l[0],p=l[1],h=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearTimeout(r.current),r.current=null)},[]),f=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearTimeout(r.current),r.current=null),p(null);try{var t=new WebSocket("".concat(jh["WS_URL_".concat(jh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=t,t.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&t.send(JSON.stringify({type:"auth",token:e})),n.current=setInterval(function(){t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:"ping"})):(h(),i(!1))},3e4)},t.onmessage=function(e){try{var t=JSON.parse(e.data);u(t)}catch(e){p("Failed to parse server response")}},t.onerror=function(e){p("Connection error occurred"),i(!1)},t.onclose=function(e){i(!1),h(),e.wasClean||1e3===e.code||(r.current=setTimeout(function(){f()},5e3))}}catch(e){p("Failed to establish connection")}},[]),g=t.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),m=t.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),y=t.useCallback(function(){u(null)},[]),v=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearTimeout(r.current),r.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return t.useEffect(function(){return f(),function(){h(),v()}},[]),{subscribe:g,unsubscribe:m,disconnect:v,connect:f,clearChartData:y,isConnected:a,chartData:c,connectionError:d}},exports.useChartExecute=function(e){return Qf(["chartgpt-chart-execute",e],function(){return Uh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Yf(["POST/template-reporting/report-templates/clone"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().cloneReportTemplate(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Qf(["fetch-communication-details",e],function(){return Uh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})},exports.useCommunications=function(e){var t;return Qf(["fetch-communications",e],function(){return Uh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-communications-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-day",r)];case 1:return o=e.sent(),[2,(a=o.data,i=r.start_date,s=r.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=Eg(null==u?void 0:u.rows,i,s),h=Eg(null==l?void 0:l.rows,i,s),f=Eg(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:xg(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:xg(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsBySubstatus=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-communications-by-substatus",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-substatus",r)];case 1:return o=e.sent(),[2,Sg(o.data)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsFilters=function(){return Qf(["fetch-communications-filters"],function(){return Uh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsSubstatusByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-communications-substatus-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-substatus-by-day",r)];case 1:return o=e.sent(),[2,Cg(o.data,r.start_date,r.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useConfirmedOtpMfa=function(){return Yf(function(e){return Uh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})},exports.useCountRowsForReport=function(){return Yf(function(e){return Uh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useCreateAndExecuteChart=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,r,o,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(r=null!==(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:r}]}})})},{useErrorBoundary:!1})},exports.useCreateAndExecuteChartWithTimezone=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,r,o,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(r=null!==(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:r}]}})})},{useErrorBoundary:!1})},exports.useCreateAuditSubscription=function(){var e=Gf();return Yf(["create-audit-subscription"],function(e){return Uh.getInstance().createAuditSubscription(e).then(function(e){return{alreadyExists:!1,subscription:null==e?void 0:e.data}}).catch(function(e){var t;if(409===(null===(t=e.response)||void 0===t?void 0:t.status)&&"subscription_already_exists"===cg(e))return{alreadyExists:!0};throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})},exports.useCreateCertificate=function(){var e=Gf();return Yf(["create-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.payload;return Uh.getInstance().createCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useCreateChart=function(){return Yf(function(e){return Uh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Yf(function(e){return Uh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateConciergeAlert=function(){return Yf(["POST/concierge/alerts"],function(e){return Uh.getInstance().createConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries([ug]),og.invalidateQueries([lg])},useErrorBoundary:!1})},exports.useCreateInstallmentsPlan=function(){return Yf(["create-installments-plan"],function(e){var t=e.payload;return Uh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useCreateMonitorTemplate=function(e){return Yf(function(t){return Uh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})},exports.useCreateMonitorThreshold=function(e){return Yf(function(t){return Uh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},exports.useCreateOnboarding=function(){var e=Gf();return Yf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Uh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useCreateOperationTransaction=function(){return Yf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return Uh.getInstance().createOperationTransaction(t,n,r,o)})},exports.useCreateOrgRole=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreatePaymentLinks=function(){return Yf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRecipient=function(){var e=Gf();return Yf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return Uh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useCreateRecipientExport=function(){return Yf(function(e){var t=e.accountCode,n=e.payload;return Uh.getInstance().createRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReconciliationAlert=function(){return Yf(["POST/reconciliation/alerts"],function(e){return Uh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Yf(function(){return Uh.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,r;return e.__generator(this,function(o){switch(o.label){case 0:return[4,og.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return o.sent(),n=null===(r=og.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===r?void 0:r.templates,og.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){og.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){og.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Yf(function(e){return Uh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReconciliationsReportV3=function(){return Yf(function(e){return Uh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Yf(function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.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(r){switch(r.label){case 0:return[4,og.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=og.getQueryData(["GET/reports/templates"]),og.setQueryData(["GET/reports/templates"],function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){og.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){og.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Yf(function(e){return Uh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRoles=function(){return Yf(function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Yf(function(e){return Uh.getInstance().createSamlConfig(e)})},exports.useCreateSchedule=function(){var t=this;return Yf(["POST/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().createReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})},exports.useCreateSubscription=function(){return Yf(["post-subscription"],function(e){return Uh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateTemplate=function(){var t=this;return Yf(["POST/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().createTemplateReporting(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCreateWorkflow=function(t,n,r){var o=this;void 0===r&&(r=null);var a=(null==r?void 0:r.basePath)||exports.SmartRouting.DEFAULT_ROUTING_TYPE;return Yf(function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().postSmartRoutingCreateWorkflow(t,n,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},r)},exports.useDeleteAccountsUserMassive=function(){return Yf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Uh.getInstance().deleteAccountsUserMassive(t,n,r)})},exports.useDeleteAllowlistItem=function(){return Yf(["delete-allowlist-item"],function(e){return Uh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteAuditSubscription=function(){var e=Gf();return Yf(["delete-audit-subscription"],function(e){return Uh.getInstance().deleteAuditSubscription(e).then(function(){}).catch(function(e){var t;if(404!==(null===(t=e.response)||void 0===t?void 0:t.status)||"subscription_not_found"!==cg(e))throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})},exports.useDeleteBlackListType=function(){return Yf(["delete-blacklist"],function(e){var t=e.black_list_code;return Uh.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 Yf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return Uh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteCertificate=function(){var e=Gf();return Yf(["delete-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode;return Uh.getInstance().deleteCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useDeleteCertificateAccount=function(){var e=Gf();return Yf(["delete-certificate-account"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.accountCodeToRemove;return Uh.getInstance().deleteCertificateAccount(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useDeleteChart=function(){return Yf(function(e){return Uh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDeleteConciergeAlert=function(){return Yf(["DELETE/concierge/alerts"],function(e){return Uh.getInstance().deleteConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries([ug]),og.invalidateQueries([lg])},useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Yf(function(e){var t=e.code;return Uh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteInstallmentsPlan=function(){return Yf(["delete-installments-plan"],function(e){var t=e.code;return Uh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteOrgRole=function(){return Yf(function(e){return Uh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeletePaymentLink=function(){return Yf(["post-delete-payment-link"],function(e){var t=e.code;return Uh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteRecipient=function(){var e=Gf();return Yf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return Uh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useDeleteReconciliationAlert=function(){return Yf(["DELETE/reconciliation/alerts"],function(e){return Uh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteReportTemplate=function(){return Yf(function(e){return Uh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteRoles=function(){return Yf(function(e){return Uh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteSamlConfig=function(){return Yf(function(){return Uh.getInstance().deleteSamlConfig()})},exports.useDeleteSchedule=function(){var t=this;return Yf(["DELETE/template-reporting/report-schedules"],function(n){var r=n.scheduleId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().deleteReportSchedule(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Yf(function(e){return Uh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteTemplate=function(){var t=this;return Yf(["DELETE/template-reporting/report-templates"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().deleteReportTemplate(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Yf(function(e){var t=e.userCode,n=e.organizationCode;return Uh.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,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useDeleteWebhookV2=function(e){return Yf(function(e){var t=e.code,n=e.accountCode;return Uh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDisableSchedule=function(){var t=this;return Yf(["PATCH/template-reporting/report-schedules/disable"],function(n){var r=n.scheduleId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().disableReportSchedule(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDownloadCertificate=function(t,n,r,o){var a=this;return void 0===o&&(o=!0),Qf(["download-certificate",t,n,r],function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().downloadCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n&&!!r&&o,cacheTime:0,useErrorBoundary:!1})},exports.useDownloadRecipientExport=function(){return Yf(function(e){var t=e.accountCode,n=e.exportCode;return Uh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDuplicateAccount=function(){return Yf(function(t){var n=e.__spreadArray([exports.DuplicateSetting.ACCOUNT],t.duplicate_order,!0);return Uh.getInstance().duplicateAccount(e.__assign(e.__assign({},t),{duplicate_order:n}))})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)},exports.useEditOrgRole=function(){var t=this;return Yf(function(n){var r=n.payload,o=n.id;return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().editOrgRole({payload:r,id:o})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEditPaymentLinks=function(){return Yf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return Uh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})},exports.useEditRoles=function(){var t=this;return Yf(function(n){var r=n.payload,o=n.id,a=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,Uh.getInstance().editRoles({payload:r,id:o},a)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Qf(["email-verification",e],function(){return Uh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useEnableConciergeAlert=function(){return Yf(["POST/concierge/alerts/enable"],function(e){var t=e.alertId,n=e.payload;return Uh.getInstance().enableConciergeAlert(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries([ug]),og.invalidateQueries([lg])},useErrorBoundary:!1})},exports.useExcludeUsers=function(){return Yf(function(e){var t=e.payload,n=e.organizationCode;return Uh.getInstance().mfaExcludeUsers(t,n)})},exports.useExportApiLogs=function(){return Yf(function(e){return Uh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportDashboardLogs=function(){return Yf(function(e){return Uh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportMonitorsLogs=function(){return Yf(function(e){return Uh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportWebhooksLogs=function(){return Yf(function(e){return Uh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useFeatureFlags=_g,exports.useFetchUserExportDetail=function(){var t=this,n=Gf();return function(r){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,n.fetchQuery(["user-export-status",r],function(){return Uh.getInstance().getUserExportStatus({exportCode:r}).then(function(e){return null==e?void 0:e.data})})]})})}},exports.useFirebaseUserSubscribe=function(e){return Yf(function(e){var t=e.payload;return Uh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Yf(function(e){return Uh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},t),{useErrorBoundary:!1}))},exports.useGetAccounts=function(e){var t,n=tg(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Qf({queryKey:["accounts",r],queryFn:function(){return Uh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})},exports.useGetAccountsByOrganization=function(e){var t=null==e?void 0:e.includeDisabled;return Qf(["accounts-by-organization",{includeDisabled:t}],function(){return Uh.getInstance().getAccountsByOrganization({includeDisabled:t}).then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAccountsByUser=function(e){return Qf(["accountsV2-by-user",e],function(){return e?Uh.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.useGetAccountsForImpersonation=function(t,n){var r=this;return Qf({queryKey:["accounts-for-impersonation",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getAccountsForImpersonation(t).then(function(e){var t,r;return(null===(r=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:n?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetAccountsV2=function(e){return Qf(["accountsV2",e],function(){return Uh.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 Qf(["config-rules"],function(){return Uh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/advancements/list",t,n],function(){return Uh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/agenda/list",t,n],function(){return Uh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/alerts/list",t,n],function(){return Uh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/fees/list",t,n],function(){return Uh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/sales/list",t,n],function(){return Uh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Qf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Uh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useGetAllowedIps=function(){return Qf(["developers-get-allowed-ips"],function(){return Uh.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.useGetApiLogsByTransactionCode=function(e,t){return Qf(["api-logs-by-transaction",e,t],function(){return Uh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsDetailByPaymentCode=function(e,t){return Qf(["api-logs-detail",e,t],function(){return Uh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsList=function(t){return Qf(["api-logs-list",t],function(){return Uh.getInstance().postApiLogsList(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsStatsErrors=function(t){return Qf(["api-logs-stats-errors",t],function(){return Uh.getInstance().postApiLogsStatsErrors(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsStatsErrorsByEndpoint=function(t){return Qf(["api-logs-stats-errors-by-endpoint",t],function(){return Uh.getInstance().postApiLogsStatsErrorsByEndpoint(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsStatsRequests=function(t){return Qf(["api-logs-stats-requests",t],function(){return Uh.getInstance().postApiLogsStatsRequests(e.__assign({},t)).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.start_date,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsV3=function(t){var n=this,r=t.paymentCode,o=t.enabled;return Qf({queryKey:["api-logs-v3",r],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getApiLogsV3(r).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===o||o)&&!!r,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetApiLogsV3ByPaymentCode=function(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Qf(["api-logs-v2-payment",t,n],function(){return Uh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditEventByCode=function(e,t){return Qf(["audit-event-by-code",e,t],function(){return Uh.getInstance().getAuditEventByCode(e,null!=t?t:[]).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Array.isArray(t),cacheTime:0,useErrorBoundary:!1,retry:!1})},exports.useGetAuditEvents=function(e){return Qf(["events",e],function(){return Uh.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.useGetAuditExportDownload=function(e,t,n){return void 0===t&&(t=!1),Qf(["audit-export-download",e],function(){return Uh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})},exports.useGetAuditExportsList=function(e,t){return void 0===t&&(t=!0),Qf(["audit-exports-list",e],function(){return Uh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditMonitorEventDetail=function(e){return Qf(["audit-monitor-event-detail",e],function(){return Uh.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 Yf(function(n){var r=n.batchRefundId,o=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getBatchRefundProcessedFileDownload(r,o,a).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Yf(function(n){var r=n.batchRefundId,o=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getBatchRefundUserFileDownload(r,o,a).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var r=this;return void 0===t&&(t=26),void 0===n&&(n=0),Qf(["batch-refunds",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.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,t){return void 0===t&&(t=!0),Qf(["get-black-list",e],function(){return Uh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})},exports.useGetBlockListSummary=function(e,t,n){return Qf(["get-block-list-summary",e,t,n],function(){var r=Uh.getInstance();return n?r.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 Qf(["GET/catalog/card-brands"],function(){return Uh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetCertificates=function(t,n,r,o){var a=this;return void 0===r&&(r=!0),Qf(["certificates",t,n,null!=o?o:null],function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getCertificates(t,n,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetChartFeedback=function(t){var n=this,r=t.chartCode,o=t.enabled;return Qf(["chart-feedback",r],function(){return e.__awaiter(n,void 0,void 0,function(){var t,n,o,a,i;return e.__generator(this,function(e){switch(e.label){case 0:t=Uh.getInstance(),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.getChartFeedback(r)];case 2:return n=e.sent(),(o=null==n?void 0:n.data)&&o.rating?[2,o]:[2,null];case 3:if(a=e.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===o||o)&&!!r,staleTime:3e5})},exports.useGetChartsByUser=function(){return Qf(["chartgpt-user-charts"],function(){return Uh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Qf(["chartgpt-user-charts-with-results"],function(){return e.__awaiter(t,void 0,void 0,function(){var t,n,r,o=this;return e.__generator(this,function(a){switch(a.label){case 0:return[4,(t=Uh.getInstance()).getChartsByUser()];case 1:return n=a.sent(),r=(null==n?void 0:n.data)||[],[4,Promise.all(r.map(function(n){return e.__awaiter(o,void 0,void 0,function(){var r,o,a,i,s,c,u,l;return e.__generator(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return r=d.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(i=null===(a=null==r?void 0:r.data)||void 0===a?void 0:a.user_prompt)&&void 0!==i?i:n.user_prompt,unit_to_display:null!==(c=null===(s=null==r?void 0:r.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==c?c:n.unit_to_display,results:null!==(l=null===(u=null==r?void 0:r.data)||void 0===u?void 0:u.results)&&void 0!==l?l:[]})];case 2:return o=d.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),o),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,a.sent()]}})})})},exports.useGetCheckouts=function(t,n){var r=t.accountCode,o=Qf(["checkouts",r],function(){return Uh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},e.__assign({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n)),a=o.refetch;return e.__assign(e.__assign({},o),{refetch:function(e){return a(null!=e?e:void 0)}})},exports.useGetConciergeAlertById=function(e){return Qf([lg,e],function(){return Uh.getInstance().getConciergeAlertById(e).then(function(e){return e.data})},{enabled:!!e,useErrorBoundary:!1})},exports.useGetConciergeAlerts=function(){return Qf([ug],function(){return Uh.getInstance().getConciergeAlerts().then(function(e){return e.data})},{useErrorBoundary:!1})},exports.useGetConditionalConfigRules=function(){return Yf(function(e){return Uh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetConfigAllowlist=function(e,t){return Qf(["get-cofig-allow-list",e],function(){return Uh.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 Qf(["connections"],function(){return Uh.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,r=e.basePath,o=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return Qf(["fetch-connections-by-payment-method",n,t,o],function(){return Uh.getInstance().getConnectionsByPaymentMethod(t,n,o).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),Qf(["countries",e],function(){return Uh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})},exports.useGetCountriesConfigPaymentLinkV2=function(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Qf(["countries-v2",n],function(){return Uh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})},exports.useGetCountryData=function(e){return Qf(["checkout-builder-country-data",e],function(){return Uh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},exports.useGetCredentials=function(t){var n=t.password,r=t.accountCode,o=t.otp,a=t.mfaToken;return Qf(["developers"],function(){return Uh.getInstance().getDeveloperCredentials(n,r,o,a).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 Yf(function(t){var n=t.password,r=t.accountCode,o=t.otp,a=t.mfaToken;return Uh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})},exports.useGetCustomizedApiKeys=function(e){return Qf(["fetch-customized-api-keys",e],function(){return Uh.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 Qf(["fetch-customized-api-keys-accounts"],function(){return Uh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Qf(["fetch-customized-api-keys-members"],function(){return Uh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Qf(["fetch-customized-api-keys-products"],function(){return Uh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Yf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return Uh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),Qf(["reports/".concat(e)],function(){return Uh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Yf(function(){return Uh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})},exports.useGetHashPylon=function(){var t=this;return Qf(["fetch-hash-pylon"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetHiddenFields=function(t){var n=this,r=t.scope,o=t.enabled;return Qf(["hidden-fields",r],function(){return e.__awaiter(n,void 0,void 0,function(){var t,n;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getHiddenFields({scope:r})];case 1:return t=e.sent(),[2,null!==(n=null==t?void 0:t.data)&&void 0!==n?n:[]]}})})},{enabled:!!r&&(void 0===o||o),staleTime:3e5,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Qf(["fetch-impersonation-enabled"],function(){return Uh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Qf(["fetch-impersonation-users"],function(){return Uh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetInsightsReport=function(e){return Qf(["get-insights-reports",e],function(){return Uh.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 Qf(["get-insights-reports-again",e],function(){return Uh.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.useGetInstallmentsPlans=function(e,t,n){return void 0===t&&(t=!0),Qf(["installments-plans",e,n],function(){return Uh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,r=tg();return Qf(["organizations-account-integrations",t,n],function(){return Uh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Qf(["integration-params",t,r],function(){return t.includes("undefined")?{}:Uh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})},exports.useGetLanguages=function(){return Qf(["languages"],function(){return Uh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})},exports.useGetLoginMethods=function(){return Qf({queryKey:["get-login-methods"],queryFn:function(){return Uh.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 Qf(["mfa-config",n],function(){return Uh.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 Qf(["mfa-excluded-users",n],function(){return Uh.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 Qf(["mfa-enforcement-status",e.accountCode],function(){return Uh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})},exports.useGetMergedNotifications=function(){return Qf(["notifications-merged"],function(){return Uh.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,r=e.type;return Qf(pg({paymentMethodType:n,type:r}),function(){return Uh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetNetworkTokensOnboardingByOrganization=function(t){var n=this;return Qf({queryKey:["network-tokens-onboarding",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}})})},enabled:!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetNotificationsCustomer=function(e){return Qf(["notifications-customer",e],function(){return Uh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumberMutation=function(){return Yf(function(e){return Uh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetOnboardingDetail=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-onboarding-detail",t,n.recipient_id,n.onboarding_id],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getOnboardingDetail(t,n.recipient_id,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&!!n.onboarding_id&&r,cacheTime:500,useErrorBoundary:!1})},exports.useGetOnboardingStatus=function(e){var t=e.accountCode,n=e.enabled;return Qf(["onboarding-status",t],function(){return Uh.getInstance().getOnboardingStatus(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.useGetOnboardingTimeline=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-onboarding-timeline",t,n.onboarding_id],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getOnboardingTimeline(t,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.onboarding_id&&r,cacheTime:500,useErrorBoundary:!1})},exports.useGetOrgPermissionsCatalog=function(){return Qf(["fetch-org-permissions-catalog"],function(){return Uh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetOrgRolesPermissions=function(){return Qf(["fetch-org-roles-permissions"],function(){return Uh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetOrganization=function(){return Qf(["fetch-organizations"],function(){return Uh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetOrganizationConfigs=function(){return Qf({queryKey:["organization-configs"],queryFn:function(){return Uh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})},exports.useGetOrganizationKeysMetadata=function(){return Yf(function(){return Uh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Qf(["payment-filters",e,t],function(){return Uh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Qf(["payment-link"],function(){return Uh.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 Qf(["fetch-payment-links",e,t],function(){return Uh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodAccounts=function(t,n){var r=t.paymentMethod,o=t.organizationCode;return Qf(fg({paymentMethod:r,organizationCode:o}),function(){return Uh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},e.__assign({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))},exports.useGetPaymentMethodsAndProviders=function(){return Qf({queryKey:["/payment-methods/providers"],queryFn:function(){return Uh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Qf(["payment-metrics-filters"],function(){return Uh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Qf(["payment-transaction-details",t],function(){return Uh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetPaymentV2=function(t){var n=this,r=t.paymentCode,o=t.enabled,a=void 0===o||o,i=Uh.getInstance();return Qf(["get-payment-v2",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getPaymentV2(r).then(function(e){return e.data})]})})},{enabled:a,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=tg();return Qf(["payment-methods",e],function(){return Uh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})},exports.useGetPayoutDetail=function(e){return Qf(["GET/payout-detail",JSON.stringify(e)],function(){var t=Uh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useGetPayoutHistoryDetail=function(e){var t=tg();return Qf(["GET/payout-history-detail",JSON.stringify(e)],function(){return Uh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useGetPayoutTimeline=function(t,n){var r=this;void 0===n&&(n=!0);var o=tg();return Qf(["getPayoutTimeline",t,o],function(){return e.__awaiter(r,void 0,void 0,function(){var n;return e.__generator(this,function(e){return n=Uh.getInstance(),t?[2,n.getPayoutTimeline(t,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:n&&!!t&&!!o,cacheTime:500,useErrorBoundary:!1})},exports.useGetPayoutTransactionDetail=function(e){return Qf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Uh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})},exports.useGetPendingDuplicateAccounts=function(e){return Qf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Uh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})},exports.useGetPermissions=function(e,t){return Qf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.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 Qf(["fetch-permissions-catalog"],function(){return Uh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useGetProfile=ig,exports.useGetProofOfCancel=function(t,n){var r=this,o=tg();return Qf(["GET/useGetProofOfCancel",o,t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getProofOfCancel(t,o,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!o&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var r=this,o=tg();return Qf(["GET/useGetProofOfPayment",o,t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getProofOfPayment(t,o,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!o&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=tg();return Qf(["organizations-provider-params",e],function(e){var n=e.queryKey;return Uh.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.useGetRecipientById=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipient-by-id",t,n.recipient_id],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipientById(t,n.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&r,cacheTime:500,useErrorBoundary:!1})},exports.useGetRecipientExportDownload=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipient-export-download",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetRecipientExports=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipient-exports",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipientExports(n,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetRecipients=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipients",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipients(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetRecipientsV2=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["get-recipients-v2",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRecipientsV2(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&r,cacheTime:0,useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Qf(["GET/v1/reconciliation/active"],function(){return Uh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,r=e.enabled;return Qf(["GET/reconciliation/agenda/insights",t,n],function(){return Uh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Qf(["GET-reconciliation-filters"],function(){return Uh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-amount-conflict-list",t],function(){return Uh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountToBeSettledSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return Uh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflict-date-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflict-date-list",t],function(){return Uh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflict-date-summary",t],function(){return Uh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictsSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-conflicts-summary",t],function(){return Uh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsFeesChargedSummary=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-fees-charged-summary",t,n],function(){return Uh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesAggregators=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return Uh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesList=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return Uh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesSummary=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return Uh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-confirm-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-confirm-list",t],function(){return Uh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmSummary=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-confirm-summary",t],function(){return Uh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-not-reconciled-list",t],function(){return Uh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledAggregators=function(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Qf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return Uh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledList=function(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Qf(["reconciliation-insights-reconciled-list",t,n,r],function(){return Uh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledSummary=function(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Qf(["reconciliation-insights-reconciled-summary",t,n],function(){return Uh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByAccount=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return Uh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByCurrency=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return Uh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByProvider=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return Uh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsSettlementLookup=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-settlement-lookup",t],function(){return Uh.getInstance().getReconciliationInsightsSettlementLookup(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictAggregators=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-status-conflict-aggregators",t],function(){return Uh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictList=function(e){var t=e.body,n=e.enabled;return Qf(["reconciliation-insights-status-conflict-list",t],function(){return Uh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Qf(["fetch-reconciliation-metrics",e],function(){return Uh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactions=function(e,t){return Qf(["fetch-reconciliation-transaction",e],function(){return Uh.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 Qf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Uh.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 Qf(["GET/reconciliation/reports/templates"],function(){return Uh.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,n){var r=this,o=tg();return Qf(["getRefundPdf",t,o,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRefundPdf(t,o,n).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,r){var o=this;return Qf(["GET/reports/columns/".concat(n,"/").concat(r)],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(t){return[2,Uh.getInstance().getReportColumns(n,r).then(function(t){return n===exports.TemplateType.ALL&&r===exports.ReportType.PAYMENTS?e.__spreadArray(e.__spreadArray([],(null==t?void 0:t.data)||[],!0),[gg],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Qf(["GET/reports/templates"],function(){return Uh.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 Qf(["reports"],function(){return Uh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Qf(["reports-multi-env"],function(){return Uh.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,r=e.type;return Qf(hg({paymentMethodType:n,type:r}),function(){return Uh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetRoles=function(){return Qf(["fetch-roles"],function(){return Uh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetRolesForImpersonation=function(t){var n=this;return Qf({queryKey:["roles-for-impersonation",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getRolesForImpersonation(t).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetRolesPermissions=function(){return Qf(["fetch-rolespermissions"],function(){return Uh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetRoutingMonitorsTemplate=function(e,t){return Qf(["fetch-routing-monitors-template",e],function(){return Uh.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 Qf(["fetch-routing-monitors-templates",e],function(){return Uh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Yf(function(e){return Uh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetSamlConfig=function(e){return Qf(["fetch-organization-saml-config",e],function(){return Uh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return Qf(["GET/scheduled-reports",e],function(){return Uh.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 Qf(["fetch-reconciliation-settlements",e],function(){return Uh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return Qf(["smart-routing-condition-payment-method",e,t],function(){return Uh.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,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-condition-types",e,t,n],function(){return Uh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Qf(["smart-routing-condition-types-values",t,e],function(){return Uh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Qf(["data-report",e],function(){return Uh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-decline-groups",e,t],function(){return Uh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-methods",e,t],function(){return Uh.getInstance().getSmartRoutingMethods(e,t).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,r){return void 0===r&&(r=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-next-route",e,n,t,r],function(){return Uh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingPaymentRoute=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-payment-route",e,t,n],function(){return Uh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Qf(["smart-routing-search-condition-values",t,n],function(){return Uh.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,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-simulate-condition-type-values",e,t],function(){return Uh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Qf(["smart-routing-workflow",t,e,n],function(){return Uh.getInstance().getSmartRoutingWorkflow(e,t,n).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,r=e.routingType,o=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return Qf(["smart-routing-workflow-version",n,t,o],function(){return Uh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSdkDynamic=function(e){var t=e.accountCode;return Qf(["styling-sdk-dynamic",t],function(){return Uh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingSettingsV2=function(e){var t=e.accountCode;return Qf(["styling-settings-v2",t],function(){return Uh.getInstance().getStylingSettingsV2({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.useGetSubscriptionByCode=function(e,t){return void 0===t&&(t=!0),Qf(["subscription",e],function(){return Uh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})},exports.useGetSubscriptionPayments=function(e,t,n,r){return void 0===r&&(r=!0),Qf(["subscription-payments",e,t,n],function(){return Uh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})},exports.useGetTeamsFiltersMembers=function(){var e=tg();return Qf(["teams-filters-members"],function(){return Uh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetTokenValidation=function(){return Yf(function(e){var t=e.password,n=e.otp;return Uh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useGetTransactionDetailsV2=function(t){var n=this,r=t.payment_code,o=t.enabled,a=void 0===o||o,i=Uh.getInstance();return Qf(["get-payment-transaction-details-v2",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionDetailsV2({payment_code:r}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!r&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Qf(["transaction-history",t],function(){return Uh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,r=t.transaction_code,o=t.enabled,a=void 0===o||o,i=Uh.getInstance();return Qf(["get-payment-transaction-raw-response",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionRawResponse({transaction_code:r})]})})},{enabled:!!r&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Qf(["translations",e],function(){return Uh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUnifiedExportStatus=function(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Qf(["unified-export-status",t,n],function(){return Uh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})},exports.useGetUnifiedExportsList=function(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Qf(["unified-exports-list",t,r,a],function(){return Uh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})},exports.useGetUserExportStatus=function(e){var t=e.exportCode,n=e.enabled;return Qf(["user-export-status",t],function(){return Uh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})},exports.useGetUserFull=function(){var t=this;return Qf(["get-user-full"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,r,o,a,i){var s=this;return void 0===r&&(r=1),void 0===o&&(o=10),Qf(["get-users-to-impersonate",t,n,r,o,a,i],function(){return e.__awaiter(s,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getUsersToImpersonate(t,n,r,o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetValidateOpsgenieKey=function(e){return Qf(["validate-opsgenie-key",e],function(){return Uh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})},exports.useGetWebhookParamsV2=function(){return Qf(["params-catalog"],function(){return Uh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})},exports.useGetWebhookTimeline=function(t){var n=this,r=t.paymentCode,o=t.enabled;return Qf({queryKey:["webhook-timeline",r],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getWebhookTimeline(r).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===o||o)&&!!r,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Qf(["webhooks-detail",t],function(){return Uh.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 Qf(["webhooks",t,n],function(){return Uh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})},exports.useGetWorkOsMfaStatus=function(e){return Qf(["workos-mfa-status"],function(){return Uh.getInstance().getWorkOsMfaStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:e.enabled})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksTotalRateAndEvolution=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksTotalRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetricsV2=function(e,t,n,r){return void 0===n&&(n=!0),Qf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Uh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})},exports.useInsightsFallbackMetrics=function(e){return Qf(["get-insights-conversion-rate-fallback-metrics",e],function(){return Uh.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,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,r){var o=this;return void 0===r&&(r={enabled:!0}),Qf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:r.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return Qf(["get-insights-home-metrics",e],function(){return Uh.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.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Qf(["get-insights-overview-v3",e,t],function(){return Uh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Qf(["get-insights-volume-metrics-v2",t,e,n],function(){return Uh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsersMultiaccountMassive=function(){return Yf(function(e){return Uh.getInstance().inviteUsersMassive(e,e.organizationCode)})},exports.useInviteUsersMultiaccountMassiveV2=function(){return Yf(function(e){return Uh.getInstance().inviteUsersMassiveV2(e)})},exports.useIsTesting=Xf,exports.useListAuditSubscriptions=function(){return Qf(["audit-subscriptions"],function(){return Uh.getInstance().listAuditSubscriptions().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.data)||[]})},{cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})},exports.useListSubscriptions=function(){return Yf(["post-list-subscriptions"],function(e){return Uh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})},exports.useListUserExports=function(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Qf(["user-exports-list",n,o],function(){return Uh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})},exports.useLocalStorage=eg,exports.useLoginMethods=function(){return Yf(function(e){return Uh.getInstance().changeLoginMethods(e)})},exports.useNetworkTokensOnboarding=function(){var t=this;return Qf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Yf(["new-post-connection-validate"],function(){return Uh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useOrganizationCode=tg,exports.usePatchAccountV2=function(){return Yf(function(e){var t=e.name,n=e.code,r=e.principal;return Uh.getInstance().patchAccountV2({name:t,code:n,principal:r})})},exports.usePatchAddAllowlistItems=function(){return Yf(["post-add-allowlist-items"],function(e){var t=e.payload;return Uh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAllowedIps=function(){return Yf(["developers-patch-allowed-ips"],function(t){return Uh.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 Yf(["patch-allowlist"],function(e){var t=e.payload;return Uh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAndExecuteChart=function(t,n,r){var o=this;return void 0===r&&(r=!0),Qf(["chartgpt-patch-and-execute",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){var r,o,a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return[4,(r=Uh.getInstance()).patchChartGPTChart(t,n)];case 1:return o=e.sent(),a=null==o?void 0:o.data,[4,r.executeChartGPTChart(t)];case 2:return i=e.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:r&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Yf(function(e){var t=e.payload,n=e.code,r=e.password;return Uh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlist=function(){return Yf(["patch-change-status-allowlist"],function(e){var t=e.payload;return Uh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlistItem=function(){return Yf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Uh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChartName=function(){return Yf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return Uh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Yf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Uh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.usePatchOrganizationKeysNote=function(){return Yf(function(e){var t=e.note,n=e.password;return Uh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePathCreateCustomizedApiKeys=function(){return Yf(function(e){var t=e.payload,n=e.code;return Uh.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 Yf(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,Uh.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})})},exports.usePauseSubscription=function(){return Yf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var r=tg();return Qf(["getPayoutsFilters",r],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().getPayoutsFilters(r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:t&&!!r})},exports.usePayoutsList=function(e){return Qf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Uh.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 Yf(function(e){var t=e.name,n=e.principal;return Uh.getInstance().postAccount(t,n)})},exports.usePostAllowlistMultiAccount=function(e,t){return void 0===t&&(t=!0),Qf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Uh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Yf(function(e){var t=e.payload,n=e.code,r=e.password;return Uh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePostApiLogs=function(e){return Qf(["api-logs",e],function(){return Uh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostAuditMonitors=function(e){return Yf(function(e){var t=e.payload;return Uh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.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 Yf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file,a=e.accountCode;return Uh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t,accountCode:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListItems=function(){return Yf(["post-blacklist-items"],function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postBlackListItems({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListMultiAccount=function(){return Yf(["post-blacklist-multi-account"],function(e){var t=e.payload;return Uh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostBlockList=function(e,t,n,r){var o;return Qf(["post-black-list",e],function(){return Uh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Yf(function(e){return Uh.getInstance().postCall(e)})},exports.usePostChangeStatusConnection=function(){return Yf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Yf(["post-connection"],function(e){var t=e.payload;return Uh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.usePostCreateAllowlistMultiAccount=function(){return Yf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Uh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateCustomizedApiKeys=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateInsightsReport=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateRuleMultiAccount=function(){return Yf(function(e){var t=e.payload,n=e.accountCode;return Uh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCredentialsValidatePassword=function(){return Yf(function(e){var t=e.passwordOtp;return Uh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostCredentialsValidatePasswordRegularUser=function(){return Yf(function(e){var t=e.password;return Uh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostCredentialsWithOtpMfa=function(){return Yf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return Uh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostDefaultRoutes=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostEditRule=function(){return Yf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return Uh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostFraudTransactions=function(t){var n=this;return Qf(["POST/fraud-transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().postFraudTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostGetAllowlistItems=function(){return Yf(["post-get-allowlist-items"],function(e){var t=e.payload;return Uh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostGetAllowlistMultiAccount=function(){return Yf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Uh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostIntegrationRequest=function(){return Yf(["post-integration-request"],function(e){var t=e.payload;return Uh.getInstance().postIntegrationRequest({payload:t}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=tg();return Qf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return Uh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Yf(function(n){var r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().postNetworkTokensOnboarding(r)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})},exports.usePostOrganizationConfigs=function(){return Yf(function(e){return Uh.getInstance().postOrganizationConfigs(e)})},exports.usePostOrganizationKeysMarkRevealed=function(){return Yf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Uh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysRoll=function(){return Yf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Uh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysTamRequest=function(){return Yf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Uh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostPaymentsEvaluated=function(e){return Qf(["fetch-payments-evaluated",e],function(){return Uh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPaymentsLazy=function(t){var n=this;return Qf(["fetch-payments-lazy",t],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().postPaymentsLazy(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPlaygroundExecuteFlow=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postPlaygroundExecuteFlow(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostSlackFeatureNotification=function(){return Yf(function(e){var t=e.payload;return Uh.getInstance().postSlackFeatureNotification(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostTransactions=function(t){var n=this;return Qf(["POST/transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().postTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=ag,exports.usePostUserSettingsPinned=function(e){return Yf(["pinned-sections"],function(e){var t=e.payload;return Uh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Yf(function(e){var t=e.payload,n=e.section;return Uh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(t){var n=og.getQueryData(["fetch-profile"]);t.data&&og.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Yf(function(e){return Uh.getInstance().postUserThemeSettings(e)})},exports.usePostValideStatusConnection=function(){return Yf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Uh.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 Qf(["velocity-rules",e],function(){var t=Uh.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.usePostWebhookLogs=function(e){var t=e.params;return Qf(["webhook-logs",t],function(){return Uh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostWebhookMultiAccount=function(e){return Yf(function(e){var t=e.payload;return Uh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Qf(["smart-routing-conversion-rates"],function(){return Uh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})},exports.useProviderRawResponse=function(){return Yf(function(e){var t=e.transactionCode,n=e.payload;return Uh.getInstance().postProviderRawResponse(t,n)})},exports.usePublishCheckout=function(n){var r=ng(),o=t.useRef(r);return o.current=r,Yf(function(t){return Uh.getInstance().publishCheckout(e.__assign(e.__assign({},t),{accountCode:o.current}))},n)},exports.usePublishVersion=function(t,n){var r=this,o=t.versionCode,a=t.accountCode,i=t.organizationCode,s=t.routingType,c=void 0===s?exports.SmartRouting.DEFAULT_ROUTING_TYPE:s;return void 0===n&&(n=null),Yf(function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().postSmartRoutingPublishVersion(a,o,i,c).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},n)},exports.usePutAccountPrincipal=function(){return Yf(function(e){var t=e.account_code;return Uh.getInstance().putAccountPrincipal({account_code:t})})},exports.usePutAccountsUserMassive=function(){return Yf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Uh.getInstance().putAccountsUserMassive(t,n,r)})},exports.usePutBlackListType=function(){return Yf(["put-blacklist"],function(e){return Uh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePutCosts=function(){return Yf(function(e){return Uh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.usePutOrganizationConfigsByAccount=function(){return Yf(function(e){return Uh.getInstance().putOrganizationConfigsByAccount(e)})},exports.useRecoveredPaymentsByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-recovered-payments-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-payments-by-day",r)];case 1:return o=e.sent(),[2,Ig(o.data,r.start_date,r.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRecoveredTPVByDay=function(t,n){return Qf(e.__assign({queryKey:["smart-recovery-recovered-tpv-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,o;return e.__generator(this,function(e){switch(e.label){case 0:return n=Uh.getInstance(),r={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-tpv-by-day",r)];case 1:return o=e.sent(),[2,Rg(o.data,r.start_date,r.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRescheduleSubscription=function(){return Yf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useResendWebhooks=function(){return Yf(function(e){var t=e.codes;return Uh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})},exports.useResumeSubscription=function(){return Yf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return Uh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useRetryDuplicateAccount=function(){return Yf(function(e){return Uh.getInstance().retryDuplicateAccount(e)})},exports.useSaveVersion=function(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)},exports.useSearchInstallmentsPlans=function(e,t){return void 0===t&&(t=!0),Qf(["search-installments-plans",JSON.stringify(e)],function(){return Uh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})},exports.useSearchScheduleById=function(t,n,r){var o=this;return Qf(["POST/template-reporting/schedule-by-id/search",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportScheduleById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:r&&!!t,useErrorBoundary:!1})},exports.useSearchSchedules=function(t,n){var r=this;return Qf(["POST/template-reporting/schedules/search",t],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportSchedules(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSearchTemplateById=function(t,n,r){var o=this;return Qf(["POST/template-reporting/template-by-id/search",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportTemplateById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:r&&!!t,useErrorBoundary:!1})},exports.useSearchTemplates=function(t,n){var r=this;return Qf(["POST/template-reporting/templates/search",t],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().searchReportTemplates(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSendPaymentNotification=function(t,n,r){var o=this,a=Uh.getInstance();return Qf(["send-payment-notification",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){var o,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.sendPaymentNotification(t,n)];case 1:return o=e.sent(),r.onSuccess(),[2,o.data];case 2:throw i=e.sent(),r.onError(),i;case 3:return[2]}})})},{enabled:r.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Yf(function(){return Uh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Yf(function(e){return void 0===e&&(e=null),Uh.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,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Yf(function(e){var n=e.payload;return Uh.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={}),Yf(function(e){var n=e.declinedGroupCode;return Uh.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,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(e){return Uh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Yf(function(e){return void 0===e&&(e=!1),Uh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Yf(function(e){return void 0===e&&(e=null),Uh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),Yf(function(t){return Uh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)},exports.useStartUserExport=function(){return Yf(function(e){return Uh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useSubmitChartFeedback=function(e,t){var n=e.chartCode,r=Gf();return Yf(function(e){return Uh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})},exports.useTableOnboarding=function(n,r,o){var a,i,s=ig(),c=ag().mutate,u=s.data,l=s.isLoading||!s.isFetched,d=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],p="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),h=d.includes(p),f=t.useCallback(function(){var t=null;og.setQueryData(sg,function(n){var r,o,a;if(!n)return n;var i=null!==(o=null===(r=n.settings)||void 0===r?void 0:r.viewed_tutorials)&&void 0!==o?o:[];if(i.includes(p))return n;var s=e.__spreadArray(e.__spreadArray([],i,!0),[p],!1);return t=s,e.__assign(e.__assign({},n),{settings:e.__assign(e.__assign({},null!==(a=n.settings)&&void 0!==a?a:{}),{viewed_tutorials:s})})}),t&&c({payload:{viewed_tutorials:t}})},[p,c]);return{hasSeenOnboarding:h,dismiss:f,id:p,isProfileLoading:l}},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Yf(function(){return Uh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)},exports.useUnInviteUsersV2=function(){return Yf(function(e){var t=e.userCode,n=e.organizationCode;return Uh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})},exports.useUnblockOnboarding=function(){var e=Gf();return Yf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Uh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useUnifiedExportStart=function(){return Yf(function(e){var t=e.tab,n=e.payload;return Uh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUnrollUserV2=function(){return Yf(function(e){return Uh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateCertificateAccounts=function(){var e=Gf();return Yf(["update-certificate-accounts"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.payload;return Uh.getInstance().updateCertificateAccounts(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})},exports.useUpdateInstallmentsPlan=function(){return Yf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return Uh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateIsActiveCheckout=function(n){var r=ng(),o=t.useRef(r);return o.current=r,Yf(function(t){return Uh.getInstance().updateIsActiveCheckout(e.__assign(e.__assign({},t),{accountCode:o.current}))},n)},exports.useUpdateMFAConfig=function(){return Yf(function(e){var t=e.payload,n=e.organizationCode;return Uh.getInstance().updateMFAConfig(t,n)})},exports.useUpdateOnboarding=function(){var e=Gf();return Yf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return Uh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useUpdateOrganizationStatus=function(){return Yf(["patch-organizations"],function(){return Uh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})},exports.useUpdateProfile=function(e){return Yf(function(e){return Uh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateRecipient=function(){var e=Gf();return Yf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Uh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})},exports.useUpdateReconciliationAlert=function(){return Yf(["UPDATE/reconciliation/alerts"],function(e){return Uh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){og.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Yf(function(){return Uh.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 Yf(function(){return Uh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateSamlConfig=function(){return Yf(function(e){return Uh.getInstance().updateSamlConfig(e)})},exports.useUpdateScheduledReport=function(){return Yf(function(e){var t=e.reportCode,n=e.payload;return Uh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useUpdateSubscription=function(){return Yf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return Uh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateTemplateSelection=function(){var t=this;return Yf(["PATCH/template-reporting/report-templates/selection"],function(n){var r=n.templateId,o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Uh.getInstance().updateTemplateSelection(r,o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){og.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Yf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return Uh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var n=e.fileName,r=e.onSuccess,o=e.onError,a=t.useState(0),i=a[0],s=a[1],c=t.useRef({cancel:function(){return null}}),u=Yf(["upload-file-chargeback",n],function(e){var t=Uh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),n=t.promise,a=t.cancel;return c.current.cancel=a,n.then(function(e){return null==r||r(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==o||o(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:c.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Yf(function(e){return Uh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=t.useRef({cancel:function(){return null}}),n=Yf(["upload-file"],function(t){var n=Uh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:n,cancelRequest:e.current.cancel}},exports.useUploadPaymentLinkLogo=function(){return Yf(["upload-payment-link-logo"],function(e){var t=e.payload;return Uh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.useValiateAllowlistItems=function(){return Yf(["validate-allowlist-items"],function(e){return Uh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})},exports.useValidateBlockListItems=function(){return Yf(["valiate-blacklist-items"],function(e){return Uh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useValidateCredentials=function(){return Yf(function(e){return Uh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useValidatePasswordStatus=function(){return Yf(function(){return Uh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})},exports.useViewMoreMetrics=function(e,t){return Qf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Uh.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})},exports.useWorkosAdminPortal=function(){var t=this;return Yf(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosDomainStatus=function(){var t=this;return Qf(["workos-domain-status"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosDomainVerificationPortal=function(){var t=this;return Yf(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosPasswordReset=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosPasswordReset(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosSsoConfigStatus=function(){var t=this;return Qf(["workos-sso-config-status"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosSsoConfigStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosVerifyMfa=function(){var t=this;return Yf(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Uh.getInstance().workosVerifyMfa(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})};
|
|
68
68
|
//# sourceMappingURL=index.js.map
|