@yuno-payments/dashboard-api-mfe 0.42.7 → 0.42.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,7 +204,7 @@ cookie/index.js:
204
204
  * MIT Licensed
205
205
  *)
206
206
  */
207
- function Go(e){const t=Vo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Ko(){return Go(document.cookie)}function $o(e){const t=e.headers.get("cookie"),n=t?Go(t):{},o=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?Ko():{}}case"include":return Ko();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Vo.serialize(t,o[t]));const a=se.getCookiesSync(e.url),r=Object.fromEntries(a.map((e=>[e.key,e.value])));for(const t of a)e.headers.append("cookie",t.toString());return{...o,...r,...n}}var Qo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Qo||{});class Jo extends w{constructor(e,t,n,o){super({info:{header:`${e} ${t}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(t instanceof RegExp)return;if(Xt(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach(((e,t)=>{})),b.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/recipes/query-parameters`)}async parse(e){return{match:Zt(new URL(e.request.url),this.info.path,e.resolutionContext?.baseUrl),cookies:$o(e.request)}}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=_(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),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||Lo[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),a=(r=o.status)<300?"#69AB32":r<400?"#F0BB4B":"#E95F5D";var r;console.groupCollapsed(b.formatMessage(`${tn()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${a}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Xo(e){return(t,n,o={})=>new Jo(e,t,n,o)}const Yo={all:Xo(/.+/),head:Xo(Qo.HEAD),get:Xo(Qo.GET),post:Xo(Qo.POST),put:Xo(Qo.PUT),delete:Xo(Qo.DELETE),patch:Xo(Qo.PATCH),options:Xo(Qo.OPTIONS)},Zo=Symbol("bodyType");class ea extends Wt{[Zo]=null;constructor(e,t){const n=We(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,Fe,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Ue.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static text(e,t){const n=We(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 ea(e,n)}static json(e,t){const n=We(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new ea(o,n)}static xml(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new ea(e,n)}static html(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new ea(e,n)}static arrayBuffer(e,t){const n=We(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 ea(e,n)}static formData(e,t){return new ea(e,We(t))}}g("undefined"!=typeof URL,b.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 ta,na={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},oa={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:{}},aa={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:{}},ra={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:{}},ia=[{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:""}],sa={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}]},ua=[Yo.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",(function(){return ea.json(na)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",(function(){return ea.json(oa)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",(function(){return ea.json(aa)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",(function(){return ea.json(ra)})),Yo.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",(function(){return ea.json(ia)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",(function(){return ea.json(sa)}))],ca={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}}},la={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}}},da={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"}(ta||(ta={}));var pa={sales_volume_metric_group:da.sales_volume_metric_group,total_payments:da.total_payments},ha=Yo.get("/api/insights/overview-metrics",(function(){return ea.json(pa)})),ma=[Yo.get("/api/v3/insights/overview-metrics/".concat(ta.GENERAL),(function(){return ea.json({sales_volume_metric_group:pa.sales_volume_metric_group})})),Yo.get("/api/v3/insights/overview-metrics/".concat(ta.LATENCY),(function(){return ea.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})})),Yo.get("/api/v3/insights/overview-metrics/".concat(ta.STATUS),(function(){return ea.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})})),Yo.get("/api/v3/insights/overview-metrics/".concat(ta.SUBSCRIPTIONS),(function(){return ea.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})}))],fa=e([ha],ma,!0),ga=e([Yo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",(function(){return ea.json(ca)})),Yo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",(function(){return ea.json(la)})),Yo.get("*/dialogs",(function(){return ea.json({})})),Yo.get("*/accounts/webhooks/:accountCode",(function(){return ea.json({})})),Yo.get("*/accounts/webhooks/params-catalog",(function(){return ea.json({})})),Yo.get("*/accounts/webhooks-v2/:accountCode",(function(){return ea.json({})}))],fa,!0),ya=e(e([],ua,!0),ga,!0),ba=function(...e){return new Do(...e)}.apply(void 0,ya),va="MSW_ENABLED";function ka(e){e?(localStorage.setItem(va,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(va),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function ja(){return"true"===localStorage.getItem(va)}function wa(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return ka(!0)},window.disableMSW=function(){return ka(!1)},window.isMSWEnabled=ja);const{toString:_a}=Object.prototype,{getPrototypeOf:Ea}=Object,{iterator:Ca,toStringTag:Sa}=Symbol,Ra=(xa=Object.create(null),e=>{const t=_a.call(e);return xa[t]||(xa[t]=t.slice(8,-1).toLowerCase())});var xa;const Ta=e=>(e=e.toLowerCase(),t=>Ra(t)===e),Ia=e=>t=>typeof t===e,{isArray:Oa}=Array,Aa=Ia("undefined");function za(e){return null!==e&&!Aa(e)&&null!==e.constructor&&!Aa(e.constructor)&&La(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pa=Ta("ArrayBuffer");const Da=Ia("string"),La=Ia("function"),Na=Ia("number"),qa=e=>null!==e&&"object"==typeof e,Ma=e=>{if("object"!==Ra(e))return!1;const t=Ea(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Sa in e||Ca in e)},Ua=Ta("Date"),Ba=Ta("File"),Fa=Ta("Blob"),Wa=Ta("FileList"),Ha=Ta("URLSearchParams"),[Va,Ga,Ka,$a]=["ReadableStream","Request","Response","Headers"].map(Ta);function Qa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,a;if("object"!=typeof e&&(e=[e]),Oa(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{if(za(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let i;for(o=0;o<r;o++)i=a[o],t.call(null,e[i],i,e)}}function Ja(e,t){if(za(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,a=n.length;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const Xa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ya=e=>!Aa(e)&&e!==Xa;const Za=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ea(Uint8Array)),er=Ta("HTMLFormElement"),tr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nr=Ta("RegExp"),or=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Qa(n,((n,a)=>{let r;!1!==(r=t(n,a,e))&&(o[a]=r||n)})),Object.defineProperties(e,o)};const ar=Ta("AsyncFunction"),rr=(ir="function"==typeof setImmediate,sr=La(Xa.postMessage),ir?setImmediate:sr?(ur=`axios@${Math.random()}`,cr=[],Xa.addEventListener("message",(({source:e,data:t})=>{e===Xa&&t===ur&&cr.length&&cr.shift()()}),!1),e=>{cr.push(e),Xa.postMessage(ur,"*")}):e=>setTimeout(e));var ir,sr,ur,cr;const lr="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Xa):"undefined"!=typeof process&&process.nextTick||rr;var dr={isArray:Oa,isArrayBuffer:Pa,isBuffer:za,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||La(e.append)&&("formdata"===(t=Ra(e))||"object"===t&&La(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pa(e.buffer),t},isString:Da,isNumber:Na,isBoolean:e=>!0===e||!1===e,isObject:qa,isPlainObject:Ma,isEmptyObject:e=>{if(!qa(e)||za(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Va,isRequest:Ga,isResponse:Ka,isHeaders:$a,isUndefined:Aa,isDate:Ua,isFile:Ba,isBlob:Fa,isRegExp:nr,isFunction:La,isStream:e=>qa(e)&&La(e.pipe),isURLSearchParams:Ha,isTypedArray:Za,isFileList:Wa,forEach:Qa,merge:function e(){const{caseless:t,skipUndefined:n}=Ya(this)&&this||{},o={},a=(a,r)=>{const i=t&&Ja(o,r)||r;Ma(o[i])&&Ma(a)?o[i]=e(o[i],a):Ma(a)?o[i]=e({},a):Oa(a)?o[i]=a.slice():n&&Aa(a)||(o[i]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Qa(arguments[e],a);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Qa(t,((t,o)=>{n&&La(t)?e[o]=wa(t,n):e[o]=t}),{allOwnKeys:o}),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,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,r,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)i=a[r],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Ea(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ra,kindOfTest:Ta,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(Oa(e))return e;let t=e.length;if(!Na(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ca]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:er,hasOwnProperty:tr,hasOwnProp:tr,reduceDescriptors:or,freezeMethods:e=>{or(e,((t,n)=>{if(La(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];La(o)&&(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={},o=e=>{e.forEach((e=>{n[e]=!0}))};return Oa(e)?o(e):o(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:Ja,global:Xa,isContextDefined:Ya,isSpecCompliantForm:function(e){return!!(e&&La(e.append)&&"FormData"===e[Sa]&&e[Ca])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(qa(e)){if(t.indexOf(e)>=0)return;if(za(e))return e;if(!("toJSON"in e)){t[o]=e;const a=Oa(e)?[]:{};return Qa(e,((e,t)=>{const r=n(e,o+1);!Aa(r)&&(a[t]=r)})),t[o]=void 0,a}}return e};return n(e,0)},isAsyncFn:ar,isThenable:e=>e&&(qa(e)||La(e))&&La(e.then)&&La(e.catch),setImmediate:rr,asap:lr,isIterable:e=>null!=e&&La(e[Ca])};function pr(e,t,n,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}dr.inherits(pr,Error,{toJSON:function(){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:dr.toJSONObject(this.config),code:this.code,status:this.status}}});const hr=pr.prototype,mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{mr[e]={value:e}})),Object.defineProperties(pr,mr),Object.defineProperty(hr,"isAxiosError",{value:!0}),pr.from=(e,t,n,o,a,r)=>{const i=Object.create(hr);dr.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return pr.call(i,s,u,n,o,a),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",r&&Object.assign(i,r),i};function fr(e){return dr.isPlainObject(e)||dr.isArray(e)}function gr(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function yr(e,t,n){return e?e.concat(t).map((function(e,t){return e=gr(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const br=dr.toFlatObject(dr,{},null,(function(e){return/^is[A-Z]/.test(e)}));function vr(e,t,n){if(!dr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=dr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!dr.isUndefined(t[e])}))).metaTokens,a=n.visitor||c,r=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&dr.isSpecCompliantForm(t);if(!dr.isFunction(a))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(dr.isDate(e))return e.toISOString();if(dr.isBoolean(e))return e.toString();if(!s&&dr.isBlob(e))throw new pr("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(e)||dr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(dr.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(dr.isArray(e)&&function(e){return dr.isArray(e)&&!e.some(fr)}(e)||(dr.isFileList(e)||dr.endsWith(n,"[]"))&&(s=dr.toArray(e)))return n=gr(n),s.forEach((function(e,o){!dr.isUndefined(e)&&null!==e&&t.append(!0===i?yr([n],o,r):null===i?n:n+"[]",u(e))})),!1;return!!fr(e)||(t.append(yr(a,n,r),u(e)),!1)}const l=[],d=Object.assign(br,{defaultVisitor:c,convertValue:u,isVisitable:fr});if(!dr.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!dr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),dr.forEach(n,(function(n,r){!0===(!(dr.isUndefined(n)||null===n)&&a.call(t,n,dr.isString(r)?r.trim():r,o,d))&&e(n,o?o.concat(r):[r])})),l.pop()}}(e),t}function kr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function jr(e,t){this._pairs=[],e&&vr(e,this,t)}const wr=jr.prototype;function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Er(e,t,n){if(!t)return e;const o=n&&n.encode||_r;dr.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let r;if(r=a?a(t,n):dr.isURLSearchParams(t)?t.toString():new jr(t,n).toString(o),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}wr.append=function(e,t){this._pairs.push([e,t])},wr.toString=function(e){const t=e?function(t){return e.call(this,t,kr)}:kr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Cr=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){dr.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Sr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:jr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const xr="undefined"!=typeof window&&"undefined"!=typeof document,Tr="object"==typeof navigator&&navigator||void 0,Ir=xr&&(!Tr||["ReactNative","NativeScript","NS"].indexOf(Tr.product)<0),Or="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ar=xr&&window.location.href||"http://localhost";var zr={...Object.freeze({__proto__:null,hasBrowserEnv:xr,hasStandardBrowserEnv:Ir,hasStandardBrowserWebWorkerEnv:Or,navigator:Tr,origin:Ar}),...Rr};function Pr(e){function t(e,n,o,a){let r=e[a++];if("__proto__"===r)return!0;const i=Number.isFinite(+r),s=a>=e.length;if(r=!r&&dr.isArray(o)?o.length:r,s)return dr.hasOwnProp(o,r)?o[r]=[o[r],n]:o[r]=n,!i;o[r]&&dr.isObject(o[r])||(o[r]=[]);return t(e,n,o[r],a)&&dr.isArray(o[r])&&(o[r]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let r;for(o=0;o<a;o++)r=n[o],t[r]=e[r];return t}(o[r])),!i}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const n={};return dr.forEachEntry(e,((e,o)=>{t(function(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const Dr={transitional:Sr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=dr.isObject(e);a&&dr.isHTMLForm(e)&&(e=new FormData(e));if(dr.isFormData(e))return o?JSON.stringify(Pr(e)):e;if(dr.isArrayBuffer(e)||dr.isBuffer(e)||dr.isStream(e)||dr.isFile(e)||dr.isBlob(e)||dr.isReadableStream(e))return e;if(dr.isArrayBufferView(e))return e.buffer;if(dr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return vr(e,new zr.classes.URLSearchParams,{visitor:function(e,t,n,o){return zr.isNode&&dr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((r=dr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return vr(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(dr.isString(e))try{return(t||JSON.parse)(e),dr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Dr.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(dr.isResponse(e)||dr.isReadableStream(e))return e;if(e&&dr.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw pr.from(e,pr.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zr.classes.FormData,Blob:zr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],(e=>{Dr.headers[e]={}}));var Lr=Dr;const Nr=dr.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 qr=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function Ur(e){return!1===e||null==e?e:dr.isArray(e)?e.map(Ur):String(e)}function Br(e,t,n,o,a){return dr.isFunction(o)?o.call(this,t,n):(a&&(t=n),dr.isString(t)?dr.isString(o)?-1!==t.indexOf(o):dr.isRegExp(o)?o.test(t):void 0:void 0)}class Fr{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Mr(t);if(!a)throw new Error("header name must be a non-empty string");const r=dr.findKey(o,a);(!r||void 0===o[r]||!0===n||void 0===n&&!1!==o[r])&&(o[r||t]=Ur(e))}const r=(e,t)=>dr.forEach(e,((e,n)=>a(e,n,t)));if(dr.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(dr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&Nr[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(dr.isObject(e)&&dr.isIterable(e)){let n,o,a={};for(const t of e){if(!dr.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?dr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}r(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Mr(e)){const n=dr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(dr.isFunction(t))return t.call(this,e,n);if(dr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mr(e)){const n=dr.findKey(this,e);return!(!n||void 0===this[n]||t&&!Br(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Mr(e)){const a=dr.findKey(n,e);!a||t&&!Br(0,n[a],a,t)||(delete n[a],o=!0)}}return dr.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!Br(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return dr.forEach(this,((o,a)=>{const r=dr.findKey(n,a);if(r)return t[r]=Ur(o),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();i!==a&&delete t[a],t[i]=Ur(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return dr.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&dr.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[qr]=this[qr]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Mr(e);t[o]||(!function(e,t){const n=dr.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return dr.isArray(e)?e.forEach(o):o(e),this}}Fr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(Fr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),dr.freezeMethods(Fr);var Wr=Fr;function Hr(e,t){const n=this||Lr,o=t||n,a=Wr.from(o.headers);let r=o.data;return dr.forEach(e,(function(e){r=e.call(n,r,a.normalize(),t?t.status:void 0)})),a.normalize(),r}function Vr(e){return!(!e||!e.__CANCEL__)}function Gr(e,t,n){pr.call(this,null==e?"canceled":e,pr.ERR_CANCELED,t,n),this.name="CanceledError"}function Kr(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new pr("Request failed with status code "+n.status,[pr.ERR_BAD_REQUEST,pr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}dr.inherits(Gr,pr,{__CANCEL__:!0});const $r=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,r=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];a||(a=u),n[r]=s,o[r]=u;let l=i,d=0;for(;l!==r;)d+=n[l++],l%=e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const p=c&&u-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,a=0,r=1e3/t;const i=(t,r=Date.now())=>{a=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=r?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),r-s)))},()=>n&&i(n)]}((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,s=r-o,u=a(s);o=r;e({loaded:r,total:i,progress:i?r/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&r<=i?(i-r)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Qr=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Jr=e=>(...t)=>dr.asap((()=>e(...t)));var Xr=zr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zr.origin),zr.navigator&&/(msie|trident)/i.test(zr.navigator.userAgent)):()=>!0,Yr=zr.hasStandardBrowserEnv?{write(e,t,n,o,a,r){const i=[e+"="+encodeURIComponent(t)];dr.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),dr.isString(o)&&i.push("path="+o),dr.isString(a)&&i.push("domain="+a),!0===r&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Zr(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ei=e=>e instanceof Wr?{...e}:e;function ti(e,t){t=t||{};const n={};function o(e,t,n,o){return dr.isPlainObject(e)&&dr.isPlainObject(t)?dr.merge.call({caseless:o},e,t):dr.isPlainObject(t)?dr.merge({},t):dr.isArray(t)?t.slice():t}function a(e,t,n,a){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function r(e,t){if(!dr.isUndefined(t))return o(void 0,t)}function i(e,t){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,r){return r in t?o(n,a):r in e?o(void 0,n):void 0}const u={url:r,method:r,data:r,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,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>a(ei(e),ei(t),0,!0)};return dr.forEach(Object.keys({...e,...t}),(function(o){const r=u[o]||a,i=r(e[o],t[o],o);dr.isUndefined(i)&&r!==s||(n[o]=i)})),n}var ni=e=>{const t=ti({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:r,headers:i,auth:s}=t;if(t.headers=i=Wr.from(i),t.url=Er(Zr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),dr.isFormData(n))if(zr.hasStandardBrowserEnv||zr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(dr.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)}))}if(zr.hasStandardBrowserEnv&&(o&&dr.isFunction(o)&&(o=o(t)),o||!1!==o&&Xr(t.url))){const e=a&&r&&Yr.read(r);e&&i.set(a,e)}return t};var oi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=ni(e);let a=o.data;const r=Wr.from(o.headers).normalize();let i,s,u,c,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function m(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Wr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Kr((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new pr("Request aborted",pr.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new pr(t&&t.message?t.message:"Network Error",pr.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||Sr;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new pr(t,a.clarifyTimeoutError?pr.ETIMEDOUT:pr.ECONNABORTED,e,f)),f=null},void 0===a&&r.setContentType(null),"setRequestHeader"in f&&dr.forEach(r.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),dr.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),d&&"json"!==d&&(f.responseType=o.responseType),h&&([u,l]=$r(h,!0),f.addEventListener("progress",u)),p&&f.upload&&([s,c]=$r(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new Gr(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===zr.protocols.indexOf(y)?n(new pr("Unsupported protocol "+y+":",pr.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var ai=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof pr?t:new Gr(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null,a(new pr(`timeout ${t} of ms exceeded`,pr.ETIMEDOUT))}),t);const i=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>dr.asap(i),s}};const ri=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},ii=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()}},si=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of ii(e))yield*ri(n,t)}(e,t);let r,i=0,s=e=>{r||(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let r=o.byteLength;if(n){let e=i+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:ui}=dr,ci=(({Request:e,Response:t})=>({Request:e,Response:t}))(dr.global),{ReadableStream:li,TextEncoder:di}=dr.global,pi=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},hi=e=>{e=dr.merge.call({skipUndefined:!0},ci,e);const{fetch:t,Request:n,Response:o}=e,a=t?ui(t):"function"==typeof fetch,r=ui(n),i=ui(o);if(!a)return!1;const s=a&&ui(li),u=a&&("function"==typeof di?(e=>t=>e.encode(t))(new di):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=r&&s&&pi((()=>{let e=!1;const t=new n(zr.origin,{body:new li,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=i&&s&&pi((()=>dr.isReadableStream(new o("").body))),d={stream:l&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new pr(`Response type '${e}' is not supported`,pr.ERR_NOT_SUPPORT,n)})}));const p=async(e,t)=>{const o=dr.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e)){const t=new n(zr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dr.isArrayBufferView(e)||dr.isArrayBuffer(e)?e.byteLength:(dr.isURLSearchParams(e)&&(e+=""),dr.isString(e)?(await u(e)).byteLength:void 0)})(t):o};return async e=>{let{url:a,method:i,data:s,signal:u,cancelToken:h,timeout:m,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:k}=ni(e),j=t||fetch;y=y?(y+"").toLowerCase():"text";let w=ai([u,h&&h.toAbortSignal()],m),_=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(C=await p(b,s))){let e,t=new n(a,{method:"POST",body:s,duplex:"half"});if(dr.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Qr(C,$r(Jr(g)));s=si(t.body,65536,e,n)}}dr.isString(v)||(v=v?"include":"omit");const t=r&&"credentials"in n.prototype,u={...k,signal:w,method:i.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};_=r&&new n(a,u);let h=await(r?j(_,k):j(a,u));const m=l&&("stream"===y||"response"===y);if(l&&(f||m&&E)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=dr.toFiniteNumber(h.headers.get("content-length")),[n,a]=f&&Qr(t,$r(Jr(f),!0))||[];h=new o(si(h.body,65536,n,(()=>{a&&a(),E&&E()})),e)}y=y||"text";let S=await d[dr.findKey(d,y)||"text"](h,e);return!m&&E&&E(),await new Promise(((t,n)=>{Kr(t,n,{data:S,headers:Wr.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:_})}))}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new pr("Network Error",pr.ERR_NETWORK,e,_),{cause:t.cause||t});throw pr.from(t,t&&t.code,e,_)}}},mi=new Map,fi=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:a}=t,r=[o,a,n];let i,s,u=r.length,c=mi;for(;u--;)i=r[u],s=c.get(i),void 0===s&&c.set(i,s=u?new Map:hi(t)),c=s;return s};fi();const gi={http:null,xhr:oi,fetch:{get:fi}};dr.forEach(gi,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const yi=e=>`- ${e}`,bi=e=>dr.isFunction(e)||null===e||!1===e;var vi=(e,t)=>{e=dr.isArray(e)?e:[e];const{length:n}=e;let o,a;const r={};for(let i=0;i<n;i++){let n;if(o=e[i],a=o,!bi(o)&&(a=gi[(n=String(o)).toLowerCase()],void 0===a))throw new pr(`Unknown adapter '${n}'`);if(a&&(dr.isFunction(a)||(a=a.get(t))))break;r[n||"#"+i]=a}if(!a){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new pr("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(yi).join("\n"):" "+yi(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function ki(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gr(null,e)}function ji(e){ki(e),e.headers=Wr.from(e.headers),e.data=Hr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vi(e.adapter||Lr.adapter,e)(e).then((function(t){return ki(e),t.data=Hr.call(e,e.transformResponse,t),t.headers=Wr.from(t.headers),t}),(function(t){return Vr(t)||(ki(e),t&&t.response&&(t.response.data=Hr.call(e,e.transformResponse,t.response),t.response.headers=Wr.from(t.response.headers))),Promise.reject(t)}))}const wi="1.12.2",_i={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ei={};_i.transitional=function(e,t,n){function o(e,t){return"[Axios v"+wi+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,r)=>{if(!1===e)throw new pr(o(a," has been removed"+(t?" in "+t:"")),pr.ERR_DEPRECATED);return t&&!Ei[a]&&(Ei[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,r)}},_i.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Ci={assertOptions:function(e,t,n){if("object"!=typeof e)throw new pr("options must be an object",pr.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const r=o[a],i=t[r];if(i){const t=e[r],n=void 0===t||i(t,r,e);if(!0!==n)throw new pr("option "+r+" must be "+n,pr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pr("Unknown option "+r,pr.ERR_BAD_OPTION)}},validators:_i};const Si=Ci.validators;let Ri=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Cr,response:new Cr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ti(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&Ci.assertOptions(n,{silentJSONParsing:Si.transitional(Si.boolean),forcedJSONParsing:Si.transitional(Si.boolean),clarifyTimeoutError:Si.transitional(Si.boolean)},!1),null!=o&&(dr.isFunction(o)?t.paramsSerializer={serialize:o}:Ci.assertOptions(o,{encode:Si.function,serialize:Si.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ci.assertOptions(t,{baseUrl:Si.spelling("baseURL"),withXsrfToken:Si.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=a&&dr.merge(a.common,a[t.method]);a&&dr.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Wr.concat(r,a);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[ji.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}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{c=ji.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return Er(Zr((e=ti(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};dr.forEach(["delete","get","head","options"],(function(e){Ri.prototype[e]=function(t,n){return this.request(ti(n||{},{method:e,url:t,data:(n||{}).data}))}})),dr.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(ti(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Ri.prototype[e]=t(),Ri.prototype[e+"Form"]=t(!0)}));var xi=Ri;class Ti{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new Gr(e,o,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ti((function(t){e=t})),cancel:e}}}var Ii=Ti;const Oi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Oi).forEach((([e,t])=>{Oi[t]=e}));var Ai=Oi;const zi=function e(t){const n=new xi(t),o=wa(xi.prototype.request,n);return dr.extend(o,xi.prototype,n,{allOwnKeys:!0}),dr.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ti(t,n))},o}(Lr);zi.Axios=xi,zi.CanceledError=Gr,zi.CancelToken=Ii,zi.isCancel=Vr,zi.VERSION=wi,zi.toFormData=vr,zi.AxiosError=pr,zi.Cancel=zi.CanceledError,zi.all=function(e){return Promise.all(e)},zi.spread=function(e){return function(t){return e.apply(null,t)}},zi.isAxiosError=function(e){return dr.isObject(e)&&!0===e.isAxiosError},zi.mergeConfig=ti,zi.AxiosHeaders=Wr,zi.formToJSON=e=>Pr(dr.isHTMLForm(e)?new FormData(e):e),zi.getAdapter=vi,zi.HttpStatusCode=Ai,zi.default=zi;var Pi=zi,Di=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var a=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(a))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))})),t.join("&")},Li=function(e){function t(t){var n,o,r,i,s=this;return(s=e.call(this,t)||this).token="",null===(o=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===o||o.request.use((function(e){return a(a({},e),{defaults:{headers:a(a({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(i=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===i||i.response.use((function(e){return a({},e)}),(function(e){return Promise.reject(e)})),s}return o(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Pi.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}((function(e){this.instance=Pi.create(e)})),Ni="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qi(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 o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}var Mi=TypeError,Ui=qi(Object.freeze({__proto__:null,default:{}})),Bi="function"==typeof Map&&Map.prototype,Fi=Object.getOwnPropertyDescriptor&&Bi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wi=Bi&&Fi&&"function"==typeof Fi.get?Fi.get:null,Hi=Bi&&Map.prototype.forEach,Vi="function"==typeof Set&&Set.prototype,Gi=Object.getOwnPropertyDescriptor&&Vi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ki=Vi&&Gi&&"function"==typeof Gi.get?Gi.get:null,$i=Vi&&Set.prototype.forEach,Qi="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ji="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Xi="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Yi=Boolean.prototype.valueOf,Zi=Object.prototype.toString,es=Function.prototype.toString,ts=String.prototype.match,ns=String.prototype.slice,os=String.prototype.replace,as=String.prototype.toUpperCase,rs=String.prototype.toLowerCase,is=RegExp.prototype.test,ss=Array.prototype.concat,us=Array.prototype.join,cs=Array.prototype.slice,ls=Math.floor,ds="function"==typeof BigInt?BigInt.prototype.valueOf:null,ps=Object.getOwnPropertySymbols,hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ms="function"==typeof Symbol&&"object"==typeof Symbol.iterator,fs="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ms||"symbol")?Symbol.toStringTag:null,gs=Object.prototype.propertyIsEnumerable,ys=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function bs(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||is.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-ls(-e):ls(e);if(o!==e){var a=String(o),r=ns.call(t,a.length+1);return os.call(a,n,"$&_")+"."+os.call(os.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return os.call(t,n,"$&_")}var vs=Ui,ks=vs.custom,js=Is(ks)?ks:null,ws={__proto__:null,double:'"',single:"'"},_s={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Es=function e(t,n,o,a){var r=n||{};if(As(r,"quoteStyle")&&!As(ws,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(As(r,"maxStringLength")&&("number"==typeof r.maxStringLength?r.maxStringLength<0&&r.maxStringLength!==1/0:null!==r.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!As(r,"customInspect")||r.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(As(r,"indent")&&null!==r.indent&&"\t"!==r.indent&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(As(r,"numericSeparator")&&"boolean"!=typeof r.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=r.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 Ds(t,r);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?bs(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?bs(t,c):c}var l=void 0===r.depth?5:r.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return xs(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=us.call(Array(e.indent+1)," ")}return{base:n,prev:us.call(Array(t+1),n)}}(r,o);if(void 0===a)a=[];else if(Ps(a,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(a=cs.call(a)).push(n),i){var s={depth:r.depth};return As(r,"quoteStyle")&&(s.quoteStyle=r.quoteStyle),e(t,s,o+1,a)}return e(t,r,o+1,a)}if("function"==typeof t&&!Ts(t)){var h=function(e){if(e.name)return e.name;var t=ts.call(es.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=Bs(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+us.call(m,", ")+" }":"")}if(Is(t)){var f=ms?os.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):hs.call(t);return"object"!=typeof t||ms?f:Ns(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+rs.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)g+=" "+y[b].name+"="+Cs(Ss(y[b].value),"double",r);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+rs.call(String(t.nodeName))+">"}if(xs(t)){if(0===t.length)return"[]";var v=Bs(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Ps(e[t],"\n")>=0)return!1;return!0}(v)?"["+Us(v,d)+"]":"[ "+us.call(v,", ")+" ]"}if(function(e){return"[object Error]"===zs(e)&&Rs(e)}(t)){var k=Bs(t,p);return"cause"in Error.prototype||!("cause"in t)||gs.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+us.call(k,", ")+" }":"{ ["+String(t)+"] "+us.call(ss.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(js&&"function"==typeof t[js]&&vs)return vs(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Wi||!e||"object"!=typeof e)return!1;try{Wi.call(e);try{Ki.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var j=[];return Hi&&Hi.call(t,(function(e,n){j.push(p(n,t,!0)+" => "+p(e,t))})),Ms("Map",Wi.call(t),j,d)}if(function(e){if(!Ki||!e||"object"!=typeof e)return!1;try{Ki.call(e);try{Wi.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return $i&&$i.call(t,(function(e){w.push(p(e,t))})),Ms("Set",Ki.call(t),w,d)}if(function(e){if(!Qi||!e||"object"!=typeof e)return!1;try{Qi.call(e,Qi);try{Ji.call(e,Ji)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return qs("WeakMap");if(function(e){if(!Ji||!e||"object"!=typeof e)return!1;try{Ji.call(e,Ji);try{Qi.call(e,Qi)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return qs("WeakSet");if(function(e){if(!Xi||!e||"object"!=typeof e)return!1;try{return Xi.call(e),!0}catch(e){}return!1}(t))return qs("WeakRef");if(function(e){return"[object Number]"===zs(e)&&Rs(e)}(t))return Ns(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!ds)return!1;try{return ds.call(e),!0}catch(e){}return!1}(t))return Ns(p(ds.call(t)));if(function(e){return"[object Boolean]"===zs(e)&&Rs(e)}(t))return Ns(Yi.call(t));if(function(e){return"[object String]"===zs(e)&&Rs(e)}(t))return Ns(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ni&&t===Ni)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===zs(e)&&Rs(e)}(t)&&!Ts(t)){var _=Bs(t,p),E=ys?ys(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&fs&&Object(t)===t&&fs in t?ns.call(zs(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+us.call(ss.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":d?R+"{"+Us(_,d)+"}":R+"{ "+us.call(_,", ")+" }"}return String(t)};function Cs(e,t,n){var o=n.quoteStyle||t,a=ws[o];return a+e+a}function Ss(e){return os.call(String(e),/"/g,"&quot;")}function Rs(e){return!fs||!("object"==typeof e&&(fs in e||void 0!==e[fs]))}function xs(e){return"[object Array]"===zs(e)&&Rs(e)}function Ts(e){return"[object RegExp]"===zs(e)&&Rs(e)}function Is(e){if(ms)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!hs)return!1;try{return hs.call(e),!0}catch(e){}return!1}var Os=Object.prototype.hasOwnProperty||function(e){return e in this};function As(e,t){return Os.call(e,t)}function zs(e){return Zi.call(e)}function Ps(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Ds(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Ds(ns.call(e,0,t.maxStringLength),t)+o}var a=_s[t.quoteStyle||"single"];return a.lastIndex=0,Cs(os.call(os.call(e,a,"\\$1"),/[\x00-\x1f]/g,Ls),"single",t)}function Ls(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":"")+as.call(t.toString(16))}function Ns(e){return"Object("+e+")"}function qs(e){return e+" { ? }"}function Ms(e,t,n,o){return e+" ("+t+") {"+(o?Us(n,o):us.call(n,", "))+"}"}function Us(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+us.call(e,","+n)+"\n"+t.prev}function Bs(e,t){var n=xs(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=As(e,a)?t(e[a],e):""}var r,i="function"==typeof ps?ps(e):[];if(ms){r={};for(var s=0;s<i.length;s++)r["$"+i[s]]=i[s]}for(var u in e)As(e,u)&&(n&&String(Number(u))===u&&u<e.length||ms&&r["$"+u]instanceof Symbol||(is.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof ps)for(var c=0;c<i.length;c++)gs.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var Fs=Es,Ws=Mi,Hs=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},Vs=Object,Gs=Error,Ks=EvalError,$s=RangeError,Qs=ReferenceError,Js=SyntaxError,Xs=URIError,Ys=Math.abs,Zs=Math.floor,eu=Math.max,tu=Math.min,nu=Math.pow,ou=Math.round,au=Number.isNaN||function(e){return e!=e},ru=Object.getOwnPropertyDescriptor;if(ru)try{ru([],"length")}catch(e){ru=null}var iu=ru,su=Object.defineProperty||!1;if(su)try{su({},"a",{value:1})}catch(e){su=!1}var uu,cu,lu,du,pu,hu,mu,fu,gu,yu,bu,vu,ku,ju,wu,_u,Eu=su;function Cu(){return hu?pu:(hu=1,pu="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Su(){return fu?mu:(fu=1,mu=Vs.getPrototypeOf||null)}function Ru(){if(yu)return gu;yu=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return gu=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var r,i=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(r=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var e=a.apply(this,n(i,arguments));return Object(e)===e?e:this}return a.apply(o,n(i,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,r.prototype=new l,l.prototype=null}return r},gu}function xu(){if(vu)return bu;vu=1;var e=Ru();return bu=Function.prototype.bind||e}function Tu(){return ju?ku:(ju=1,ku=Function.prototype.call)}function Iu(){return _u?wu:(_u=1,wu=Function.prototype.apply)}var Ou,Au,zu,Pu,Du,Lu,Nu,qu="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Mu=xu(),Uu=Iu(),Bu=Tu(),Fu=qu||Mu.call(Bu,Uu),Wu=xu(),Hu=Mi,Vu=Tu(),Gu=Fu,Ku=function(e){if(e.length<1||"function"!=typeof e[0])throw new Hu("a function is required");return Gu(Wu,Vu,e)};var $u=Vs,Qu=Gs,Ju=Ks,Xu=$s,Yu=Qs,Zu=Js,ec=Mi,tc=Xs,nc=Ys,oc=Zs,ac=eu,rc=tu,ic=nu,sc=ou,uc=function(e){return au(e)||0===e?e:e<0?-1:1},cc=Function,lc=function(e){try{return cc('"use strict"; return ('+e+").constructor;")()}catch(e){}},dc=iu,pc=Eu,hc=function(){throw new ec},mc=dc?function(){try{return hc}catch(e){try{return dc(arguments,"callee").get}catch(e){return hc}}}():hc,fc=function(){if(du)return lu;du=1;var e="undefined"!=typeof Symbol&&Symbol,t=cu?uu:(cu=1,uu=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0});return lu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),gc=function(){if(Pu)return zu;Pu=1;var e=Cu(),t=Su(),n=function(){if(Au)return Ou;Au=1;var e,t=Ku,n=iu;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,r=a.getPrototypeOf;return Ou=o&&"function"==typeof o.get?t([o.get]):"function"==typeof r&&function(e){return r(null==e?e:a(e))}}();return zu=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}(),yc=Su(),bc=Cu(),vc=Iu(),kc=Tu(),jc={},wc="undefined"!=typeof Uint8Array&&gc?gc(Uint8Array):Nu,_c={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Nu:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Nu:ArrayBuffer,"%ArrayIteratorPrototype%":fc&&gc?gc([][Symbol.iterator]()):Nu,"%AsyncFromSyncIteratorPrototype%":Nu,"%AsyncFunction%":jc,"%AsyncGenerator%":jc,"%AsyncGeneratorFunction%":jc,"%AsyncIteratorPrototype%":jc,"%Atomics%":"undefined"==typeof Atomics?Nu:Atomics,"%BigInt%":"undefined"==typeof BigInt?Nu:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Nu:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Nu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Nu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Qu,"%eval%":eval,"%EvalError%":Ju,"%Float16Array%":"undefined"==typeof Float16Array?Nu:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Nu:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Nu:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Nu:FinalizationRegistry,"%Function%":cc,"%GeneratorFunction%":jc,"%Int8Array%":"undefined"==typeof Int8Array?Nu:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Nu:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Nu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fc&&gc?gc(gc([][Symbol.iterator]())):Nu,"%JSON%":"object"==typeof JSON?JSON:Nu,"%Map%":"undefined"==typeof Map?Nu:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&fc&&gc?gc((new Map)[Symbol.iterator]()):Nu,"%Math%":Math,"%Number%":Number,"%Object%":$u,"%Object.getOwnPropertyDescriptor%":dc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Nu:Promise,"%Proxy%":"undefined"==typeof Proxy?Nu:Proxy,"%RangeError%":Xu,"%ReferenceError%":Yu,"%Reflect%":"undefined"==typeof Reflect?Nu:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Nu:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&fc&&gc?gc((new Set)[Symbol.iterator]()):Nu,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Nu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fc&&gc?gc(""[Symbol.iterator]()):Nu,"%Symbol%":fc?Symbol:Nu,"%SyntaxError%":Zu,"%ThrowTypeError%":mc,"%TypedArray%":wc,"%TypeError%":ec,"%Uint8Array%":"undefined"==typeof Uint8Array?Nu:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Nu:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Nu:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Nu:Uint32Array,"%URIError%":tc,"%WeakMap%":"undefined"==typeof WeakMap?Nu:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Nu:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Nu:WeakSet,"%Function.prototype.call%":kc,"%Function.prototype.apply%":vc,"%Object.defineProperty%":pc,"%Object.getPrototypeOf%":yc,"%Math.abs%":nc,"%Math.floor%":oc,"%Math.max%":ac,"%Math.min%":rc,"%Math.pow%":ic,"%Math.round%":sc,"%Math.sign%":uc,"%Reflect.getPrototypeOf%":bc};if(gc)try{null.error}catch(e){var Ec=gc(gc(e));_c["%Error.prototype%"]=Ec}var Cc,Sc,Rc,xc,Tc,Ic,Oc,Ac,zc,Pc,Dc,Lc,Nc,qc=function e(t){var n;if("%AsyncFunction%"===t)n=lc("async function () {}");else if("%GeneratorFunction%"===t)n=lc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=lc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&gc&&(n=gc(a.prototype))}return _c[t]=n,n},Mc={__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"]},Uc=xu(),Bc=function(){if(Lu)return Du;Lu=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=xu();return Du=n.call(e,t)}(),Fc=Uc.call(kc,Array.prototype.concat),Wc=Uc.call(vc,Array.prototype.splice),Hc=Uc.call(kc,String.prototype.replace),Vc=Uc.call(kc,String.prototype.slice),Gc=Uc.call(kc,RegExp.prototype.exec),Kc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$c=/\\(\\)?/g,Qc=function(e,t){var n,o=e;if(Bc(Mc,o)&&(o="%"+(n=Mc[o])[0]+"%"),Bc(_c,o)){var a=_c[o];if(a===jc&&(a=qc(o)),void 0===a&&!t)throw new ec("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new Zu("intrinsic "+e+" does not exist!")},Jc=function(e,t){if("string"!=typeof e||0===e.length)throw new ec("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ec('"allowMissing" argument must be a boolean');if(null===Gc(/^%?[^%]*%?$/,e))throw new Zu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Vc(e,0,1),n=Vc(e,-1);if("%"===t&&"%"!==n)throw new Zu("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Zu("invalid intrinsic syntax, expected opening `%`");var o=[];return Hc(e,Kc,(function(e,t,n,a){o[o.length]=n?Hc(a,$c,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=Qc("%"+o+"%",t),r=a.name,i=a.value,s=!1,u=a.alias;u&&(o=u[0],Wc(n,Fc([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var d=n[c],p=Vc(d,0,1),h=Vc(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Zu("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Bc(_c,r="%"+(o+="."+d)+"%"))i=_c[r];else if(null!=i){if(!(d in i)){if(!t)throw new ec("base intrinsic for "+e+" exists, but the property is not available.");return}if(dc&&c+1>=n.length){var m=dc(i,d);i=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[d]}else l=Bc(i,d),i=i[d];l&&!s&&(_c[r]=i)}}return i},Xc=Jc,Yc=Ku,Zc=Yc([Xc("%String.prototype.indexOf%")]),el=function(e,t){var n=Xc(e,!!t);return"function"==typeof n&&Zc(e,".prototype.")>-1?Yc([n]):n},tl=el,nl=Es,ol=Mi,al=Jc("%Map%",!0),rl=tl("Map.prototype.get",!0),il=tl("Map.prototype.set",!0),sl=tl("Map.prototype.has",!0),ul=tl("Map.prototype.delete",!0),cl=tl("Map.prototype.size",!0),ll=!!al&&function(){var e,t={assert:function(e){if(!t.has(e))throw new ol("Side channel does not contain "+nl(e))},delete:function(t){if(e){var n=ul(e,t);return 0===cl(e)&&(e=void 0),n}return!1},get:function(t){if(e)return rl(e,t)},has:function(t){return!!e&&sl(e,t)},set:function(t,n){e||(e=new al),il(e,t,n)}};return t},dl=el,pl=Es,hl=ll,ml=Mi,fl=Jc("%WeakMap%",!0),gl=dl("WeakMap.prototype.get",!0),yl=dl("WeakMap.prototype.set",!0),bl=dl("WeakMap.prototype.has",!0),vl=dl("WeakMap.prototype.delete",!0),kl=Mi,jl=Es,wl=(fl?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new ml("Side channel does not contain "+pl(e))},delete:function(n){if(fl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return vl(e,n)}else if(hl&&t)return t.delete(n);return!1},get:function(n){return fl&&n&&("object"==typeof n||"function"==typeof n)&&e?gl(e,n):t&&t.get(n)},has:function(n){return fl&&n&&("object"==typeof n||"function"==typeof n)&&e?bl(e,n):!!t&&t.has(n)},set:function(n,o){fl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new fl),yl(e,n,o)):hl&&(t||(t=hl()),t.set(n,o))}};return n}:hl)||ll||function(){var e,t={assert:function(e){if(!t.has(e))throw new Ws("Side channel does not contain "+Fs(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Hs(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Hs(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Hs(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Hs(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},_l=String.prototype.replace,El=/%20/g,Cl="RFC3986",Sl={default:Cl,formatters:{RFC1738:function(e){return _l.call(e,El,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Cl},Rl=Sl,xl=Object.prototype.hasOwnProperty,Tl=Array.isArray,Il=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ol=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Al=1024,zl={arrayToObject:Ol,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var a=t[o],r=a.obj[a.prop],i=Object.keys(r),s=0;s<i.length;++s){var u=i[s],c=r[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:r,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Tl(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;s+=Al){for(var u=r.length>=Al?r.slice(s,s+Al):r,c=[],l=0;l<u.length;++l){var d=u.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===Rl.RFC1738&&(40===d||41===d)?c[c.length]=u.charAt(l):d<128?c[c.length]=Il[d]:d<2048?c[c.length]=Il[192|d>>6]+Il[128|63&d]:d<55296||d>=57344?c[c.length]=Il[224|d>>12]+Il[128|d>>6&63]+Il[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(l)),c[c.length]=Il[240|d>>18]+Il[128|d>>12&63]+Il[128|d>>6&63]+Il[128|63&d])}i+=c.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Tl(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Tl(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!xl.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Tl(t)&&!Tl(n)&&(a=Ol(t,o)),Tl(t)&&Tl(n)?(n.forEach((function(n,a){if(xl.call(t,a)){var r=t[a];r&&"object"==typeof r&&n&&"object"==typeof n?t[a]=e(r,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var r=n[a];return xl.call(t,a)?t[a]=e(t[a],r,o):t[a]=r,t}),a)}},Pl=function(){var e,t={assert:function(e){if(!t.has(e))throw new kl("Side channel does not contain "+jl(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=wl()),e.set(t,n)}};return t},Dl=zl,Ll=Sl,Nl=Object.prototype.hasOwnProperty,ql={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Ml=Array.isArray,Ul=Array.prototype.push,Bl=function(e,t){Ul.apply(e,Ml(t)?t:[t])},Fl=Date.prototype.toISOString,Wl=Ll.default,Hl={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dl.encode,encodeValuesOnly:!1,format:Wl,formatter:Ll.formatters[Wl],indices:!1,serializeDate:function(e){return Fl.call(e)},skipNulls:!1,strictNullHandling:!1},Vl={},Gl=function e(t,n,o,a,r,i,s,u,c,l,d,p,h,m,f,g,y,b){for(var v,k=t,j=b,w=0,_=!1;void 0!==(j=j.get(Vl))&&!_;){var E=j.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===j.get(Vl)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===o&&Ml(k)&&(k=Dl.maybeMap(k,(function(e){return e instanceof Date?h(e):e}))),null===k){if(i)return c&&!g?c(n,Hl.encoder,y,"key",m):n;k=""}if("string"==typeof(v=k)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||Dl.isBuffer(k))return c?[f(g?n:c(n,Hl.encoder,y,"key",m))+"="+f(c(k,Hl.encoder,y,"value",m))]:[f(n)+"="+f(String(k))];var C,S=[];if(void 0===k)return S;if("comma"===o&&Ml(k))g&&c&&(k=Dl.maybeMap(k,c)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(Ml(l))C=l;else{var R=Object.keys(k);C=d?R.sort(d):R}var x=u?n.replace(/\./g,"%2E"):n,T=a&&Ml(k)&&1===k.length?x+"[]":x;if(r&&Ml(k)&&0===k.length)return T+"[]";for(var I=0;I<C.length;++I){var O=C[I],A="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==A){var z=p&&u?O.replace(/\./g,"%2E"):O,P=Ml(k)?"function"==typeof o?o(T,z):T:T+(p?"."+z:"["+z+"]");b.set(t,w);var D=Pl();D.set(Vl,b),Bl(S,e(A,P,o,a,r,i,s,u,"comma"===o&&g&&Ml(k)?null:c,l,d,p,h,m,f,g,y,D))}}return S},Kl=zl,$l=Object.prototype.hasOwnProperty,Ql=Array.isArray,Jl={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Kl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Xl=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Yl=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Zl=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=i?a.slice(0,i.index):a,u=[];if(s){if(!n.plainObjects&&$l.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;n.depth>0&&null!==(i=r.exec(a))&&c<n.depth;){if(c+=1,!n.plainObjects&&$l.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(i[1])}if(i){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(i.index)+"]")}return function(e,t,n,o){for(var a=o?t:Yl(t,n),r=e.length-1;r>=0;--r){var i,s=e[r];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?u.replace(/%2E/g,"."):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=a:"__proto__"!==c&&(i[c]=a):i={0:a}}a=i}return a}(u,t,n,o)}},ed=function(e,t){var n,o=e,a=function(e){if(!e)return Hl;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||Hl.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=Ll.default;if(void 0!==e.format){if(!Nl.call(Ll.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=Ll.formatters[n],r=Hl.filter;if(("function"==typeof e.filter||Ml(e.filter))&&(r=e.filter),o=e.arrayFormat in ql?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Hl.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||Hl.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Hl.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Hl.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Hl.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Hl.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Hl.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Hl.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Hl.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Hl.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Hl.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Hl.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Hl.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):Ml(a.filter)&&(n=a.filter);var r=[];if("object"!=typeof o||null===o)return"";var i=ql[a.arrayFormat],s="comma"===i&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var u=Pl(),c=0;c<n.length;++c){var l=n[c];a.skipNulls&&null===o[l]||Bl(r,Gl(o[l],l,i,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,u))}var d=r.join(a.delimiter),p=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),d.length>0?p+d:""},td=function(e,t){var n=function(e){if(!e)return Jl;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Jl.charset:e.charset,n=void 0===e.duplicates?Jl.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||Jl.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Jl.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Jl.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Jl.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Jl.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Jl.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Jl.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Jl.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Jl.decoder,delimiter:"string"==typeof e.delimiter||Kl.isRegExp(e.delimiter)?e.delimiter:Jl.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Jl.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Jl.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Jl.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Jl.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Jl.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Jl.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,r=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,r),s=-1,u=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?u="utf-8":"utf8=%26%2310003%3B"===i[a]&&(u="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var c,l,d=i[a],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;-1===h?(c=t.decoder(d,Jl.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,h),Jl.decoder,u,"key"),l=Kl.maybeMap(Yl(d.slice(h+1),t),(function(e){return t.decoder(e,Jl.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Xl(l)),d.indexOf("[]=")>-1&&(l=Ql(l)?[l]:l);var m=$l.call(n,c);m&&"combine"===t.duplicates?n[c]=Kl.combine(n[c],l):m&&"last"!==t.duplicates||(n[c]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},r=Object.keys(o),i=0;i<r.length;++i){var s=r[i],u=Zl(s,o[s],n,"string"==typeof e);a=Kl.merge(a,u,n)}return!0===n.allowSparse?a:Kl.compact(a)},nd={formats:Sl,parse:td,stringify:ed},od={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return nd.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Cc||(Cc={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Sc||(Sc={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Rc||(Rc={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(xc||(xc={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(Tc||(Tc={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Ic||(Ic={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Oc||(Oc={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Ac||(Ac={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(zc||(zc={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.FEES="FEES",e.ADVANCEMENTS="ADVANCEMENTS",e.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",e.SETTLEMENTS_FEES="SETTLEMENTS_FEES",e.CASHFLOW="CASHFLOW",e.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS"}(Pc||(Pc={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Dc||(Dc={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Lc||(Lc={})),function(e){var t;(t=e.ConfigType||(e.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",t.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",t.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN"}(Nc||(Nc={}));var ad=["PAUSED","ACTIVE"],rd={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},id="DELETED",sd={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},ud=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},cd=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],ld=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],dd=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],pd=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],hd=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],md={docs_url:"https://docs.y.uno/reference/api-reference-overview"},fd={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},gd=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const yd=[];for(let e=0;e<256;++e)yd.push((e+256).toString(16).slice(1));let bd;const vd=new Uint8Array(16);var kd={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jd(e,t,n){if(kd.randomUUID&&!t&&!e)return kd.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!bd){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bd=crypto.getRandomValues.bind(crypto)}return bd(vd)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(yd[e[t+0]]+yd[e[t+1]]+yd[e[t+2]]+yd[e[t+3]]+"-"+yd[e[t+4]]+yd[e[t+5]]+"-"+yd[e[t+6]]+yd[e[t+7]]+"-"+yd[e[t+8]]+yd[e[t+9]]+"-"+yd[e[t+10]]+yd[e[t+11]]+yd[e[t+12]]+yd[e[t+13]]+yd[e[t+14]]+yd[e[t+15]]).toLowerCase()}(o)}var wd=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function _d(e){return e&&0!==e.length?{metadata_filters:e.map((function(e){return{key:e.field,conditional:e.type,values:e.values}}))}:{}}var Ed=function(e){function i(t){var n=t?a(a({},od),t):od;return e.call(this,n)||this}return o(i,e),i.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},i.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Pc.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},i.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Pc.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},i.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})},i.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})},i.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})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.postPayouts=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=r(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return this.post("/v2/transactions",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.postFraudTransactions=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return this.post("/fraud-transactions",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.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})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,a=localStorage.getItem("x-organization-code"),r={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:r})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},i.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":jd()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},i.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})},i.prototype.putCosts=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.put("/connections/costs",{costs:[e]})]}))}))},i.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},i.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},i.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},i.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},i.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}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,o){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(o))]}))}))},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==id)return delete t.status,this.delete(o,{data:t});Object.values(ad).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(rd[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var t,n=e.payload,o=e.connectionCode,r=localStorage.getItem("account"),i=r?null===(t=JSON.parse(r).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(o),a({account_code:i},n))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getDialogs=function(){return this.get("/dialogs")},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.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}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.getMenu=function(){return this.get("/cms/menu")},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:Di})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.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:Di})},i.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:Di})},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/api-logs/organization",a,{params:o,paramsSerializer:Di})},i.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},i.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},i.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},i.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},i.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},i.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},i.prototype.getLocales=function(){return this.get("/cms/locales")},i.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},i.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},i.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},i.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},i.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,o=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=wd(n);return o&&(u.connection_name=o.split(",")),i&&(u=a(a({},u),_d(i))),this.post("/insights/conversion-rate/".concat(t),u,{params:s})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,o=e.metadata,i=r(e,["account_code","metadata"]),s=wd(n);return o&&(s=a(a({},s),_d(o))),this.post("/insights/conversion-rate/cards/metrics/".concat(t),s,{params:i})},i.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]),i=wd(t);return n&&(i=a(a({},i),_d(n))),this.post("/insights/conversion-rate/fallback",i,{params:o})},i.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,o=t.metadata,i=r(t,["connection_name","metadata"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(s=a(a({},s),{connection_name:null==n?void 0:n.split(",")})),o&&(s=a(a({},s),_d(o))),this.post("/insights/volume/metrics",s,{params:i})},i.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var o=n.connection_name,i=n.metadata,s=r(n,["connection_name","metadata"]),u={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(u=a(a({},u),{connection_name:null==o?void 0:o.split(",")})),i&&(u=a(a({},u),_d(i))),this.post("/insights/volume/".concat(t),u,{params:s})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,o=e.metadata,i=r(e,["account_code","connection_name","metadata"]),s=wd(t);return n&&(s=a(a({},s),{connection_name:null==n?void 0:n.split(",")})),o&&(s=a(a({},s),_d(o))),this.post("/insights/overview",s,{params:i})},i.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,o=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=wd(n);return o&&(u=a(a({},u),{connection_name:null==o?void 0:o.split(",")})),i&&(u=a(a({},u),_d(i))),this.post("/insights/overview/".concat(t),u,{params:s})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},i.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},i.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},i.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload,r={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",a,{headers:r})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},i.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},i.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},i.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},i.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},i.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},i.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},i.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,t,n,o,r){void 0===n&&(n=1),void 0===o&&(o=10);var i=a({account_codes:t||[],page:n,page_size:o},r&&{search_value:r});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),i)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},i.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},i.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},i.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:o,status:a,role_id:r,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=r(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var o=e.accountCode;return t(this,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",o?{headers:{"x-account-code":o}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach((function(e){t[e]=!0})),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}}))}))},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){var t=e.account_code,n=r(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:Di})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},i.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},i.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},i.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},i.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},i.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},i.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},i.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},i.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},i.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},i.prototype.getInstallmentPlans=function(e){return this.get("/v1/installments-plans",{headers:{"x-account-code":e}})},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},i.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}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var r="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(r+="&search=".concat(a)),this.get(r,o?{headers:{"x-account-code":o}}:{})},i.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}}:{})},i.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}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.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}})},i.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})},i.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}})},i.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})},i.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}})},i.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}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},i.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}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",a({},e))},i.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})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:o.token}),cancel:function(){return o.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},i.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",a({},t))},i.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",a({},t))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.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}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(sd[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(sd[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},i.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i}(Li),Cd={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},Sd=function(e){function r(t){return e.call(this,t)||this}return o(r,e),r.refreshInstance=function(e){var t;return this.classInstance=new r(a(a({},e),{baseURL:Cd["BFF_URL_".concat(Cd.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use((function(e){return e}),(function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"})),this.classInstance},r.getInstance=function(e){var t,n;if(this.classInstance){var o=localStorage.getItem("account");if(o){var i=null===(n=null===(t=JSON.parse(o))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new r(a(a({},e),{baseURL:(null==e?void 0:e.baseURL)||Cd["BFF_URL_".concat(Cd.ENVIRONMENT)]})),this.classInstance},r.setMode=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return this.classInstance.instance.interceptors.request.use((function(t){return t.headers&&(t.headers["X-Environment"]=e),t}),(function(e){return Promise.reject(e)})),[2]}))}))},r}(Ed);class Rd{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 xd="undefined"==typeof window||"Deno"in window;function Td(){}function Id(e){return"number"==typeof e&&e>=0&&e!==1/0}function Od(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ad(e,t,n){return Vd(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function zd(e,t,n){return Vd(e)?[{...t,queryKey:e},n]:[e||{},t]}function Pd(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:r,queryKey:i,stale:s}=e;if(Vd(i))if(o){if(t.queryHash!==Ld(i,t.options))return!1}else if(!qd(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===a||a===t.state.fetchStatus)&&!(r&&!r(t)))}function Dd(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:r}=e;if(Vd(r)){if(!t.options.mutationKey)return!1;if(n){if(Nd(t.options.mutationKey)!==Nd(r))return!1}else if(!qd(t.options.mutationKey,r))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function Ld(e,t){return((null==t?void 0:t.queryKeyHashFn)||Nd)(e)}function Nd(e){return JSON.stringify(e,((e,t)=>Wd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function qd(e,t){return Md(e,t)}function Md(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Md(e[n],t[n]))))}function Ud(e,t){if(e===t)return e;const n=Fd(e)&&Fd(t);if(n||Wd(e)&&Wd(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),r=a.length,i=n?[]:{};let s=0;for(let o=0;o<r;o++){const r=n?o:a[o];i[r]=Ud(e[r],t[r]),i[r]===e[r]&&s++}return o===r&&s===o?e:i}return t}function Bd(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wd(e){if(!Hd(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Hd(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Hd(e){return"[object Object]"===Object.prototype.toString.call(e)}function Vd(e){return Array.isArray(e)}function Gd(e){return new Promise((t=>{setTimeout(t,e)}))}function Kd(e){Gd(0).then(e)}function $d(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ud(e,t):t}const Qd=new class extends Rd{constructor(){super(),this.setup=e=>{if(!xd&&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)}},Jd=["online","offline"];const Xd=new class extends Rd{constructor(){super(),this.setup=e=>{if(!xd&&window.addEventListener){const t=()=>e();return Jd.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Jd.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 Yd(e){return Math.min(1e3*2**e,3e4)}function Zd(e){return"online"!==(null!=e?e:"online")||Xd.isOnline()}class ep{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function tp(e){return e instanceof ep}function np(e){let t,n,o,a=!1,r=0,i=!1;const s=new Promise(((e,t)=>{n=e,o=t})),u=()=>!Qd.isFocused()||"always"!==e.networkMode&&!Xd.isOnline(),c=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise((n=>{t=e=>{const t=i||!u();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(c).catch((t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,c=null!=(o=e.retryDelay)?o:Yd,h="function"==typeof c?c(r,t):c,m=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);!a&&m?(r++,null==e.onFail||e.onFail(r,t),Gd(h).then((()=>{if(u())return d()})).then((()=>{a?l(t):p()}))):l(t)}))};return Zd(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new ep(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const op=console;const ap=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Kd((()=>{n(o)}))},r=()=>{const t=e;e=[],t.length&&Kd((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||r()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class rp{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Id(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:xd?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ip extends rp{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||op,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=$d(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(Td).catch(Td):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||!Od(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=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(r)return this.abortSignalConsumed=!0,r.signal}})};s(i);const u={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 c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,o,a;(tp(e)&&e.silent||this.dispatch({type:"error",error:e}),tp(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=np({fn:u.fetchFn,abort:null==r?void 0:r.abort.bind(r),onSuccess:e=>{var t,n,o,a;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,o;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Zd(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return tp(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ap.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class sp extends Rd{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,r=null!=(o=t.queryHash)?o:Ld(a,t);let i=this.get(r);return i||(i=new ip({cache:this,logger:e.getLogger(),queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),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(){ap.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=zd(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Pd(n,e)))}findAll(e,t){const[n]=zd(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Pd(n,e))):this.queries}notify(e){ap.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){ap.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){ap.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class up extends rp{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||op,this.observers=[],this.state=e.state||cp(),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=np({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,o,a,r,i,s,u,c;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 m=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,m,this.state.variables,this.state.context,this)),await(null==(a=(r=this.options).onSuccess)?void 0:a.call(r,m,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,m,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(e){try{var m,f,g,y,b,v,k,j;throw await(null==(m=(f=this.mutationCache.config).onError)?void 0:m.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(j=this.options).onSettled)?void 0:k.call(j,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:!Zd(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),ap.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function cp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class lp extends Rd{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new up({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(o),o}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){ap.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=>Dd(e,t)))}findAll(e){return this.mutations.filter((t=>Dd(e,t)))}notify(e){ap.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 ap.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Td)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function dp(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,r,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),p=(null==(r=e.state.data)?void 0:r.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let m=h,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(m=o?[t,...m]:[...m,t],o?[n,...e]:[...e,n]),b=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const r={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=r,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{f=!0})),e.signal}});const s=g(r);return Promise.resolve(s).then((e=>y(t,o,e,a)))};let v;if(p.length)if(l){const t=void 0!==c,n=t?c:pp(e.options,p);v=b(p,t,n)}else if(d){const t=void 0!==c,n=t?c:(k=e.options,j=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(j[0],j));v=b(p,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;v=!s||!p[0]||s(p[0],0,p)?b([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)v=v.then((o=>{if(!s||!p[n]||s(p[n],n,p)){const a=t?h[n]:pp(e.options,o);return b(o,t,a)}return Promise.resolve(y(o,h[n],p[n]))}))}else v=b([]);var k,j;const w=v.then((e=>({pages:e,pageParams:m})));return w}}}}function pp(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class hp extends Rd{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),mp(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fp(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fp(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Bd(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&gp(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const r=this.computeRefetchInterval();!a||this.currentQuery===o&&this.options.enabled===n.enabled&&r===this.currentRefetchInterval||this.updateRefetchInterval(r)}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(!Bd(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(Td)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),xd||this.currentResult.isStale||!Id(this.options.staleTime))return;const e=Od(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,!xd&&!1!==this.options.enabled&&Id(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Qd.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,a=this.currentResult,r=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:m,fetchStatus:f,status:g}=l,y=!1,b=!1;if(t._optimisticResults){const a=this.hasListeners(),r=!a&&mp(e,t),i=a&&gp(e,n,t,o);(r||i)&&(f=Zd(e.options.networkMode)?"fetching":"paused",p||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,p=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==l.data)if(a&&l.data===(null==r?void 0:r.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=$d(null==a?void 0:a.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"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",d=$d(null==a?void 0:a.data,e,t),b=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,m=Date.now(),g="error");const v="fetching"===f,k="loading"===g,j="error"===g;return{status:g,fetchStatus:f,isLoading:k,isSuccess:"success"===g,isError:j,isInitialLoading:k&&v,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:m,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:j&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:b,isPreviousData:y,isRefetchError:j&&0!==l.dataUpdatedAt,isStale:yp(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,Bd(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||tp(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ap.batch((()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,this.currentResult.data,null);else if(e.onError){var r,i,s,u;null==(r=(i=this.options).onError)||r.call(i,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,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 mp(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&&fp(e,t,t.refetchOnMount)}function fp(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&yp(e,t)}return!1}function gp(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&yp(e,n)}function yp(e,t){return e.isStaleByTime(t.staleTime)}class bp extends Rd{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),Bd(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){ap.batch((()=>{var t,n,o,a;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(a=this.mutateOptions).onSettled)||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var r,i,s,u;null==(r=(i=this.mutateOptions).onError)||r.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var vp,kp={exports:{}},jp={};var wp,_p={};
207
+ function Go(e){const t=Vo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Ko(){return Go(document.cookie)}function $o(e){const t=e.headers.get("cookie"),n=t?Go(t):{},o=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?Ko():{}}case"include":return Ko();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Vo.serialize(t,o[t]));const a=se.getCookiesSync(e.url),r=Object.fromEntries(a.map((e=>[e.key,e.value])));for(const t of a)e.headers.append("cookie",t.toString());return{...o,...r,...n}}var Qo=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Qo||{});class Jo extends w{constructor(e,t,n,o){super({info:{header:`${e} ${t}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(t instanceof RegExp)return;if(Xt(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach(((e,t)=>{})),b.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/recipes/query-parameters`)}async parse(e){return{match:Zt(new URL(e.request.url),this.info.path,e.resolutionContext?.baseUrl),cookies:$o(e.request)}}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=_(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),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||Lo[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),a=(r=o.status)<300?"#69AB32":r<400?"#F0BB4B":"#E95F5D";var r;console.groupCollapsed(b.formatMessage(`${tn()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${a}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Xo(e){return(t,n,o={})=>new Jo(e,t,n,o)}const Yo={all:Xo(/.+/),head:Xo(Qo.HEAD),get:Xo(Qo.GET),post:Xo(Qo.POST),put:Xo(Qo.PUT),delete:Xo(Qo.DELETE),patch:Xo(Qo.PATCH),options:Xo(Qo.OPTIONS)},Zo=Symbol("bodyType");class ea extends Wt{[Zo]=null;constructor(e,t){const n=We(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,Fe,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=Ue.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static text(e,t){const n=We(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 ea(e,n)}static json(e,t){const n=We(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new ea(o,n)}static xml(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new ea(e,n)}static html(e,t){const n=We(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new ea(e,n)}static arrayBuffer(e,t){const n=We(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 ea(e,n)}static formData(e,t){return new ea(e,We(t))}}g("undefined"!=typeof URL,b.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 ta,na={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},oa={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:{}},aa={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:{}},ra={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:{}},ia=[{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:""}],sa={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}]},ua=[Yo.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",(function(){return ea.json(na)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",(function(){return ea.json(oa)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",(function(){return ea.json(aa)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",(function(){return ea.json(ra)})),Yo.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",(function(){return ea.json(ia)})),Yo.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",(function(){return ea.json(sa)}))],ca={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}}},la={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}}},da={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"}(ta||(ta={}));var pa={sales_volume_metric_group:da.sales_volume_metric_group,total_payments:da.total_payments},ha=Yo.get("/api/insights/overview-metrics",(function(){return ea.json(pa)})),ma=[Yo.get("/api/v3/insights/overview-metrics/".concat(ta.GENERAL),(function(){return ea.json({sales_volume_metric_group:pa.sales_volume_metric_group})})),Yo.get("/api/v3/insights/overview-metrics/".concat(ta.LATENCY),(function(){return ea.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})})),Yo.get("/api/v3/insights/overview-metrics/".concat(ta.STATUS),(function(){return ea.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})})),Yo.get("/api/v3/insights/overview-metrics/".concat(ta.SUBSCRIPTIONS),(function(){return ea.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})}))],fa=e([ha],ma,!0),ga=e([Yo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",(function(){return ea.json(ca)})),Yo.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",(function(){return ea.json(la)})),Yo.get("*/dialogs",(function(){return ea.json({})})),Yo.get("*/accounts/webhooks/:accountCode",(function(){return ea.json({})})),Yo.get("*/accounts/webhooks/params-catalog",(function(){return ea.json({})})),Yo.get("*/accounts/webhooks-v2/:accountCode",(function(){return ea.json({})}))],fa,!0),ya=e(e([],ua,!0),ga,!0),ba=function(...e){return new Do(...e)}.apply(void 0,ya),va="MSW_ENABLED";function ka(e){e?(localStorage.setItem(va,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(va),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function ja(){return"true"===localStorage.getItem(va)}function wa(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return ka(!0)},window.disableMSW=function(){return ka(!1)},window.isMSWEnabled=ja);const{toString:_a}=Object.prototype,{getPrototypeOf:Ea}=Object,{iterator:Ca,toStringTag:Sa}=Symbol,Ra=(xa=Object.create(null),e=>{const t=_a.call(e);return xa[t]||(xa[t]=t.slice(8,-1).toLowerCase())});var xa;const Ta=e=>(e=e.toLowerCase(),t=>Ra(t)===e),Ia=e=>t=>typeof t===e,{isArray:Oa}=Array,Aa=Ia("undefined");function za(e){return null!==e&&!Aa(e)&&null!==e.constructor&&!Aa(e.constructor)&&La(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pa=Ta("ArrayBuffer");const Da=Ia("string"),La=Ia("function"),Na=Ia("number"),qa=e=>null!==e&&"object"==typeof e,Ma=e=>{if("object"!==Ra(e))return!1;const t=Ea(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Sa in e||Ca in e)},Ua=Ta("Date"),Ba=Ta("File"),Fa=Ta("Blob"),Wa=Ta("FileList"),Ha=Ta("URLSearchParams"),[Va,Ga,Ka,$a]=["ReadableStream","Request","Response","Headers"].map(Ta);function Qa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,a;if("object"!=typeof e&&(e=[e]),Oa(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{if(za(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let i;for(o=0;o<r;o++)i=a[o],t.call(null,e[i],i,e)}}function Ja(e,t){if(za(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,a=n.length;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const Xa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ya=e=>!Aa(e)&&e!==Xa;const Za=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ea(Uint8Array)),er=Ta("HTMLFormElement"),tr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nr=Ta("RegExp"),or=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Qa(n,((n,a)=>{let r;!1!==(r=t(n,a,e))&&(o[a]=r||n)})),Object.defineProperties(e,o)};const ar=Ta("AsyncFunction"),rr=(ir="function"==typeof setImmediate,sr=La(Xa.postMessage),ir?setImmediate:sr?(ur=`axios@${Math.random()}`,cr=[],Xa.addEventListener("message",(({source:e,data:t})=>{e===Xa&&t===ur&&cr.length&&cr.shift()()}),!1),e=>{cr.push(e),Xa.postMessage(ur,"*")}):e=>setTimeout(e));var ir,sr,ur,cr;const lr="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Xa):"undefined"!=typeof process&&process.nextTick||rr;var dr={isArray:Oa,isArrayBuffer:Pa,isBuffer:za,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||La(e.append)&&("formdata"===(t=Ra(e))||"object"===t&&La(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pa(e.buffer),t},isString:Da,isNumber:Na,isBoolean:e=>!0===e||!1===e,isObject:qa,isPlainObject:Ma,isEmptyObject:e=>{if(!qa(e)||za(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Va,isRequest:Ga,isResponse:Ka,isHeaders:$a,isUndefined:Aa,isDate:Ua,isFile:Ba,isBlob:Fa,isRegExp:nr,isFunction:La,isStream:e=>qa(e)&&La(e.pipe),isURLSearchParams:Ha,isTypedArray:Za,isFileList:Wa,forEach:Qa,merge:function e(){const{caseless:t,skipUndefined:n}=Ya(this)&&this||{},o={},a=(a,r)=>{const i=t&&Ja(o,r)||r;Ma(o[i])&&Ma(a)?o[i]=e(o[i],a):Ma(a)?o[i]=e({},a):Oa(a)?o[i]=a.slice():n&&Aa(a)||(o[i]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Qa(arguments[e],a);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Qa(t,((t,o)=>{n&&La(t)?e[o]=wa(t,n):e[o]=t}),{allOwnKeys:o}),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,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,r,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)i=a[r],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Ea(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ra,kindOfTest:Ta,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(Oa(e))return e;let t=e.length;if(!Na(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ca]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:er,hasOwnProperty:tr,hasOwnProp:tr,reduceDescriptors:or,freezeMethods:e=>{or(e,((t,n)=>{if(La(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];La(o)&&(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={},o=e=>{e.forEach((e=>{n[e]=!0}))};return Oa(e)?o(e):o(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:Ja,global:Xa,isContextDefined:Ya,isSpecCompliantForm:function(e){return!!(e&&La(e.append)&&"FormData"===e[Sa]&&e[Ca])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(qa(e)){if(t.indexOf(e)>=0)return;if(za(e))return e;if(!("toJSON"in e)){t[o]=e;const a=Oa(e)?[]:{};return Qa(e,((e,t)=>{const r=n(e,o+1);!Aa(r)&&(a[t]=r)})),t[o]=void 0,a}}return e};return n(e,0)},isAsyncFn:ar,isThenable:e=>e&&(qa(e)||La(e))&&La(e.then)&&La(e.catch),setImmediate:rr,asap:lr,isIterable:e=>null!=e&&La(e[Ca])};function pr(e,t,n,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}dr.inherits(pr,Error,{toJSON:function(){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:dr.toJSONObject(this.config),code:this.code,status:this.status}}});const hr=pr.prototype,mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{mr[e]={value:e}})),Object.defineProperties(pr,mr),Object.defineProperty(hr,"isAxiosError",{value:!0}),pr.from=(e,t,n,o,a,r)=>{const i=Object.create(hr);dr.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return pr.call(i,s,u,n,o,a),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",r&&Object.assign(i,r),i};function fr(e){return dr.isPlainObject(e)||dr.isArray(e)}function gr(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function yr(e,t,n){return e?e.concat(t).map((function(e,t){return e=gr(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const br=dr.toFlatObject(dr,{},null,(function(e){return/^is[A-Z]/.test(e)}));function vr(e,t,n){if(!dr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=dr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!dr.isUndefined(t[e])}))).metaTokens,a=n.visitor||c,r=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&dr.isSpecCompliantForm(t);if(!dr.isFunction(a))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(dr.isDate(e))return e.toISOString();if(dr.isBoolean(e))return e.toString();if(!s&&dr.isBlob(e))throw new pr("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(e)||dr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(dr.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(dr.isArray(e)&&function(e){return dr.isArray(e)&&!e.some(fr)}(e)||(dr.isFileList(e)||dr.endsWith(n,"[]"))&&(s=dr.toArray(e)))return n=gr(n),s.forEach((function(e,o){!dr.isUndefined(e)&&null!==e&&t.append(!0===i?yr([n],o,r):null===i?n:n+"[]",u(e))})),!1;return!!fr(e)||(t.append(yr(a,n,r),u(e)),!1)}const l=[],d=Object.assign(br,{defaultVisitor:c,convertValue:u,isVisitable:fr});if(!dr.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!dr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),dr.forEach(n,(function(n,r){!0===(!(dr.isUndefined(n)||null===n)&&a.call(t,n,dr.isString(r)?r.trim():r,o,d))&&e(n,o?o.concat(r):[r])})),l.pop()}}(e),t}function kr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function jr(e,t){this._pairs=[],e&&vr(e,this,t)}const wr=jr.prototype;function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Er(e,t,n){if(!t)return e;const o=n&&n.encode||_r;dr.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let r;if(r=a?a(t,n):dr.isURLSearchParams(t)?t.toString():new jr(t,n).toString(o),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}wr.append=function(e,t){this._pairs.push([e,t])},wr.toString=function(e){const t=e?function(t){return e.call(this,t,kr)}:kr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Cr=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){dr.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Sr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:jr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const xr="undefined"!=typeof window&&"undefined"!=typeof document,Tr="object"==typeof navigator&&navigator||void 0,Ir=xr&&(!Tr||["ReactNative","NativeScript","NS"].indexOf(Tr.product)<0),Or="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ar=xr&&window.location.href||"http://localhost";var zr={...Object.freeze({__proto__:null,hasBrowserEnv:xr,hasStandardBrowserEnv:Ir,hasStandardBrowserWebWorkerEnv:Or,navigator:Tr,origin:Ar}),...Rr};function Pr(e){function t(e,n,o,a){let r=e[a++];if("__proto__"===r)return!0;const i=Number.isFinite(+r),s=a>=e.length;if(r=!r&&dr.isArray(o)?o.length:r,s)return dr.hasOwnProp(o,r)?o[r]=[o[r],n]:o[r]=n,!i;o[r]&&dr.isObject(o[r])||(o[r]=[]);return t(e,n,o[r],a)&&dr.isArray(o[r])&&(o[r]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let r;for(o=0;o<a;o++)r=n[o],t[r]=e[r];return t}(o[r])),!i}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const n={};return dr.forEachEntry(e,((e,o)=>{t(function(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null}const Dr={transitional:Sr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=dr.isObject(e);a&&dr.isHTMLForm(e)&&(e=new FormData(e));if(dr.isFormData(e))return o?JSON.stringify(Pr(e)):e;if(dr.isArrayBuffer(e)||dr.isBuffer(e)||dr.isStream(e)||dr.isFile(e)||dr.isBlob(e)||dr.isReadableStream(e))return e;if(dr.isArrayBufferView(e))return e.buffer;if(dr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return vr(e,new zr.classes.URLSearchParams,{visitor:function(e,t,n,o){return zr.isNode&&dr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((r=dr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return vr(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(dr.isString(e))try{return(t||JSON.parse)(e),dr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Dr.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(dr.isResponse(e)||dr.isReadableStream(e))return e;if(e&&dr.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw pr.from(e,pr.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zr.classes.FormData,Blob:zr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],(e=>{Dr.headers[e]={}}));var Lr=Dr;const Nr=dr.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 qr=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function Ur(e){return!1===e||null==e?e:dr.isArray(e)?e.map(Ur):String(e)}function Br(e,t,n,o,a){return dr.isFunction(o)?o.call(this,t,n):(a&&(t=n),dr.isString(t)?dr.isString(o)?-1!==t.indexOf(o):dr.isRegExp(o)?o.test(t):void 0:void 0)}class Fr{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Mr(t);if(!a)throw new Error("header name must be a non-empty string");const r=dr.findKey(o,a);(!r||void 0===o[r]||!0===n||void 0===n&&!1!==o[r])&&(o[r||t]=Ur(e))}const r=(e,t)=>dr.forEach(e,((e,n)=>a(e,n,t)));if(dr.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(dr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&Nr[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(dr.isObject(e)&&dr.isIterable(e)){let n,o,a={};for(const t of e){if(!dr.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?dr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}r(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Mr(e)){const n=dr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(dr.isFunction(t))return t.call(this,e,n);if(dr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mr(e)){const n=dr.findKey(this,e);return!(!n||void 0===this[n]||t&&!Br(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Mr(e)){const a=dr.findKey(n,e);!a||t&&!Br(0,n[a],a,t)||(delete n[a],o=!0)}}return dr.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!Br(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return dr.forEach(this,((o,a)=>{const r=dr.findKey(n,a);if(r)return t[r]=Ur(o),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();i!==a&&delete t[a],t[i]=Ur(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return dr.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&dr.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[qr]=this[qr]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Mr(e);t[o]||(!function(e,t){const n=dr.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return dr.isArray(e)?e.forEach(o):o(e),this}}Fr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(Fr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),dr.freezeMethods(Fr);var Wr=Fr;function Hr(e,t){const n=this||Lr,o=t||n,a=Wr.from(o.headers);let r=o.data;return dr.forEach(e,(function(e){r=e.call(n,r,a.normalize(),t?t.status:void 0)})),a.normalize(),r}function Vr(e){return!(!e||!e.__CANCEL__)}function Gr(e,t,n){pr.call(this,null==e?"canceled":e,pr.ERR_CANCELED,t,n),this.name="CanceledError"}function Kr(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new pr("Request failed with status code "+n.status,[pr.ERR_BAD_REQUEST,pr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}dr.inherits(Gr,pr,{__CANCEL__:!0});const $r=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,r=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];a||(a=u),n[r]=s,o[r]=u;let l=i,d=0;for(;l!==r;)d+=n[l++],l%=e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const p=c&&u-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,a=0,r=1e3/t;const i=(t,r=Date.now())=>{a=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=r?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),r-s)))},()=>n&&i(n)]}((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,s=r-o,u=a(s);o=r;e({loaded:r,total:i,progress:i?r/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&r<=i?(i-r)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Qr=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Jr=e=>(...t)=>dr.asap((()=>e(...t)));var Xr=zr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zr.origin),zr.navigator&&/(msie|trident)/i.test(zr.navigator.userAgent)):()=>!0,Yr=zr.hasStandardBrowserEnv?{write(e,t,n,o,a,r){const i=[e+"="+encodeURIComponent(t)];dr.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),dr.isString(o)&&i.push("path="+o),dr.isString(a)&&i.push("domain="+a),!0===r&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Zr(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ei=e=>e instanceof Wr?{...e}:e;function ti(e,t){t=t||{};const n={};function o(e,t,n,o){return dr.isPlainObject(e)&&dr.isPlainObject(t)?dr.merge.call({caseless:o},e,t):dr.isPlainObject(t)?dr.merge({},t):dr.isArray(t)?t.slice():t}function a(e,t,n,a){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function r(e,t){if(!dr.isUndefined(t))return o(void 0,t)}function i(e,t){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,r){return r in t?o(n,a):r in e?o(void 0,n):void 0}const u={url:r,method:r,data:r,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,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>a(ei(e),ei(t),0,!0)};return dr.forEach(Object.keys({...e,...t}),(function(o){const r=u[o]||a,i=r(e[o],t[o],o);dr.isUndefined(i)&&r!==s||(n[o]=i)})),n}var ni=e=>{const t=ti({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:r,headers:i,auth:s}=t;if(t.headers=i=Wr.from(i),t.url=Er(Zr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),dr.isFormData(n))if(zr.hasStandardBrowserEnv||zr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(dr.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)}))}if(zr.hasStandardBrowserEnv&&(o&&dr.isFunction(o)&&(o=o(t)),o||!1!==o&&Xr(t.url))){const e=a&&r&&Yr.read(r);e&&i.set(a,e)}return t};var oi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=ni(e);let a=o.data;const r=Wr.from(o.headers).normalize();let i,s,u,c,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function m(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Wr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Kr((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new pr("Request aborted",pr.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new pr(t&&t.message?t.message:"Network Error",pr.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||Sr;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new pr(t,a.clarifyTimeoutError?pr.ETIMEDOUT:pr.ECONNABORTED,e,f)),f=null},void 0===a&&r.setContentType(null),"setRequestHeader"in f&&dr.forEach(r.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),dr.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),d&&"json"!==d&&(f.responseType=o.responseType),h&&([u,l]=$r(h,!0),f.addEventListener("progress",u)),p&&f.upload&&([s,c]=$r(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new Gr(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===zr.protocols.indexOf(y)?n(new pr("Unsupported protocol "+y+":",pr.ERR_BAD_REQUEST,e)):f.send(a||null)}))};var ai=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof pr?t:new Gr(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null,a(new pr(`timeout ${t} of ms exceeded`,pr.ETIMEDOUT))}),t);const i=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>dr.asap(i),s}};const ri=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},ii=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()}},si=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of ii(e))yield*ri(n,t)}(e,t);let r,i=0,s=e=>{r||(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let r=o.byteLength;if(n){let e=i+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:ui}=dr,ci=(({Request:e,Response:t})=>({Request:e,Response:t}))(dr.global),{ReadableStream:li,TextEncoder:di}=dr.global,pi=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},hi=e=>{e=dr.merge.call({skipUndefined:!0},ci,e);const{fetch:t,Request:n,Response:o}=e,a=t?ui(t):"function"==typeof fetch,r=ui(n),i=ui(o);if(!a)return!1;const s=a&&ui(li),u=a&&("function"==typeof di?(e=>t=>e.encode(t))(new di):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=r&&s&&pi((()=>{let e=!1;const t=new n(zr.origin,{body:new li,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=i&&s&&pi((()=>dr.isReadableStream(new o("").body))),d={stream:l&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new pr(`Response type '${e}' is not supported`,pr.ERR_NOT_SUPPORT,n)})}));const p=async(e,t)=>{const o=dr.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e)){const t=new n(zr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dr.isArrayBufferView(e)||dr.isArrayBuffer(e)?e.byteLength:(dr.isURLSearchParams(e)&&(e+=""),dr.isString(e)?(await u(e)).byteLength:void 0)})(t):o};return async e=>{let{url:a,method:i,data:s,signal:u,cancelToken:h,timeout:m,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:k}=ni(e),j=t||fetch;y=y?(y+"").toLowerCase():"text";let w=ai([u,h&&h.toAbortSignal()],m),_=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(C=await p(b,s))){let e,t=new n(a,{method:"POST",body:s,duplex:"half"});if(dr.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Qr(C,$r(Jr(g)));s=si(t.body,65536,e,n)}}dr.isString(v)||(v=v?"include":"omit");const t=r&&"credentials"in n.prototype,u={...k,signal:w,method:i.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};_=r&&new n(a,u);let h=await(r?j(_,k):j(a,u));const m=l&&("stream"===y||"response"===y);if(l&&(f||m&&E)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=dr.toFiniteNumber(h.headers.get("content-length")),[n,a]=f&&Qr(t,$r(Jr(f),!0))||[];h=new o(si(h.body,65536,n,(()=>{a&&a(),E&&E()})),e)}y=y||"text";let S=await d[dr.findKey(d,y)||"text"](h,e);return!m&&E&&E(),await new Promise(((t,n)=>{Kr(t,n,{data:S,headers:Wr.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:_})}))}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new pr("Network Error",pr.ERR_NETWORK,e,_),{cause:t.cause||t});throw pr.from(t,t&&t.code,e,_)}}},mi=new Map,fi=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:a}=t,r=[o,a,n];let i,s,u=r.length,c=mi;for(;u--;)i=r[u],s=c.get(i),void 0===s&&c.set(i,s=u?new Map:hi(t)),c=s;return s};fi();const gi={http:null,xhr:oi,fetch:{get:fi}};dr.forEach(gi,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const yi=e=>`- ${e}`,bi=e=>dr.isFunction(e)||null===e||!1===e;var vi=(e,t)=>{e=dr.isArray(e)?e:[e];const{length:n}=e;let o,a;const r={};for(let i=0;i<n;i++){let n;if(o=e[i],a=o,!bi(o)&&(a=gi[(n=String(o)).toLowerCase()],void 0===a))throw new pr(`Unknown adapter '${n}'`);if(a&&(dr.isFunction(a)||(a=a.get(t))))break;r[n||"#"+i]=a}if(!a){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new pr("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(yi).join("\n"):" "+yi(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function ki(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gr(null,e)}function ji(e){ki(e),e.headers=Wr.from(e.headers),e.data=Hr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vi(e.adapter||Lr.adapter,e)(e).then((function(t){return ki(e),t.data=Hr.call(e,e.transformResponse,t),t.headers=Wr.from(t.headers),t}),(function(t){return Vr(t)||(ki(e),t&&t.response&&(t.response.data=Hr.call(e,e.transformResponse,t.response),t.response.headers=Wr.from(t.response.headers))),Promise.reject(t)}))}const wi="1.12.2",_i={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ei={};_i.transitional=function(e,t,n){function o(e,t){return"[Axios v"+wi+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,r)=>{if(!1===e)throw new pr(o(a," has been removed"+(t?" in "+t:"")),pr.ERR_DEPRECATED);return t&&!Ei[a]&&(Ei[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,r)}},_i.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Ci={assertOptions:function(e,t,n){if("object"!=typeof e)throw new pr("options must be an object",pr.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const r=o[a],i=t[r];if(i){const t=e[r],n=void 0===t||i(t,r,e);if(!0!==n)throw new pr("option "+r+" must be "+n,pr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pr("Unknown option "+r,pr.ERR_BAD_OPTION)}},validators:_i};const Si=Ci.validators;let Ri=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Cr,response:new Cr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ti(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&Ci.assertOptions(n,{silentJSONParsing:Si.transitional(Si.boolean),forcedJSONParsing:Si.transitional(Si.boolean),clarifyTimeoutError:Si.transitional(Si.boolean)},!1),null!=o&&(dr.isFunction(o)?t.paramsSerializer={serialize:o}:Ci.assertOptions(o,{encode:Si.function,serialize:Si.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ci.assertOptions(t,{baseUrl:Si.spelling("baseURL"),withXsrfToken:Si.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=a&&dr.merge(a.common,a[t.method]);a&&dr.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Wr.concat(r,a);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[ji.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}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{c=ji.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return Er(Zr((e=ti(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};dr.forEach(["delete","get","head","options"],(function(e){Ri.prototype[e]=function(t,n){return this.request(ti(n||{},{method:e,url:t,data:(n||{}).data}))}})),dr.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(ti(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Ri.prototype[e]=t(),Ri.prototype[e+"Form"]=t(!0)}));var xi=Ri;class Ti{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new Gr(e,o,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ti((function(t){e=t})),cancel:e}}}var Ii=Ti;const Oi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Oi).forEach((([e,t])=>{Oi[t]=e}));var Ai=Oi;const zi=function e(t){const n=new xi(t),o=wa(xi.prototype.request,n);return dr.extend(o,xi.prototype,n,{allOwnKeys:!0}),dr.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ti(t,n))},o}(Lr);zi.Axios=xi,zi.CanceledError=Gr,zi.CancelToken=Ii,zi.isCancel=Vr,zi.VERSION=wi,zi.toFormData=vr,zi.AxiosError=pr,zi.Cancel=zi.CanceledError,zi.all=function(e){return Promise.all(e)},zi.spread=function(e){return function(t){return e.apply(null,t)}},zi.isAxiosError=function(e){return dr.isObject(e)&&!0===e.isAxiosError},zi.mergeConfig=ti,zi.AxiosHeaders=Wr,zi.formToJSON=e=>Pr(dr.isHTMLForm(e)?new FormData(e):e),zi.getAdapter=vi,zi.HttpStatusCode=Ai,zi.default=zi;var Pi=zi,Di=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var a=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(a))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))})),t.join("&")},Li=function(e){function t(t){var n,o,r,i,s=this;return(s=e.call(this,t)||this).token="",null===(o=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===o||o.request.use((function(e){return a(a({},e),{defaults:{headers:a(a({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})}),(function(e){return Promise.reject(e)})),null===(i=null===(r=s.instance)||void 0===r?void 0:r.interceptors)||void 0===i||i.response.use((function(e){return a({},e)}),(function(e){return Promise.reject(e)})),s}return o(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Pi.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}((function(e){this.instance=Pi.create(e)})),Ni="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qi(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 o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}var Mi=TypeError,Ui=qi(Object.freeze({__proto__:null,default:{}})),Bi="function"==typeof Map&&Map.prototype,Fi=Object.getOwnPropertyDescriptor&&Bi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wi=Bi&&Fi&&"function"==typeof Fi.get?Fi.get:null,Hi=Bi&&Map.prototype.forEach,Vi="function"==typeof Set&&Set.prototype,Gi=Object.getOwnPropertyDescriptor&&Vi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ki=Vi&&Gi&&"function"==typeof Gi.get?Gi.get:null,$i=Vi&&Set.prototype.forEach,Qi="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ji="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Xi="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Yi=Boolean.prototype.valueOf,Zi=Object.prototype.toString,es=Function.prototype.toString,ts=String.prototype.match,ns=String.prototype.slice,os=String.prototype.replace,as=String.prototype.toUpperCase,rs=String.prototype.toLowerCase,is=RegExp.prototype.test,ss=Array.prototype.concat,us=Array.prototype.join,cs=Array.prototype.slice,ls=Math.floor,ds="function"==typeof BigInt?BigInt.prototype.valueOf:null,ps=Object.getOwnPropertySymbols,hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ms="function"==typeof Symbol&&"object"==typeof Symbol.iterator,fs="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ms||"symbol")?Symbol.toStringTag:null,gs=Object.prototype.propertyIsEnumerable,ys=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function bs(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||is.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-ls(-e):ls(e);if(o!==e){var a=String(o),r=ns.call(t,a.length+1);return os.call(a,n,"$&_")+"."+os.call(os.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return os.call(t,n,"$&_")}var vs=Ui,ks=vs.custom,js=Is(ks)?ks:null,ws={__proto__:null,double:'"',single:"'"},_s={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Es=function e(t,n,o,a){var r=n||{};if(As(r,"quoteStyle")&&!As(ws,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(As(r,"maxStringLength")&&("number"==typeof r.maxStringLength?r.maxStringLength<0&&r.maxStringLength!==1/0:null!==r.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!As(r,"customInspect")||r.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(As(r,"indent")&&null!==r.indent&&"\t"!==r.indent&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(As(r,"numericSeparator")&&"boolean"!=typeof r.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=r.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 Ds(t,r);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?bs(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?bs(t,c):c}var l=void 0===r.depth?5:r.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return xs(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=us.call(Array(e.indent+1)," ")}return{base:n,prev:us.call(Array(t+1),n)}}(r,o);if(void 0===a)a=[];else if(Ps(a,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(a=cs.call(a)).push(n),i){var s={depth:r.depth};return As(r,"quoteStyle")&&(s.quoteStyle=r.quoteStyle),e(t,s,o+1,a)}return e(t,r,o+1,a)}if("function"==typeof t&&!Ts(t)){var h=function(e){if(e.name)return e.name;var t=ts.call(es.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=Bs(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+us.call(m,", ")+" }":"")}if(Is(t)){var f=ms?os.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):hs.call(t);return"object"!=typeof t||ms?f:Ns(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+rs.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)g+=" "+y[b].name+"="+Cs(Ss(y[b].value),"double",r);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+rs.call(String(t.nodeName))+">"}if(xs(t)){if(0===t.length)return"[]";var v=Bs(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Ps(e[t],"\n")>=0)return!1;return!0}(v)?"["+Us(v,d)+"]":"[ "+us.call(v,", ")+" ]"}if(function(e){return"[object Error]"===zs(e)&&Rs(e)}(t)){var k=Bs(t,p);return"cause"in Error.prototype||!("cause"in t)||gs.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+us.call(k,", ")+" }":"{ ["+String(t)+"] "+us.call(ss.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(js&&"function"==typeof t[js]&&vs)return vs(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Wi||!e||"object"!=typeof e)return!1;try{Wi.call(e);try{Ki.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var j=[];return Hi&&Hi.call(t,(function(e,n){j.push(p(n,t,!0)+" => "+p(e,t))})),Ms("Map",Wi.call(t),j,d)}if(function(e){if(!Ki||!e||"object"!=typeof e)return!1;try{Ki.call(e);try{Wi.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return $i&&$i.call(t,(function(e){w.push(p(e,t))})),Ms("Set",Ki.call(t),w,d)}if(function(e){if(!Qi||!e||"object"!=typeof e)return!1;try{Qi.call(e,Qi);try{Ji.call(e,Ji)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return qs("WeakMap");if(function(e){if(!Ji||!e||"object"!=typeof e)return!1;try{Ji.call(e,Ji);try{Qi.call(e,Qi)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return qs("WeakSet");if(function(e){if(!Xi||!e||"object"!=typeof e)return!1;try{return Xi.call(e),!0}catch(e){}return!1}(t))return qs("WeakRef");if(function(e){return"[object Number]"===zs(e)&&Rs(e)}(t))return Ns(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!ds)return!1;try{return ds.call(e),!0}catch(e){}return!1}(t))return Ns(p(ds.call(t)));if(function(e){return"[object Boolean]"===zs(e)&&Rs(e)}(t))return Ns(Yi.call(t));if(function(e){return"[object String]"===zs(e)&&Rs(e)}(t))return Ns(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ni&&t===Ni)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===zs(e)&&Rs(e)}(t)&&!Ts(t)){var _=Bs(t,p),E=ys?ys(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&fs&&Object(t)===t&&fs in t?ns.call(zs(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+us.call(ss.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":d?R+"{"+Us(_,d)+"}":R+"{ "+us.call(_,", ")+" }"}return String(t)};function Cs(e,t,n){var o=n.quoteStyle||t,a=ws[o];return a+e+a}function Ss(e){return os.call(String(e),/"/g,"&quot;")}function Rs(e){return!fs||!("object"==typeof e&&(fs in e||void 0!==e[fs]))}function xs(e){return"[object Array]"===zs(e)&&Rs(e)}function Ts(e){return"[object RegExp]"===zs(e)&&Rs(e)}function Is(e){if(ms)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!hs)return!1;try{return hs.call(e),!0}catch(e){}return!1}var Os=Object.prototype.hasOwnProperty||function(e){return e in this};function As(e,t){return Os.call(e,t)}function zs(e){return Zi.call(e)}function Ps(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Ds(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Ds(ns.call(e,0,t.maxStringLength),t)+o}var a=_s[t.quoteStyle||"single"];return a.lastIndex=0,Cs(os.call(os.call(e,a,"\\$1"),/[\x00-\x1f]/g,Ls),"single",t)}function Ls(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":"")+as.call(t.toString(16))}function Ns(e){return"Object("+e+")"}function qs(e){return e+" { ? }"}function Ms(e,t,n,o){return e+" ("+t+") {"+(o?Us(n,o):us.call(n,", "))+"}"}function Us(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+us.call(e,","+n)+"\n"+t.prev}function Bs(e,t){var n=xs(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=As(e,a)?t(e[a],e):""}var r,i="function"==typeof ps?ps(e):[];if(ms){r={};for(var s=0;s<i.length;s++)r["$"+i[s]]=i[s]}for(var u in e)As(e,u)&&(n&&String(Number(u))===u&&u<e.length||ms&&r["$"+u]instanceof Symbol||(is.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof ps)for(var c=0;c<i.length;c++)gs.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var Fs=Es,Ws=Mi,Hs=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},Vs=Object,Gs=Error,Ks=EvalError,$s=RangeError,Qs=ReferenceError,Js=SyntaxError,Xs=URIError,Ys=Math.abs,Zs=Math.floor,eu=Math.max,tu=Math.min,nu=Math.pow,ou=Math.round,au=Number.isNaN||function(e){return e!=e},ru=Object.getOwnPropertyDescriptor;if(ru)try{ru([],"length")}catch(e){ru=null}var iu=ru,su=Object.defineProperty||!1;if(su)try{su({},"a",{value:1})}catch(e){su=!1}var uu,cu,lu,du,pu,hu,mu,fu,gu,yu,bu,vu,ku,ju,wu,_u,Eu=su;function Cu(){return hu?pu:(hu=1,pu="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Su(){return fu?mu:(fu=1,mu=Vs.getPrototypeOf||null)}function Ru(){if(yu)return gu;yu=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return gu=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var r,i=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(r=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var e=a.apply(this,n(i,arguments));return Object(e)===e?e:this}return a.apply(o,n(i,arguments))})),a.prototype){var l=function(){};l.prototype=a.prototype,r.prototype=new l,l.prototype=null}return r},gu}function xu(){if(vu)return bu;vu=1;var e=Ru();return bu=Function.prototype.bind||e}function Tu(){return ju?ku:(ju=1,ku=Function.prototype.call)}function Iu(){return _u?wu:(_u=1,wu=Function.prototype.apply)}var Ou,Au,zu,Pu,Du,Lu,Nu,qu="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Mu=xu(),Uu=Iu(),Bu=Tu(),Fu=qu||Mu.call(Bu,Uu),Wu=xu(),Hu=Mi,Vu=Tu(),Gu=Fu,Ku=function(e){if(e.length<1||"function"!=typeof e[0])throw new Hu("a function is required");return Gu(Wu,Vu,e)};var $u=Vs,Qu=Gs,Ju=Ks,Xu=$s,Yu=Qs,Zu=Js,ec=Mi,tc=Xs,nc=Ys,oc=Zs,ac=eu,rc=tu,ic=nu,sc=ou,uc=function(e){return au(e)||0===e?e:e<0?-1:1},cc=Function,lc=function(e){try{return cc('"use strict"; return ('+e+").constructor;")()}catch(e){}},dc=iu,pc=Eu,hc=function(){throw new ec},mc=dc?function(){try{return hc}catch(e){try{return dc(arguments,"callee").get}catch(e){return hc}}}():hc,fc=function(){if(du)return lu;du=1;var e="undefined"!=typeof Symbol&&Symbol,t=cu?uu:(cu=1,uu=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0});return lu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),gc=function(){if(Pu)return zu;Pu=1;var e=Cu(),t=Su(),n=function(){if(Au)return Ou;Au=1;var e,t=Ku,n=iu;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,r=a.getPrototypeOf;return Ou=o&&"function"==typeof o.get?t([o.get]):"function"==typeof r&&function(e){return r(null==e?e:a(e))}}();return zu=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}(),yc=Su(),bc=Cu(),vc=Iu(),kc=Tu(),jc={},wc="undefined"!=typeof Uint8Array&&gc?gc(Uint8Array):Nu,_c={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Nu:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Nu:ArrayBuffer,"%ArrayIteratorPrototype%":fc&&gc?gc([][Symbol.iterator]()):Nu,"%AsyncFromSyncIteratorPrototype%":Nu,"%AsyncFunction%":jc,"%AsyncGenerator%":jc,"%AsyncGeneratorFunction%":jc,"%AsyncIteratorPrototype%":jc,"%Atomics%":"undefined"==typeof Atomics?Nu:Atomics,"%BigInt%":"undefined"==typeof BigInt?Nu:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Nu:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Nu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Nu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Qu,"%eval%":eval,"%EvalError%":Ju,"%Float16Array%":"undefined"==typeof Float16Array?Nu:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Nu:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Nu:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Nu:FinalizationRegistry,"%Function%":cc,"%GeneratorFunction%":jc,"%Int8Array%":"undefined"==typeof Int8Array?Nu:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Nu:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Nu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fc&&gc?gc(gc([][Symbol.iterator]())):Nu,"%JSON%":"object"==typeof JSON?JSON:Nu,"%Map%":"undefined"==typeof Map?Nu:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&fc&&gc?gc((new Map)[Symbol.iterator]()):Nu,"%Math%":Math,"%Number%":Number,"%Object%":$u,"%Object.getOwnPropertyDescriptor%":dc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Nu:Promise,"%Proxy%":"undefined"==typeof Proxy?Nu:Proxy,"%RangeError%":Xu,"%ReferenceError%":Yu,"%Reflect%":"undefined"==typeof Reflect?Nu:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Nu:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&fc&&gc?gc((new Set)[Symbol.iterator]()):Nu,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Nu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fc&&gc?gc(""[Symbol.iterator]()):Nu,"%Symbol%":fc?Symbol:Nu,"%SyntaxError%":Zu,"%ThrowTypeError%":mc,"%TypedArray%":wc,"%TypeError%":ec,"%Uint8Array%":"undefined"==typeof Uint8Array?Nu:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Nu:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Nu:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Nu:Uint32Array,"%URIError%":tc,"%WeakMap%":"undefined"==typeof WeakMap?Nu:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Nu:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Nu:WeakSet,"%Function.prototype.call%":kc,"%Function.prototype.apply%":vc,"%Object.defineProperty%":pc,"%Object.getPrototypeOf%":yc,"%Math.abs%":nc,"%Math.floor%":oc,"%Math.max%":ac,"%Math.min%":rc,"%Math.pow%":ic,"%Math.round%":sc,"%Math.sign%":uc,"%Reflect.getPrototypeOf%":bc};if(gc)try{null.error}catch(e){var Ec=gc(gc(e));_c["%Error.prototype%"]=Ec}var Cc,Sc,Rc,xc,Tc,Ic,Oc,Ac,zc,Pc,Dc,Lc,Nc,qc=function e(t){var n;if("%AsyncFunction%"===t)n=lc("async function () {}");else if("%GeneratorFunction%"===t)n=lc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=lc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&gc&&(n=gc(a.prototype))}return _c[t]=n,n},Mc={__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"]},Uc=xu(),Bc=function(){if(Lu)return Du;Lu=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=xu();return Du=n.call(e,t)}(),Fc=Uc.call(kc,Array.prototype.concat),Wc=Uc.call(vc,Array.prototype.splice),Hc=Uc.call(kc,String.prototype.replace),Vc=Uc.call(kc,String.prototype.slice),Gc=Uc.call(kc,RegExp.prototype.exec),Kc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$c=/\\(\\)?/g,Qc=function(e,t){var n,o=e;if(Bc(Mc,o)&&(o="%"+(n=Mc[o])[0]+"%"),Bc(_c,o)){var a=_c[o];if(a===jc&&(a=qc(o)),void 0===a&&!t)throw new ec("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new Zu("intrinsic "+e+" does not exist!")},Jc=function(e,t){if("string"!=typeof e||0===e.length)throw new ec("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ec('"allowMissing" argument must be a boolean');if(null===Gc(/^%?[^%]*%?$/,e))throw new Zu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Vc(e,0,1),n=Vc(e,-1);if("%"===t&&"%"!==n)throw new Zu("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Zu("invalid intrinsic syntax, expected opening `%`");var o=[];return Hc(e,Kc,(function(e,t,n,a){o[o.length]=n?Hc(a,$c,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",a=Qc("%"+o+"%",t),r=a.name,i=a.value,s=!1,u=a.alias;u&&(o=u[0],Wc(n,Fc([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var d=n[c],p=Vc(d,0,1),h=Vc(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Zu("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Bc(_c,r="%"+(o+="."+d)+"%"))i=_c[r];else if(null!=i){if(!(d in i)){if(!t)throw new ec("base intrinsic for "+e+" exists, but the property is not available.");return}if(dc&&c+1>=n.length){var m=dc(i,d);i=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[d]}else l=Bc(i,d),i=i[d];l&&!s&&(_c[r]=i)}}return i},Xc=Jc,Yc=Ku,Zc=Yc([Xc("%String.prototype.indexOf%")]),el=function(e,t){var n=Xc(e,!!t);return"function"==typeof n&&Zc(e,".prototype.")>-1?Yc([n]):n},tl=el,nl=Es,ol=Mi,al=Jc("%Map%",!0),rl=tl("Map.prototype.get",!0),il=tl("Map.prototype.set",!0),sl=tl("Map.prototype.has",!0),ul=tl("Map.prototype.delete",!0),cl=tl("Map.prototype.size",!0),ll=!!al&&function(){var e,t={assert:function(e){if(!t.has(e))throw new ol("Side channel does not contain "+nl(e))},delete:function(t){if(e){var n=ul(e,t);return 0===cl(e)&&(e=void 0),n}return!1},get:function(t){if(e)return rl(e,t)},has:function(t){return!!e&&sl(e,t)},set:function(t,n){e||(e=new al),il(e,t,n)}};return t},dl=el,pl=Es,hl=ll,ml=Mi,fl=Jc("%WeakMap%",!0),gl=dl("WeakMap.prototype.get",!0),yl=dl("WeakMap.prototype.set",!0),bl=dl("WeakMap.prototype.has",!0),vl=dl("WeakMap.prototype.delete",!0),kl=Mi,jl=Es,wl=(fl?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new ml("Side channel does not contain "+pl(e))},delete:function(n){if(fl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return vl(e,n)}else if(hl&&t)return t.delete(n);return!1},get:function(n){return fl&&n&&("object"==typeof n||"function"==typeof n)&&e?gl(e,n):t&&t.get(n)},has:function(n){return fl&&n&&("object"==typeof n||"function"==typeof n)&&e?bl(e,n):!!t&&t.has(n)},set:function(n,o){fl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new fl),yl(e,n,o)):hl&&(t||(t=hl()),t.set(n,o))}};return n}:hl)||ll||function(){var e,t={assert:function(e){if(!t.has(e))throw new Ws("Side channel does not contain "+Fs(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Hs(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Hs(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Hs(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Hs(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},_l=String.prototype.replace,El=/%20/g,Cl="RFC3986",Sl={default:Cl,formatters:{RFC1738:function(e){return _l.call(e,El,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Cl},Rl=Sl,xl=Object.prototype.hasOwnProperty,Tl=Array.isArray,Il=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ol=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Al=1024,zl={arrayToObject:Ol,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var a=t[o],r=a.obj[a.prop],i=Object.keys(r),s=0;s<i.length;++s){var u=i[s],c=r[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:r,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Tl(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;s+=Al){for(var u=r.length>=Al?r.slice(s,s+Al):r,c=[],l=0;l<u.length;++l){var d=u.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===Rl.RFC1738&&(40===d||41===d)?c[c.length]=u.charAt(l):d<128?c[c.length]=Il[d]:d<2048?c[c.length]=Il[192|d>>6]+Il[128|63&d]:d<55296||d>=57344?c[c.length]=Il[224|d>>12]+Il[128|d>>6&63]+Il[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(l)),c[c.length]=Il[240|d>>18]+Il[128|d>>12&63]+Il[128|d>>6&63]+Il[128|63&d])}i+=c.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Tl(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Tl(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!xl.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Tl(t)&&!Tl(n)&&(a=Ol(t,o)),Tl(t)&&Tl(n)?(n.forEach((function(n,a){if(xl.call(t,a)){var r=t[a];r&&"object"==typeof r&&n&&"object"==typeof n?t[a]=e(r,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var r=n[a];return xl.call(t,a)?t[a]=e(t[a],r,o):t[a]=r,t}),a)}},Pl=function(){var e,t={assert:function(e){if(!t.has(e))throw new kl("Side channel does not contain "+jl(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=wl()),e.set(t,n)}};return t},Dl=zl,Ll=Sl,Nl=Object.prototype.hasOwnProperty,ql={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Ml=Array.isArray,Ul=Array.prototype.push,Bl=function(e,t){Ul.apply(e,Ml(t)?t:[t])},Fl=Date.prototype.toISOString,Wl=Ll.default,Hl={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dl.encode,encodeValuesOnly:!1,format:Wl,formatter:Ll.formatters[Wl],indices:!1,serializeDate:function(e){return Fl.call(e)},skipNulls:!1,strictNullHandling:!1},Vl={},Gl=function e(t,n,o,a,r,i,s,u,c,l,d,p,h,m,f,g,y,b){for(var v,k=t,j=b,w=0,_=!1;void 0!==(j=j.get(Vl))&&!_;){var E=j.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===j.get(Vl)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===o&&Ml(k)&&(k=Dl.maybeMap(k,(function(e){return e instanceof Date?h(e):e}))),null===k){if(i)return c&&!g?c(n,Hl.encoder,y,"key",m):n;k=""}if("string"==typeof(v=k)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||Dl.isBuffer(k))return c?[f(g?n:c(n,Hl.encoder,y,"key",m))+"="+f(c(k,Hl.encoder,y,"value",m))]:[f(n)+"="+f(String(k))];var C,S=[];if(void 0===k)return S;if("comma"===o&&Ml(k))g&&c&&(k=Dl.maybeMap(k,c)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(Ml(l))C=l;else{var R=Object.keys(k);C=d?R.sort(d):R}var x=u?n.replace(/\./g,"%2E"):n,T=a&&Ml(k)&&1===k.length?x+"[]":x;if(r&&Ml(k)&&0===k.length)return T+"[]";for(var I=0;I<C.length;++I){var O=C[I],A="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==A){var z=p&&u?O.replace(/\./g,"%2E"):O,P=Ml(k)?"function"==typeof o?o(T,z):T:T+(p?"."+z:"["+z+"]");b.set(t,w);var D=Pl();D.set(Vl,b),Bl(S,e(A,P,o,a,r,i,s,u,"comma"===o&&g&&Ml(k)?null:c,l,d,p,h,m,f,g,y,D))}}return S},Kl=zl,$l=Object.prototype.hasOwnProperty,Ql=Array.isArray,Jl={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Kl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Xl=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Yl=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Zl=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=i?a.slice(0,i.index):a,u=[];if(s){if(!n.plainObjects&&$l.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;n.depth>0&&null!==(i=r.exec(a))&&c<n.depth;){if(c+=1,!n.plainObjects&&$l.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(i[1])}if(i){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(i.index)+"]")}return function(e,t,n,o){for(var a=o?t:Yl(t,n),r=e.length-1;r>=0;--r){var i,s=e[r];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?u.replace(/%2E/g,"."):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=a:"__proto__"!==c&&(i[c]=a):i={0:a}}a=i}return a}(u,t,n,o)}},ed=function(e,t){var n,o=e,a=function(e){if(!e)return Hl;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||Hl.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=Ll.default;if(void 0!==e.format){if(!Nl.call(Ll.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=Ll.formatters[n],r=Hl.filter;if(("function"==typeof e.filter||Ml(e.filter))&&(r=e.filter),o=e.arrayFormat in ql?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Hl.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||Hl.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Hl.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Hl.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Hl.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Hl.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Hl.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Hl.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Hl.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Hl.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Hl.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Hl.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Hl.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):Ml(a.filter)&&(n=a.filter);var r=[];if("object"!=typeof o||null===o)return"";var i=ql[a.arrayFormat],s="comma"===i&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var u=Pl(),c=0;c<n.length;++c){var l=n[c];a.skipNulls&&null===o[l]||Bl(r,Gl(o[l],l,i,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,u))}var d=r.join(a.delimiter),p=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),d.length>0?p+d:""},td=function(e,t){var n=function(e){if(!e)return Jl;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Jl.charset:e.charset,n=void 0===e.duplicates?Jl.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||Jl.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Jl.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Jl.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Jl.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Jl.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Jl.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Jl.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Jl.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Jl.decoder,delimiter:"string"==typeof e.delimiter||Kl.isRegExp(e.delimiter)?e.delimiter:Jl.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Jl.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Jl.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Jl.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Jl.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Jl.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Jl.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,r=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,r),s=-1,u=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?u="utf-8":"utf8=%26%2310003%3B"===i[a]&&(u="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var c,l,d=i[a],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;-1===h?(c=t.decoder(d,Jl.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,h),Jl.decoder,u,"key"),l=Kl.maybeMap(Yl(d.slice(h+1),t),(function(e){return t.decoder(e,Jl.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Xl(l)),d.indexOf("[]=")>-1&&(l=Ql(l)?[l]:l);var m=$l.call(n,c);m&&"combine"===t.duplicates?n[c]=Kl.combine(n[c],l):m&&"last"!==t.duplicates||(n[c]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},r=Object.keys(o),i=0;i<r.length;++i){var s=r[i],u=Zl(s,o[s],n,"string"==typeof e);a=Kl.merge(a,u,n)}return!0===n.allowSparse?a:Kl.compact(a)},nd={formats:Sl,parse:td,stringify:ed},od={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return nd.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Cc||(Cc={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Sc||(Sc={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Rc||(Rc={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(xc||(xc={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(Tc||(Tc={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Ic||(Ic={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Oc||(Oc={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Ac||(Ac={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(zc||(zc={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.FEES="FEES",e.ADVANCEMENTS="ADVANCEMENTS",e.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",e.SETTLEMENTS_FEES="SETTLEMENTS_FEES",e.CASHFLOW="CASHFLOW",e.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS"}(Pc||(Pc={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Dc||(Dc={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Lc||(Lc={})),function(e){var t;(t=e.ConfigType||(e.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",t.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",t.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN"}(Nc||(Nc={}));var ad=["PAUSED","ACTIVE"],rd={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},id="DELETED",sd={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},ud=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},cd=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],ld=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],dd=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],pd=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],hd=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],md={docs_url:"https://docs.y.uno/reference/api-reference-overview"},fd={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},gd=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const yd=[];for(let e=0;e<256;++e)yd.push((e+256).toString(16).slice(1));let bd;const vd=new Uint8Array(16);var kd={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jd(e,t,n){if(kd.randomUUID&&!t&&!e)return kd.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!bd){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bd=crypto.getRandomValues.bind(crypto)}return bd(vd)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(yd[e[t+0]]+yd[e[t+1]]+yd[e[t+2]]+yd[e[t+3]]+"-"+yd[e[t+4]]+yd[e[t+5]]+"-"+yd[e[t+6]]+yd[e[t+7]]+"-"+yd[e[t+8]]+yd[e[t+9]]+"-"+yd[e[t+10]]+yd[e[t+11]]+yd[e[t+12]]+yd[e[t+13]]+yd[e[t+14]]+yd[e[t+15]]).toLowerCase()}(o)}var wd=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function _d(e){return e&&0!==e.length?{metadata_filters:e.map((function(e){return{key:e.field,conditional:e.type,values:e.values}}))}:{}}var Ed=function(e){function i(t){var n=t?a(a({},od),t):od;return e.call(this,n)||this}return o(i,e),i.prototype.simulateAxiosError=function(){return new Promise((function(e,t){t({name:"AxiosError"})}))},i.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Pc.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},i.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Pc.TRANSACTIONS?"TRANSACTIONS":e.type,n=a(a({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},i.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})},i.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})},i.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})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.postPayouts=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=r(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return this.post("/v2/transactions",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.postFraudTransactions=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]);return this.post("/fraud-transactions",a({account_codes:(null==t?void 0:t.split(","))||[]},_d(n)),{params:o})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.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})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,a=localStorage.getItem("x-organization-code"),r={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:r})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},i.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":jd()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t,n,o){var a={};return e&&(a["x-password"]=e),t&&(a["x-account-code"]=t),n&&(a["x-otp"]=n),o&&(a["x-mfa-token"]=o),this.get("/v2/developers/credentials",{headers:a})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},i.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})},i.prototype.putCosts=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.put("/connections/costs",{costs:[e]})]}))}))},i.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return[2,this.patch("/organizations/status")]}))}))},i.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},i.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},i.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},i.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}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,o){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(o))]}))}))},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==id)return delete t.status,this.delete(o,{data:t});Object.values(ad).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(rd[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var t,n=e.payload,o=e.connectionCode,r=localStorage.getItem("account"),i=r?null===(t=JSON.parse(r).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(o),a({account_code:i},n))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getDialogs=function(){return this.get("/dialogs")},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.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}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.getMenu=function(){return this.get("/cms/menu")},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/webhooks/organization",a,{params:o,paramsSerializer:Di})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.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:Di})},i.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:Di})},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,o=r(t,["account_code"]),a={account_codes:n};return this.post("/v2/api-logs/organization",a,{params:o,paramsSerializer:Di})},i.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},i.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},i.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},i.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},i.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},i.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},i.prototype.getLocales=function(){return this.get("/cms/locales")},i.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},i.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},i.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},i.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},i.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,o=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=wd(n);return o&&(u.connection_name=o.split(",")),i&&(u=a(a({},u),_d(i))),this.post("/insights/conversion-rate/".concat(t),u,{params:s})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,o=e.metadata,i=r(e,["account_code","metadata"]),s=wd(n);return o&&(s=a(a({},s),_d(o))),this.post("/insights/conversion-rate/cards/metrics/".concat(t),s,{params:i})},i.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=e.metadata,o=r(e,["account_code","metadata"]),i=wd(t);return n&&(i=a(a({},i),_d(n))),this.post("/insights/conversion-rate/fallback",i,{params:o})},i.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,o=t.metadata,i=r(t,["connection_name","metadata"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(s=a(a({},s),{connection_name:null==n?void 0:n.split(",")})),o&&(s=a(a({},s),_d(o))),this.post("/insights/volume/metrics",s,{params:i})},i.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var o=n.connection_name,i=n.metadata,s=r(n,["connection_name","metadata"]),u={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(u=a(a({},u),{connection_name:null==o?void 0:o.split(",")})),i&&(u=a(a({},u),_d(i))),this.post("/insights/volume/".concat(t),u,{params:s})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,o=e.metadata,i=r(e,["account_code","connection_name","metadata"]),s=wd(t);return n&&(s=a(a({},s),{connection_name:null==n?void 0:n.split(",")})),o&&(s=a(a({},s),_d(o))),this.post("/insights/overview",s,{params:i})},i.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,o=e.connection_name,i=e.metadata,s=r(e,["account_code","connection_name","metadata"]),u=wd(n);return o&&(u=a(a({},u),{connection_name:null==o?void 0:o.split(",")})),i&&(u=a(a({},u),_d(i))),this.post("/insights/overview/".concat(t),u,{params:s})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},i.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},i.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},i.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload,r={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",a,{headers:r})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReconciliationsReportV3=function(e){return this.post("/v3/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},i.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},i.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},i.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},i.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},i.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},i.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},i.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,t,n,o,r){void 0===n&&(n=1),void 0===o&&(o=10);var i=a({account_codes:t||[],page:n,page_size:o},r&&{search_value:r});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),i)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},i.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},i.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},i.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:o,status:a,role_id:r,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=r(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var o=e.accountCode;return t(this,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",o?{headers:{"x-account-code":o}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach((function(e){t[e]=!0})),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}}))}))},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){var t=e.account_code,n=r(e,["account_code"]);return this.post("v2/events/organization",{account_codes:t},{params:n,paramsSerializer:Di})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.postSubscription=function(e){return this.post("/subscriptions",e)},i.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},i.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},i.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},i.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},i.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},i.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},i.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},i.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},i.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},i.prototype.getInstallmentPlans=function(e){return this.get("/v1/installments-plans",{headers:{"x-account-code":e}})},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},i.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}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var r="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(r+="&search=".concat(a)),this.get(r,o?{headers:{"x-account-code":o}}:{})},i.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}}:{})},i.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}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.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}})},i.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})},i.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}})},i.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})},i.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}})},i.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}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},i.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}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",a({},e))},i.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})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:o.token}),cancel:function(){return o.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},i.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",a({},t))},i.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",a({},t))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.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}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(sd[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(sd[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding",{headers:{"x-organization-code":e}})},i.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",e)},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i}(Li),Cd={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},Sd=function(e){function r(t){return e.call(this,t)||this}return o(r,e),r.refreshInstance=function(e){var t;return this.classInstance=new r(a(a({},e),{baseURL:Cd["BFF_URL_".concat(Cd.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use((function(e){return e}),(function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"})),this.classInstance},r.getInstance=function(e){var t,n;if(this.classInstance){var o=localStorage.getItem("account");if(o){var i=null===(n=null===(t=JSON.parse(o))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new r(a(a({},e),{baseURL:(null==e?void 0:e.baseURL)||Cd["BFF_URL_".concat(Cd.ENVIRONMENT)]})),this.classInstance},r.setMode=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return this.classInstance.instance.interceptors.request.use((function(t){return t.headers&&(t.headers["X-Environment"]=e),t}),(function(e){return Promise.reject(e)})),[2]}))}))},r}(Ed);class Rd{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 xd="undefined"==typeof window||"Deno"in window;function Td(){}function Id(e){return"number"==typeof e&&e>=0&&e!==1/0}function Od(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ad(e,t,n){return Vd(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function zd(e,t,n){return Vd(e)?[{...t,queryKey:e},n]:[e||{},t]}function Pd(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:r,queryKey:i,stale:s}=e;if(Vd(i))if(o){if(t.queryHash!==Ld(i,t.options))return!1}else if(!qd(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===a||a===t.state.fetchStatus)&&!(r&&!r(t)))}function Dd(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:r}=e;if(Vd(r)){if(!t.options.mutationKey)return!1;if(n){if(Nd(t.options.mutationKey)!==Nd(r))return!1}else if(!qd(t.options.mutationKey,r))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function Ld(e,t){return((null==t?void 0:t.queryKeyHashFn)||Nd)(e)}function Nd(e){return JSON.stringify(e,((e,t)=>Wd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function qd(e,t){return Md(e,t)}function Md(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Md(e[n],t[n]))))}function Ud(e,t){if(e===t)return e;const n=Fd(e)&&Fd(t);if(n||Wd(e)&&Wd(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),r=a.length,i=n?[]:{};let s=0;for(let o=0;o<r;o++){const r=n?o:a[o];i[r]=Ud(e[r],t[r]),i[r]===e[r]&&s++}return o===r&&s===o?e:i}return t}function Bd(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wd(e){if(!Hd(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Hd(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Hd(e){return"[object Object]"===Object.prototype.toString.call(e)}function Vd(e){return Array.isArray(e)}function Gd(e){return new Promise((t=>{setTimeout(t,e)}))}function Kd(e){Gd(0).then(e)}function $d(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ud(e,t):t}const Qd=new class extends Rd{constructor(){super(),this.setup=e=>{if(!xd&&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)}},Jd=["online","offline"];const Xd=new class extends Rd{constructor(){super(),this.setup=e=>{if(!xd&&window.addEventListener){const t=()=>e();return Jd.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Jd.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 Yd(e){return Math.min(1e3*2**e,3e4)}function Zd(e){return"online"!==(null!=e?e:"online")||Xd.isOnline()}class ep{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function tp(e){return e instanceof ep}function np(e){let t,n,o,a=!1,r=0,i=!1;const s=new Promise(((e,t)=>{n=e,o=t})),u=()=>!Qd.isFocused()||"always"!==e.networkMode&&!Xd.isOnline(),c=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise((n=>{t=e=>{const t=i||!u();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(c).catch((t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,c=null!=(o=e.retryDelay)?o:Yd,h="function"==typeof c?c(r,t):c,m=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);!a&&m?(r++,null==e.onFail||e.onFail(r,t),Gd(h).then((()=>{if(u())return d()})).then((()=>{a?l(t):p()}))):l(t)}))};return Zd(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new ep(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const op=console;const ap=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Kd((()=>{n(o)}))},r=()=>{const t=e;e=[],t.length&&Kd((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||r()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class rp{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Id(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:xd?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ip extends rp{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||op,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=$d(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(Td).catch(Td):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||!Od(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=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(r)return this.abortSignalConsumed=!0,r.signal}})};s(i);const u={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 c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,o,a;(tp(e)&&e.silent||this.dispatch({type:"error",error:e}),tp(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=np({fn:u.fetchFn,abort:null==r?void 0:r.abort.bind(r),onSuccess:e=>{var t,n,o,a;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,o;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Zd(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return tp(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ap.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class sp extends Rd{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,r=null!=(o=t.queryHash)?o:Ld(a,t);let i=this.get(r);return i||(i=new ip({cache:this,logger:e.getLogger(),queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),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(){ap.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=zd(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Pd(n,e)))}findAll(e,t){const[n]=zd(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Pd(n,e))):this.queries}notify(e){ap.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){ap.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){ap.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class up extends rp{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||op,this.observers=[],this.state=e.state||cp(),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=np({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,o,a,r,i,s,u,c;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 m=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,m,this.state.variables,this.state.context,this)),await(null==(a=(r=this.options).onSuccess)?void 0:a.call(r,m,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,m,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(e){try{var m,f,g,y,b,v,k,j;throw await(null==(m=(f=this.mutationCache.config).onError)?void 0:m.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(j=this.options).onSettled)?void 0:k.call(j,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:!Zd(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),ap.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function cp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class lp extends Rd{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new up({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(o),o}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){ap.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=>Dd(e,t)))}findAll(e){return this.mutations.filter((t=>Dd(e,t)))}notify(e){ap.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 ap.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Td)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function dp(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,r,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),p=(null==(r=e.state.data)?void 0:r.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let m=h,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(m=o?[t,...m]:[...m,t],o?[n,...e]:[...e,n]),b=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const r={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=r,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{f=!0})),e.signal}});const s=g(r);return Promise.resolve(s).then((e=>y(t,o,e,a)))};let v;if(p.length)if(l){const t=void 0!==c,n=t?c:pp(e.options,p);v=b(p,t,n)}else if(d){const t=void 0!==c,n=t?c:(k=e.options,j=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(j[0],j));v=b(p,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;v=!s||!p[0]||s(p[0],0,p)?b([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)v=v.then((o=>{if(!s||!p[n]||s(p[n],n,p)){const a=t?h[n]:pp(e.options,o);return b(o,t,a)}return Promise.resolve(y(o,h[n],p[n]))}))}else v=b([]);var k,j;const w=v.then((e=>({pages:e,pageParams:m})));return w}}}}function pp(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class hp extends Rd{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),mp(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fp(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fp(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Bd(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&gp(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const r=this.computeRefetchInterval();!a||this.currentQuery===o&&this.options.enabled===n.enabled&&r===this.currentRefetchInterval||this.updateRefetchInterval(r)}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(!Bd(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(Td)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),xd||this.currentResult.isStale||!Id(this.options.staleTime))return;const e=Od(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,!xd&&!1!==this.options.enabled&&Id(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Qd.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,a=this.currentResult,r=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:m,fetchStatus:f,status:g}=l,y=!1,b=!1;if(t._optimisticResults){const a=this.hasListeners(),r=!a&&mp(e,t),i=a&&gp(e,n,t,o);(r||i)&&(f=Zd(e.options.networkMode)?"fetching":"paused",p||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,p=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==l.data)if(a&&l.data===(null==r?void 0:r.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=$d(null==a?void 0:a.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"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",d=$d(null==a?void 0:a.data,e,t),b=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,m=Date.now(),g="error");const v="fetching"===f,k="loading"===g,j="error"===g;return{status:g,fetchStatus:f,isLoading:k,isSuccess:"success"===g,isError:j,isInitialLoading:k&&v,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:m,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:j&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:b,isPreviousData:y,isRefetchError:j&&0!==l.dataUpdatedAt,isStale:yp(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,Bd(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||tp(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ap.batch((()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,this.currentResult.data,null);else if(e.onError){var r,i,s,u;null==(r=(i=this.options).onError)||r.call(i,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,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 mp(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&&fp(e,t,t.refetchOnMount)}function fp(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&yp(e,t)}return!1}function gp(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&yp(e,n)}function yp(e,t){return e.isStaleByTime(t.staleTime)}class bp extends Rd{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),Bd(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){ap.batch((()=>{var t,n,o,a;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(a=this.mutateOptions).onSettled)||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var r,i,s,u;null==(r=(i=this.mutateOptions).onError)||r.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var vp,kp={exports:{}},jp={};var wp,_p={};
208
208
  /**
209
209
  * @license React
210
210
  * use-sync-external-store-shim.development.js
@@ -213,7 +213,7 @@ function Go(e){const t=Vo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
213
213
  *
214
214
  * This source code is licensed under the MIT license found in the
215
215
  * LICENSE file in the root directory of this source tree.
216
- */"production"===process.env.NODE_ENV?kp.exports=function(){if(vp)return jp;vp=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,r=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return a((function(){c.value=s,c.getSnapshot=t,i(c)&&l({inst:c})}),[e,s,t]),o((function(){return i(c)&&l({inst:c}),e((function(){i(c)&&l({inst:c})}))}),[e]),r(s),s};return jp.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,jp}():kp.exports=(wp||(wp=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue,u=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){u||void 0===t.startTransition||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!c){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var h=(p=o({inst:{value:d,getSnapshot:l}}))[0].inst,m=p[1];return r((function(){h.value=d,h.getSnapshot=l,e(h)&&m({inst:h})}),[s,d,l]),a((function(){return e(h)&&m({inst:h}),s((function(){e(h)&&m({inst:h})}))}),[s]),i(d),d};_p.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_p);var Ep=kp.exports;const Cp=Ep.useSyncExternalStore,Sp=i.createContext(void 0),Rp=i.createContext(!1);function xp(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Sp),window.ReactQueryClientContext):Sp)}const Tp=({context:e}={})=>{const t=i.useContext(xp(e,i.useContext(Rp)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ip=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=xp(n,o);return i.createElement(Rp.Provider,{value:!n&&o},i.createElement(a.Provider,{value:e},t))},Op=i.createContext(!1);Op.Provider;const Ap=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zp(e,t){return"function"==typeof e?e(...t):!!e}function Pp(e,t){const n=Tp({context:e.context}),o=i.useContext(Op),a=i.useContext(Ap),r=n.defaultQueryOptions(e);r._optimisticResults=o?"isRestoring":"optimistic",r.onError&&(r.onError=ap.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=ap.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=ap.batchCalls(r.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(r),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(r,a),(e=>{i.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=i.useState((()=>new t(n,r))),u=s.getOptimisticResult(r);if(Cp(i.useCallback((e=>{const t=o?()=>{}:s.subscribe(ap.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),i.useEffect((()=>{s.setOptions(r,{listeners:!1})}),[r,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(r,u,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(r,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&zp(n,[e.error,o]))({result:u,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return r.notifyOnChangeProps?u:s.trackResult(u)}function Dp(e,t,n){return Pp(Ad(e,t,n),hp)}function Lp(e,t,n){const o=function(e,t,n){return Vd(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Tp({context:o.context}),[r]=i.useState((()=>new bp(a,o)));i.useEffect((()=>{r.setOptions(o)}),[r,o]);const s=Cp(i.useCallback((e=>r.subscribe(ap.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),u=i.useCallback(((e,t)=>{r.mutate(e,t).catch(Np)}),[r]);if(s.error&&zp(r.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function Np(){}var qp;function Mp(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Up(e){return Lp((function(e){var t=e.code,n=e.accountCode;return Sd.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bp(e){return Lp((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sd.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Fp(){return Lp((function(e){var t=e.name,n=e.principal;return Sd.getInstance().postAccount(t,n)}))}function Wp(){return Lp((function(t){var n=e([qp.ACCOUNT],t.duplicate_order,!0);return Sd.getInstance().duplicateAccount(a(a({},t),{duplicate_order:n}))}))}function Hp(){return Lp((function(e){return Sd.getInstance().retryDuplicateAccount(e)}))}function Vp(){return Lp((function(e){var t=e.name,n=e.code,o=e.principal;return Sd.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gp(){return Lp((function(e){var t=e.account_code;return Sd.getInstance().putAccountPrincipal({account_code:t})}))}function Kp(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().putAccountsUserMassive(t,n,o)}))}function $p(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Qp(){return Lp(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jp(){return Lp(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Xp(){return Lp((function(e){return Sd.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Yp(){return Lp(["post-connection"],(function(e){var t=e.payload;return Sd.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Zp(){return Lp(["new-post-connection-validate"],(function(){return Sd.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function eh(){return Lp(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sd.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function th(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function nh(){return Lp((function(e){return Sd.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function oh(){var e=this;return Lp((function(o){var a=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postNetworkTokensOnboarding(a)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function ah(){return Lp(["patch-organizations"],(function(){return Sd.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function rh(){return Lp((function(e){return Sd.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ih(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function sh(e){return Lp((function(e){return Sd.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function uh(){return Lp((function(e){return Sd.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ch(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lh(){return Lp((function(e){return Sd.getInstance().createUserAuth0(e)}))}function dh(){return Lp((function(e){return Sd.getInstance().postCall(e)}))}function ph(){return Lp((function(e){return Sd.getInstance().changeLoginMethods(e)}))}function hh(e){return Lp((function(e){return Sd.getInstance().updateIsActiveCheckout(e)}),e)}function mh(){return Lp((function(e){var t=e.accountCode,n=e.template;return Sd.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function fh(){return Lp((function(e){var t=e.accountCode,n=e.theme;return Sd.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function gh(){return Lp((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sd.getInstance().createOperationTransaction(t,n,o,a)}))}function yh(){return Lp((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sd.getInstance().uploadChargebacks(t,n,o,a)}))}function bh(){return Lp((function(e){var t=e.transactionCode,n=e.payload;return Sd.getInstance().postProviderRawResponse(t,n)}))}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(qp||(qp={}));var vh=new sp({}),kh=new class{constructor(e={}){this.queryCache=e.queryCache||new sp,this.mutationCache=e.mutationCache||new lp,this.logger=e.logger||op,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Qd.subscribe((()=>{Qd.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Xd.subscribe((()=>{Xd.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=zd(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=Ad(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const r=Ad(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ap.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=zd(e,t),o=this.queryCache;ap.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=zd(e,t,n),r=this.queryCache,i={type:"active",...o};return ap.batch((()=>(r.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(i,a))))}cancelQueries(e,t,n){const[o,a={}]=zd(e,t,n);void 0===a.revert&&(a.revert=!0);const r=ap.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(r).then(Td).catch(Td)}invalidateQueries(e,t,n){const[o,a]=zd(e,t,n);return ap.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=zd(e,t,n),r=ap.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let i=Promise.all(r).then(Td);return null!=a&&a.throwOnError||(i=i.catch(Td)),i}fetchQuery(e,t,n){const o=Ad(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const r=this.queryCache.build(this,a);return r.isStaleByTime(a.staleTime)?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Td).catch(Td)}fetchInfiniteQuery(e,t,n){const o=Ad(e,t,n);return o.behavior=dp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Td).catch(Td)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Nd(e)===Nd(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>qd(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>qd(e,t.queryKey))).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Nd(e)===Nd(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>qd(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>qd(e,t.mutationKey))).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Ld(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:vh});function jh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _h(){return Lp((function(e){return Sd.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Eh(){return Lp((function(e){return Sd.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ch(){return Lp((function(e){return Sd.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sh(o){var a=this;return Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,kh.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kh.getQueryData(["GET/reports/templates"]),kh.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Rh(e){return Lp((function(){return Sd.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function xh(e,o,a){var r=this;return void 0===a&&(a=null),Lp((function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Th(e,o){var a=this,r=e.versionCode,i=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postSmartRoutingPublishVersion(i,r,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ih(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Oh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Ah(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zh(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Ph(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dh(e){var t=e.accountCode;return Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Lh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=!1),Sd.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Nh(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function qh(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Lp((function(e){return Sd.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mh(e,t){return void 0===t&&(t=null),Lp((function(t){return Sd.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Uh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.declinedGroupCode;return Sd.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Bh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.payload;return Sd.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Fh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Wh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Hh(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Vh(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gh(){return Lp((function(){return Sd.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Kh(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $h(){var e=this;return Lp((function(o){var a=o.payload,r=o.id,i=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().editRoles({payload:a,id:r},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Qh(){return Lp((function(e){return Sd.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Jh(){return Lp(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xh(){return Lp(["post-delete-payment-link"],(function(e){var t=e.code;return Sd.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yh(){return Lp(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sd.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Zh(){return Lp(["post-subscription"],(function(e){return Sd.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))}function em(){return Lp(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function tm(){return Lp(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function nm(){return Lp(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function om(){return Lp(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return Sd.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))}function am(){return Lp(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function rm(){return Lp(["post-list-subscriptions"],(function(e){return Sd.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))}function im(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function sm(){return Lp((function(e){return Sd.getInstance().postUserThemeSettings(e)}))}function um(){return Lp((function(e){var t=e.payload,n=e.section;return Sd.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kh.getQueryData(["fetch-profile"]);e.data&&kh.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function cm(e){return Lp(["pinned-sections"],(function(e){var t=e.payload;return Sd.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function lm(){return Lp((function(e){var t=e.password,n=e.otp;return Sd.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dm(){return Lp((function(){return Sd.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function pm(){return Lp((function(e){return Sd.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function hm(){return Lp((function(e){return Sd.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function mm(){return Lp((function(){return Sd.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function fm(){return Lp(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gm(){return Lp(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ym(){return Lp(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function bm(){return Lp(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vm(){return Lp(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function km(){return Lp(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jm(){return Lp(["patch-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wm(){return Lp(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _m(){return Lp(["put-blacklist"],(function(e){return Sd.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Em(){return Lp(["change-blacklist"],(function(e){return Sd.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Cm(){return Lp(["change-blacklist-item"],(function(e){return Sd.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Sm(){return Lp(["post-blacklist-items"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Rm(){return Lp(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sd.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xm(e){var t=e.handleSetProgress;return Lp(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sd.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Tm(){return Lp(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sd.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Im(){return Lp(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sd.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Om(){return Lp(["valiate-blacklist-items"],(function(e){return Sd.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Am(){return Lp(["delete-allowlist-item"],(function(e){return Sd.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function zm(){return Lp(["validate-allowlist-items"],(function(e){return Sd.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Pm(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=u(0),r=a[0],i=a[1],s=c({cancel:function(){return null}}),l=Lp(["upload-file-chargeback",t],(function(e){var t=Sd.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),a=t.promise,r=t.cancel;return s.current.cancel=r,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:l,cancelRequest:s.current.cancel,progress:r}}function Dm(){return Lp((function(e){return Sd.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Lm(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Nm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundProcessedFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function qm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundUserFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Mm(){var e=c({cancel:function(){return null}}),t=Lp(["upload-file"],(function(t){var n=Sd.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Um(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().updateMFAConfig(t,n)}))}function Bm(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().mfaExcludeUsers(t,n)}))}function Fm(e){return Dp(["GET/scheduled-reports",e],(function(){return Sd.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Wm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Hm(){return Lp((function(e){var t=e.reportCode,n=e.payload;return Sd.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vm(){return Lp((function(e){return Sd.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Gm(){return Lp((function(e){return Sd.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Km(){return Lp((function(e){return Sd.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $m(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Qm(){return Lp((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sd.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Xm(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ym(){return Lp((function(e){var t=e.code,n=e.password;return Sd.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Zm(){return Lp((function(e){var t=e.passwordOtp;return Sd.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function ef(){return Lp((function(e){var t=e.password;return Sd.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tf(){return Lp((function(e){var t=e.code;return Sd.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function nf(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function of(){return Lp((function(e){var t=e.payload,n=e.code,o=e.password;return Sd.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function af(){return Lp((function(e){var t=e.password,n=e.accountCode;return Sd.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function rf(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function sf(){return Lp((function(e){var t=e.codes;return Sd.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function uf(){return Lp((function(e){return Sd.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function cf(){return Lp((function(e){return Sd.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function lf(o){var a=this;return Lp((function(){return Sd.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,kh.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kh.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kh.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function df(e){return Lp((function(){return Sd.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function pf(){return Lp(["POST/reconciliation/alerts"],(function(e){return Sd.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function hf(){return Lp(["DELETE/reconciliation/alerts"],(function(e){return Sd.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function mf(){return Lp(["UPDATE/reconciliation/alerts"],(function(e){return Sd.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ff(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gf(){return Lp((function(e){return Sd.getInstance().createSamlConfig(e)}))}function yf(){return Lp((function(e){return Sd.getInstance().updateSamlConfig(e)}))}function bf(){return Lp((function(){return Sd.getInstance().deleteSamlConfig()}))}function vf(e,t){return void 0===t&&(t={}),Lp((function(t){return Sd.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function kf(e){return void 0===e&&(e={}),Lp((function(e){return Sd.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function jf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wf(){return Lp((function(e){return Sd.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _f(){return Lp((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,r=void 0===a?"":a;return Sd.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:r}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ef(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Cf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sf(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Rf(){var e=this;return Lp(["POST/template-reporting/report-templates"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createTemplateReporting(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function xf(){var e=this;return Lp(["POST/template-reporting/report-templates/clone"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().cloneReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Tf(){var e=this;return Lp(["PATCH/template-reporting/report-templates/selection"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().updateTemplateSelection(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function If(){var e=this;return Lp(["PATCH/template-reporting/report-templates/status"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().changeTemplateStatus(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Of(){var e=this;return Lp(["DELETE/template-reporting/report-templates"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Af(){var e=this;return Lp(["POST/template-reporting/report-schedules"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createReportSchedule(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function zf(){var e=this;return Lp(["PATCH/template-reporting/report-schedules/disable"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().disableReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Pf(){var e=this;return Lp(["DELETE/template-reporting/report-schedules"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Df(){return Lp((function(e){return Sd.getInstance().postOrganizationConfigs(e)}))}function Lf(){return Lp((function(e){return Sd.getInstance().putOrganizationConfigsByAccount(e)}))}var Nf,qf=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=u(t&&JSON.parse(t)),o=n[0],a=n[1];return l((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function Mf(e){var o=this;return Dp(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Uf(e){return Dp(["fetch-payments-evaluated",e],(function(){return Sd.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Bf(e){var o=this,a=e.paymentCode,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Ff(e){var o=this,a=e.payment_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Wf(e){var o=this,a=e.transaction_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Hf(e){var t=qf();return Dp(["payment-methods",e],(function(){return Sd.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Vf(){return Dp({queryKey:["/payment-methods/providers"],queryFn:function(){return Sd.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function Gf(){return Dp(["GET/catalog/card-brands"],(function(){return Sd.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Kf(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Sc.PAYMENTS),Dp(["payment-filters",e,t],(function(){return Sd.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function $f(){return Dp(["payment-metrics-filters"],(function(){return Sd.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Qf(e){var t=e.transaction_code,n=e.enabled;return Dp(["payment-transaction-details",t],(function(){return Sd.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Jf(e){var t=e.payment_code,n=e.enabled;return Dp(["transaction-history",t],(function(){return Sd.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Xf(e){var o=this;return Dp(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Yf(e){var o=this;return Dp(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Zf(e){return Dp(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sd.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function eg(e){return Dp(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function tg(e){var t=qf();return Dp(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function ng(e,o){var a=this,r=qf();return Dp(["GET/useGetProofOfCancel",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfCancel(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function og(e,o){var a=this,r=qf();return Dp(["GET/useGetProofOfPayment",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfPayment(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function ag(e,o,a){var r=this,i=Sd.getInstance();return Dp(["send-payment-notification",e,o],(function(){return t(r,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw r=n.sent(),a.onError(),r;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function rg(e){return Dp(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sd.getInstance();if(e)return t.postPayouts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function ig(e){var o=this;void 0===e&&(e=!0);var a=qf();return Dp(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function sg(e){var t=e.password,n=e.accountCode;return Dp(["developers"],(function(){return Sd.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function ug(){return Dp(["fetch-customized-api-keys-members"],(function(){return Sd.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function cg(){return Dp(["developers-get-allowed-ips"],(function(){return Sd.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function lg(){return Dp(["fetch-customized-api-keys-accounts"],(function(){return Sd.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function dg(e){return Dp(["fetch-customized-api-keys",e],(function(){return Sd.getInstance().postCustomizedApiKeys(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function pg(){return Dp(["fetch-customized-api-keys-products"],(function(){return Sd.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function hg(){return Lp(["developers-patch-allowed-ips"],(function(e){return Sd.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function mg(){return Dp(["fetch-organizations"],(function(){return Sd.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function fg(){return Dp(["fetch-all-organizations",qf()],(function(){return Sd.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function gg(e){var t=qf();return Dp(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sd.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function yg(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Dp(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sd.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function bg(e){var t=e.accountCode,n=e.organizationCode,o=qf();return Dp(["organizations-account-integrations",t,n],(function(){return Sd.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function vg(e){var t=e.accountCode,n=e.paymentMethod;return Dp(["fetch-connections-by-payment-method",n,t],(function(){return Sd.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function kg(){var e=this;return Dp(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function jg(){return Dp(["connections"],(function(){return Sd.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function wg(){return Dp(["dialogs"],(function(){return Sd.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function _g(){return Dp(["params-catalog"],(function(){return Sd.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Eg(e){var t=e.accountCode,n=e.name;return Dp(["webhooks",t,n],(function(){return Sd.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Cg(e){var t=e.accountCode,n=e.enabled;return Dp(["webhooks-detail",t],(function(){return Sd.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Sg(e){var t,n=qf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Dp({queryKey:["accounts",o],queryFn:function(){return Sd.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Rg(e){return Dp(["accountsV2",e],(function(){return Sd.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function xg(e){return Dp(["accountsV2-by-user",e],(function(){return e?Sd.getInstance().getAccountsByUser(e).then((function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}})).catch((function(e){return{accountsV2ByUser:[],error:e}})):{accountsV2ByUser:[]}}),{enabled:!!e,staleTime:0})}function Tg(e,o){var a=this;return Dp({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getAccountsForImpersonation(e).then((function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map((function(e){return{label:e.name,value:o?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Ig(e){return Dp({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Sd.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Og(){return Dp(["menu"],(function(){return Sd.getInstance().getMenu().then((function(e){return ud(e)?fd:null==e?void 0:e.data})).catch((function(){return fd}))}))}function Ag(){return Dp(["/payment/statuses/style"],(function(){return Sd.getInstance().useGetPaymentStatusesStyles().then((function(e){return ud(e)?cd:null==e?void 0:e.data})).catch((function(){return cd}))}))}function zg(){return Dp(["/transaction/statuses/style"],(function(){return Sd.getInstance().useGetTransactionStatusesStyles().then((function(e){return ud(e)?ld:null==e?void 0:e.data})).catch((function(){return ld}))}),{cacheTime:36e5,useErrorBoundary:!1})}function Pg(){return Dp(["/reconciliation/transaction/statuses/style"],(function(){return Sd.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return ud(e)?dd:null==e?void 0:e.data})).catch((function(){return dd}))}))}function Dg(){return Dp(["timezone-catalog"],(function(){return Sd.getInstance().useGetTimeZoneCatalog().then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}))}function Lg(){return Dp(["/cms/audit-logs-filters"],(function(){return Sd.getInstance().useGetAuditLogsFilters().then((function(e){return ud(e)?hd:null==e?void 0:e.data})).catch((function(){return hd}))}))}function Ng(){return Dp(["/cms/static-contents"],(function(){return Sd.getInstance().getDashboardStaticContents().then((function(e){var t,n;return ud(e)?md:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}}))}),{cacheTime:6048e5,useErrorBoundary:!1})}function qg(){return Dp(["/cms/locales"],(function(){return Sd.getInstance().getLocales().then((function(e){return ud(e)?gd:e.data})).catch((function(){return gd}))}))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Nf||(Nf={}));var Mg=function(){var e=u("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return l((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Ug(e){return Dp(["smart-routing-methods",e],(function(){return Sd.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Bg(e,t){return Dp(["smart-routing-workflow",t,e],(function(){return Sd.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Fg(e,t){return Dp(["smart-routing-condition-types",e,t],(function(){return Sd.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Wg(e,t){return Dp(["smart-routing-condition-payment-method",e,t],(function(){return Sd.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})}function Hg(e,t){return Dp(["smart-routing-condition-types-values",t,e],(function(){return Sd.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function Vg(e){var t=e.accountCode,n=e.workflowVersionId;return Dp(["smart-routing-workflow-version",n,t],(function(){return Sd.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Gg(e,t,n){return Dp(["smart-routing-next-route",e,n,t],(function(){return Sd.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Kg(e){return Dp(["smart-routing-decline-groups",e],(function(){return Sd.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function $g(e,t){return Dp(["smart-routing-payment-route",e,t],(function(){return Sd.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function Qg(e){return Dp(["smart-routing-simulate-condition-type-values",e],(function(){return Sd.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Jg(e){var t=e.text,n=e.conditionType;return Dp(["smart-routing-search-condition-values",t,n],(function(){return Sd.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Xg(){return Dp(["smart-routing-conversion-rates"],(function(){return Sd.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Yg(){var e=this;return Dp({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Zg(){var e=this;return Dp({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ey(e){return Dp(["fetch-routing-monitors-templates",e],(function(){return Sd.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ty(e,t){return Dp(["fetch-routing-monitors-template",e],(function(){return Sd.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function ny(e){var t=e.accountCode;return Dp(["checkouts",t],(function(){return Sd.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function oy(e){var t=e.accountCode;return Dp(["checkouts-template"],(function(){return Sd.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var ay=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},ry=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(ay({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},iy=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},sy=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(iy({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function uy(e){var t=e.accountCode;return Dp(["styling-sdk-dynamic",t],(function(){return Sd.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function cy(e){var t=e.accountCode;return Dp(["styling-theme",t],(function(){return Sd.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function ly(e){var t=e.accountCode;return Dp(["styling-settings",t],(function(){return Sd.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function dy(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Dp(["styling-settings-v2",t],(function(){return Sd.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function py(){return Lp((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sd.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function hy(){return Dp(["fetch-profile"],(function(){return Sd.getInstance().getProfile().then((function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t})).catch((function(e){throw e}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function my(){var e=this;return Dp(["get-user-full"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function fy(e,t){return Dp(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),r=o&&JSON.parse(o),i=a&&JSON.parse(a);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==r?void 0:r.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function gy(e){return Dp(["email-verification",e],(function(){return Sd.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function yy(){return Dp({queryKey:["get-login-methods"],queryFn:function(){return Sd.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function by(){return Dp(["fetch-impersonation-users"],(function(){return Sd.getInstance().getImpersonationUsers().then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function vy(){return Dp(["fetch-impersonation-enabled"],(function(){return Sd.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function ky(e,o,a,r,i){var s=this;return void 0===a&&(a=1),void 0===r&&(r=10),Dp(["get-users-to-impersonate",e,o,a,r,i],(function(){return t(s,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getUsersToImpersonate(e,o,a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function jy(e){var t;return Dp(["fetch-communications",e],(function(){return Sd.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function wy(){return Dp(["fetch-communications-filters"],(function(){return Sd.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function _y(e,t){return Dp(["fetch-communication-details",e],(function(){return Sd.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Ey(e){return Dp(["notifications-customer",e],(function(){return Sd.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Cy(e){return Dp(["validate-opsgenie-key",e],(function(){return Sd.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Sy(){return Dp(["notifications-merged"],(function(){return Sd.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Ry(){return Lp((function(e){return Sd.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xy(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Ty={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Iy(){return Dp(["reports"],(function(){return Sd.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Oy(e){return void 0===e&&(e=!0),Dp(["reports-multi-env"],(function(){return Sd.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Ay(e,t,n){return void 0===t&&(t=!1),Dp(["reports/".concat(e)],(function(){return Sd.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function zy(e){return Dp(["GET/reports/templates"],(function(){return Sd.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Py(o,a,r){var i=this;return Dp(["GET/reports/columns/".concat(a,"/").concat(r)],(function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getReportColumns(a,r).then((function(t){return a===Oc.ALL&&r===Ic.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Ty],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function Dy(e,o){var a=this,r=qf();return Dp(["getRefundPdf",e,r,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getRefundPdf(e,r,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!r,useErrorBoundary:!1})}function Ly(){var e=qf();return Dp(["teams-filters-members"],(function(){return Sd.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Ny(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=qf();return Dp(["fetch-post-members-v2",t,n,o,a,r,i,s,u,c],(function(){return Sd.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:a,roleId:r,statuses:i,roleIds:s,page:u,pageSize:c}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function qy(){return Dp(["fetch-roles"],(function(){return Sd.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function My(){return Dp(["fetch-rolespermissions"],(function(){return Sd.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Uy(){return Dp(["fetch-permissions-catalog"],(function(){return Sd.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function By(e){return Dp(["data-report",e],(function(){return Sd.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Fy(e,t,n,o){var a,r;void 0===n&&(n=!0);var i=null!==(a=null==o?void 0:o.staleTime)&&void 0!==a?a:3e5,s=null!==(r=null==o?void 0:o.cacheTime)&&void 0!==r?r:3e5;return Dp(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sd.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:i,cacheTime:s,useErrorBoundary:!1,retry:1})}function Wy(e,t){return Dp(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Hy(e){return Dp(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sd.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Vy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-volume-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Gy(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Dp(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sd.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Ky(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function $y(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Qy(e){return Dp(["get-insights-overview",e],(function(){return Sd.getInstance().getInsightOverview(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Jy(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Dp(["get-insights-overview-v3",e,t],(function(){return Sd.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Xy(e){return Dp(["get-insights-home-metrics",e],(function(){return Sd.getInstance().getInsighstHomeMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Yy(e){return Dp(["get-insights-reports",e],(function(){return Sd.getInstance().getInsightsReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Zy(e){return Dp(["get-insights-reports-again",e],(function(){return Sd.getInstance().getInsightsReportAgain(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function eb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ob(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ab(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ib(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ub(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function db(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function pb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mb(e,t){return Dp(["fetch-reconciliation-transaction",e],(function(){return Sd.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function fb(e,t){return Dp(["fetch-reconciliation-settlements",e],(function(){return Sd.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function gb(e,t){return Dp(["fetch-reconciliation-metrics",e],(function(){return Sd.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function yb(){return Dp(["GET-reconciliation-filters"],(function(){return Sd.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function bb(e){return Dp(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sd.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vb(){return Dp(["GET/v1/reconciliation/active"],(function(){return Sd.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function kb(e,t,n){return Dp(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sd.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function jb(e){return Dp(["GET/reconciliation/reports/templates"],(function(){return Sd.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function wb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/alerts/list",t,n],(function(){return Sd.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function _b(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/list",t,n],(function(){return Sd.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Eb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/insights",t,n],(function(){return Sd.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Cb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/sales/list",t,n],(function(){return Sd.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Sb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/advancements/list",t,n],(function(){return Sd.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Rb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/fees/list",t,n],(function(){return Sd.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function xb(e){var o=this,a=Object.values(e).filter(Boolean);return Dp(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Tb(e){var o=this,a=Dp({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),r=Tp();return l((function(){r.setQueryData(["cached-feature-flags"],a)}),[a,r]),a}function Ib(e){var t,n,o=Tp(),r=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.status)),s=Dp({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return a(a({},s),{isLoading:i})}function Ob(e){return Dp(["events",e],(function(){return Sd.getInstance().getAuditEvents(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function Ab(e){return Dp(["audit-monitor-event-detail",e],(function(){return Sd.getInstance().getAuditMonitorDetail(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function zb(e){return Dp(["api-logs",e],(function(){return Sd.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Pb(e){var t=e.params;return Dp(["webhook-logs",t],(function(){return Sd.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Db(e){return Dp(["api-logs-detail",e],(function(){return Sd.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Lb(e,t){return Dp(["fetch-payment-links",e,t],(function(){return Sd.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Nb(e){return Dp(["payment-link"],(function(){return Sd.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function qb(e){return void 0===e&&(e=!0),Dp(["countries",e],(function(){return Sd.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function Mb(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Dp(["countries-v2",n],(function(){return Sd.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function Ub(e){return Dp(["timezone"],(function(){return Sd.getInstance().getTimezone(e).then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}),{enabled:!0,keepPreviousData:!0})}function Bb(e){return Dp(["installments-plans",e],(function(){return Sd.getInstance().getInstallmentPlans(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})}function Fb(e,t){return void 0===t&&(t=!0),Dp(["subscription",e],(function(){return Sd.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})}function Wb(e,t,n,o){return void 0===o&&(o=!0),Dp(["subscription-payments",e,t,n],(function(){return Sd.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})}function Hb(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Vb(e,t){return Dp(["get-cofig-allow-list",e],(function(){return Sd.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})}function Gb(e){return Dp(["get-black-list",e],(function(){return Sd.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Kb(e,t,n,o){var a;return Dp(["post-black-list",e],(function(){return Sd.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function $b(e,t,n){return Dp(["get-block-list-summary",e,t,n],(function(){var o=Sd.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function Qb(e,t,n,o,a,r){return Dp(["black-list-detail",e,t,o,a,r],(function(){return Sd.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&r,cacheTime:0})}function Jb(e,t,n){return Dp(["allow-list-detail",e],(function(){return Sd.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function Xb(e){return Dp(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sd.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Yb(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Dp(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function Zb(e){return Dp(["velocity-rules",e],(function(){var t=Sd.getInstance();return e?t.getVelocityRules(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e,keepPreviousData:!0})}function ev(){return Dp(["config-rules"],(function(){return Sd.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function tv(e,t){var n=e.organizationCode;return Dp(["mfa-excluded-users",n],(function(){return Sd.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function nv(e,t){var n=e.organizationCode;return Dp(["mfa-config",n],(function(){return Sd.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function ov(e,t){return Dp(["mfa-enforcement-status",e.accountCode],(function(){return Sd.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function av(e){return Dp(["fetch-organization-saml-config",e],(function(){return Sd.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function rv(e){return Dp(["chartgpt-chart-execute",e],(function(){return Sd.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function iv(){return Dp(["chartgpt-user-charts"],(function(){return Sd.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function sv(){var e=this;return Dp(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,r,i=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sd.getInstance()).getChartsByUser()];case 1:return o=s.sent(),r=(null==o?void 0:o.data)||[],[4,Promise.all(r.map((function(o){return t(i,void 0,void 0,(function(){var t,r,i,s,u,c,l,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(c=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.unit_to_display)&&void 0!==c?c:o.unit_to_display,results:null!==(d=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return r=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),r),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function uv(e,o,a){var r=this;return void 0===a&&(a=!0),Dp(["chartgpt-patch-and-execute",e,o],(function(){return t(r,void 0,void 0,(function(){var t,a,r,i,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sd.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),r=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return i=n.sent(),s=null==i?void 0:i.data,[2,{chart:r,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function cv(){return Dp(["languages"],(function(){return Sd.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function lv(){var e=localStorage.getItem("lang")||"en";return Dp(["translations",e],(function(){return Sd.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function dv(e){var o=this;return Dp({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var pv=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},hv=function(e,t,n){if(!t||!n)return e||[];var o=function(e,t){var n=[],o=new Date(e),a=new Date(t);o.setUTCHours(0,0,0,0),a.setUTCHours(0,0,0,0);for(var r=new Date(o);r<=a;)n.push(r.toISOString()),r.setUTCDate(r.getUTCDate()+1);return n}(t,n),a=new Map;return null==e||e.forEach((function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];a.set(t,e.value)}})),o.map((function(e){var t=e.split("T")[0];return{date:e,value:a.get(t)||"0"}}))},mv=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var o=parseFloat(n.value||"0");return{distribution:n.rows.map((function(e){var t,n=100*parseFloat(e.value),a=Math.round(o*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:a,percentage:n,amount:a}})),total:o}},fv=function(e,t,n){var o,a={};return null===(o=e.plots)||void 0===o||o.forEach((function(e){var o=hv(e.rows,t,n),r=e.label;a[r]=o.map((function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:pv(e.date||""),current_amount:100*parseFloat(e.value)}}))})),a},gv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:hv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},yv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:hv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},bv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",o)];case 1:return a=n.sent(),[2,(r=a.data,i=o.start_date,s=o.end_date,u=r.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),d=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),p=hv(null==c?void 0:c.rows,i,s),h=hv(null==l?void 0:l.rows,i,s),m=hv(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:m.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:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var r,i,s,u,c,l,d,p,h,m}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},vv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",o)];case 1:return a=n.sent(),[2,mv(a.data)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},kv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",o)];case 1:return a=n.sent(),[2,fv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},jv=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return a=n.sent(),[2,gv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},wv=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",o)];case 1:return a=n.sent(),[2,yv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))};function _v(e,o){var a=this;return Dp(["POST/template-reporting/templates/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplates(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Ev(e,o,a){var r=this;return Dp(["POST/template-reporting/template-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplateById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Cv(e,o){var a=this;return Dp(["POST/template-reporting/schedules/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportSchedules(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Sv(e,o,a){var r=this;return Dp(["POST/template-reporting/schedule-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportScheduleById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Rv(){return Dp({queryKey:["organization-configs"],queryFn:function(){return Sd.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})}function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xv.apply(this,arguments)}
216
+ */"production"===process.env.NODE_ENV?kp.exports=function(){if(vp)return jp;vp=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,r=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return a((function(){c.value=s,c.getSnapshot=t,i(c)&&l({inst:c})}),[e,s,t]),o((function(){return i(c)&&l({inst:c}),e((function(){i(c)&&l({inst:c})}))}),[e]),r(s),s};return jp.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,jp}():kp.exports=(wp||(wp=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue,u=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){u||void 0===t.startTransition||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!c){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var h=(p=o({inst:{value:d,getSnapshot:l}}))[0].inst,m=p[1];return r((function(){h.value=d,h.getSnapshot=l,e(h)&&m({inst:h})}),[s,d,l]),a((function(){return e(h)&&m({inst:h}),s((function(){e(h)&&m({inst:h})}))}),[s]),i(d),d};_p.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_p);var Ep=kp.exports;const Cp=Ep.useSyncExternalStore,Sp=i.createContext(void 0),Rp=i.createContext(!1);function xp(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Sp),window.ReactQueryClientContext):Sp)}const Tp=({context:e}={})=>{const t=i.useContext(xp(e,i.useContext(Rp)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ip=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=xp(n,o);return i.createElement(Rp.Provider,{value:!n&&o},i.createElement(a.Provider,{value:e},t))},Op=i.createContext(!1);Op.Provider;const Ap=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zp(e,t){return"function"==typeof e?e(...t):!!e}function Pp(e,t){const n=Tp({context:e.context}),o=i.useContext(Op),a=i.useContext(Ap),r=n.defaultQueryOptions(e);r._optimisticResults=o?"isRestoring":"optimistic",r.onError&&(r.onError=ap.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=ap.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=ap.batchCalls(r.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(r),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(r,a),(e=>{i.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=i.useState((()=>new t(n,r))),u=s.getOptimisticResult(r);if(Cp(i.useCallback((e=>{const t=o?()=>{}:s.subscribe(ap.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),i.useEffect((()=>{s.setOptions(r,{listeners:!1})}),[r,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(r,u,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(r,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&zp(n,[e.error,o]))({result:u,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return r.notifyOnChangeProps?u:s.trackResult(u)}function Dp(e,t,n){return Pp(Ad(e,t,n),hp)}function Lp(e,t,n){const o=function(e,t,n){return Vd(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Tp({context:o.context}),[r]=i.useState((()=>new bp(a,o)));i.useEffect((()=>{r.setOptions(o)}),[r,o]);const s=Cp(i.useCallback((e=>r.subscribe(ap.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),u=i.useCallback(((e,t)=>{r.mutate(e,t).catch(Np)}),[r]);if(s.error&&zp(r.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function Np(){}var qp;function Mp(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Up(e){return Lp((function(e){var t=e.code,n=e.accountCode;return Sd.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bp(e){return Lp((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sd.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Fp(){return Lp((function(e){var t=e.name,n=e.principal;return Sd.getInstance().postAccount(t,n)}))}function Wp(){return Lp((function(t){var n=e([qp.ACCOUNT],t.duplicate_order,!0);return Sd.getInstance().duplicateAccount(a(a({},t),{duplicate_order:n}))}))}function Hp(){return Lp((function(e){return Sd.getInstance().retryDuplicateAccount(e)}))}function Vp(){return Lp((function(e){var t=e.name,n=e.code,o=e.principal;return Sd.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gp(){return Lp((function(e){var t=e.account_code;return Sd.getInstance().putAccountPrincipal({account_code:t})}))}function Kp(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().putAccountsUserMassive(t,n,o)}))}function $p(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Qp(){return Lp(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jp(){return Lp(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Xp(){return Lp((function(e){return Sd.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Yp(){return Lp(["post-connection"],(function(e){var t=e.payload;return Sd.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Zp(){return Lp(["new-post-connection-validate"],(function(){return Sd.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function eh(){return Lp(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sd.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function th(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function nh(){return Lp((function(e){return Sd.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function oh(){var e=this;return Lp((function(o){var a=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postNetworkTokensOnboarding(a)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function ah(){return Lp(["patch-organizations"],(function(){return Sd.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function rh(){return Lp((function(e){return Sd.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ih(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function sh(e){return Lp((function(e){return Sd.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function uh(){return Lp((function(e){return Sd.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ch(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lh(){return Lp((function(e){return Sd.getInstance().createUserAuth0(e)}))}function dh(){return Lp((function(e){return Sd.getInstance().postCall(e)}))}function ph(){return Lp((function(e){return Sd.getInstance().changeLoginMethods(e)}))}function hh(e){return Lp((function(e){return Sd.getInstance().updateIsActiveCheckout(e)}),e)}function mh(){return Lp((function(e){var t=e.accountCode,n=e.template;return Sd.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function fh(){return Lp((function(e){var t=e.accountCode,n=e.theme;return Sd.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function gh(){return Lp((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sd.getInstance().createOperationTransaction(t,n,o,a)}))}function yh(){return Lp((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sd.getInstance().uploadChargebacks(t,n,o,a)}))}function bh(){return Lp((function(e){var t=e.transactionCode,n=e.payload;return Sd.getInstance().postProviderRawResponse(t,n)}))}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(qp||(qp={}));var vh=new sp({}),kh=new class{constructor(e={}){this.queryCache=e.queryCache||new sp,this.mutationCache=e.mutationCache||new lp,this.logger=e.logger||op,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Qd.subscribe((()=>{Qd.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Xd.subscribe((()=>{Xd.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=zd(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=Ad(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const r=Ad(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ap.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=zd(e,t),o=this.queryCache;ap.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=zd(e,t,n),r=this.queryCache,i={type:"active",...o};return ap.batch((()=>(r.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(i,a))))}cancelQueries(e,t,n){const[o,a={}]=zd(e,t,n);void 0===a.revert&&(a.revert=!0);const r=ap.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(r).then(Td).catch(Td)}invalidateQueries(e,t,n){const[o,a]=zd(e,t,n);return ap.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=zd(e,t,n),r=ap.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let i=Promise.all(r).then(Td);return null!=a&&a.throwOnError||(i=i.catch(Td)),i}fetchQuery(e,t,n){const o=Ad(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const r=this.queryCache.build(this,a);return r.isStaleByTime(a.staleTime)?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Td).catch(Td)}fetchInfiniteQuery(e,t,n){const o=Ad(e,t,n);return o.behavior=dp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Td).catch(Td)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Nd(e)===Nd(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>qd(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>qd(e,t.queryKey))).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Nd(e)===Nd(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>qd(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>qd(e,t.mutationKey))).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Ld(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:vh});function jh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _h(){return Lp((function(e){return Sd.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Eh(){return Lp((function(e){return Sd.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ch(){return Lp((function(e){return Sd.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sh(o){var a=this;return Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,kh.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kh.getQueryData(["GET/reports/templates"]),kh.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Rh(e){return Lp((function(){return Sd.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function xh(e,o,a){var r=this;return void 0===a&&(a=null),Lp((function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Th(e,o){var a=this,r=e.versionCode,i=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postSmartRoutingPublishVersion(i,r,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ih(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Oh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Ah(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zh(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Ph(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dh(e){var t=e.accountCode;return Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Lh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=!1),Sd.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Nh(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function qh(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Lp((function(e){return Sd.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mh(e,t){return void 0===t&&(t=null),Lp((function(t){return Sd.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Uh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.declinedGroupCode;return Sd.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Bh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.payload;return Sd.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Fh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Wh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Hh(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Vh(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gh(){return Lp((function(){return Sd.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Kh(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $h(){var e=this;return Lp((function(o){var a=o.payload,r=o.id,i=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().editRoles({payload:a,id:r},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Qh(){return Lp((function(e){return Sd.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Jh(){return Lp(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xh(){return Lp(["post-delete-payment-link"],(function(e){var t=e.code;return Sd.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yh(){return Lp(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sd.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Zh(){return Lp(["post-subscription"],(function(e){return Sd.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))}function em(){return Lp(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function tm(){return Lp(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function nm(){return Lp(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function om(){return Lp(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return Sd.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))}function am(){return Lp(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function rm(){return Lp(["post-list-subscriptions"],(function(e){return Sd.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))}function im(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function sm(){return Lp((function(e){return Sd.getInstance().postUserThemeSettings(e)}))}function um(){return Lp((function(e){var t=e.payload,n=e.section;return Sd.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kh.getQueryData(["fetch-profile"]);e.data&&kh.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function cm(e){return Lp(["pinned-sections"],(function(e){var t=e.payload;return Sd.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function lm(){return Lp((function(e){var t=e.password,n=e.otp;return Sd.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dm(){return Lp((function(){return Sd.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function pm(){return Lp((function(e){return Sd.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function hm(){return Lp((function(e){return Sd.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function mm(){return Lp((function(){return Sd.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function fm(){return Lp(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gm(){return Lp(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ym(){return Lp(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function bm(){return Lp(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vm(){return Lp(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function km(){return Lp(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jm(){return Lp(["patch-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wm(){return Lp(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _m(){return Lp(["put-blacklist"],(function(e){return Sd.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Em(){return Lp(["change-blacklist"],(function(e){return Sd.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Cm(){return Lp(["change-blacklist-item"],(function(e){return Sd.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Sm(){return Lp(["post-blacklist-items"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Rm(){return Lp(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sd.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xm(e){var t=e.handleSetProgress;return Lp(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sd.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Tm(){return Lp(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sd.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Im(){return Lp(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sd.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Om(){return Lp(["valiate-blacklist-items"],(function(e){return Sd.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Am(){return Lp(["delete-allowlist-item"],(function(e){return Sd.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function zm(){return Lp(["validate-allowlist-items"],(function(e){return Sd.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Pm(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=u(0),r=a[0],i=a[1],s=c({cancel:function(){return null}}),l=Lp(["upload-file-chargeback",t],(function(e){var t=Sd.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),a=t.promise,r=t.cancel;return s.current.cancel=r,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:l,cancelRequest:s.current.cancel,progress:r}}function Dm(){return Lp((function(e){return Sd.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Lm(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Nm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundProcessedFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function qm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundUserFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Mm(){var e=c({cancel:function(){return null}}),t=Lp(["upload-file"],(function(t){var n=Sd.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Um(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().updateMFAConfig(t,n)}))}function Bm(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().mfaExcludeUsers(t,n)}))}function Fm(e){return Dp(["GET/scheduled-reports",e],(function(){return Sd.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Wm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Hm(){return Lp((function(e){var t=e.reportCode,n=e.payload;return Sd.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vm(){return Lp((function(e){return Sd.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Gm(){return Lp((function(e){return Sd.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Km(){return Lp((function(e){return Sd.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $m(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Qm(){return Lp((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sd.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Xm(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ym(){return Lp((function(e){var t=e.code,n=e.password;return Sd.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Zm(){return Lp((function(e){var t=e.passwordOtp;return Sd.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function ef(){return Lp((function(e){var t=e.password;return Sd.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tf(){return Lp((function(e){var t=e.code;return Sd.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function nf(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function of(){return Lp((function(e){var t=e.payload,n=e.code,o=e.password;return Sd.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function af(){return Lp((function(e){var t=e.password,n=e.accountCode;return Sd.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function rf(){return Lp((function(e){var t=e.password,n=e.accountCode,o=e.otp,a=e.mfaToken;return Sd.getInstance().getDeveloperCredentials(t,n,o,a).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function sf(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function uf(){return Lp((function(e){var t=e.codes;return Sd.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function cf(){return Lp((function(e){return Sd.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function lf(){return Lp((function(e){return Sd.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function df(o){var a=this;return Lp((function(){return Sd.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,kh.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kh.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kh.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function pf(e){return Lp((function(){return Sd.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function hf(){return Lp(["POST/reconciliation/alerts"],(function(e){return Sd.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function mf(){return Lp(["DELETE/reconciliation/alerts"],(function(e){return Sd.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ff(){return Lp(["UPDATE/reconciliation/alerts"],(function(e){return Sd.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function gf(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function yf(){return Lp((function(e){return Sd.getInstance().createSamlConfig(e)}))}function bf(){return Lp((function(e){return Sd.getInstance().updateSamlConfig(e)}))}function vf(){return Lp((function(){return Sd.getInstance().deleteSamlConfig()}))}function kf(e,t){return void 0===t&&(t={}),Lp((function(t){return Sd.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function jf(e){return void 0===e&&(e={}),Lp((function(e){return Sd.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function wf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _f(){return Lp((function(e){return Sd.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ef(){return Lp((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,r=void 0===a?"":a;return Sd.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:r}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Cf(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Sf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rf(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function xf(){var e=this;return Lp(["POST/template-reporting/report-templates"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createTemplateReporting(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Tf(){var e=this;return Lp(["POST/template-reporting/report-templates/clone"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().cloneReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function If(){var e=this;return Lp(["PATCH/template-reporting/report-templates/selection"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().updateTemplateSelection(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Of(){var e=this;return Lp(["PATCH/template-reporting/report-templates/status"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().changeTemplateStatus(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Af(){var e=this;return Lp(["DELETE/template-reporting/report-templates"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function zf(){var e=this;return Lp(["POST/template-reporting/report-schedules"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createReportSchedule(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Pf(){var e=this;return Lp(["PATCH/template-reporting/report-schedules/disable"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().disableReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Df(){var e=this;return Lp(["DELETE/template-reporting/report-schedules"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Lf(){return Lp((function(e){return Sd.getInstance().postOrganizationConfigs(e)}))}function Nf(){return Lp((function(e){return Sd.getInstance().putOrganizationConfigsByAccount(e)}))}var qf,Mf=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=u(t&&JSON.parse(t)),o=n[0],a=n[1];return l((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function Uf(e){var o=this;return Dp(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Bf(e){return Dp(["fetch-payments-evaluated",e],(function(){return Sd.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Ff(e){var o=this,a=e.paymentCode,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Wf(e){var o=this,a=e.payment_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Hf(e){var o=this,a=e.transaction_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Vf(e){var t=Mf();return Dp(["payment-methods",e],(function(){return Sd.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Gf(){return Dp({queryKey:["/payment-methods/providers"],queryFn:function(){return Sd.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function Kf(){return Dp(["GET/catalog/card-brands"],(function(){return Sd.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $f(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Sc.PAYMENTS),Dp(["payment-filters",e,t],(function(){return Sd.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Qf(){return Dp(["payment-metrics-filters"],(function(){return Sd.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Jf(e){var t=e.transaction_code,n=e.enabled;return Dp(["payment-transaction-details",t],(function(){return Sd.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Xf(e){var t=e.payment_code,n=e.enabled;return Dp(["transaction-history",t],(function(){return Sd.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Yf(e){var o=this;return Dp(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Zf(e){var o=this;return Dp(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function eg(e){return Dp(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sd.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function tg(e){return Dp(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function ng(e){var t=Mf();return Dp(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function og(e,o){var a=this,r=Mf();return Dp(["GET/useGetProofOfCancel",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfCancel(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function ag(e,o){var a=this,r=Mf();return Dp(["GET/useGetProofOfPayment",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfPayment(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function rg(e,o,a){var r=this,i=Sd.getInstance();return Dp(["send-payment-notification",e,o],(function(){return t(r,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw r=n.sent(),a.onError(),r;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function ig(e){return Dp(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sd.getInstance();if(e)return t.postPayouts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function sg(e){var o=this;void 0===e&&(e=!0);var a=Mf();return Dp(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function ug(e,o){var a=this;void 0===o&&(o=!0);var r=Mf();return Dp(["getPayoutTimeline",e,r],(function(){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){return t=Sd.getInstance(),e?[2,t.getPayoutTimeline(e,r).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]:[2]}))}))}),{enabled:o&&!!e&&!!r,cacheTime:500,useErrorBoundary:!1})}function cg(e){var t=e.password,n=e.accountCode,o=e.otp,r=e.mfaToken;return Dp(["developers"],(function(){return Sd.getInstance().getDeveloperCredentials(t,n,o,r).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function lg(){return Dp(["fetch-customized-api-keys-members"],(function(){return Sd.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function dg(){return Dp(["developers-get-allowed-ips"],(function(){return Sd.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function pg(){return Dp(["fetch-customized-api-keys-accounts"],(function(){return Sd.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function hg(e){return Dp(["fetch-customized-api-keys",e],(function(){return Sd.getInstance().postCustomizedApiKeys(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function mg(){return Dp(["fetch-customized-api-keys-products"],(function(){return Sd.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function fg(){return Lp(["developers-patch-allowed-ips"],(function(e){return Sd.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function gg(){return Dp(["fetch-organizations"],(function(){return Sd.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function yg(){return Dp(["fetch-all-organizations",Mf()],(function(){return Sd.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function bg(e){var t=Mf();return Dp(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sd.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function vg(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Dp(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sd.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function kg(e){var t=e.accountCode,n=e.organizationCode,o=Mf();return Dp(["organizations-account-integrations",t,n],(function(){return Sd.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function jg(e){var t=e.accountCode,n=e.paymentMethod;return Dp(["fetch-connections-by-payment-method",n,t],(function(){return Sd.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function wg(){var e=this;return Dp(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function _g(){return Dp(["connections"],(function(){return Sd.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eg(){return Dp(["dialogs"],(function(){return Sd.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Cg(){return Dp(["params-catalog"],(function(){return Sd.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Sg(e){var t=e.accountCode,n=e.name;return Dp(["webhooks",t,n],(function(){return Sd.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Rg(e){var t=e.accountCode,n=e.enabled;return Dp(["webhooks-detail",t],(function(){return Sd.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function xg(e){var t,n=Mf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Dp({queryKey:["accounts",o],queryFn:function(){return Sd.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Tg(e){return Dp(["accountsV2",e],(function(){return Sd.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Ig(e){return Dp(["accountsV2-by-user",e],(function(){return e?Sd.getInstance().getAccountsByUser(e).then((function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}})).catch((function(e){return{accountsV2ByUser:[],error:e}})):{accountsV2ByUser:[]}}),{enabled:!!e,staleTime:0})}function Og(e,o){var a=this;return Dp({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getAccountsForImpersonation(e).then((function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map((function(e){return{label:e.name,value:o?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Ag(e){return Dp({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Sd.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function zg(){return Dp(["menu"],(function(){return Sd.getInstance().getMenu().then((function(e){return ud(e)?fd:null==e?void 0:e.data})).catch((function(){return fd}))}))}function Pg(){return Dp(["/payment/statuses/style"],(function(){return Sd.getInstance().useGetPaymentStatusesStyles().then((function(e){return ud(e)?cd:null==e?void 0:e.data})).catch((function(){return cd}))}))}function Dg(){return Dp(["/transaction/statuses/style"],(function(){return Sd.getInstance().useGetTransactionStatusesStyles().then((function(e){return ud(e)?ld:null==e?void 0:e.data})).catch((function(){return ld}))}),{cacheTime:36e5,useErrorBoundary:!1})}function Lg(){return Dp(["/reconciliation/transaction/statuses/style"],(function(){return Sd.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return ud(e)?dd:null==e?void 0:e.data})).catch((function(){return dd}))}))}function Ng(){return Dp(["timezone-catalog"],(function(){return Sd.getInstance().useGetTimeZoneCatalog().then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}))}function qg(){return Dp(["/cms/audit-logs-filters"],(function(){return Sd.getInstance().useGetAuditLogsFilters().then((function(e){return ud(e)?hd:null==e?void 0:e.data})).catch((function(){return hd}))}))}function Mg(){return Dp(["/cms/static-contents"],(function(){return Sd.getInstance().getDashboardStaticContents().then((function(e){var t,n;return ud(e)?md:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}}))}),{cacheTime:6048e5,useErrorBoundary:!1})}function Ug(){return Dp(["/cms/locales"],(function(){return Sd.getInstance().getLocales().then((function(e){return ud(e)?gd:e.data})).catch((function(){return gd}))}))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(qf||(qf={}));var Bg=function(){var e=u("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return l((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Fg(e){return Dp(["smart-routing-methods",e],(function(){return Sd.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Wg(e,t){return Dp(["smart-routing-workflow",t,e],(function(){return Sd.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Hg(e,t){return Dp(["smart-routing-condition-types",e,t],(function(){return Sd.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Vg(e,t){return Dp(["smart-routing-condition-payment-method",e,t],(function(){return Sd.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})}function Gg(e,t){return Dp(["smart-routing-condition-types-values",t,e],(function(){return Sd.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function Kg(e){var t=e.accountCode,n=e.workflowVersionId;return Dp(["smart-routing-workflow-version",n,t],(function(){return Sd.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function $g(e,t,n){return Dp(["smart-routing-next-route",e,n,t],(function(){return Sd.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Qg(e){return Dp(["smart-routing-decline-groups",e],(function(){return Sd.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Jg(e,t){return Dp(["smart-routing-payment-route",e,t],(function(){return Sd.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function Xg(e){return Dp(["smart-routing-simulate-condition-type-values",e],(function(){return Sd.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Yg(e){var t=e.text,n=e.conditionType;return Dp(["smart-routing-search-condition-values",t,n],(function(){return Sd.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Zg(){return Dp(["smart-routing-conversion-rates"],(function(){return Sd.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function ey(){var e=this;return Dp({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ty(){var e=this;return Dp({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ny(e){return Dp(["fetch-routing-monitors-templates",e],(function(){return Sd.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function oy(e,t){return Dp(["fetch-routing-monitors-template",e],(function(){return Sd.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function ay(e){var t=e.accountCode;return Dp(["checkouts",t],(function(){return Sd.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function ry(e){var t=e.accountCode;return Dp(["checkouts-template"],(function(){return Sd.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var iy=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},sy=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(iy({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},uy=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},cy=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(uy({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function ly(e){var t=e.accountCode;return Dp(["styling-sdk-dynamic",t],(function(){return Sd.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function dy(e){var t=e.accountCode;return Dp(["styling-theme",t],(function(){return Sd.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function py(e){var t=e.accountCode;return Dp(["styling-settings",t],(function(){return Sd.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function hy(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Dp(["styling-settings-v2",t],(function(){return Sd.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function my(){return Lp((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sd.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function fy(){return Dp(["fetch-profile"],(function(){return Sd.getInstance().getProfile().then((function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t})).catch((function(e){throw e}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function gy(){var e=this;return Dp(["get-user-full"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function yy(e,t){return Dp(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),r=o&&JSON.parse(o),i=a&&JSON.parse(a);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==r?void 0:r.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function by(e){return Dp(["email-verification",e],(function(){return Sd.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function vy(){return Dp({queryKey:["get-login-methods"],queryFn:function(){return Sd.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function ky(){return Dp(["fetch-impersonation-users"],(function(){return Sd.getInstance().getImpersonationUsers().then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function jy(){return Dp(["fetch-impersonation-enabled"],(function(){return Sd.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function wy(e,o,a,r,i){var s=this;return void 0===a&&(a=1),void 0===r&&(r=10),Dp(["get-users-to-impersonate",e,o,a,r,i],(function(){return t(s,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getUsersToImpersonate(e,o,a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function _y(e){var t;return Dp(["fetch-communications",e],(function(){return Sd.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Ey(){return Dp(["fetch-communications-filters"],(function(){return Sd.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Cy(e,t){return Dp(["fetch-communication-details",e],(function(){return Sd.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Sy(e){return Dp(["notifications-customer",e],(function(){return Sd.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Ry(e){return Dp(["validate-opsgenie-key",e],(function(){return Sd.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function xy(){return Dp(["notifications-merged"],(function(){return Sd.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Ty(){return Lp((function(e){return Sd.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Iy(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Oy={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Ay(){return Dp(["reports"],(function(){return Sd.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function zy(e){return void 0===e&&(e=!0),Dp(["reports-multi-env"],(function(){return Sd.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Py(e,t,n){return void 0===t&&(t=!1),Dp(["reports/".concat(e)],(function(){return Sd.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Dy(e){return Dp(["GET/reports/templates"],(function(){return Sd.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Ly(o,a,r){var i=this;return Dp(["GET/reports/columns/".concat(a,"/").concat(r)],(function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getReportColumns(a,r).then((function(t){return a===Oc.ALL&&r===Ic.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Oy],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function Ny(e,o){var a=this,r=Mf();return Dp(["getRefundPdf",e,r,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getRefundPdf(e,r,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!r,useErrorBoundary:!1})}function qy(){var e=Mf();return Dp(["teams-filters-members"],(function(){return Sd.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function My(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=Mf();return Dp(["fetch-post-members-v2",t,n,o,a,r,i,s,u,c],(function(){return Sd.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:a,roleId:r,statuses:i,roleIds:s,page:u,pageSize:c}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Uy(){return Dp(["fetch-roles"],(function(){return Sd.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function By(){return Dp(["fetch-rolespermissions"],(function(){return Sd.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Fy(){return Dp(["fetch-permissions-catalog"],(function(){return Sd.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Wy(e){return Dp(["data-report",e],(function(){return Sd.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Hy(e,t,n,o){void 0===n&&(n=!0);return Dp(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sd.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})}function Vy(e,t){return Dp(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Gy(e){return Dp(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sd.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Ky(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-volume-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function $y(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Dp(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sd.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Qy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Jy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Xy(e){return Dp(["get-insights-overview",e],(function(){return Sd.getInstance().getInsightOverview(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Yy(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Dp(["get-insights-overview-v3",e,t],(function(){return Sd.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Zy(e){return Dp(["get-insights-home-metrics",e],(function(){return Sd.getInstance().getInsighstHomeMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function eb(e){return Dp(["get-insights-reports",e],(function(){return Sd.getInstance().getInsightsReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function tb(e){return Dp(["get-insights-reports-again",e],(function(){return Sd.getInstance().getInsightsReportAgain(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function nb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ob(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ab(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ib(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ub(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function db(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function pb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gb(e,t){return Dp(["fetch-reconciliation-transaction",e],(function(){return Sd.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function yb(e,t){return Dp(["fetch-reconciliation-settlements",e],(function(){return Sd.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function bb(e,t){return Dp(["fetch-reconciliation-metrics",e],(function(){return Sd.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function vb(){return Dp(["GET-reconciliation-filters"],(function(){return Sd.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function kb(e){return Dp(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sd.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jb(){return Dp(["GET/v1/reconciliation/active"],(function(){return Sd.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wb(e,t,n){return Dp(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sd.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function _b(e){return Dp(["GET/reconciliation/reports/templates"],(function(){return Sd.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Eb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/alerts/list",t,n],(function(){return Sd.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Cb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/list",t,n],(function(){return Sd.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Sb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/insights",t,n],(function(){return Sd.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Rb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/sales/list",t,n],(function(){return Sd.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function xb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/advancements/list",t,n],(function(){return Sd.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Tb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/fees/list",t,n],(function(){return Sd.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ib(e){var o=this,a=Object.values(e).filter(Boolean);return Dp(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Ob(e){var o=this,a=Dp({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),r=Tp();return l((function(){r.setQueryData(["cached-feature-flags"],a)}),[a,r]),a}function Ab(e){var t,n,o=Tp(),r=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.status)),s=Dp({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return a(a({},s),{isLoading:i})}function zb(e){return Dp(["events",e],(function(){return Sd.getInstance().getAuditEvents(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function Pb(e){return Dp(["audit-monitor-event-detail",e],(function(){return Sd.getInstance().getAuditMonitorDetail(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function Db(e){return Dp(["api-logs",e],(function(){return Sd.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Lb(e){var t=e.params;return Dp(["webhook-logs",t],(function(){return Sd.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Nb(e){return Dp(["api-logs-detail",e],(function(){return Sd.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function qb(e,t){return Dp(["fetch-payment-links",e,t],(function(){return Sd.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Mb(e){return Dp(["payment-link"],(function(){return Sd.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Ub(e){return void 0===e&&(e=!0),Dp(["countries",e],(function(){return Sd.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function Bb(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Dp(["countries-v2",n],(function(){return Sd.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function Fb(e){return Dp(["timezone"],(function(){return Sd.getInstance().getTimezone(e).then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}),{enabled:!0,keepPreviousData:!0})}function Wb(e){return Dp(["installments-plans",e],(function(){return Sd.getInstance().getInstallmentPlans(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})}function Hb(e,t){return void 0===t&&(t=!0),Dp(["subscription",e],(function(){return Sd.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})}function Vb(e,t,n,o){return void 0===o&&(o=!0),Dp(["subscription-payments",e,t,n],(function(){return Sd.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})}function Gb(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Kb(e,t){return Dp(["get-cofig-allow-list",e],(function(){return Sd.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})}function $b(e){return Dp(["get-black-list",e],(function(){return Sd.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Qb(e,t,n,o){var a;return Dp(["post-black-list",e],(function(){return Sd.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function Jb(e,t,n){return Dp(["get-block-list-summary",e,t,n],(function(){var o=Sd.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function Xb(e,t,n,o,a,r){return Dp(["black-list-detail",e,t,o,a,r],(function(){return Sd.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&r,cacheTime:0})}function Yb(e,t,n){return Dp(["allow-list-detail",e],(function(){return Sd.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function Zb(e){return Dp(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sd.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function ev(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Dp(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function tv(e){return Dp(["velocity-rules",e],(function(){var t=Sd.getInstance();return e?t.getVelocityRules(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e,keepPreviousData:!0})}function nv(){return Dp(["config-rules"],(function(){return Sd.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function ov(e,t){var n=e.organizationCode;return Dp(["mfa-excluded-users",n],(function(){return Sd.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function av(e,t){var n=e.organizationCode;return Dp(["mfa-config",n],(function(){return Sd.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function rv(e,t){return Dp(["mfa-enforcement-status",e.accountCode],(function(){return Sd.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function iv(e){return Dp(["fetch-organization-saml-config",e],(function(){return Sd.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function sv(e){return Dp(["chartgpt-chart-execute",e],(function(){return Sd.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function uv(){return Dp(["chartgpt-user-charts"],(function(){return Sd.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function cv(){var e=this;return Dp(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,r,i=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sd.getInstance()).getChartsByUser()];case 1:return o=s.sent(),r=(null==o?void 0:o.data)||[],[4,Promise.all(r.map((function(o){return t(i,void 0,void 0,(function(){var t,r,i,s,u,c,l,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(c=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.unit_to_display)&&void 0!==c?c:o.unit_to_display,results:null!==(d=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return r=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),r),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function lv(e,o,a){var r=this;return void 0===a&&(a=!0),Dp(["chartgpt-patch-and-execute",e,o],(function(){return t(r,void 0,void 0,(function(){var t,a,r,i,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sd.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),r=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return i=n.sent(),s=null==i?void 0:i.data,[2,{chart:r,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function dv(){return Dp(["languages"],(function(){return Sd.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function pv(){var e=localStorage.getItem("lang")||"en";return Dp(["translations",e],(function(){return Sd.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function hv(e){var o=this;return Dp({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var mv=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},fv=function(e,t,n){if(!t||!n)return e||[];var o=function(e,t){var n=[],o=new Date(e),a=new Date(t);o.setUTCHours(0,0,0,0),a.setUTCHours(0,0,0,0);for(var r=new Date(o);r<=a;)n.push(r.toISOString()),r.setUTCDate(r.getUTCDate()+1);return n}(t,n),a=new Map;return null==e||e.forEach((function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];a.set(t,e.value)}})),o.map((function(e){var t=e.split("T")[0];return{date:e,value:a.get(t)||"0"}}))},gv=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var o=parseFloat(n.value||"0");return{distribution:n.rows.map((function(e){var t,n=100*parseFloat(e.value),a=Math.round(o*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:a,percentage:n,amount:a}})),total:o}},yv=function(e,t,n){var o,a={};return null===(o=e.plots)||void 0===o||o.forEach((function(e){var o=fv(e.rows,t,n),r=e.label;a[r]=o.map((function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:mv(e.date||""),current_amount:100*parseFloat(e.value)}}))})),a},bv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:fv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:mv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},vv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:fv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:mv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},kv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",o)];case 1:return a=n.sent(),[2,(r=a.data,i=o.start_date,s=o.end_date,u=r.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),d=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),p=fv(null==c?void 0:c.rows,i,s),h=fv(null==l?void 0:l.rows,i,s),m=fv(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:mv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:m.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:mv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var r,i,s,u,c,l,d,p,h,m}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},jv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",o)];case 1:return a=n.sent(),[2,gv(a.data)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},wv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",o)];case 1:return a=n.sent(),[2,yv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},_v=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return a=n.sent(),[2,bv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},Ev=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",o)];case 1:return a=n.sent(),[2,vv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))};function Cv(e,o){var a=this;return Dp(["POST/template-reporting/templates/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplates(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Sv(e,o,a){var r=this;return Dp(["POST/template-reporting/template-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplateById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Rv(e,o){var a=this;return Dp(["POST/template-reporting/schedules/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportSchedules(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function xv(e,o,a){var r=this;return Dp(["POST/template-reporting/schedule-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportScheduleById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Tv(){return Dp({queryKey:["organization-configs"],queryFn:function(){return Sd.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})}function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Iv.apply(this,arguments)}
217
217
  /**
218
218
  * match-sorter-utils
219
219
  *
@@ -223,12 +223,12 @@ function Go(e){const t=Vo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
223
223
  * LICENSE.md file in the root directory of this source tree.
224
224
  *
225
225
  * @license MIT
226
- */const Tv={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Iv=Object.keys(Tv).join("|"),Ov=new RegExp(Iv,"g");
226
+ */const Ov={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Av=Object.keys(Ov).join("|"),zv=new RegExp(Av,"g");
227
227
  /**
228
228
  * @name match-sorter
229
229
  * @license MIT license.
230
230
  * @copyright (c) 2099 Kent C. Dodds
231
231
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
232
232
  */
233
- const Av=7,zv=6,Pv=5,Dv=4,Lv=3,Nv=2,qv=1,Mv=0;function Uv(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:qv,!n.accessors){const o=Bv(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],r=Vv(a),i=Wv(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:r})}return n}(e,n.accessors),r={rankedValue:e,rank:Mv,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let i=Bv(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=qv?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>r.rank&&(r.rank=i,r.passed=!0,r.accessorIndex=e,r.accessorThreshold=c,r.rankedValue=o.itemValue)}return r}function Bv(e,t,n){return e=Fv(e,n),(t=Fv(t,n)).length>e.length?Mv:e===t?Av:(e=e.toLowerCase())===(t=t.toLowerCase())?zv:e.startsWith(t)?Pv:e.includes(` ${t}`)?Dv:e.includes(t)?Lv:1===t.length?Mv:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Nv:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,r=t.length;a<r;a++){if(t[a]===e)return n+=1,a+1}return-1}function r(e){const o=1/e,a=n/t.length;return qv+a*o}const i=a(t[0],e,0);if(i<0)return Mv;o=i;for(let n=1,r=t.length;n<r;n++){o=a(t[n],e,o);if(!(o>-1))return Mv}const s=o-i;return r(s)}(e,t)}function Fv(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Ov,(e=>Tv[e]))),e}function Wv(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const Hv={maxRanking:1/0,minRanking:-1/0};function Vv(e){return"function"==typeof e?Hv:{...Hv,...e}}function Gv(e,t){const[n,o]=i.useState();i.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,i.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var Kv,$v=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}(),Qv=function(){function e(e){this.generateIdentifier=e,this.kv=new $v}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}(),Jv=(Kv=function(e,t){return Kv=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])},Kv(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}Kv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xv=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Jv(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}(Qv),Yv=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function Zv(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var o=n,a=0;a<o.length;a++){var r=o[a];if(t(r))return r}}function ek(e,t){Object.entries(e).forEach((function(e){var n=Yv(e,2),o=n[0],a=n[1];return t(a,o)}))}function tk(e,t){return-1!==e.indexOf(t)}function nk(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var ok=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Zv(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),ak=function(e){return void 0===e},rk=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},ik=function(e){return rk(e)&&0===Object.keys(e).length},sk=function(e){return Array.isArray(e)},uk=function(e){return e instanceof Map},ck=function(e){return e instanceof Set},lk=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},dk=function(e){return"number"==typeof e&&isNaN(e)},pk=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||ak(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||lk(e)},hk=function(e){return e.replace(/\./g,"\\.")},mk=function(e){return e.map(String).map(hk).join(".")},fk=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var r=n;return t.push(r),t},gk=function(){return gk=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},gk.apply(this,arguments)},yk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},bk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function vk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var kk=[vk(ak,"undefined",(function(){return null}),(function(){})),vk((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)})),vk((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),vk((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})),vk((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)})),vk(ck,"set",(function(e){return bk([],yk(e.values()))}),(function(e){return new Set(e)})),vk(uk,"map",(function(e){return bk([],yk(e.entries()))}),(function(e){return new Map(e)})),vk((function(e){return dk(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return dk(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),vk((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),vk((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function jk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var wk=jk((function(e,t){return!!lk(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),_k=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Ek=jk((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return bk([],yk(e))}),(function(e,t){var n=_k[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Ck(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Sk=jk(Ck,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return gk({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),Rk=jk((function(e,t){return!!t.customTransformerRegistry.findApplicable(e)}),(function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]}),(function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)}),(function(e,t,n){var o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),xk=[Sk,wk,Rk,Ek],Tk=function(e,t){var n=nk(xk,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=nk(kk,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Ik={};kk.forEach((function(e){Ik[e.annotation]=e}));var Ok=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Ak(e){if(tk(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(tk(e,"prototype"))throw new Error("prototype is not allowed as a property");if(tk(e,"constructor"))throw new Error("constructor is not allowed as a property")}var zk=function(e,t,n){if(Ak(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var r=t[a];if(sk(o))o=o[+r];else if(rk(o))o=o[r];else if(ck(o)){o=Ok(o,i=+r)}else if(uk(o)){if(a===t.length-2)break;var i=+r,s=0==+t[++a]?"key":"value",u=Ok(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(sk(o)?o[+c]=n(o[+c]):rk(o)&&(o[c]=n(o[c])),ck(o)){var l=Ok(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(uk(o)){i=+t[t.length-2];var p=Ok(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},Pk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Dk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Lk(e,t,n){if(void 0===n&&(n=[]),e)if(sk(e)){var o=Pk(e,2),a=o[0],r=o[1];r&&ek(r,(function(e,o){Lk(e,t,Dk(Dk([],Pk(n)),Pk(fk(o))))})),t(a,n)}else ek(e,(function(e,o){return Lk(e,t,Dk(Dk([],Pk(n)),Pk(fk(o))))}))}function Nk(e,t,n){return Lk(t,(function(t,o){e=zk(e,o,(function(e){return function(e,t,n){if(!sk(t)){var o=Ik[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return wk.untransform(e,t,n);case"class":return Sk.untransform(e,t,n);case"custom":return Rk.untransform(e,t,n);case"typed-array":return Ek.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function qk(e,t){function n(t,n){var o=function(e,t){Ak(t);for(var n=0;n<t.length;n++){var o=t[n];if(ck(e))e=Ok(e,+o);else if(uk(e)){var a=+o,r=0==+t[++n]?"key":"value",i=Ok(e,a);switch(r){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,fk(n));t.map(fk).forEach((function(t){e=zk(e,t,(function(){return o}))}))}if(sk(t)){var o=Pk(t,2),a=o[0],r=o[1];a.forEach((function(t){e=zk(e,fk(t),(function(){return e}))})),r&&ek(r,n)}else ek(t,n);return e}var Mk=function(e,t,n,o,a,r,i){var s;void 0===a&&(a=[]),void 0===r&&(r=[]),void 0===i&&(i=new Map);var u=pk(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return rk(e)||sk(e)||uk(e)||ck(e)||Ck(e,t)}(e,n)){var l=Tk(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(tk(r,e))return{transformedValue:null};var p=Tk(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,m=sk(h)?[]:{},f={};ek(h,(function(s,u){var c=Mk(s,t,n,o,Dk(Dk([],Pk(a)),[u]),Dk(Dk([],Pk(r)),[e]),i);m[u]=c.transformedValue,sk(c.annotations)?f[u]=c.annotations:rk(c.annotations)&&ek(c.annotations,(function(e,t){f[hk(u)+"."+t]=e}))}));var g=ik(f)?{transformedValue:m,annotations:p?[p.type]:void 0}:{transformedValue:m,annotations:p?[p.type,f]:f};return u||i.set(e,g),g};function Uk(e){return Object.prototype.toString.call(e).slice(8,-1)}function Bk(e){return"Array"===Uk(e)}function Fk(e,t={}){if(Bk(e))return e.map((e=>Fk(e,t)));if(!function(e){if("Object"!==Uk(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((n,o)=>{if(Bk(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Fk(e[o],t),e,t.nonenumerable),n}),{})}var Wk=function(){return Wk=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Wk.apply(this,arguments)},Hk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Vk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Gk=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Xv,this.symbolRegistry=new Qv((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new ok,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Mk(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Wk(Wk({},o.meta),{values:n.annotations}));var a,r,i,s,u=(a=t,r=this.dedupe,i={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){r||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=Pk(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(mk):i[mk(n)]=o.map(mk)}})),s?ik(i)?[s]:[s,i]:ik(i)?void 0:i);return u&&(o.meta=Wk(Wk({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Fk(t);return(null==n?void 0:n.values)&&(o=Nk(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=qk(o,n.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Wk({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,Vk([],Hk(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 Kk={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},$k=i.createContext(Kk);function Qk({theme:e,...t}){return i.createElement($k.Provider,xv({value:e},t))}function Jk({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function Xk(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Yk(e,t,n={}){return i.forwardRef((({style:o,...a},r)=>{const s=i.useContext($k),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=i.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return i.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e),{});return i.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...u},ref:r})}))}const Zk=(e,t=!1)=>{const{json:n}=Gk.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ej=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,tj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,nj={"Status > Last Updated":(e,t)=>ej(e)===ej(t)?tj(e,t):ej(e)>ej(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":tj},oj=500,aj={top:"bottom",bottom:"top",left:"right",right:"left"};function rj(e){return["left","right"].includes(e)}function ij(e){return aj[e]}function sj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function uj(e="bottom"){const t=rj(e),n=ij(e),o=sj("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const cj=Yk("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"}}),lj=Yk("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),dj=Yk("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"}))),pj=Yk("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),hj=Yk("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),mj=Yk("code",{fontSize:".9em",color:"inherit",background:"inherit"}),fj=Yk("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),gj=Yk("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 yj({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const bj=Yk("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),vj=Yk("span",{color:"white"}),kj=Yk("button",{cursor:"pointer",color:"white"}),jj=Yk("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),wj=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Gk.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?i.createElement(Rj,null):"SuccessCopy"===t?i.createElement(Tj,null):i.createElement(xj,null))},_j=Yk("span",((e,t)=>({color:t.danger}))),Ej=Yk("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Cj=Yk("span",{color:"grey",fontSize:".7em"}),Sj=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Rj=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.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"}),i.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"}))),xj=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.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"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Tj=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.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 Ij=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:r,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(bj,{key:t},a.length?i.createElement(i.Fragment,null,i.createElement(jj,{onClick:()=>c()},i.createElement(Sj,{expanded:s})," ",t," ",i.createElement(Cj,null,"iterable"===String(r).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),u?i.createElement(wj,{value:n}):null,s?1===a.length?i.createElement(Ej,null,o.map(e)):i.createElement(Ej,null,a.map(((t,n)=>i.createElement("div",{key:n},i.createElement(bj,null,i.createElement(kj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},i.createElement(Sj,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(Ej,null,t.map(e)):null))))):null):i.createElement(i.Fragment,null,i.createElement(vj,null,t,":")," ",i.createElement(_j,null,Zk(n))))};function Oj({value:e,defaultExpanded:t,renderer:n=Ij,pageSize:o=100,copyable:a=!1,...r}){const[s,u]=i.useState(Boolean(t)),c=i.useCallback((()=>u((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 m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(d,o);return n({handleEntry:t=>i.createElement(Oj,xv({key:t.label,value:e,renderer:n,copyable:a},r,t)),type:l,subEntries:d,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...r})}function Aj(e){return i.createElement("svg",xv({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.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) "}),i.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"}),i.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 zj=(e,t,n=!1)=>Ep.useSyncExternalStore(i.useCallback((t=>n?()=>{}:e.subscribe(ap.batchCalls(t))),[e,n]),t,t),Pj=i.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:r,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:m,...f}=d,g=Tp({context:r}),y=g.getQueryCache(),[b,v]=Gv("reactQueryDevtoolsSortFn",Object.keys(nj)[0]),[k,j]=Gv("reactQueryDevtoolsFilter",""),[w,_]=Gv("reactQueryDevtoolsBaseSort",1),E=i.useMemo((()=>nj[b]),[b]),C=zj(y,(()=>y.getAll().length),!n),[S,R]=Gv("reactQueryDevtoolsActiveQueryHash",""),x=i.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter((e=>Uv(e.queryHash,k).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*w)):t}),[w,E,k,C,y]),[T,I]=i.useState(!1);return i.createElement(Qk,{theme:Kk},i.createElement(cj,xv({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:oj,position:"relative",...h.style}}),i.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Kk.backgroundAlt+" "+Kk.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: "+Kk.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Kk.gray+";\n border-radius: .5em;\n border: 3px solid "+Kk.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:uj(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Kk.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Kk.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.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"}},i.createElement(Aj,{"aria-hidden":!0}),i.createElement(yj,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(Lj,{queryCache:y}),l&&u?i.createElement(gj,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(fj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>j(e.target.value),onKeyDown:e=>{"Escape"===e.key&&j("")},style:{flex:"1",width:"100%"}}),i.createElement(gj,{"aria-label":"Sort queries",value:b,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(nj).map((e=>i.createElement("option",{key:e,value:e},"Sort by ",e)))),i.createElement(dj,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(dj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(dj,{type:"button",onClick:()=>{T?(Xd.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Xd.setOnline(!1),I(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Kk.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.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"}),i.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"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(yj,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},x.map((e=>i.createElement(Nj,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y}))))),S&&n?i.createElement(Dj,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:p}):null,c?i.createElement(dj,xv({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},f,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...f.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),Dj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,r;const s=zj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),u=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,l=null!=(r=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?r:0,p=d((()=>{if(s&&null!=u&&u.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=u.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==u?void 0:u.error,o]);if(!s||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return i.createElement(lj,null,i.createElement("div",{style:{padding:".5em",background:Kk.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(mj,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Zk(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Jk({queryState:u,isStale:c,observerCount:l,theme:Kk}),flexShrink:0}},Xk(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(mj,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(mj,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Kk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(dj,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(qj)},disabled:"fetching"===u.fetchStatus,style:{background:Kk.active}},"Refetch")," ",i.createElement(dj,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Kk.warning,color:Kk.inputTextColor}},"Invalidate")," ",i.createElement(dj,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Kk.gray}},"Reset")," ",i.createElement(dj,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Kk.danger}},"Remove")," ",i.createElement(dj,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Kk.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?i.createElement(dj,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Kk.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(gj,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));h(t)}},i.createElement("option",{key:"",value:""}),o.map((e=>i.createElement("option",{key:e.name,value:e.name},e.name)))))),i.createElement("div",{style:{background:Kk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(Oj,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Kk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(Oj,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},Lj=({queryCache:e})=>{const t=zj(e,(()=>e.getAll().filter((e=>"fresh"===Xk(e))).length)),n=zj(e,(()=>e.getAll().filter((e=>"fetching"===Xk(e))).length)),o=zj(e,(()=>e.getAll().filter((e=>"paused"===Xk(e))).length)),a=zj(e,(()=>e.getAll().filter((e=>"stale"===Xk(e))).length)),r=zj(e,(()=>e.getAll().filter((e=>"inactive"===Xk(e))).length));return i.createElement(pj,null,i.createElement(hj,{style:{background:Kk.success,opacity:t?1:.3}},"fresh ",i.createElement(mj,null,"(",t,")"))," ",i.createElement(hj,{style:{background:Kk.active,opacity:n?1:.3}},"fetching ",i.createElement(mj,null,"(",n,")"))," ",i.createElement(hj,{style:{background:Kk.paused,opacity:o?1:.3}},"paused ",i.createElement(mj,null,"(",o,")"))," ",i.createElement(hj,{style:{background:Kk.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",i.createElement(mj,null,"(",a,")"))," ",i.createElement(hj,{style:{background:Kk.gray,opacity:r?1:.3}},"inactive ",i.createElement(mj,null,"(",r,")")))},Nj=i.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,r,s,u;const c=null!=(a=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",l=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),d=null!=(r=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&r,p=null!=(s=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?u:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Kk.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Jk({queryState:l,isStale:d,observerCount:h,theme:Kk}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Kk.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(mj,{style:{padding:".5em"}},""+c)):null}));function qj(){}Nj.displayName="QueryRow";const Mj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:r="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,m]=Gv("reactQueryDevtoolsOpen",e),[f,g]=Gv("reactQueryDevtoolsHeight",oj),[y,b]=Gv("reactQueryDevtoolsWidth",oj),[v="bottom",k]=Gv("reactQueryDevtoolsPanelPosition",c),[j,w]=i.useState(!1),[_,E]=i.useState(!1),C=function(){const e=i.useRef(!1),t=i.useCallback((()=>e.current),[]);return i.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();i.useEffect((()=>{w(null!=h&&h)}),[h,j,w]),i.useEffect((()=>{const e=p.current;if(e){const t=()=>{j&&(e.style.visibility="visible")},n=()=>{j||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[j]),i.useEffect((()=>{var e;if(j&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=sj("padding",v),n=rj(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:f)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[j,v,f,y]);const{style:S={},...R}=t,{style:x={},onClick:T,...I}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:r,panelStyle:i}){const s=ij(e),u=sj("border",s),c=rj(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...r?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:oj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:oj}}}({position:v,devtoolsTheme:Kk,isOpen:j,height:f,width:y,isResizing:_,panelStyle:S});return C()?i.createElement(r,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Qk,{theme:Kk},i.createElement(Pj,xv({ref:p,context:s,styleNonce:u,position:v,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:j,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=rj(v);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),r=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=a+("right"===v?r-e.clientX:e.clientX-r),b(s)):(s=o+("bottom"===v?i-e.clientY:e.clientY-i),g(s)),m(!(s<70))},c=()=>{_&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),j?null:i.createElement("button",xv({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...x}}),i.createElement(Aj,{"aria-hidden":!0}),i.createElement(yj,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Uj,Bj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Fj(e){var o=this,r=e.children,i=process.env.ENVIRONMENT,s=d((function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"}),[i]),c=u(!1),h=c[0],m=c[1],f=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),u=i?JSON.parse(i).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":r||s,"x-organization-code":u,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s]);l((function(){return addEventListener("ACCOUNT_CHANGED",f),function(){window.removeEventListener("ACCOUNT_CHANGED",f)}}),[f]);var g=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u,c,l;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(r=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),u=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",c=r?JSON.parse(r).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":c,"x-account-code":u,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),kh.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),n.label=2;case 2:return[2]}}))}))}),[s,m]);return l((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?g(n):"token"===t.key&&g(e)}})),g(e)}),[m,g]),h?React.createElement(Ip,{client:kh},r,React.createElement(Mj,{initialIsOpen:!1})):React.createElement("div",{style:Bj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Uj||(Uj={}));var Wj=function(){var e=c(null),t=c(null),n=c(null),o=u(!1),a=o[0],r=o[1],i=u(null),s=i[0],d=i[1],h=u(null),m=h[0],f=h[1],g=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]),y=p((function(){if("undefined"==typeof window||"dashboard.dev.y.uno"!==window.location.hostname){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),f(null);try{var o=new WebSocket("".concat(Cd["WS_URL_".concat(Cd.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){r(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval((function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(g(),r(!1))}),3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){f("Failed to parse server response")}},o.onerror=function(e){f("Connection error occurred"),r(!1)},o.onclose=function(e){r(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout((function(){y()}),5e3))}}catch(e){f("Failed to establish connection")}}}),[]),b=p((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}))}),[]),v=p((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}))}),[]),k=p((function(){d(null)}),[]),j=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(r(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return l((function(){return y(),function(){g(),j()}}),[]),{subscribe:b,unsubscribe:v,disconnect:j,connect:y,clearChartData:k,isConnected:a,chartData:s,connectionError:m}},Hj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Hj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!ja())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,ba.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}}))}))}();export{Lc as AI,Ed as Api,Uj as ApiErrorCodes,Fj as ApiProvider,Sd as ApiSingleton,Tc as Cms,xc as Country,zc as DataReport,qp as DuplicateSetting,Rc as Organization,Nc as OrganizationConfig,Sc as PaymentFiltersSection,Nf as PendingDuplicateAccountStatus,Dc as ReconciliationAgendaInsight,Pc as ReconciliationReportType,Ic as ReportType,Cc as SendPaymentNotification,Ac as SmartRouting,Oc as TemplateType,ay as getQueryKeyGetNameAndIcon,iy as getQueryKeyRequiredFields,vh as queryCache,kh as queryClient,Yg as use3DSExemptions,vf as useAICreateWorkflow,Tb as useAllFeatureFlags,Jb as useAllowListDetail,Qb as useBlackListDetail,Ib as useCachedFeatureFlag,Ch as useCancelReport,nm as useCancelSubscription,ih as useChangePasswordV2,Tm as useChangePaymentsWebhook,Em as useChangeStatusBlackList,Cm as useChangeStatusItemBlackList,py as useChangeStylingSettings,If as useChangeTemplateStatus,yh as useChargebacksUpload,Wj as useChartAssistantSocket,rv as useChartExecute,xf as useCloneTemplate,_y as useCommunicationDetails,jy as useCommunications,bv as useCommunicationsByDay,vv as useCommunicationsBySubstatus,wy as useCommunicationsFilters,kv as useCommunicationsSubstatusByDay,pm as useConfirmedOtpMfa,Eh as useCountRowsForReport,Ef as useCreateAndExecuteChart,Sf as useCreateAndExecuteChartWithTimezone,jf as useCreateChart,Cf as useCreateChartWithTimezone,Wh as useCreateMonitorTemplate,Fh as useCreateMonitorThreshold,gh as useCreateOperationTransaction,Jh as useCreatePaymentLinks,pf as useCreateReconciliationAlert,lf as useCreateReconciliationReportTemplate,jh as useCreateReconciliationsReportV2,wh as useCreateReconciliationsReportV3,Sh as useCreateReportTemplate,_h as useCreateReportV2,Kh as useCreateRoles,gf as useCreateSamlConfig,Af as useCreateSchedule,Wm as useCreateScheduledReport,Zh as useCreateSubscription,Rf as useCreateTemplate,lh as useCreateUserAuth0,xh as useCreateWorkflow,$p as useDeleteAccountsUserMassive,Am as useDeleteAllowlistItem,Rm as useDeleteBlackListType,Im as useDeleteBlockListItem,wf as useDeleteChart,tf as useDeleteCustomizedApiKeys,Xh as useDeletePaymentLink,hf as useDeleteReconciliationAlert,Qh as useDeleteRoles,bf as useDeleteSamlConfig,Pf as useDeleteSchedule,Vm as useDeleteScheduledReport,Of as useDeleteTemplate,Vh as useDeleteUserTeamV2,Oh as useDeleteVersion,Up as useDeleteWebhookV2,zf as useDisableSchedule,Wp as useDuplicateAccount,Ah as useDuplicateVersion,Yh as useEditPaymentLinks,$h as useEditRoles,gy as useEmailVerification,Bm as useExcludeUsers,uf as useExportApiLogs,cf as useExportWebhooksLogs,xb as useFeatureFlags,Hb as useFirebaseUserSubscribe,kf as useGenerateFeedback,Sg as useGetAccounts,xg as useGetAccountsByUser,Tg as useGetAccountsForImpersonation,Rg as useGetAccountsV2,ev as useGetAllConfigRules,fg as useGetAllOrganizations,Sb as useGetAllReconciliationsAdvancements,_b as useGetAllReconciliationsAgenda,wb as useGetAllReconciliationsAlerts,Rb as useGetAllReconciliationsFees,Cb as useGetAllReconciliationsSales,bb as useGetAllTableColumns,cg as useGetAllowedIps,Db as useGetApiLogsDetailByPaymentCode,Ob as useGetAuditEvents,Lg as useGetAuditLogsFilters,Ab as useGetAuditMonitorEventDetail,Nm as useGetBatchRefundProcessedFileDownload,qm as useGetBatchRefundUserFileDownload,Yb as useGetBatchRefunds,Gb as useGetBlackList,$b as useGetBlockListSummary,Gf as useGetCardBrands,iv as useGetChartsByUser,sv as useGetChartsByUserWithResults,oy as useGetCheckoutTemplate,ny as useGetCheckouts,Gm as useGetConditionalConfigRules,Vb as useGetConfigAllowlist,jg as useGetConnections,vg as useGetConnectionsByPaymentMethod,qb as useGetCountriesConfigPaymentLink,Mb as useGetCountriesConfigPaymentLinkV2,sg as useGetCredentials,af as useGetCredentialsMFA,dg as useGetCustomizedApiKeys,lg as useGetCustomizedApiKeysAccounts,ug as useGetCustomizedApiKeysMembers,pg as useGetCustomizedApiKeysProducts,Ym as useGetCustomizedApiKeysToken,Ng as useGetDashboardStaticContents,wg as useGetDialogs,Ay as useGetDownloadReport,dm as useGetEmailOtp,kg as useGetHashPylon,vy as useGetImpersonationEnabled,by as useGetImpersonationUsers,Yy as useGetInsightsReport,Zy as useGetInsightsReportAgain,Bb as useGetInstallmentPlans,bg as useGetIntegrationByAccountV2,yg as useGetIntegrationParams,cv as useGetLanguages,qg as useGetLocales,yy as useGetLoginMethods,nv as useGetMFAConfig,tv as useGetMFAExcludedUsers,ov as useGetMFAStatus,Og as useGetMenu,Sy as useGetMergedNotifications,ry as useGetNameAndIcon,dv as useGetNetworkTokensOnboardingByOrganization,Ey as useGetNotificationsCustomer,Ry as useGetNotificationsNumberMutation,mg as useGetOrganization,Rv as useGetOrganizationConfigs,Kf as useGetPaymentFilters,Nb as useGetPaymentLinkByCode,Lb as useGetPaymentLinks,Vf as useGetPaymentMethodsAndProviders,$f as useGetPaymentMetricsFilters,Ag as useGetPaymentStatusesStyles,Qf as useGetPaymentTransactionsDetails,Bf as useGetPaymentV2,Hf as useGetPaymentsMethodsByCountry,Zf as useGetPayoutDetail,tg as useGetPayoutHistoryDetail,eg as useGetPayoutTransactionDetail,Ig as useGetPendingDuplicateAccounts,fy as useGetPermissions,Uy as useGetPermissionsCatalog,hy as useGetProfile,ng as useGetProofOfCancel,og as useGetProofOfPayment,gg as useGetProviderParams,vb as useGetReconciliationActive,Eb as useGetReconciliationAgendaInsightsByKey,yb as useGetReconciliationFilters,gb as useGetReconciliationMetrics,Pg as useGetReconciliationTransactionStatusesStyles,mb as useGetReconciliationTransactions,kb as useGetReconciliationsReportColumns,jb as useGetReconciliationsReportTemplates,Dy as useGetRefundPdf,Py as useGetReportColumns,zy as useGetReportTemplates,Iy as useGetReportsList,Oy as useGetReportsListMultiEnv,sy as useGetRequiredFields,qy as useGetRoles,My as useGetRolesPermissions,ty as useGetRoutingMonitorsTemplate,ey as useGetRoutingMonitorsTemplates,Km as useGetRule,av as useGetSamlConfig,Fm as useGetScheduledReportsList,fb as useGetSettlements,Wg as useGetSmartRoutingConditionPaymentMethod,Fg as useGetSmartRoutingConditionTypes,Hg as useGetSmartRoutingConditionTypesValues,By as useGetSmartRoutingDataReport,Kg as useGetSmartRoutingDeclineGroups,Ug as useGetSmartRoutingMethods,Gg as useGetSmartRoutingNextRoute,$g as useGetSmartRoutingPaymentRoute,Jg as useGetSmartRoutingSearchConditionValues,Qg as useGetSmartRoutingSimulateConditionTypeValues,Bg as useGetSmartRoutingWorkflow,Vg as useGetSmartRoutingWorkflowVersion,uy as useGetStylingSdkDynamic,ly as useGetStylingSettings,dy as useGetStylingSettingsV2,cy as useGetStylingTheme,Fb as useGetSubscriptionByCode,Wb as useGetSubscriptionPayments,Ly as useGetTeamsFiltersMembers,Dg as useGetTimeZoneCatalog,Ub as useGetTimezonePaymentLink,lm as useGetTokenValidation,Ff as useGetTransactionDetailsV2,Jf as useGetTransactionHistoryByPaymentCode,Wf as useGetTransactionRawResponse,zg as useGetTransactionStatusesStyles,lv as useGetTranslations,my as useGetUserFull,ky as useGetUsersToImpersonate,Cy as useGetValidateOpsgenieKey,_g as useGetWebhookParamsV2,Cg as useGetWebhooksV2Detail,Eg as useGetWebhooksV3,ob as useInsights3dsConversionRateAndEvolution,ab as useInsights3dsDeclineReasons,rb as useInsights3dsFrictionlessVsChallenge,nb as useInsights3dsVolumeAndCountTx,hb as useInsightsChargebacksByCardBrand,lb as useInsightsChargebacksByProviderAndCardBrand,cb as useInsightsChargebacksDisputed,db as useInsightsChargebacksReasonsDistribution,pb as useInsightsChargebacksStatusDistribution,sb as useInsightsChargebacksTotalRateAndEvolution,ib as useInsightsChargebacksVolumeAndCountTx,ub as useInsightsChargebacksWinRate,Fy as useInsightsConversionRateMetricsV2,$y as useInsightsCustomerPaymentsAndFraudMetrics,Hy as useInsightsFallbackMetrics,tb as useInsightsFraudScreeningConversionRate,eb as useInsightsFraudScreeningVolumeAndCountTx,Xy as useInsightsHomeMetrics,Qy as useInsightsOverviewMetrics,Jy as useInsightsOverviewMetricsV3,Ky as useInsightsTotalPaymentsAndFraudMetrics,Vy as useInsightsVolumeMetrics,Gy as useInsightsVolumeMetricsV2,uh as useInviteUsersMultiaccountMassive,Mg as useIsTesting,rm as useListSubscriptions,ph as useLoginMethods,Zg as useNetworkTokensOnboarding,Zp as useNewPostConnectionValidate,Vp as usePatchAccountV2,km as usePatchAddAllowlistItems,hg as usePatchAllowedIps,jm as usePatchAllowlist,uv as usePatchAndExecuteChart,nf as usePatchApiKeysEditNote,bm as usePatchChangeStatusAllowlist,vm as usePatchChangeStatusAllowlistItem,_f as usePatchChartName,eh as usePatchConnection,Xm as usePathCreateCustomizedApiKeys,xy as usePathNotifications,em as usePauseSubscription,ig as usePayoutsFilters,rg as usePayoutsList,Fp as usePostAccount,Xb as usePostAllowlistMultiAccount,of as usePostApiKeysRoll,zb as usePostApiLogs,rf as usePostAuditMonitors,Lm as usePostBatchRefundByFile,xm as usePostBlackListBatch,Sm as usePostBlackListItems,wm as usePostBlackListMultiAccount,Kb as usePostBlockList,dh as usePostCall,Jp as usePostChangeStatusConnection,Yp as usePostConnectionMultiAccount,ym as usePostCreateAllowlistMultiAccount,Jm as usePostCreateCustomizedApiKeys,ff as usePostCreateInsightsReport,$m as usePostCreateRuleMultiAccount,Zm as usePostCredentialsValidatePassword,ef as usePostCredentialsValidatePasswordRegularUser,th as usePostDefaultRoutes,Qm as usePostEditRule,Yf as usePostFraudTransactions,fm as usePostGetAllowlistItems,gm as usePostGetAllowlistMultiAccount,Ny as usePostMembersPaginatedV2,oh as usePostNetworkTokensOnboarding,Df as usePostOrganizationConfigs,Uf as usePostPaymentsEvaluated,Mf as usePostPaymentsLazy,Hh as usePostSlackMessageChannel,Xf as usePostTransactions,im as usePostUserSettings,cm as usePostUserSettingsPinned,um as usePostUserSettingsTables,sm as usePostUserThemeSettings,Qp as usePostValideStatusConnection,Zb as usePostVelocityRules,Pb as usePostWebhookLogs,Mp as usePostWebhookMultiAccount,Xg as useProviderConversionRatesData,bh as useProviderRawResponse,Th as usePublishVersion,Gp as usePutAccountPrincipal,Kp as usePutAccountsUserMassive,_m as usePutBlackListType,Xp as usePutCosts,Lf as usePutOrganizationConfigsByAccount,wv as useRecoveredPaymentsByDay,jv as useRecoveredTPVByDay,am as useRescheduleSubscription,sf as useResendWebhooks,tm as useResumeSubscription,Hp as useRetryDuplicateAccount,Ih as useSaveVersion,Sv as useSearchScheduleById,Cv as useSearchSchedules,Ev as useSearchTemplateById,_v as useSearchTemplates,ag as useSendPaymentNotification,Gh as useSetCustodian,Dh as useSmartRoutingCreateDeclinedGroup,Nh as useSmartRoutingEditWorkflowName,Bh as useSmartRoutingMultiAccountDeclinedGroupCreate,Uh as useSmartRoutingRemoveDeclinedGroup,qh as useSmartRoutingSimulateTransaction,Lh as useSmartRoutingToggleFavorite,Ph as useSmartRoutingUpdateDeclinedGroup,Mh as useSmartRoutingUpdateMonitorRedistribution,zh as useToggleMethod,ch as useUnInviteUsersV2,hm as useUnrollUserV2,mh as useUpdateCheckoutTemplate,hh as useUpdateIsActiveCheckout,Um as useUpdateMFAConfig,ah as useUpdateOrganizationStatus,sh as useUpdateProfile,mf as useUpdateReconciliationAlert,df as useUpdateReconciliationReportTemplate,Rh as useUpdateReportTemplate,yf as useUpdateSamlConfig,Hm as useUpdateScheduledReport,fh as useUpdateStylingTheme,om as useUpdateSubscription,Tf as useUpdateTemplateSelection,Bp as useUpdateWebhookV2,Pm as useUploadBatchRefundsFileV2,Dm as useUploadBatchRefundsV2,Mm as useUploadFileS3ClientBatchRefunds,zm as useValiateAllowlistItems,Om as useValidateBlockListItems,nh as useValidateCredentials,rh as useValidateOrgName,mm as useValidatePasswordStatus,Wy as useViewMoreMetrics};
233
+ const Pv=7,Dv=6,Lv=5,Nv=4,qv=3,Mv=2,Uv=1,Bv=0;function Fv(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Uv,!n.accessors){const o=Wv(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],r=Kv(a),i=Vv(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:r})}return n}(e,n.accessors),r={rankedValue:e,rank:Bv,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let i=Wv(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=Uv?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>r.rank&&(r.rank=i,r.passed=!0,r.accessorIndex=e,r.accessorThreshold=c,r.rankedValue=o.itemValue)}return r}function Wv(e,t,n){return e=Hv(e,n),(t=Hv(t,n)).length>e.length?Bv:e===t?Pv:(e=e.toLowerCase())===(t=t.toLowerCase())?Dv:e.startsWith(t)?Lv:e.includes(` ${t}`)?Nv:e.includes(t)?qv:1===t.length?Bv:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Mv:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,r=t.length;a<r;a++){if(t[a]===e)return n+=1,a+1}return-1}function r(e){const o=1/e,a=n/t.length;return Uv+a*o}const i=a(t[0],e,0);if(i<0)return Bv;o=i;for(let n=1,r=t.length;n<r;n++){o=a(t[n],e,o);if(!(o>-1))return Bv}const s=o-i;return r(s)}(e,t)}function Hv(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(zv,(e=>Ov[e]))),e}function Vv(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const Gv={maxRanking:1/0,minRanking:-1/0};function Kv(e){return"function"==typeof e?Gv:{...Gv,...e}}function $v(e,t){const[n,o]=i.useState();i.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,i.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var Qv,Jv=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}(),Xv=function(){function e(e){this.generateIdentifier=e,this.kv=new Jv}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}(),Yv=(Qv=function(e,t){return Qv=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])},Qv(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}Qv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zv=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Yv(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}(Xv),ek=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function tk(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var o=n,a=0;a<o.length;a++){var r=o[a];if(t(r))return r}}function nk(e,t){Object.entries(e).forEach((function(e){var n=ek(e,2),o=n[0],a=n[1];return t(a,o)}))}function ok(e,t){return-1!==e.indexOf(t)}function ak(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var rk=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return tk(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),ik=function(e){return void 0===e},sk=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},uk=function(e){return sk(e)&&0===Object.keys(e).length},ck=function(e){return Array.isArray(e)},lk=function(e){return e instanceof Map},dk=function(e){return e instanceof Set},pk=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},hk=function(e){return"number"==typeof e&&isNaN(e)},mk=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||ik(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||pk(e)},fk=function(e){return e.replace(/\./g,"\\.")},gk=function(e){return e.map(String).map(fk).join(".")},yk=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var r=n;return t.push(r),t},bk=function(){return bk=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},bk.apply(this,arguments)},vk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},kk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function jk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var wk=[jk(ik,"undefined",(function(){return null}),(function(){})),jk((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)})),jk((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),jk((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})),jk((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)})),jk(dk,"set",(function(e){return kk([],vk(e.values()))}),(function(e){return new Set(e)})),jk(lk,"map",(function(e){return kk([],vk(e.entries()))}),(function(e){return new Map(e)})),jk((function(e){return hk(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return hk(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),jk((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),jk((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function _k(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Ek=_k((function(e,t){return!!pk(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),Ck=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Sk=_k((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return kk([],vk(e))}),(function(e,t){var n=Ck[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Rk(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var xk=_k(Rk,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return bk({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),Tk=_k((function(e,t){return!!t.customTransformerRegistry.findApplicable(e)}),(function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]}),(function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)}),(function(e,t,n){var o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),Ik=[xk,Ek,Tk,Sk],Ok=function(e,t){var n=ak(Ik,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=ak(wk,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Ak={};wk.forEach((function(e){Ak[e.annotation]=e}));var zk=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Pk(e){if(ok(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ok(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ok(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Dk=function(e,t,n){if(Pk(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var r=t[a];if(ck(o))o=o[+r];else if(sk(o))o=o[r];else if(dk(o)){o=zk(o,i=+r)}else if(lk(o)){if(a===t.length-2)break;var i=+r,s=0==+t[++a]?"key":"value",u=zk(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(ck(o)?o[+c]=n(o[+c]):sk(o)&&(o[c]=n(o[c])),dk(o)){var l=zk(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(lk(o)){i=+t[t.length-2];var p=zk(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},Lk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Nk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function qk(e,t,n){if(void 0===n&&(n=[]),e)if(ck(e)){var o=Lk(e,2),a=o[0],r=o[1];r&&nk(r,(function(e,o){qk(e,t,Nk(Nk([],Lk(n)),Lk(yk(o))))})),t(a,n)}else nk(e,(function(e,o){return qk(e,t,Nk(Nk([],Lk(n)),Lk(yk(o))))}))}function Mk(e,t,n){return qk(t,(function(t,o){e=Dk(e,o,(function(e){return function(e,t,n){if(!ck(t)){var o=Ak[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Ek.untransform(e,t,n);case"class":return xk.untransform(e,t,n);case"custom":return Tk.untransform(e,t,n);case"typed-array":return Sk.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Uk(e,t){function n(t,n){var o=function(e,t){Pk(t);for(var n=0;n<t.length;n++){var o=t[n];if(dk(e))e=zk(e,+o);else if(lk(e)){var a=+o,r=0==+t[++n]?"key":"value",i=zk(e,a);switch(r){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,yk(n));t.map(yk).forEach((function(t){e=Dk(e,t,(function(){return o}))}))}if(ck(t)){var o=Lk(t,2),a=o[0],r=o[1];a.forEach((function(t){e=Dk(e,yk(t),(function(){return e}))})),r&&nk(r,n)}else nk(t,n);return e}var Bk=function(e,t,n,o,a,r,i){var s;void 0===a&&(a=[]),void 0===r&&(r=[]),void 0===i&&(i=new Map);var u=mk(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return sk(e)||ck(e)||lk(e)||dk(e)||Rk(e,t)}(e,n)){var l=Ok(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(ok(r,e))return{transformedValue:null};var p=Ok(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,m=ck(h)?[]:{},f={};nk(h,(function(s,u){var c=Bk(s,t,n,o,Nk(Nk([],Lk(a)),[u]),Nk(Nk([],Lk(r)),[e]),i);m[u]=c.transformedValue,ck(c.annotations)?f[u]=c.annotations:sk(c.annotations)&&nk(c.annotations,(function(e,t){f[fk(u)+"."+t]=e}))}));var g=uk(f)?{transformedValue:m,annotations:p?[p.type]:void 0}:{transformedValue:m,annotations:p?[p.type,f]:f};return u||i.set(e,g),g};function Fk(e){return Object.prototype.toString.call(e).slice(8,-1)}function Wk(e){return"Array"===Fk(e)}function Hk(e,t={}){if(Wk(e))return e.map((e=>Hk(e,t)));if(!function(e){if("Object"!==Fk(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((n,o)=>{if(Wk(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Hk(e[o],t),e,t.nonenumerable),n}),{})}var Vk=function(){return Vk=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Vk.apply(this,arguments)},Gk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Kk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},$k=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Zv,this.symbolRegistry=new Xv((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new rk,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Bk(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Vk(Vk({},o.meta),{values:n.annotations}));var a,r,i,s,u=(a=t,r=this.dedupe,i={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){r||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=Lk(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(gk):i[gk(n)]=o.map(gk)}})),s?uk(i)?[s]:[s,i]:uk(i)?void 0:i);return u&&(o.meta=Vk(Vk({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Hk(t);return(null==n?void 0:n.values)&&(o=Mk(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Uk(o,n.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Vk({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,Kk([],Gk(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 Qk={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Jk=i.createContext(Qk);function Xk({theme:e,...t}){return i.createElement(Jk.Provider,Iv({value:e},t))}function Yk({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function Zk(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function ej(e,t,n={}){return i.forwardRef((({style:o,...a},r)=>{const s=i.useContext(Jk),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=i.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return i.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e),{});return i.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...u},ref:r})}))}const tj=(e,t=!1)=>{const{json:n}=$k.serialize(e);return JSON.stringify(n,null,t?2:void 0)},nj=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,oj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,aj={"Status > Last Updated":(e,t)=>nj(e)===nj(t)?oj(e,t):nj(e)>nj(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":oj},rj=500,ij={top:"bottom",bottom:"top",left:"right",right:"left"};function sj(e){return["left","right"].includes(e)}function uj(e){return ij[e]}function cj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function lj(e="bottom"){const t=sj(e),n=uj(e),o=cj("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const dj=ej("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"}}),pj=ej("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),hj=ej("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"}))),mj=ej("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),fj=ej("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),gj=ej("code",{fontSize:".9em",color:"inherit",background:"inherit"}),yj=ej("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),bj=ej("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 vj({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const kj=ej("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),jj=ej("span",{color:"white"}),wj=ej("button",{cursor:"pointer",color:"white"}),_j=ej("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Ej=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText($k.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?i.createElement(Tj,null):"SuccessCopy"===t?i.createElement(Oj,null):i.createElement(Ij,null))},Cj=ej("span",((e,t)=>({color:t.danger}))),Sj=ej("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Rj=ej("span",{color:"grey",fontSize:".7em"}),xj=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Tj=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.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"}),i.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"}))),Ij=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.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"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Oj=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.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 Aj=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:r,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(kj,{key:t},a.length?i.createElement(i.Fragment,null,i.createElement(_j,{onClick:()=>c()},i.createElement(xj,{expanded:s})," ",t," ",i.createElement(Rj,null,"iterable"===String(r).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),u?i.createElement(Ej,{value:n}):null,s?1===a.length?i.createElement(Sj,null,o.map(e)):i.createElement(Sj,null,a.map(((t,n)=>i.createElement("div",{key:n},i.createElement(kj,null,i.createElement(wj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},i.createElement(xj,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(Sj,null,t.map(e)):null))))):null):i.createElement(i.Fragment,null,i.createElement(jj,null,t,":")," ",i.createElement(Cj,null,tj(n))))};function zj({value:e,defaultExpanded:t,renderer:n=Aj,pageSize:o=100,copyable:a=!1,...r}){const[s,u]=i.useState(Boolean(t)),c=i.useCallback((()=>u((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 m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(d,o);return n({handleEntry:t=>i.createElement(zj,Iv({key:t.label,value:e,renderer:n,copyable:a},r,t)),type:l,subEntries:d,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...r})}function Pj(e){return i.createElement("svg",Iv({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.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) "}),i.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"}),i.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 Dj=(e,t,n=!1)=>Ep.useSyncExternalStore(i.useCallback((t=>n?()=>{}:e.subscribe(ap.batchCalls(t))),[e,n]),t,t),Lj=i.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:r,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:m,...f}=d,g=Tp({context:r}),y=g.getQueryCache(),[b,v]=$v("reactQueryDevtoolsSortFn",Object.keys(aj)[0]),[k,j]=$v("reactQueryDevtoolsFilter",""),[w,_]=$v("reactQueryDevtoolsBaseSort",1),E=i.useMemo((()=>aj[b]),[b]),C=Dj(y,(()=>y.getAll().length),!n),[S,R]=$v("reactQueryDevtoolsActiveQueryHash",""),x=i.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter((e=>Fv(e.queryHash,k).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*w)):t}),[w,E,k,C,y]),[T,I]=i.useState(!1);return i.createElement(Xk,{theme:Qk},i.createElement(dj,Iv({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:rj,position:"relative",...h.style}}),i.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Qk.backgroundAlt+" "+Qk.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: "+Qk.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Qk.gray+";\n border-radius: .5em;\n border: 3px solid "+Qk.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:lj(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Qk.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Qk.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.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"}},i.createElement(Pj,{"aria-hidden":!0}),i.createElement(vj,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(qj,{queryCache:y}),l&&u?i.createElement(bj,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(yj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>j(e.target.value),onKeyDown:e=>{"Escape"===e.key&&j("")},style:{flex:"1",width:"100%"}}),i.createElement(bj,{"aria-label":"Sort queries",value:b,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(aj).map((e=>i.createElement("option",{key:e,value:e},"Sort by ",e)))),i.createElement(hj,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(hj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(hj,{type:"button",onClick:()=>{T?(Xd.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Xd.setOnline(!1),I(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Qk.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.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"}),i.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"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(vj,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},x.map((e=>i.createElement(Mj,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y}))))),S&&n?i.createElement(Nj,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:p}):null,c?i.createElement(hj,Iv({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},f,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...f.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),Nj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,r;const s=Dj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),u=Dj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=Dj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,l=null!=(r=Dj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?r:0,p=d((()=>{if(s&&null!=u&&u.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=u.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==u?void 0:u.error,o]);if(!s||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return i.createElement(pj,null,i.createElement("div",{style:{padding:".5em",background:Qk.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(gj,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},tj(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Yk({queryState:u,isStale:c,observerCount:l,theme:Qk}),flexShrink:0}},Zk(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(gj,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(gj,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Qk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(hj,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(Uj)},disabled:"fetching"===u.fetchStatus,style:{background:Qk.active}},"Refetch")," ",i.createElement(hj,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Qk.warning,color:Qk.inputTextColor}},"Invalidate")," ",i.createElement(hj,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Qk.gray}},"Reset")," ",i.createElement(hj,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Qk.danger}},"Remove")," ",i.createElement(hj,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Qk.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?i.createElement(hj,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Qk.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(bj,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));h(t)}},i.createElement("option",{key:"",value:""}),o.map((e=>i.createElement("option",{key:e.name,value:e.name},e.name)))))),i.createElement("div",{style:{background:Qk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(zj,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Qk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(zj,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},qj=({queryCache:e})=>{const t=Dj(e,(()=>e.getAll().filter((e=>"fresh"===Zk(e))).length)),n=Dj(e,(()=>e.getAll().filter((e=>"fetching"===Zk(e))).length)),o=Dj(e,(()=>e.getAll().filter((e=>"paused"===Zk(e))).length)),a=Dj(e,(()=>e.getAll().filter((e=>"stale"===Zk(e))).length)),r=Dj(e,(()=>e.getAll().filter((e=>"inactive"===Zk(e))).length));return i.createElement(mj,null,i.createElement(fj,{style:{background:Qk.success,opacity:t?1:.3}},"fresh ",i.createElement(gj,null,"(",t,")"))," ",i.createElement(fj,{style:{background:Qk.active,opacity:n?1:.3}},"fetching ",i.createElement(gj,null,"(",n,")"))," ",i.createElement(fj,{style:{background:Qk.paused,opacity:o?1:.3}},"paused ",i.createElement(gj,null,"(",o,")"))," ",i.createElement(fj,{style:{background:Qk.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",i.createElement(gj,null,"(",a,")"))," ",i.createElement(fj,{style:{background:Qk.gray,opacity:r?1:.3}},"inactive ",i.createElement(gj,null,"(",r,")")))},Mj=i.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,r,s,u;const c=null!=(a=Dj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",l=Dj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),d=null!=(r=Dj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&r,p=null!=(s=Dj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=Dj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?u:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Qk.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Yk({queryState:l,isStale:d,observerCount:h,theme:Qk}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Qk.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(gj,{style:{padding:".5em"}},""+c)):null}));function Uj(){}Mj.displayName="QueryRow";const Bj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:r="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,m]=$v("reactQueryDevtoolsOpen",e),[f,g]=$v("reactQueryDevtoolsHeight",rj),[y,b]=$v("reactQueryDevtoolsWidth",rj),[v="bottom",k]=$v("reactQueryDevtoolsPanelPosition",c),[j,w]=i.useState(!1),[_,E]=i.useState(!1),C=function(){const e=i.useRef(!1),t=i.useCallback((()=>e.current),[]);return i.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();i.useEffect((()=>{w(null!=h&&h)}),[h,j,w]),i.useEffect((()=>{const e=p.current;if(e){const t=()=>{j&&(e.style.visibility="visible")},n=()=>{j||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[j]),i.useEffect((()=>{var e;if(j&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=cj("padding",v),n=sj(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:f)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[j,v,f,y]);const{style:S={},...R}=t,{style:x={},onClick:T,...I}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:r,panelStyle:i}){const s=uj(e),u=cj("border",s),c=sj(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...r?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:rj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:rj}}}({position:v,devtoolsTheme:Qk,isOpen:j,height:f,width:y,isResizing:_,panelStyle:S});return C()?i.createElement(r,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Xk,{theme:Qk},i.createElement(Lj,Iv({ref:p,context:s,styleNonce:u,position:v,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:j,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=sj(v);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),r=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=a+("right"===v?r-e.clientX:e.clientX-r),b(s)):(s=o+("bottom"===v?i-e.clientY:e.clientY-i),g(s)),m(!(s<70))},c=()=>{_&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),j?null:i.createElement("button",Iv({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...x}}),i.createElement(Pj,{"aria-hidden":!0}),i.createElement(vj,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Fj,Wj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Hj(e){var o=this,r=e.children,i=process.env.ENVIRONMENT,s=d((function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"}),[i]),c=u(!1),h=c[0],m=c[1],f=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),u=i?JSON.parse(i).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":r||s,"x-organization-code":u,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s]);l((function(){return addEventListener("ACCOUNT_CHANGED",f),function(){window.removeEventListener("ACCOUNT_CHANGED",f)}}),[f]);var g=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u,c,l;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(r=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),u=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",c=r?JSON.parse(r).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":c,"x-account-code":u,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),kh.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),n.label=2;case 2:return[2]}}))}))}),[s,m]);return l((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?g(n):"token"===t.key&&g(e)}})),g(e)}),[m,g]),h?React.createElement(Ip,{client:kh},r,React.createElement(Bj,{initialIsOpen:!1})):React.createElement("div",{style:Wj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Fj||(Fj={}));var Vj=function(){var e=c(null),t=c(null),n=c(null),o=u(!1),a=o[0],r=o[1],i=u(null),s=i[0],d=i[1],h=u(null),m=h[0],f=h[1],g=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]),y=p((function(){if("undefined"==typeof window||"dashboard.dev.y.uno"!==window.location.hostname){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),f(null);try{var o=new WebSocket("".concat(Cd["WS_URL_".concat(Cd.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){r(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval((function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(g(),r(!1))}),3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){f("Failed to parse server response")}},o.onerror=function(e){f("Connection error occurred"),r(!1)},o.onclose=function(e){r(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout((function(){y()}),5e3))}}catch(e){f("Failed to establish connection")}}}),[]),b=p((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}))}),[]),v=p((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}))}),[]),k=p((function(){d(null)}),[]),j=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(r(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return l((function(){return y(),function(){g(),j()}}),[]),{subscribe:b,unsubscribe:v,disconnect:j,connect:y,clearChartData:k,isConnected:a,chartData:s,connectionError:m}},Gj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Gj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!ja())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,ba.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}}))}))}();export{Lc as AI,Ed as Api,Fj as ApiErrorCodes,Hj as ApiProvider,Sd as ApiSingleton,Tc as Cms,xc as Country,zc as DataReport,qp as DuplicateSetting,Rc as Organization,Nc as OrganizationConfig,Sc as PaymentFiltersSection,qf as PendingDuplicateAccountStatus,Dc as ReconciliationAgendaInsight,Pc as ReconciliationReportType,Ic as ReportType,Cc as SendPaymentNotification,Ac as SmartRouting,Oc as TemplateType,iy as getQueryKeyGetNameAndIcon,uy as getQueryKeyRequiredFields,vh as queryCache,kh as queryClient,ey as use3DSExemptions,kf as useAICreateWorkflow,Ob as useAllFeatureFlags,Yb as useAllowListDetail,Xb as useBlackListDetail,Ab as useCachedFeatureFlag,Ch as useCancelReport,nm as useCancelSubscription,ih as useChangePasswordV2,Tm as useChangePaymentsWebhook,Em as useChangeStatusBlackList,Cm as useChangeStatusItemBlackList,my as useChangeStylingSettings,Of as useChangeTemplateStatus,yh as useChargebacksUpload,Vj as useChartAssistantSocket,sv as useChartExecute,Tf as useCloneTemplate,Cy as useCommunicationDetails,_y as useCommunications,kv as useCommunicationsByDay,jv as useCommunicationsBySubstatus,Ey as useCommunicationsFilters,wv as useCommunicationsSubstatusByDay,pm as useConfirmedOtpMfa,Eh as useCountRowsForReport,Cf as useCreateAndExecuteChart,Rf as useCreateAndExecuteChartWithTimezone,wf as useCreateChart,Sf as useCreateChartWithTimezone,Wh as useCreateMonitorTemplate,Fh as useCreateMonitorThreshold,gh as useCreateOperationTransaction,Jh as useCreatePaymentLinks,hf as useCreateReconciliationAlert,df as useCreateReconciliationReportTemplate,jh as useCreateReconciliationsReportV2,wh as useCreateReconciliationsReportV3,Sh as useCreateReportTemplate,_h as useCreateReportV2,Kh as useCreateRoles,yf as useCreateSamlConfig,zf as useCreateSchedule,Wm as useCreateScheduledReport,Zh as useCreateSubscription,xf as useCreateTemplate,lh as useCreateUserAuth0,xh as useCreateWorkflow,$p as useDeleteAccountsUserMassive,Am as useDeleteAllowlistItem,Rm as useDeleteBlackListType,Im as useDeleteBlockListItem,_f as useDeleteChart,tf as useDeleteCustomizedApiKeys,Xh as useDeletePaymentLink,mf as useDeleteReconciliationAlert,Qh as useDeleteRoles,vf as useDeleteSamlConfig,Df as useDeleteSchedule,Vm as useDeleteScheduledReport,Af as useDeleteTemplate,Vh as useDeleteUserTeamV2,Oh as useDeleteVersion,Up as useDeleteWebhookV2,Pf as useDisableSchedule,Wp as useDuplicateAccount,Ah as useDuplicateVersion,Yh as useEditPaymentLinks,$h as useEditRoles,by as useEmailVerification,Bm as useExcludeUsers,cf as useExportApiLogs,lf as useExportWebhooksLogs,Ib as useFeatureFlags,Gb as useFirebaseUserSubscribe,jf as useGenerateFeedback,xg as useGetAccounts,Ig as useGetAccountsByUser,Og as useGetAccountsForImpersonation,Tg as useGetAccountsV2,nv as useGetAllConfigRules,yg as useGetAllOrganizations,xb as useGetAllReconciliationsAdvancements,Cb as useGetAllReconciliationsAgenda,Eb as useGetAllReconciliationsAlerts,Tb as useGetAllReconciliationsFees,Rb as useGetAllReconciliationsSales,kb as useGetAllTableColumns,dg as useGetAllowedIps,Nb as useGetApiLogsDetailByPaymentCode,zb as useGetAuditEvents,qg as useGetAuditLogsFilters,Pb as useGetAuditMonitorEventDetail,Nm as useGetBatchRefundProcessedFileDownload,qm as useGetBatchRefundUserFileDownload,ev as useGetBatchRefunds,$b as useGetBlackList,Jb as useGetBlockListSummary,Kf as useGetCardBrands,uv as useGetChartsByUser,cv as useGetChartsByUserWithResults,ry as useGetCheckoutTemplate,ay as useGetCheckouts,Gm as useGetConditionalConfigRules,Kb as useGetConfigAllowlist,_g as useGetConnections,jg as useGetConnectionsByPaymentMethod,Ub as useGetCountriesConfigPaymentLink,Bb as useGetCountriesConfigPaymentLinkV2,cg as useGetCredentials,af as useGetCredentialsMFA,hg as useGetCustomizedApiKeys,pg as useGetCustomizedApiKeysAccounts,lg as useGetCustomizedApiKeysMembers,mg as useGetCustomizedApiKeysProducts,Ym as useGetCustomizedApiKeysToken,Mg as useGetDashboardStaticContents,Eg as useGetDialogs,Py as useGetDownloadReport,dm as useGetEmailOtp,wg as useGetHashPylon,jy as useGetImpersonationEnabled,ky as useGetImpersonationUsers,eb as useGetInsightsReport,tb as useGetInsightsReportAgain,Wb as useGetInstallmentPlans,kg as useGetIntegrationByAccountV2,vg as useGetIntegrationParams,dv as useGetLanguages,Ug as useGetLocales,vy as useGetLoginMethods,av as useGetMFAConfig,ov as useGetMFAExcludedUsers,rv as useGetMFAStatus,zg as useGetMenu,xy as useGetMergedNotifications,sy as useGetNameAndIcon,hv as useGetNetworkTokensOnboardingByOrganization,Sy as useGetNotificationsCustomer,Ty as useGetNotificationsNumberMutation,gg as useGetOrganization,Tv as useGetOrganizationConfigs,$f as useGetPaymentFilters,Mb as useGetPaymentLinkByCode,qb as useGetPaymentLinks,Gf as useGetPaymentMethodsAndProviders,Qf as useGetPaymentMetricsFilters,Pg as useGetPaymentStatusesStyles,Jf as useGetPaymentTransactionsDetails,Ff as useGetPaymentV2,Vf as useGetPaymentsMethodsByCountry,eg as useGetPayoutDetail,ng as useGetPayoutHistoryDetail,ug as useGetPayoutTimeline,tg as useGetPayoutTransactionDetail,Ag as useGetPendingDuplicateAccounts,yy as useGetPermissions,Fy as useGetPermissionsCatalog,fy as useGetProfile,og as useGetProofOfCancel,ag as useGetProofOfPayment,bg as useGetProviderParams,jb as useGetReconciliationActive,Sb as useGetReconciliationAgendaInsightsByKey,vb as useGetReconciliationFilters,bb as useGetReconciliationMetrics,Lg as useGetReconciliationTransactionStatusesStyles,gb as useGetReconciliationTransactions,wb as useGetReconciliationsReportColumns,_b as useGetReconciliationsReportTemplates,Ny as useGetRefundPdf,Ly as useGetReportColumns,Dy as useGetReportTemplates,Ay as useGetReportsList,zy as useGetReportsListMultiEnv,cy as useGetRequiredFields,Uy as useGetRoles,By as useGetRolesPermissions,oy as useGetRoutingMonitorsTemplate,ny as useGetRoutingMonitorsTemplates,Km as useGetRule,iv as useGetSamlConfig,Fm as useGetScheduledReportsList,yb as useGetSettlements,Vg as useGetSmartRoutingConditionPaymentMethod,Hg as useGetSmartRoutingConditionTypes,Gg as useGetSmartRoutingConditionTypesValues,Wy as useGetSmartRoutingDataReport,Qg as useGetSmartRoutingDeclineGroups,Fg as useGetSmartRoutingMethods,$g as useGetSmartRoutingNextRoute,Jg as useGetSmartRoutingPaymentRoute,Yg as useGetSmartRoutingSearchConditionValues,Xg as useGetSmartRoutingSimulateConditionTypeValues,Wg as useGetSmartRoutingWorkflow,Kg as useGetSmartRoutingWorkflowVersion,ly as useGetStylingSdkDynamic,py as useGetStylingSettings,hy as useGetStylingSettingsV2,dy as useGetStylingTheme,Hb as useGetSubscriptionByCode,Vb as useGetSubscriptionPayments,qy as useGetTeamsFiltersMembers,Ng as useGetTimeZoneCatalog,Fb as useGetTimezonePaymentLink,lm as useGetTokenValidation,Wf as useGetTransactionDetailsV2,Xf as useGetTransactionHistoryByPaymentCode,Hf as useGetTransactionRawResponse,Dg as useGetTransactionStatusesStyles,pv as useGetTranslations,gy as useGetUserFull,wy as useGetUsersToImpersonate,Ry as useGetValidateOpsgenieKey,Cg as useGetWebhookParamsV2,Rg as useGetWebhooksV2Detail,Sg as useGetWebhooksV3,rb as useInsights3dsConversionRateAndEvolution,ib as useInsights3dsDeclineReasons,sb as useInsights3dsFrictionlessVsChallenge,ab as useInsights3dsVolumeAndCountTx,fb as useInsightsChargebacksByCardBrand,pb as useInsightsChargebacksByProviderAndCardBrand,db as useInsightsChargebacksDisputed,hb as useInsightsChargebacksReasonsDistribution,mb as useInsightsChargebacksStatusDistribution,cb as useInsightsChargebacksTotalRateAndEvolution,ub as useInsightsChargebacksVolumeAndCountTx,lb as useInsightsChargebacksWinRate,Hy as useInsightsConversionRateMetricsV2,Jy as useInsightsCustomerPaymentsAndFraudMetrics,Gy as useInsightsFallbackMetrics,ob as useInsightsFraudScreeningConversionRate,nb as useInsightsFraudScreeningVolumeAndCountTx,Zy as useInsightsHomeMetrics,Xy as useInsightsOverviewMetrics,Yy as useInsightsOverviewMetricsV3,Qy as useInsightsTotalPaymentsAndFraudMetrics,Ky as useInsightsVolumeMetrics,$y as useInsightsVolumeMetricsV2,uh as useInviteUsersMultiaccountMassive,Bg as useIsTesting,rm as useListSubscriptions,ph as useLoginMethods,ty as useNetworkTokensOnboarding,Zp as useNewPostConnectionValidate,Vp as usePatchAccountV2,km as usePatchAddAllowlistItems,fg as usePatchAllowedIps,jm as usePatchAllowlist,lv as usePatchAndExecuteChart,nf as usePatchApiKeysEditNote,bm as usePatchChangeStatusAllowlist,vm as usePatchChangeStatusAllowlistItem,Ef as usePatchChartName,eh as usePatchConnection,Xm as usePathCreateCustomizedApiKeys,Iy as usePathNotifications,em as usePauseSubscription,sg as usePayoutsFilters,ig as usePayoutsList,Fp as usePostAccount,Zb as usePostAllowlistMultiAccount,of as usePostApiKeysRoll,Db as usePostApiLogs,sf as usePostAuditMonitors,Lm as usePostBatchRefundByFile,xm as usePostBlackListBatch,Sm as usePostBlackListItems,wm as usePostBlackListMultiAccount,Qb as usePostBlockList,dh as usePostCall,Jp as usePostChangeStatusConnection,Yp as usePostConnectionMultiAccount,ym as usePostCreateAllowlistMultiAccount,Jm as usePostCreateCustomizedApiKeys,gf as usePostCreateInsightsReport,$m as usePostCreateRuleMultiAccount,Zm as usePostCredentialsValidatePassword,ef as usePostCredentialsValidatePasswordRegularUser,rf as usePostCredentialsWithOtpMfa,th as usePostDefaultRoutes,Qm as usePostEditRule,Zf as usePostFraudTransactions,fm as usePostGetAllowlistItems,gm as usePostGetAllowlistMultiAccount,My as usePostMembersPaginatedV2,oh as usePostNetworkTokensOnboarding,Lf as usePostOrganizationConfigs,Bf as usePostPaymentsEvaluated,Uf as usePostPaymentsLazy,Hh as usePostSlackMessageChannel,Yf as usePostTransactions,im as usePostUserSettings,cm as usePostUserSettingsPinned,um as usePostUserSettingsTables,sm as usePostUserThemeSettings,Qp as usePostValideStatusConnection,tv as usePostVelocityRules,Lb as usePostWebhookLogs,Mp as usePostWebhookMultiAccount,Zg as useProviderConversionRatesData,bh as useProviderRawResponse,Th as usePublishVersion,Gp as usePutAccountPrincipal,Kp as usePutAccountsUserMassive,_m as usePutBlackListType,Xp as usePutCosts,Nf as usePutOrganizationConfigsByAccount,Ev as useRecoveredPaymentsByDay,_v as useRecoveredTPVByDay,am as useRescheduleSubscription,uf as useResendWebhooks,tm as useResumeSubscription,Hp as useRetryDuplicateAccount,Ih as useSaveVersion,xv as useSearchScheduleById,Rv as useSearchSchedules,Sv as useSearchTemplateById,Cv as useSearchTemplates,rg as useSendPaymentNotification,Gh as useSetCustodian,Dh as useSmartRoutingCreateDeclinedGroup,Nh as useSmartRoutingEditWorkflowName,Bh as useSmartRoutingMultiAccountDeclinedGroupCreate,Uh as useSmartRoutingRemoveDeclinedGroup,qh as useSmartRoutingSimulateTransaction,Lh as useSmartRoutingToggleFavorite,Ph as useSmartRoutingUpdateDeclinedGroup,Mh as useSmartRoutingUpdateMonitorRedistribution,zh as useToggleMethod,ch as useUnInviteUsersV2,hm as useUnrollUserV2,mh as useUpdateCheckoutTemplate,hh as useUpdateIsActiveCheckout,Um as useUpdateMFAConfig,ah as useUpdateOrganizationStatus,sh as useUpdateProfile,ff as useUpdateReconciliationAlert,pf as useUpdateReconciliationReportTemplate,Rh as useUpdateReportTemplate,bf as useUpdateSamlConfig,Hm as useUpdateScheduledReport,fh as useUpdateStylingTheme,om as useUpdateSubscription,If as useUpdateTemplateSelection,Bp as useUpdateWebhookV2,Pm as useUploadBatchRefundsFileV2,Dm as useUploadBatchRefundsV2,Mm as useUploadFileS3ClientBatchRefunds,zm as useValiateAllowlistItems,Om as useValidateBlockListItems,nh as useValidateCredentials,rh as useValidateOrgName,mm as useValidatePasswordStatus,Vy as useViewMoreMetrics};
234
234
  //# sourceMappingURL=index.js.map