@payfurl/client 3.0.0 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/sdk/payfurl.es.js +6369 -0
- package/dist/sdk/payfurl.umd.js +1 -0
- package/dist/sdk/sdk/components/render.d.ts +7 -0
- package/dist/sdk/sdk/config.d.ts +7 -0
- package/dist/sdk/sdk/config.local.d.ts +7 -0
- package/dist/sdk/sdk/config.production.d.ts +7 -0
- package/dist/sdk/sdk/config.sandbox.d.ts +7 -0
- package/dist/sdk/sdk/formInvoker.d.ts +10 -0
- package/dist/sdk/sdk/httpInvoker.d.ts +7 -0
- package/dist/sdk/sdk/interfaces/Invoker.interface.d.ts +4 -0
- package/dist/sdk/sdk/interfaces/Payfurl.interface.d.ts +15 -0
- package/dist/sdk/sdk/interfaces/processors/CardProcessor.interface.d.ts +8 -0
- package/dist/sdk/sdk/interfaces/processors/PaypalProcessor.interface.d.ts +4 -0
- package/dist/sdk/sdk/interfaces/processors/ThreeDsProcessor.interface.d.ts +8 -0
- package/dist/sdk/sdk/main.d.ts +42 -0
- package/dist/sdk/sdk/processors/cardProcessor.d.ts +43 -0
- package/dist/sdk/sdk/processors/paypalProcessor.d.ts +26 -0
- package/dist/sdk/sdk/processors/threeDsProcessor.d.ts +39 -0
- package/dist/sdk/sdk/types/Callback.type.d.ts +6 -0
- package/dist/sdk/sdk/types/CardIFrameOptions.type.d.ts +10 -0
- package/dist/sdk/sdk/types/CardOptions.type.d.ts +5 -0
- package/dist/sdk/sdk/types/Config.type.d.ts +6 -0
- package/dist/sdk/sdk/types/DropInOptions.type.d.ts +14 -0
- package/dist/sdk/sdk/types/Logger.type.d.ts +1 -0
- package/dist/sdk/sdk/types/PaymentOptionsCall.type.d.ts +2 -0
- package/dist/sdk/sdk/types/PaypalApprove.type.d.ts +21 -0
- package/dist/sdk/sdk/types/PaypalOptions.type.d.ts +9 -0
- package/dist/sdk/sdk/types/PaypalOrder.type.d.ts +55 -0
- package/dist/sdk/sdk/types/ThreeDSData.type.d.ts +12 -0
- package/dist/sdk/sdk/utils/alerts.d.ts +2 -0
- package/dist/sdk/sdk/utils/spinner.d.ts +2 -0
- package/dist/sdk/style.css +1 -1
- package/dist/sdk/utils/currency.d.ts +6 -0
- package/dist/sdk/utils/screen.d.ts +1 -0
- package/dist/sdk/utils/validate.d.ts +10 -0
- package/package.json +3 -1
- package/dist/sdk/payfurl.js +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare type PaypalOrderType = {
|
|
2
|
+
resolved: boolean;
|
|
3
|
+
rejected: boolean;
|
|
4
|
+
errorHandled: boolean;
|
|
5
|
+
value: {
|
|
6
|
+
id: string;
|
|
7
|
+
intent: string;
|
|
8
|
+
status: string;
|
|
9
|
+
purchase_units: [
|
|
10
|
+
{
|
|
11
|
+
reference_id: string;
|
|
12
|
+
amount: {
|
|
13
|
+
currency_code: string;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
payee: {
|
|
17
|
+
email_address: string;
|
|
18
|
+
merchant_id: string;
|
|
19
|
+
};
|
|
20
|
+
soft_descriptor: string;
|
|
21
|
+
shipping: {
|
|
22
|
+
name: {
|
|
23
|
+
full_name: string;
|
|
24
|
+
};
|
|
25
|
+
address: {
|
|
26
|
+
address_line_1: string;
|
|
27
|
+
admin_area_2: string;
|
|
28
|
+
admin_area_1: string;
|
|
29
|
+
postal_code: string;
|
|
30
|
+
country_code: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
payer: {
|
|
36
|
+
name: {
|
|
37
|
+
given_name: string;
|
|
38
|
+
surname: string;
|
|
39
|
+
};
|
|
40
|
+
email_address: string;
|
|
41
|
+
payer_id: string;
|
|
42
|
+
address: {
|
|
43
|
+
country_code: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
create_time: string;
|
|
47
|
+
links: {
|
|
48
|
+
href: string;
|
|
49
|
+
rel: string;
|
|
50
|
+
method: string;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
handlers: any[];
|
|
54
|
+
dispatching: boolean;
|
|
55
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type ThreeDSDataType = {
|
|
2
|
+
email: string;
|
|
3
|
+
amount: number;
|
|
4
|
+
currency: string;
|
|
5
|
+
providerId: string;
|
|
6
|
+
cardNumber: string;
|
|
7
|
+
cardExpiry: string;
|
|
8
|
+
cardHolderName: string;
|
|
9
|
+
expiryDate: string;
|
|
10
|
+
threeDSServerTransID: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function getEmptyThreeDSData(): ThreeDSDataType;
|
package/dist/sdk/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.message[data-v-78588f23]{color:var(--color-error);font-size:20px;font-weight:700;margin-bottom:20px}svg#paypal[data-v-6c3f4e5e]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-09c4ea7e]{--size: 30px;width:var(--size);height:var(--size)}.combined-container[data-v-0a65580e]{width:fit-content;display:flex;flex-direction:column}.combined-tabs[data-v-0a65580e]{width:100%;display:flex;justify-items:flex-start;align-items:center}.combined-tab[data-v-0a65580e]{height:42px;padding:0 10px;display:flex;align-items:center;justify-items:center;cursor:pointer;background-color:#fff;color:var(--color-text);border:var(--border)}.combined-tab.active[data-v-0a65580e]{background-color:#3273dc;color:#fff;border:1px solid #3273dc}.combined-tab>svg[data-v-0a65580e]{margin-right:10px}.combined-tab[data-v-0a65580e]:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.combined-tab[data-v-0a65580e]:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.combined-components[data-v-0a65580e]{margin-top:20px}.message[data-v-0c5d4794]{color:var(--color-success);font-size:20px;font-weight:700;margin-bottom:20px}svg[data-v-ad18c358]{fill:#000;stroke:transparent;width:20px;height:20px}iframe[data-v-7bf4e048]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-7bf4e048]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-7bf4e048]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-7bf4e048]{position:relative;width:300px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-7bf4e048]{cursor:pointer;position:absolute;right:5px;top:5px}svg#spinner[data-v-4280055c]{--size: 50px;position:absolute;left:calc(50% - var(--size)/2);top:calc(50% - var(--size)/2);width:var(--size);height:var(--size);z-index:9999}body,body.common{--background-color: white;--color-text: #4a4a4a;--color-input-text: #4a4a4a;--border: 1px solid #dbdbdb;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}body.dark{--background-color: black;--color-text: white;--color-input-text: #4a4a4a;--border: 1px solid #b4e1ee;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}.loading[data-v-ed95d8b0]{position:relative;height:40px;width:200px;color:var(--color-text);font-size:20px;display:flex;align-items:center;justify-items:center;margin:0 auto}iframe[data-v-
|
|
1
|
+
.message[data-v-78588f23]{color:var(--color-error);font-size:20px;font-weight:700;margin-bottom:20px}svg#paypal[data-v-6c3f4e5e]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-09c4ea7e]{--size: 30px;width:var(--size);height:var(--size)}.combined-container[data-v-0a65580e]{width:fit-content;display:flex;flex-direction:column}.combined-tabs[data-v-0a65580e]{width:100%;display:flex;justify-items:flex-start;align-items:center}.combined-tab[data-v-0a65580e]{height:42px;padding:0 10px;display:flex;align-items:center;justify-items:center;cursor:pointer;background-color:#fff;color:var(--color-text);border:var(--border)}.combined-tab.active[data-v-0a65580e]{background-color:#3273dc;color:#fff;border:1px solid #3273dc}.combined-tab>svg[data-v-0a65580e]{margin-right:10px}.combined-tab[data-v-0a65580e]:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.combined-tab[data-v-0a65580e]:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.combined-components[data-v-0a65580e]{margin-top:20px}.message[data-v-0c5d4794]{color:var(--color-success);font-size:20px;font-weight:700;margin-bottom:20px}svg[data-v-ad18c358]{fill:#000;stroke:transparent;width:20px;height:20px}iframe[data-v-7bf4e048]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-7bf4e048]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-7bf4e048]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-7bf4e048]{position:relative;width:300px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-7bf4e048]{cursor:pointer;position:absolute;right:5px;top:5px}svg#spinner[data-v-4280055c]{--size: 50px;position:absolute;left:calc(50% - var(--size)/2);top:calc(50% - var(--size)/2);width:var(--size);height:var(--size);z-index:9999}body,body.common{--background-color: white;--color-text: #4a4a4a;--color-input-text: #4a4a4a;--border: 1px solid #dbdbdb;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}body.dark{--background-color: black;--color-text: white;--color-input-text: #4a4a4a;--border: 1px solid #b4e1ee;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}.loading[data-v-ed95d8b0]{position:relative;height:40px;width:200px;color:var(--color-text);font-size:20px;display:flex;align-items:center;justify-items:center;margin:0 auto}iframe[data-v-3df6a9bb]{border:none;overflow:hidden;width:100%;height:240px}button[data-v-3df6a9bb]{appearance:none;background-color:#1a82b7;border:1px solid rgba(27,31,35,.15);border-radius:6px;box-shadow:#1b1f231a 0 1px;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px;position:relative;text-align:center;text-decoration:none;user-select:none;-webkit-user-select:none;touch-action:manipulation;vertical-align:middle;white-space:nowrap}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const currencyMap: {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
};
|
|
4
|
+
export declare function checkCurrency(currency: string): boolean;
|
|
5
|
+
export declare function getCurrencyCode(currency: string): string;
|
|
6
|
+
export declare function getCurrencyExponent(currency: string): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getScreenColorDepth(): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FailureCallbackFunc } from "../sdk/types/Callback.type";
|
|
2
|
+
export declare function checkCard(card: string): boolean;
|
|
3
|
+
export declare function luhnCheck(card: string): boolean;
|
|
4
|
+
export declare function checkExpiry(expiry: string): boolean;
|
|
5
|
+
export declare function checkEmail(email: string): boolean;
|
|
6
|
+
export declare function checkCcv(ccv: string): boolean;
|
|
7
|
+
export declare function checkEmpty(value: any): boolean;
|
|
8
|
+
export declare function checkAmount(amount: any): boolean;
|
|
9
|
+
export declare type ValidatorFunc = (value: any) => boolean;
|
|
10
|
+
export declare function validateInput(value: any, validator: ValidatorFunc, errorText: string, failureCallback: FailureCallbackFunc | null): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfurl/client",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/sdk"
|
|
7
7
|
],
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"vue": "^3.2.25"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"@babel/types": "^7.18.4",
|
|
30
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
29
31
|
"@types/node": "^17.0.30",
|
|
30
32
|
"@vitejs/plugin-vue": "^2.3.1",
|
|
31
33
|
"@vue/eslint-config-prettier": "^7.0.0",
|
package/dist/sdk/payfurl.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var Pc=Object.defineProperty,Ec=Object.defineProperties;var Tc=Object.getOwnPropertyDescriptors;var Qr=Object.getOwnPropertySymbols;var Oc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable;var ps=(oe,re,ge)=>re in oe?Pc(oe,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):oe[re]=ge,lt=(oe,re)=>{for(var ge in re||(re={}))Oc.call(re,ge)&&ps(oe,ge,re[ge]);if(Qr)for(var ge of Qr(re))$c.call(re,ge)&&ps(oe,ge,re[ge]);return oe},ei=(oe,re)=>Ec(oe,Tc(re));var A=(oe,re,ge)=>(ps(oe,typeof re!="symbol"?re+"":re,ge),ge);(function(oe,re){typeof exports=="object"&&typeof module!="undefined"?module.exports=re():typeof define=="function"&&define.amd?define(re):(oe=typeof globalThis!="undefined"?globalThis:oe||self,oe.payfurl=re())})(this,function(){"use strict";function oe(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ge=oe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ms(e){return!!e||e===""}function Ye(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ce(s)?si(s):Ye(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(ce(e))return e;if(ae(e))return e}}const ti=/;(?![^(]*\))/g,ni=/:(.+)/;function si(e){const t={};return e.split(ti).forEach(n=>{if(n){const s=n.split(ni);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Jt(e){let t="";if(ce(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=Jt(e[n]);s&&(t+=s+" ")}else if(ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Xt=e=>ce(e)?e:e==null?"":U(e)||ae(e)&&(e.toString===ys||!B(e.toString))?JSON.stringify(e,gs,2):String(e),gs=(e,t)=>t&&t.__v_isRef?gs(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:_s(t)?{[`Set(${t.size})`]:[...t.values()]}:ae(t)&&!U(t)&&!Ds(t)?String(t):t,V={},vt=[],Te=()=>{},ri=()=>!1,ii=/^on[^a-z]/,qt=e=>ii.test(e),In=e=>e.startsWith("onUpdate:"),_e=Object.assign,Pn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oi=Object.prototype.hasOwnProperty,K=(e,t)=>oi.call(e,t),U=Array.isArray,St=e=>Vt(e)==="[object Map]",_s=e=>Vt(e)==="[object Set]",B=e=>typeof e=="function",ce=e=>typeof e=="string",En=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",bs=e=>ae(e)&&B(e.then)&&B(e.catch),ys=Object.prototype.toString,Vt=e=>ys.call(e),li=e=>Vt(e).slice(8,-1),Ds=e=>Vt(e)==="[object Object]",Tn=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=oe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ci=/-(\w)/g,Be=Gt(e=>e.replace(ci,(t,n)=>n?n.toUpperCase():"")),ai=/\B([A-Z])/g,wt=Gt(e=>e.replace(ai,"-$1").toLowerCase()),Qt=Gt(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=Gt(e=>e?`on${Qt(e)}`:""),$t=(e,t)=>!Object.is(e,t),$n=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},en=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ui=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vs;const fi=()=>vs||(vs=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let He;class hi{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&He&&(this.parent=He,this.index=(He.scopes||(He.scopes=[])).push(this)-1)}run(t){if(this.active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function di(e,t=He){t&&t.active&&t.effects.push(e)}const Mn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ss=e=>(e.w&Ge)>0,ws=e=>(e.n&Ge)>0,pi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ge},mi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Ss(r)&&!ws(r)?r.delete(e):t[n++]=r,r.w&=~Ge,r.n&=~Ge}t.length=n}},An=new WeakMap;let Mt=0,Ge=1;const Nn=30;let Oe;const ct=Symbol(""),kn=Symbol("");class Fn{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,di(this,s)}run(){if(!this.active)return this.fn();let t=Oe,n=Qe;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Oe,Oe=this,Qe=!0,Ge=1<<++Mt,Mt<=Nn?pi(this):Cs(this),this.fn()}finally{Mt<=Nn&&mi(this),Ge=1<<--Mt,Oe=this.parent,Qe=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Oe===this?this.deferStop=!0:this.active&&(Cs(this),this.onStop&&this.onStop(),this.active=!1)}}function Cs(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Qe=!0;const xs=[];function Ct(){xs.push(Qe),Qe=!1}function xt(){const e=xs.pop();Qe=e===void 0?!0:e}function we(e,t,n){if(Qe&&Oe){let s=An.get(e);s||An.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Mn()),Is(r)}}function Is(e,t){let n=!1;Mt<=Nn?ws(e)||(e.n|=Ge,n=!Ss(e)):n=!e.has(Oe),n&&(e.add(Oe),Oe.deps.push(e))}function Je(e,t,n,s,r,i){const o=An.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&U(e))o.forEach((a,f)=>{(f==="length"||f>=s)&&l.push(a)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":U(e)?Tn(n)&&l.push(o.get("length")):(l.push(o.get(ct)),St(e)&&l.push(o.get(kn)));break;case"delete":U(e)||(l.push(o.get(ct)),St(e)&&l.push(o.get(kn)));break;case"set":St(e)&&l.push(o.get(ct));break}if(l.length===1)l[0]&&Un(l[0]);else{const a=[];for(const f of l)f&&a.push(...f);Un(Mn(a))}}function Un(e,t){for(const n of U(e)?e:[...e])(n!==Oe||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const gi=oe("__proto__,__v_isRef,__isVue"),Ps=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(En)),_i=Rn(),bi=Rn(!1,!0),yi=Rn(!0),Es=Di();function Di(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=z(this);for(let i=0,o=this.length;i<o;i++)we(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(z)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ct();const s=z(this)[t].apply(this,n);return xt(),s}}),e}function Rn(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Fi:Us:t?Fs:ks).get(s))return s;const o=U(s);if(!e&&o&&K(Es,r))return Reflect.get(Es,r,i);const l=Reflect.get(s,r,i);return(En(r)?Ps.has(r):gi(r))||(e||we(s,"get",r),t)?l:fe(l)?!o||!Tn(r)?l.value:l:ae(l)?e?Rs(l):Ln(l):l}}const vi=Ts(),Si=Ts(!0);function Ts(e=!1){return function(n,s,r,i){let o=n[s];if(At(o)&&fe(o)&&!fe(r))return!1;if(!e&&!At(r)&&(Bs(r)||(r=z(r),o=z(o)),!U(n)&&fe(o)&&!fe(r)))return o.value=r,!0;const l=U(n)&&Tn(s)?Number(s)<n.length:K(n,s),a=Reflect.set(n,s,r,i);return n===z(i)&&(l?$t(r,o)&&Je(n,"set",s,r):Je(n,"add",s,r)),a}}function wi(e,t){const n=K(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Je(e,"delete",t,void 0),s}function Ci(e,t){const n=Reflect.has(e,t);return(!En(t)||!Ps.has(t))&&we(e,"has",t),n}function xi(e){return we(e,"iterate",U(e)?"length":ct),Reflect.ownKeys(e)}const Os={get:_i,set:vi,deleteProperty:wi,has:Ci,ownKeys:xi},Ii={get:yi,set(e,t){return!0},deleteProperty(e,t){return!0}},Pi=_e({},Os,{get:bi,set:Si}),Bn=e=>e,tn=e=>Reflect.getPrototypeOf(e);function nn(e,t,n=!1,s=!1){e=e.__v_raw;const r=z(e),i=z(t);t!==i&&!n&&we(r,"get",t),!n&&we(r,"get",i);const{has:o}=tn(r),l=s?Bn:n?jn:Nt;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function sn(e,t=!1){const n=this.__v_raw,s=z(n),r=z(e);return e!==r&&!t&&we(s,"has",e),!t&&we(s,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function rn(e,t=!1){return e=e.__v_raw,!t&&we(z(e),"iterate",ct),Reflect.get(e,"size",e)}function $s(e){e=z(e);const t=z(this);return tn(t).has.call(t,e)||(t.add(e),Je(t,"add",e,e)),this}function Ms(e,t){t=z(t);const n=z(this),{has:s,get:r}=tn(n);let i=s.call(n,e);i||(e=z(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?$t(t,o)&&Je(n,"set",e,t):Je(n,"add",e,t),this}function As(e){const t=z(this),{has:n,get:s}=tn(t);let r=n.call(t,e);r||(e=z(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Je(t,"delete",e,void 0),i}function Ns(){const e=z(this),t=e.size!==0,n=e.clear();return t&&Je(e,"clear",void 0,void 0),n}function on(e,t){return function(s,r){const i=this,o=i.__v_raw,l=z(o),a=t?Bn:e?jn:Nt;return!e&&we(l,"iterate",ct),o.forEach((f,d)=>s.call(r,a(f),a(d),i))}}function ln(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=St(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,f=r[e](...s),d=n?Bn:t?jn:Nt;return!t&&we(i,"iterate",a?kn:ct),{next(){const{value:p,done:y}=f.next();return y?{value:p,done:y}:{value:l?[d(p[0]),d(p[1])]:d(p),done:y}},[Symbol.iterator](){return this}}}}function et(e){return function(...t){return e==="delete"?!1:this}}function Ei(){const e={get(i){return nn(this,i)},get size(){return rn(this)},has:sn,add:$s,set:Ms,delete:As,clear:Ns,forEach:on(!1,!1)},t={get(i){return nn(this,i,!1,!0)},get size(){return rn(this)},has:sn,add:$s,set:Ms,delete:As,clear:Ns,forEach:on(!1,!0)},n={get(i){return nn(this,i,!0)},get size(){return rn(this,!0)},has(i){return sn.call(this,i,!0)},add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear"),forEach:on(!0,!1)},s={get(i){return nn(this,i,!0,!0)},get size(){return rn(this,!0)},has(i){return sn.call(this,i,!0)},add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear"),forEach:on(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ln(i,!1,!1),n[i]=ln(i,!0,!1),t[i]=ln(i,!1,!0),s[i]=ln(i,!0,!0)}),[e,n,t,s]}const[Ti,Oi,$i,Mi]=Ei();function Hn(e,t){const n=t?e?Mi:$i:e?Oi:Ti;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(K(n,r)&&r in s?n:s,r,i)}const Ai={get:Hn(!1,!1)},Ni={get:Hn(!1,!0)},ki={get:Hn(!0,!1)},ks=new WeakMap,Fs=new WeakMap,Us=new WeakMap,Fi=new WeakMap;function Ui(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ri(e){return e.__v_skip||!Object.isExtensible(e)?0:Ui(li(e))}function Ln(e){return At(e)?e:Kn(e,!1,Os,Ai,ks)}function Bi(e){return Kn(e,!1,Pi,Ni,Fs)}function Rs(e){return Kn(e,!0,Ii,ki,Us)}function Kn(e,t,n,s,r){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Ri(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function It(e){return At(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Bs(e){return!!(e&&e.__v_isShallow)}function Hs(e){return It(e)||At(e)}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Ls(e){return en(e,"__v_skip",!0),e}const Nt=e=>ae(e)?Ln(e):e,jn=e=>ae(e)?Rs(e):e;function Ks(e){Qe&&Oe&&(e=z(e),Is(e.dep||(e.dep=Mn())))}function js(e,t){e=z(e),e.dep&&Un(e.dep)}function fe(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return Hi(e,!1)}function Hi(e,t){return fe(e)?e:new Li(e,t)}class Li{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:z(t),this._value=n?t:Nt(t)}get value(){return Ks(this),this._value}set value(t){t=this.__v_isShallow?t:z(t),$t(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Nt(t),js(this))}}function tt(e){return fe(e)?e.value:e}const Ki={get:(e,t,n)=>tt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ws(e){return It(e)?e:new Proxy(e,Ki)}class ji{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Fn(t,()=>{this._dirty||(this._dirty=!0,js(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=z(this);return Ks(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Wi(e,t,n=!1){let s,r;const i=B(e);return i?(s=e,r=Te):(s=e.get,r=e.set),new ji(s,r,i||!r,n)}function nt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){cn(i,t,n)}return r}function Me(e,t,n,s){if(B(e)){const i=nt(e,t,n,s);return i&&bs(i)&&i.catch(o=>{cn(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Me(e[i],t,n,s));return r}function cn(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const f=i.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,o,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){nt(a,null,10,[e,o,l]);return}}zi(e,n,r,s)}function zi(e,t,n,s=!0){console.error(e)}let an=!1,Wn=!1;const Ce=[];let Xe=0;const kt=[];let Ft=null,Pt=0;const Ut=[];let st=null,Et=0;const zs=Promise.resolve();let zn=null,Yn=null;function Yi(e){const t=zn||zs;return e?t.then(this?e.bind(this):e):t}function Ji(e){let t=Xe+1,n=Ce.length;for(;t<n;){const s=t+n>>>1;Rt(Ce[s])<e?t=s+1:n=s}return t}function Ys(e){(!Ce.length||!Ce.includes(e,an&&e.allowRecurse?Xe+1:Xe))&&e!==Yn&&(e.id==null?Ce.push(e):Ce.splice(Ji(e.id),0,e),Js())}function Js(){!an&&!Wn&&(Wn=!0,zn=zs.then(Vs))}function Xi(e){const t=Ce.indexOf(e);t>Xe&&Ce.splice(t,1)}function Xs(e,t,n,s){U(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),Js()}function qi(e){Xs(e,Ft,kt,Pt)}function Vi(e){Xs(e,st,Ut,Et)}function Jn(e,t=null){if(kt.length){for(Yn=t,Ft=[...new Set(kt)],kt.length=0,Pt=0;Pt<Ft.length;Pt++)Ft[Pt]();Ft=null,Pt=0,Yn=null,Jn(e,t)}}function qs(e){if(Ut.length){const t=[...new Set(Ut)];if(Ut.length=0,st){st.push(...t);return}for(st=t,st.sort((n,s)=>Rt(n)-Rt(s)),Et=0;Et<st.length;Et++)st[Et]();st=null,Et=0}}const Rt=e=>e.id==null?1/0:e.id;function Vs(e){Wn=!1,an=!0,Jn(e),Ce.sort((n,s)=>Rt(n)-Rt(s));const t=Te;try{for(Xe=0;Xe<Ce.length;Xe++){const n=Ce[Xe];n&&n.active!==!1&&nt(n,null,14)}}finally{Xe=0,Ce.length=0,qs(),an=!1,zn=null,(Ce.length||kt.length||Ut.length)&&Vs(e)}}function Zi(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||V;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:p,trim:y}=s[d]||V;y?r=n.map(P=>P.trim()):p&&(r=n.map(ui))}let l,a=s[l=On(t)]||s[l=On(Be(t))];!a&&i&&(a=s[l=On(wt(t))]),a&&Me(a,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Me(f,e,6,r)}}function Zs(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!B(e)){const a=f=>{const d=Zs(f,t,!0);d&&(l=!0,_e(o,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(s.set(e,null),null):(U(i)?i.forEach(a=>o[a]=null):_e(o,i),s.set(e,o),o)}function un(e,t){return!e||!qt(t)?!1:(t=t.slice(2).replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,wt(t))||K(e,t))}let Ae=null,fn=null;function hn(e){const t=Ae;return Ae=e,fn=e&&e.type.__scopeId||null,t}function dn(e){fn=e}function pn(){fn=null}function Gi(e,t=Ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Sr(-1);const i=hn(t),o=e(...r);return hn(i),s._d&&Sr(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function Mc(){}function Xn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:a,emit:f,render:d,renderCache:p,data:y,setupState:P,ctx:R,inheritAttrs:q}=e;let H,L;const te=hn(e);try{if(n.shapeFlag&4){const ie=r||s;H=Ke(d.call(ie,ie,p,i,P,y,R)),L=a}else{const ie=t;H=Ke(ie.length>1?ie(i,{attrs:a,slots:l,emit:f}):ie(i,null)),L=t.props?a:Qi(a)}}catch(ie){Ht.length=0,cn(ie,e,1),H=Ie(dt)}let se=H;if(L&&q!==!1){const ie=Object.keys(L),{shapeFlag:Se}=se;ie.length&&Se&7&&(o&&ie.some(In)&&(L=eo(L,o)),se=Kt(se,L))}return n.dirs&&(se.dirs=se.dirs?se.dirs.concat(n.dirs):n.dirs),n.transition&&(se.transition=n.transition),H=se,hn(te),H}const Qi=e=>{let t;for(const n in e)(n==="class"||n==="style"||qt(n))&&((t||(t={}))[n]=e[n]);return t},eo=(e,t)=>{const n={};for(const s in e)(!In(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function to(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Gs(s,o,f):!!o;if(a&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const y=d[p];if(o[y]!==s[y]&&!un(f,y))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Gs(s,o,f):!0:!!o;return!1}function Gs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!un(n,i))return!0}return!1}function no({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const so=e=>e.__isSuspense;function ro(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Vi(e)}function io(e,t){if(de){let n=de.provides;const s=de.parent&&de.parent.provides;s===n&&(n=de.provides=Object.create(s)),n[e]=t}}function qn(e,t,n=!1){const s=de||Ae;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&B(t)?t.call(s.proxy):t}}const Qs={};function mn(e,t,n){return er(e,t,n)}function er(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=V){const l=de;let a,f=!1,d=!1;if(fe(e)?(a=()=>e.value,f=Bs(e)):It(e)?(a=()=>e,s=!0):U(e)?(d=!0,f=e.some(It),a=()=>e.map(L=>{if(fe(L))return L.value;if(It(L))return at(L);if(B(L))return nt(L,l,2)})):B(e)?t?a=()=>nt(e,l,2):a=()=>{if(!(l&&l.isUnmounted))return p&&p(),Me(e,l,3,[y])}:a=Te,t&&s){const L=a;a=()=>at(L())}let p,y=L=>{p=H.onStop=()=>{nt(L,l,4)}};if(jt)return y=Te,t?n&&Me(t,l,3,[a(),d?[]:void 0,y]):a(),Te;let P=d?[]:Qs;const R=()=>{if(!!H.active)if(t){const L=H.run();(s||f||(d?L.some((te,se)=>$t(te,P[se])):$t(L,P)))&&(p&&p(),Me(t,l,3,[L,P===Qs?void 0:P,y]),P=L)}else H.run()};R.allowRecurse=!!t;let q;r==="sync"?q=R:r==="post"?q=()=>ve(R,l&&l.suspense):q=()=>{!l||l.isMounted?qi(R):R()};const H=new Fn(a,q);return t?n?R():P=H.run():r==="post"?ve(H.run.bind(H),l&&l.suspense):H.run(),()=>{H.stop(),l&&l.scope&&Pn(l.scope.effects,H)}}function oo(e,t,n){const s=this.proxy,r=ce(e)?e.includes(".")?tr(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=de;Tt(this);const l=er(r,i.bind(s),n);return o?Tt(o):mt(),l}function tr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function at(e,t){if(!ae(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),fe(e))at(e.value,t);else if(U(e))for(let n=0;n<e.length;n++)at(e[n],t);else if(_s(e)||St(e))e.forEach(n=>{at(n,t)});else if(Ds(e))for(const n in e)at(e[n],t);return e}function Le(e){return B(e)?{setup:e,name:e.name}:e}const Vn=e=>!!e.type.__asyncLoader,nr=e=>e.type.__isKeepAlive;function lo(e,t){sr(e,"a",t)}function co(e,t){sr(e,"da",t)}function sr(e,t,n=de){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(gn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)nr(r.parent.vnode)&&ao(s,t,n,r),r=r.parent}}function ao(e,t,n,s){const r=gn(t,e,s,!0);Zn(()=>{Pn(s[t],r)},n)}function gn(e,t,n=de,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ct(),Tt(n);const l=Me(t,n,e,o);return mt(),xt(),l});return s?r.unshift(i):r.push(i),i}}const qe=e=>(t,n=de)=>(!jt||e==="sp")&&gn(e,t,n),uo=qe("bm"),Bt=qe("m"),fo=qe("bu"),ho=qe("u"),po=qe("bum"),Zn=qe("um"),mo=qe("sp"),go=qe("rtg"),_o=qe("rtc");function bo(e,t=de){gn("ec",e,t)}let Gn=!0;function yo(e){const t=or(e),n=e.proxy,s=e.ctx;Gn=!1,t.beforeCreate&&rr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:f,created:d,beforeMount:p,mounted:y,beforeUpdate:P,updated:R,activated:q,deactivated:H,beforeDestroy:L,beforeUnmount:te,destroyed:se,unmounted:ie,render:Se,renderTracked:Pe,renderTriggered:Ze,errorCaptured:Ne,serverPrefetch:J,expose:k,inheritAttrs:pe,components:ue,directives:N,filters:x}=t;if(f&&Do(f,s,null,e.appContext.config.unwrapInjectedRef),o)for(const b in o){const I=o[b];B(I)&&(s[b]=I.bind(n))}if(r){const b=r.call(n,n);ae(b)&&(e.data=Ln(b))}if(Gn=!0,i)for(const b in i){const I=i[b],M=B(I)?I.bind(n,n):B(I.get)?I.get.bind(n,n):Te,W=!B(I)&&B(I.set)?I.set.bind(n):Te,G=cs({get:M,set:W});Object.defineProperty(s,b,{enumerable:!0,configurable:!0,get:()=>G.value,set:X=>G.value=X})}if(l)for(const b in l)ir(l[b],s,n,b);if(a){const b=B(a)?a.call(n):a;Reflect.ownKeys(b).forEach(I=>{io(I,b[I])})}d&&rr(d,e,"c");function T(b,I){U(I)?I.forEach(M=>b(M.bind(n))):I&&b(I.bind(n))}if(T(uo,p),T(Bt,y),T(fo,P),T(ho,R),T(lo,q),T(co,H),T(bo,Ne),T(_o,Pe),T(go,Ze),T(po,te),T(Zn,ie),T(mo,J),U(k))if(k.length){const b=e.exposed||(e.exposed={});k.forEach(I=>{Object.defineProperty(b,I,{get:()=>n[I],set:M=>n[I]=M})})}else e.exposed||(e.exposed={});Se&&e.render===Te&&(e.render=Se),pe!=null&&(e.inheritAttrs=pe),ue&&(e.components=ue),N&&(e.directives=N)}function Do(e,t,n=Te,s=!1){U(e)&&(e=Qn(e));for(const r in e){const i=e[r];let o;ae(i)?"default"in i?o=qn(i.from||r,i.default,!0):o=qn(i.from||r):o=qn(i),fe(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function rr(e,t,n){Me(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ir(e,t,n,s){const r=s.includes(".")?tr(n,s):()=>n[s];if(ce(e)){const i=t[e];B(i)&&mn(r,i)}else if(B(e))mn(r,e.bind(n));else if(ae(e))if(U(e))e.forEach(i=>ir(i,t,n,s));else{const i=B(e.handler)?e.handler.bind(n):t[e.handler];B(i)&&mn(r,i,e)}}function or(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(f=>_n(a,f,o,!0)),_n(a,t,o)),i.set(t,a),a}function _n(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&_n(e,i,n,!0),r&&r.forEach(o=>_n(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=vo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const vo={data:lr,props:ut,emits:ut,methods:ut,computed:ut,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:ut,directives:ut,watch:wo,provide:lr,inject:So};function lr(e,t){return t?e?function(){return _e(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function So(e,t){return ut(Qn(e),Qn(t))}function Qn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function be(e,t){return e?[...new Set([].concat(e,t))]:t}function ut(e,t){return e?_e(_e(Object.create(null),e),t):t}function wo(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const s in t)n[s]=be(e[s],t[s]);return n}function Co(e,t,n,s=!1){const r={},i={};en(i,yn,1),e.propsDefaults=Object.create(null),cr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Bi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xo(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=z(r),[a]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let y=d[p];if(un(e.emitsOptions,y))continue;const P=t[y];if(a)if(K(i,y))P!==i[y]&&(i[y]=P,f=!0);else{const R=Be(y);r[R]=es(a,l,R,P,e,!1)}else P!==i[y]&&(i[y]=P,f=!0)}}}else{cr(e,t,r,i)&&(f=!0);let d;for(const p in l)(!t||!K(t,p)&&((d=wt(p))===p||!K(t,d)))&&(a?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=es(a,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!K(t,p)&&!0)&&(delete i[p],f=!0)}f&&Je(e,"set","$attrs")}function cr(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Zt(a))continue;const f=t[a];let d;r&&K(r,d=Be(a))?!i||!i.includes(d)?n[d]=f:(l||(l={}))[d]=f:un(e.emitsOptions,a)||(!(a in s)||f!==s[a])&&(s[a]=f,o=!0)}if(i){const a=z(n),f=l||V;for(let d=0;d<i.length;d++){const p=i[d];n[p]=es(r,a,p,f[p],e,!K(f,p))}}return o}function es(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=K(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&B(a)){const{propsDefaults:f}=r;n in f?s=f[n]:(Tt(r),s=f[n]=a.call(null,t),mt())}else s=a}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===wt(n))&&(s=!0))}return s}function ar(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let a=!1;if(!B(e)){const d=p=>{a=!0;const[y,P]=ar(p,t,!0);_e(o,y),P&&l.push(...P)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!a)return s.set(e,vt),vt;if(U(i))for(let d=0;d<i.length;d++){const p=Be(i[d]);ur(p)&&(o[p]=V)}else if(i)for(const d in i){const p=Be(d);if(ur(p)){const y=i[d],P=o[p]=U(y)||B(y)?{type:y}:y;if(P){const R=dr(Boolean,P.type),q=dr(String,P.type);P[0]=R>-1,P[1]=q<0||R<q,(R>-1||K(P,"default"))&&l.push(p)}}}const f=[o,l];return s.set(e,f),f}function ur(e){return e[0]!=="$"}function fr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function hr(e,t){return fr(e)===fr(t)}function dr(e,t){return U(t)?t.findIndex(n=>hr(n,e)):B(t)&&hr(t,e)?0:-1}const pr=e=>e[0]==="_"||e==="$stable",ts=e=>U(e)?e.map(Ke):[Ke(e)],Io=(e,t,n)=>{const s=Gi((...r)=>ts(t(...r)),n);return s._c=!1,s},mr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(pr(r))continue;const i=e[r];if(B(i))t[r]=Io(r,i,s);else if(i!=null){const o=ts(i);t[r]=()=>o}}},gr=(e,t)=>{const n=ts(t);e.slots.default=()=>n},Po=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=z(t),en(t,"_",n)):mr(t,e.slots={})}else e.slots={},t&&gr(e,t);en(e.slots,yn,1)},Eo=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=V;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(_e(r,t),!n&&l===1&&delete r._):(i=!t.$stable,mr(t,r)),o=t}else t&&(gr(e,t),o={default:1});if(i)for(const l in r)!pr(l)&&!(l in o)&&delete r[l]};function To(e,t){const n=Ae;if(n===null)return e;const s=wn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,a,f=V]=t[i];B(o)&&(o={mounted:o,updated:o}),o.deep&&at(l),r.push({dir:o,instance:s,value:l,oldValue:void 0,arg:a,modifiers:f})}return e}function ft(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(Ct(),Me(a,n,8,[e.el,l,e,t]),xt())}}function _r(){return{app:null,config:{isNativeTag:ri,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oo=0;function $o(e,t){return function(s,r=null){B(s)||(s=Object.assign({},s)),r!=null&&!ae(r)&&(r=null);const i=_r(),o=new Set;let l=!1;const a=i.app={_uid:Oo++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Qo,get config(){return i.config},set config(f){},use(f,...d){return o.has(f)||(f&&B(f.install)?(o.add(f),f.install(a,...d)):B(f)&&(o.add(f),f(a,...d))),a},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),a},component(f,d){return d?(i.components[f]=d,a):i.components[f]},directive(f,d){return d?(i.directives[f]=d,a):i.directives[f]},mount(f,d,p){if(!l){const y=Ie(s,r);return y.appContext=i,d&&t?t(y,f):e(y,f,p),l=!0,a._container=f,f.__vue_app__=a,wn(y.component)||y.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(f,d){return i.provides[f]=d,a}};return a}}function ns(e,t,n,s,r=!1){if(U(e)){e.forEach((y,P)=>ns(y,t&&(U(t)?t[P]:t),n,s,r));return}if(Vn(s)&&!r)return;const i=s.shapeFlag&4?wn(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:a}=e,f=t&&t.r,d=l.refs===V?l.refs={}:l.refs,p=l.setupState;if(f!=null&&f!==a&&(ce(f)?(d[f]=null,K(p,f)&&(p[f]=null)):fe(f)&&(f.value=null)),B(a))nt(a,l,12,[o,d]);else{const y=ce(a),P=fe(a);if(y||P){const R=()=>{if(e.f){const q=y?d[a]:a.value;r?U(q)&&Pn(q,i):U(q)?q.includes(i)||q.push(i):y?(d[a]=[i],K(p,a)&&(p[a]=d[a])):(a.value=[i],e.k&&(d[e.k]=a.value))}else y?(d[a]=o,K(p,a)&&(p[a]=o)):fe(a)&&(a.value=o,e.k&&(d[e.k]=o))};o?(R.id=-1,ve(R,n)):R()}}}const ve=ro;function Mo(e){return Ao(e)}function Ao(e,t){const n=fi();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:f,setElementText:d,parentNode:p,nextSibling:y,setScopeId:P=Te,cloneNode:R,insertStaticContent:q}=e,H=(c,u,h,g=null,m=null,v=null,C=!1,D=null,S=!!u.dynamicChildren)=>{if(c===u)return;c&&!Lt(c,u)&&(g=Ue(c),Q(c,m,v,!0),c=null),u.patchFlag===-2&&(S=!1,u.dynamicChildren=null);const{type:_,ref:O,shapeFlag:E}=u;switch(_){case ss:L(c,u,h,g);break;case dt:te(c,u,h,g);break;case rs:c==null&&se(u,h,g,C);break;case xe:N(c,u,h,g,m,v,C,D,S);break;default:E&1?Pe(c,u,h,g,m,v,C,D,S):E&6?x(c,u,h,g,m,v,C,D,S):(E&64||E&128)&&_.process(c,u,h,g,m,v,C,D,S,De)}O!=null&&m&&ns(O,c&&c.ref,v,u||c,!u)},L=(c,u,h,g)=>{if(c==null)s(u.el=l(u.children),h,g);else{const m=u.el=c.el;u.children!==c.children&&f(m,u.children)}},te=(c,u,h,g)=>{c==null?s(u.el=a(u.children||""),h,g):u.el=c.el},se=(c,u,h,g)=>{[c.el,c.anchor]=q(c.children,u,h,g,c.el,c.anchor)},ie=({el:c,anchor:u},h,g)=>{let m;for(;c&&c!==u;)m=y(c),s(c,h,g),c=m;s(u,h,g)},Se=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=y(c),r(c),c=h;r(u)},Pe=(c,u,h,g,m,v,C,D,S)=>{C=C||u.type==="svg",c==null?Ze(u,h,g,m,v,C,D,S):k(c,u,m,v,C,D,S)},Ze=(c,u,h,g,m,v,C,D)=>{let S,_;const{type:O,props:E,shapeFlag:$,transition:F,patchFlag:j,dirs:ne}=c;if(c.el&&R!==void 0&&j===-1)S=c.el=R(c.el);else{if(S=c.el=o(c.type,v,E&&E.is,E),$&8?d(S,c.children):$&16&&J(c.children,S,null,g,m,v&&O!=="foreignObject",C,D),ne&&ft(c,null,g,"created"),E){for(const ee in E)ee!=="value"&&!Zt(ee)&&i(S,ee,null,E[ee],v,c.children,g,m,ye);"value"in E&&i(S,"value",null,E.value),(_=E.onVnodeBeforeMount)&&je(_,g,c)}Ne(S,c,c.scopeId,C,g)}ne&&ft(c,null,g,"beforeMount");const Z=(!m||m&&!m.pendingBranch)&&F&&!F.persisted;Z&&F.beforeEnter(S),s(S,u,h),((_=E&&E.onVnodeMounted)||Z||ne)&&ve(()=>{_&&je(_,g,c),Z&&F.enter(S),ne&&ft(c,null,g,"mounted")},m)},Ne=(c,u,h,g,m)=>{if(h&&P(c,h),g)for(let v=0;v<g.length;v++)P(c,g[v]);if(m){let v=m.subTree;if(u===v){const C=m.vnode;Ne(c,C,C.scopeId,C.slotScopeIds,m.parent)}}},J=(c,u,h,g,m,v,C,D,S=0)=>{for(let _=S;_<c.length;_++){const O=c[_]=D?rt(c[_]):Ke(c[_]);H(null,O,u,h,g,m,v,C,D)}},k=(c,u,h,g,m,v,C)=>{const D=u.el=c.el;let{patchFlag:S,dynamicChildren:_,dirs:O}=u;S|=c.patchFlag&16;const E=c.props||V,$=u.props||V;let F;h&&ht(h,!1),(F=$.onVnodeBeforeUpdate)&&je(F,h,u,c),O&&ft(u,c,h,"beforeUpdate"),h&&ht(h,!0);const j=m&&u.type!=="foreignObject";if(_?pe(c.dynamicChildren,_,D,h,g,j,v):C||M(c,u,D,null,h,g,j,v,!1),S>0){if(S&16)ue(D,u,E,$,h,g,m);else if(S&2&&E.class!==$.class&&i(D,"class",null,$.class,m),S&4&&i(D,"style",E.style,$.style,m),S&8){const ne=u.dynamicProps;for(let Z=0;Z<ne.length;Z++){const ee=ne[Z],Re=E[ee],Ot=$[ee];(Ot!==Re||ee==="value")&&i(D,ee,Re,Ot,m,c.children,h,g,ye)}}S&1&&c.children!==u.children&&d(D,u.children)}else!C&&_==null&&ue(D,u,E,$,h,g,m);((F=$.onVnodeUpdated)||O)&&ve(()=>{F&&je(F,h,u,c),O&&ft(u,c,h,"updated")},g)},pe=(c,u,h,g,m,v,C)=>{for(let D=0;D<u.length;D++){const S=c[D],_=u[D],O=S.el&&(S.type===xe||!Lt(S,_)||S.shapeFlag&70)?p(S.el):h;H(S,_,O,null,g,m,v,C,!0)}},ue=(c,u,h,g,m,v,C)=>{if(h!==g){for(const D in g){if(Zt(D))continue;const S=g[D],_=h[D];S!==_&&D!=="value"&&i(c,D,_,S,C,u.children,m,v,ye)}if(h!==V)for(const D in h)!Zt(D)&&!(D in g)&&i(c,D,h[D],null,C,u.children,m,v,ye);"value"in g&&i(c,"value",h.value,g.value)}},N=(c,u,h,g,m,v,C,D,S)=>{const _=u.el=c?c.el:l(""),O=u.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:$,slotScopeIds:F}=u;F&&(D=D?D.concat(F):F),c==null?(s(_,h,g),s(O,h,g),J(u.children,h,O,m,v,C,D,S)):E>0&&E&64&&$&&c.dynamicChildren?(pe(c.dynamicChildren,$,h,m,v,C,D),(u.key!=null||m&&u===m.subTree)&&br(c,u,!0)):M(c,u,h,O,m,v,C,D,S)},x=(c,u,h,g,m,v,C,D,S)=>{u.slotScopeIds=D,c==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,S):w(u,h,g,m,v,C,S):T(c,u,S)},w=(c,u,h,g,m,v,C)=>{const D=c.component=Yo(c,g,m);if(nr(c)&&(D.ctx.renderer=De),Jo(D),D.asyncDep){if(m&&m.registerDep(D,b),!c.el){const S=D.subTree=Ie(dt);te(null,S,u,h)}return}b(D,c,u,h,m,v,C)},T=(c,u,h)=>{const g=u.component=c.component;if(to(c,u,h))if(g.asyncDep&&!g.asyncResolved){I(g,u,h);return}else g.next=u,Xi(g.update),g.update();else u.component=c.component,u.el=c.el,g.vnode=u},b=(c,u,h,g,m,v,C)=>{const D=()=>{if(c.isMounted){let{next:O,bu:E,u:$,parent:F,vnode:j}=c,ne=O,Z;ht(c,!1),O?(O.el=j.el,I(c,O,C)):O=j,E&&$n(E),(Z=O.props&&O.props.onVnodeBeforeUpdate)&&je(Z,F,O,j),ht(c,!0);const ee=Xn(c),Re=c.subTree;c.subTree=ee,H(Re,ee,p(Re.el),Ue(Re),c,m,v),O.el=ee.el,ne===null&&no(c,ee.el),$&&ve($,m),(Z=O.props&&O.props.onVnodeUpdated)&&ve(()=>je(Z,F,O,j),m)}else{let O;const{el:E,props:$}=u,{bm:F,m:j,parent:ne}=c,Z=Vn(u);if(ht(c,!1),F&&$n(F),!Z&&(O=$&&$.onVnodeBeforeMount)&&je(O,ne,u),ht(c,!0),E&&ot){const ee=()=>{c.subTree=Xn(c),ot(E,c.subTree,c,m,null)};Z?u.type.__asyncLoader().then(()=>!c.isUnmounted&&ee()):ee()}else{const ee=c.subTree=Xn(c);H(null,ee,h,g,c,m,v),u.el=ee.el}if(j&&ve(j,m),!Z&&(O=$&&$.onVnodeMounted)){const ee=u;ve(()=>je(O,ne,ee),m)}u.shapeFlag&256&&c.a&&ve(c.a,m),c.isMounted=!0,u=h=g=null}},S=c.effect=new Fn(D,()=>Ys(c.update),c.scope),_=c.update=S.run.bind(S);_.id=c.uid,ht(c,!0),_()},I=(c,u,h)=>{u.component=c;const g=c.vnode.props;c.vnode=u,c.next=null,xo(c,u.props,g,h),Eo(c,u.children,h),Ct(),Jn(void 0,c.update),xt()},M=(c,u,h,g,m,v,C,D,S=!1)=>{const _=c&&c.children,O=c?c.shapeFlag:0,E=u.children,{patchFlag:$,shapeFlag:F}=u;if($>0){if($&128){G(_,E,h,g,m,v,C,D,S);return}else if($&256){W(_,E,h,g,m,v,C,D,S);return}}F&8?(O&16&&ye(_,m,v),E!==_&&d(h,E)):O&16?F&16?G(_,E,h,g,m,v,C,D,S):ye(_,m,v,!0):(O&8&&d(h,""),F&16&&J(E,h,g,m,v,C,D,S))},W=(c,u,h,g,m,v,C,D,S)=>{c=c||vt,u=u||vt;const _=c.length,O=u.length,E=Math.min(_,O);let $;for($=0;$<E;$++){const F=u[$]=S?rt(u[$]):Ke(u[$]);H(c[$],F,h,null,m,v,C,D,S)}_>O?ye(c,m,v,!0,!1,E):J(u,h,g,m,v,C,D,S,E)},G=(c,u,h,g,m,v,C,D,S)=>{let _=0;const O=u.length;let E=c.length-1,$=O-1;for(;_<=E&&_<=$;){const F=c[_],j=u[_]=S?rt(u[_]):Ke(u[_]);if(Lt(F,j))H(F,j,h,null,m,v,C,D,S);else break;_++}for(;_<=E&&_<=$;){const F=c[E],j=u[$]=S?rt(u[$]):Ke(u[$]);if(Lt(F,j))H(F,j,h,null,m,v,C,D,S);else break;E--,$--}if(_>E){if(_<=$){const F=$+1,j=F<O?u[F].el:g;for(;_<=$;)H(null,u[_]=S?rt(u[_]):Ke(u[_]),h,j,m,v,C,D,S),_++}}else if(_>$)for(;_<=E;)Q(c[_],m,v,!0),_++;else{const F=_,j=_,ne=new Map;for(_=j;_<=$;_++){const Ee=u[_]=S?rt(u[_]):Ke(u[_]);Ee.key!=null&&ne.set(Ee.key,_)}let Z,ee=0;const Re=$-j+1;let Ot=!1,Vr=0;const Yt=new Array(Re);for(_=0;_<Re;_++)Yt[_]=0;for(_=F;_<=E;_++){const Ee=c[_];if(ee>=Re){Q(Ee,m,v,!0);continue}let ze;if(Ee.key!=null)ze=ne.get(Ee.key);else for(Z=j;Z<=$;Z++)if(Yt[Z-j]===0&&Lt(Ee,u[Z])){ze=Z;break}ze===void 0?Q(Ee,m,v,!0):(Yt[ze-j]=_+1,ze>=Vr?Vr=ze:Ot=!0,H(Ee,u[ze],h,null,m,v,C,D,S),ee++)}const Zr=Ot?No(Yt):vt;for(Z=Zr.length-1,_=Re-1;_>=0;_--){const Ee=j+_,ze=u[Ee],Gr=Ee+1<O?u[Ee+1].el:g;Yt[_]===0?H(null,ze,h,Gr,m,v,C,D,S):Ot&&(Z<0||_!==Zr[Z]?X(ze,h,Gr,2):Z--)}}},X=(c,u,h,g,m=null)=>{const{el:v,type:C,transition:D,children:S,shapeFlag:_}=c;if(_&6){X(c.component.subTree,u,h,g);return}if(_&128){c.suspense.move(u,h,g);return}if(_&64){C.move(c,u,h,De);return}if(C===xe){s(v,u,h);for(let E=0;E<S.length;E++)X(S[E],u,h,g);s(c.anchor,u,h);return}if(C===rs){ie(c,u,h);return}if(g!==2&&_&1&&D)if(g===0)D.beforeEnter(v),s(v,u,h),ve(()=>D.enter(v),m);else{const{leave:E,delayLeave:$,afterLeave:F}=D,j=()=>s(v,u,h),ne=()=>{E(v,()=>{j(),F&&F()})};$?$(v,j,ne):ne()}else s(v,u,h)},Q=(c,u,h,g=!1,m=!1)=>{const{type:v,props:C,ref:D,children:S,dynamicChildren:_,shapeFlag:O,patchFlag:E,dirs:$}=c;if(D!=null&&ns(D,null,h,c,!0),O&256){u.ctx.deactivate(c);return}const F=O&1&&$,j=!Vn(c);let ne;if(j&&(ne=C&&C.onVnodeBeforeUnmount)&&je(ne,u,c),O&6)yt(c.component,h,g);else{if(O&128){c.suspense.unmount(h,g);return}F&&ft(c,null,u,"beforeUnmount"),O&64?c.type.remove(c,u,h,m,De,g):_&&(v!==xe||E>0&&E&64)?ye(_,u,h,!1,!0):(v===xe&&E&384||!m&&O&16)&&ye(S,u,h),g&&ke(c)}(j&&(ne=C&&C.onVnodeUnmounted)||F)&&ve(()=>{ne&&je(ne,u,c),F&&ft(c,null,u,"unmounted")},h)},ke=c=>{const{type:u,el:h,anchor:g,transition:m}=c;if(u===xe){Fe(h,g);return}if(u===rs){Se(c);return}const v=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:D}=m,S=()=>C(h,v);D?D(c.el,v,S):S()}else v()},Fe=(c,u)=>{let h;for(;c!==u;)h=y(c),r(c),c=h;r(u)},yt=(c,u,h)=>{const{bum:g,scope:m,update:v,subTree:C,um:D}=c;g&&$n(g),m.stop(),v&&(v.active=!1,Q(C,c,u,h)),D&&ve(D,u),ve(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},ye=(c,u,h,g=!1,m=!1,v=0)=>{for(let C=v;C<c.length;C++)Q(c[C],u,h,g,m)},Ue=c=>c.shapeFlag&6?Ue(c.component.subTree):c.shapeFlag&128?c.suspense.next():y(c.anchor||c.el),me=(c,u,h)=>{c==null?u._vnode&&Q(u._vnode,null,null,!0):H(u._vnode||null,c,u,null,null,null,h),qs(),u._vnode=c},De={p:H,um:Q,m:X,r:ke,mt:w,mc:J,pc:M,pbc:pe,n:Ue,o:e};let Dt,ot;return t&&([Dt,ot]=t(De)),{render:me,hydrate:Dt,createApp:$o(me,Dt)}}function ht({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function br(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=rt(r[i]),l.el=o.el),n||br(o,l))}}function No(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const f=e[s];if(f!==0){if(r=n[n.length-1],e[r]<f){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<f?i=l+1:o=l;f<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const ko=e=>e.__isTeleport,yr="components",Dr=Symbol();function Fo(e){return ce(e)?Uo(yr,e,!1)||e:e||Dr}function Uo(e,t,n=!0,s=!1){const r=Ae||de;if(r){const i=r.type;if(e===yr){const l=Zo(i);if(l&&(l===t||l===Be(t)||l===Qt(Be(t))))return i}const o=vr(r[e]||i[e],t)||vr(r.appContext[e],t);return!o&&s?i:o}}function vr(e,t){return e&&(e[t]||e[Be(t)]||e[Qt(Be(t))])}const xe=Symbol(void 0),ss=Symbol(void 0),dt=Symbol(void 0),rs=Symbol(void 0),Ht=[];let pt=null;function le(e=!1){Ht.push(pt=e?null:[])}function Ro(){Ht.pop(),pt=Ht[Ht.length-1]||null}let bn=1;function Sr(e){bn+=e}function wr(e){return e.dynamicChildren=bn>0?pt||vt:null,Ro(),bn>0&&pt&&pt.push(e),e}function he(e,t,n,s,r,i){return wr(Y(e,t,n,s,r,i,!0))}function Cr(e,t,n,s,r){return wr(Ie(e,t,n,s,r,!0))}function Bo(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const yn="__vInternal",xr=({key:e})=>e!=null?e:null,Dn=({ref:e,ref_key:t,ref_for:n})=>e!=null?ce(e)||fe(e)||B(e)?{i:Ae,r:e,k:t,f:!!n}:e:null;function Y(e,t=null,n=null,s=0,r=null,i=e===xe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xr(t),ref:t&&Dn(t),scopeId:fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(os(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ce(n)?8:16),bn>0&&!o&&pt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&pt.push(a),a}const Ie=Ho;function Ho(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Dr)&&(e=dt),Bo(e)){const l=Kt(e,t,!0);return n&&os(l,n),l}if(Go(e)&&(e=e.__vccOpts),t){t=Lo(t);let{class:l,style:a}=t;l&&!ce(l)&&(t.class=Jt(l)),ae(a)&&(Hs(a)&&!U(a)&&(a=_e({},a)),t.style=Ye(a))}const o=ce(e)?1:so(e)?128:ko(e)?64:ae(e)?4:B(e)?2:0;return Y(e,t,n,s,r,o,i,!0)}function Lo(e){return e?Hs(e)||yn in e?_e({},e):e:null}function Kt(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?Ko(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&xr(l),ref:t&&t.ref?n&&r?U(r)?r.concat(Dn(t)):[r,Dn(t)]:Dn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor}}function is(e=" ",t=0){return Ie(ss,null,e,t)}function vn(e="",t=!1){return t?(le(),Cr(dt,null,e)):Ie(dt,null,e)}function Ke(e){return e==null||typeof e=="boolean"?Ie(dt):U(e)?Ie(xe,null,e.slice()):typeof e=="object"?rt(e):Ie(ss,null,String(e))}function rt(e){return e.el===null||e.memo?e:Kt(e)}function os(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),os(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(yn in t)?t._ctx=Ae:r===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ae},n=32):(t=String(t),s&64?(n=16,t=[is(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ko(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Jt([t.class,s.class]));else if(r==="style")t.style=Ye([t.style,s.style]);else if(qt(r)){const i=t[r],o=s[r];o&&i!==o&&!(U(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function je(e,t,n,s=null){Me(e,t,7,[n,s])}function Ir(e,t,n,s){let r;const i=n&&n[s];if(U(e)||ce(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(ae(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const f=o[l];r[l]=t(e[f],f,l,i&&i[l])}}else r=[];return n&&(n[s]=r),r}const ls=e=>e?Pr(e)?wn(e)||e.proxy:ls(e.parent):null,Sn=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ls(e.parent),$root:e=>ls(e.root),$emit:e=>e.emit,$options:e=>or(e),$forceUpdate:e=>()=>Ys(e.update),$nextTick:e=>Yi.bind(e.proxy),$watch:e=>oo.bind(e)}),jo={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:a}=e;let f;if(t[0]!=="$"){const P=o[t];if(P!==void 0)switch(P){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==V&&K(s,t))return o[t]=1,s[t];if(r!==V&&K(r,t))return o[t]=2,r[t];if((f=e.propsOptions[0])&&K(f,t))return o[t]=3,i[t];if(n!==V&&K(n,t))return o[t]=4,n[t];Gn&&(o[t]=0)}}const d=Sn[t];let p,y;if(d)return t==="$attrs"&&we(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==V&&K(n,t))return o[t]=4,n[t];if(y=a.config.globalProperties,K(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==V&&K(r,t)?(r[t]=n,!0):s!==V&&K(s,t)?(s[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==V&&K(e,o)||t!==V&&K(t,o)||(l=i[0])&&K(l,o)||K(s,o)||K(Sn,o)||K(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Wo=_r();let zo=0;function Yo(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Wo,i={uid:zo++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new hi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ar(s,r),emitsOptions:Zs(s,r),emit:null,emitted:null,propsDefaults:V,inheritAttrs:s.inheritAttrs,ctx:V,data:V,props:V,attrs:V,slots:V,refs:V,setupState:V,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Zi.bind(null,i),e.ce&&e.ce(i),i}let de=null;const Tt=e=>{de=e,e.scope.on()},mt=()=>{de&&de.scope.off(),de=null};function Pr(e){return e.vnode.shapeFlag&4}let jt=!1;function Jo(e,t=!1){jt=t;const{props:n,children:s}=e.vnode,r=Pr(e);Co(e,n,r,t),Po(e,s);const i=r?Xo(e,t):void 0;return jt=!1,i}function Xo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ls(new Proxy(e.ctx,jo));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Vo(e):null;Tt(e),Ct();const i=nt(s,e,0,[e.props,r]);if(xt(),mt(),bs(i)){if(i.then(mt,mt),t)return i.then(o=>{Er(e,o,t)}).catch(o=>{cn(o,e,0)});e.asyncDep=i}else Er(e,i,t)}else Or(e,t)}function Er(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=Ws(t)),Or(e,n)}let Tr;function Or(e,t,n){const s=e.type;if(!e.render){if(!t&&Tr&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,f=_e(_e({isCustomElement:i,delimiters:l},o),a);s.render=Tr(r,f)}}e.render=s.render||Te}Tt(e),Ct(),yo(e),xt(),mt()}function qo(e){return new Proxy(e.attrs,{get(t,n){return we(e,"get","$attrs"),t[n]}})}function Vo(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=qo(e))},slots:e.slots,emit:e.emit,expose:t}}function wn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ws(Ls(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sn)return Sn[n](e)}}))}function Zo(e){return B(e)&&e.displayName||e.name}function Go(e){return B(e)&&"__vccOpts"in e}const cs=(e,t)=>Wi(e,t,jt),Qo="3.2.33",el="http://www.w3.org/2000/svg",gt=typeof document!="undefined"?document:null,$r=gt&>.createElement("template"),tl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?gt.createElementNS(el,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{$r.innerHTML=s?`<svg>${e}</svg>`:e;const l=$r.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function nl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function sl(e,t,n){const s=e.style,r=ce(n);if(n&&!r){for(const i in n)as(s,i,n[i]);if(t&&!ce(t))for(const i in t)n[i]==null&&as(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Mr=/\s*!important$/;function as(e,t,n){if(U(n))n.forEach(s=>as(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=rl(e,t);Mr.test(n)?e.setProperty(wt(s),n.replace(Mr,""),"important"):e[s]=n}}const Ar=["Webkit","Moz","ms"],us={};function rl(e,t){const n=us[t];if(n)return n;let s=Be(t);if(s!=="filter"&&s in e)return us[t]=s;s=Qt(s);for(let r=0;r<Ar.length;r++){const i=Ar[r]+s;if(i in e)return us[t]=i}return t}const Nr="http://www.w3.org/1999/xlink";function il(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Nr,t.slice(6,t.length)):e.setAttributeNS(Nr,t,n);else{const i=ge(t);n==null||i&&!ms(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function ol(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n==null?"":n;(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ms(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}const[kr,ll]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let fs=0;const cl=Promise.resolve(),al=()=>{fs=0},ul=()=>fs||(cl.then(al),fs=kr());function fl(e,t,n,s){e.addEventListener(t,n,s)}function hl(e,t,n,s){e.removeEventListener(t,n,s)}function dl(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,a]=pl(t);if(s){const f=i[t]=ml(s,r);fl(e,l,f,a)}else o&&(hl(e,l,o,a),i[t]=void 0)}}const Fr=/(?:Once|Passive|Capture)$/;function pl(e){let t;if(Fr.test(e)){t={};let n;for(;n=e.match(Fr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[wt(e.slice(2)),t]}function ml(e,t){const n=s=>{const r=s.timeStamp||kr();(ll||r>=n.attached-1)&&Me(gl(s,n.value),t,5,[s])};return n.value=e,n.attached=ul(),n}function gl(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ur=/^on[a-z]/,_l=(e,t,n,s,r=!1,i,o,l,a)=>{t==="class"?nl(e,s,r):t==="style"?sl(e,n,s):qt(t)?In(t)||dl(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bl(e,t,s,r))?ol(e,t,s,i,o,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),il(e,t,s,r))};function bl(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ur.test(t)&&B(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ur.test(t)&&ce(n)?!1:t in e}const yl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Wt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Wt(e,!0),s.enter(e)):s.leave(e,()=>{Wt(e,!1)}):Wt(e,t))},beforeUnmount(e,{value:t}){Wt(e,t)}};function Wt(e,t){e.style.display=t?e._vod:"none"}const Dl=_e({patchProp:_l},tl);let Rr;function vl(){return Rr||(Rr=Mo(Dl))}const Br=(...e)=>{vl().render(...e)};function it(e){let t;const n=()=>{Br(null,e.el),t=void 0},s={},r=Object.keys(e.on||{}).reduce((o,l)=>{const a=l.charAt(0).toUpperCase()+l.slice(1);return o[`on${a}`]=e.on[l],o},s)||{};r.onClose||(r.onClose=()=>n());const i=ei(lt(lt({},e.props),r),{container:e.el,onVnodeUnmounted:()=>{},onVnodeMounted:()=>{}});return t=Ie(e.component,i),Br(t,e.el),{vnode:t,destroy:n}}var Sl={baseUrl:"http://localhost:3001",cssUrl:"http://localhost:3001/dist/sdk/",url:"http://localhost:3001/dist/iframe/",apiUrl:"https://localhost:5001"},wl={baseUrl:"https://assets.payfurl.com",cssUrl:"https://assets.payfurl.com/v3.0.0/js/",url:"https://assets.payfurl.com/v3.0.0/iframe/index.html",apiUrl:"https://sandbox-api.payfurl.com"},Cl={baseUrl:"https://assets.payfurl.com",cssUrl:"https://assets.payfurl.com/v3.0.0/js/",url:"https://assets.payfurl.com/v3.0.0/iframe/index.html",apiUrl:"https://api.payfurl.com"},_t=(e=>(e.DEVELOPMENT="development",e.SANDBOX="sandbox",e.PRODUCTION="production",e))(_t||{});const Hr={development:Sl,sandbox:wl,production:Cl};function Lr(e){return Hr[e]||Hr.production}var xl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Il={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(xl,function(){var n=1e3,s=6e4,r=36e5,i="millisecond",o="second",l="minute",a="hour",f="day",d="week",p="month",y="quarter",P="year",R="date",q="Invalid Date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},se=function(N,x,w){var T=String(N);return!T||T.length>=x?N:""+Array(x+1-T.length).join(w)+N},ie={s:se,z:function(N){var x=-N.utcOffset(),w=Math.abs(x),T=Math.floor(w/60),b=w%60;return(x<=0?"+":"-")+se(T,2,"0")+":"+se(b,2,"0")},m:function N(x,w){if(x.date()<w.date())return-N(w,x);var T=12*(w.year()-x.year())+(w.month()-x.month()),b=x.clone().add(T,p),I=w-b<0,M=x.clone().add(T+(I?-1:1),p);return+(-(T+(w-b)/(I?b-M:M-b))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:p,y:P,w:d,d:f,D:R,h:a,m:l,s:o,ms:i,Q:y}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},Se="en",Pe={};Pe[Se]=te;var Ze=function(N){return N instanceof pe},Ne=function N(x,w,T){var b;if(!x)return Se;if(typeof x=="string"){var I=x.toLowerCase();Pe[I]&&(b=I),w&&(Pe[I]=w,b=I);var M=x.split("-");if(!b&&M.length>1)return N(M[0])}else{var W=x.name;Pe[W]=x,b=W}return!T&&b&&(Se=b),b||!T&&Se},J=function(N,x){if(Ze(N))return N.clone();var w=typeof x=="object"?x:{};return w.date=N,w.args=arguments,new pe(w)},k=ie;k.l=Ne,k.i=Ze,k.w=function(N,x){return J(N,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var pe=function(){function N(w){this.$L=Ne(w.locale,null,!0),this.parse(w)}var x=N.prototype;return x.parse=function(w){this.$d=function(T){var b=T.date,I=T.utc;if(b===null)return new Date(NaN);if(k.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var M=b.match(H);if(M){var W=M[2]-1||0,G=(M[7]||"0").substring(0,3);return I?new Date(Date.UTC(M[1],W,M[3]||1,M[4]||0,M[5]||0,M[6]||0,G)):new Date(M[1],W,M[3]||1,M[4]||0,M[5]||0,M[6]||0,G)}}return new Date(b)}(w),this.$x=w.x||{},this.init()},x.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},x.$utils=function(){return k},x.isValid=function(){return this.$d.toString()!==q},x.isSame=function(w,T){var b=J(w);return this.startOf(T)<=b&&b<=this.endOf(T)},x.isAfter=function(w,T){return J(w)<this.startOf(T)},x.isBefore=function(w,T){return this.endOf(T)<J(w)},x.$g=function(w,T,b){return k.u(w)?this[T]:this.set(b,w)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(w,T){var b=this,I=!!k.u(T)||T,M=k.p(w),W=function(Ue,me){var De=k.w(b.$u?Date.UTC(b.$y,me,Ue):new Date(b.$y,me,Ue),b);return I?De:De.endOf(f)},G=function(Ue,me){return k.w(b.toDate()[Ue].apply(b.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(me)),b)},X=this.$W,Q=this.$M,ke=this.$D,Fe="set"+(this.$u?"UTC":"");switch(M){case P:return I?W(1,0):W(31,11);case p:return I?W(1,Q):W(0,Q+1);case d:var yt=this.$locale().weekStart||0,ye=(X<yt?X+7:X)-yt;return W(I?ke-ye:ke+(6-ye),Q);case f:case R:return G(Fe+"Hours",0);case a:return G(Fe+"Minutes",1);case l:return G(Fe+"Seconds",2);case o:return G(Fe+"Milliseconds",3);default:return this.clone()}},x.endOf=function(w){return this.startOf(w,!1)},x.$set=function(w,T){var b,I=k.p(w),M="set"+(this.$u?"UTC":""),W=(b={},b[f]=M+"Date",b[R]=M+"Date",b[p]=M+"Month",b[P]=M+"FullYear",b[a]=M+"Hours",b[l]=M+"Minutes",b[o]=M+"Seconds",b[i]=M+"Milliseconds",b)[I],G=I===f?this.$D+(T-this.$W):T;if(I===p||I===P){var X=this.clone().set(R,1);X.$d[W](G),X.init(),this.$d=X.set(R,Math.min(this.$D,X.daysInMonth())).$d}else W&&this.$d[W](G);return this.init(),this},x.set=function(w,T){return this.clone().$set(w,T)},x.get=function(w){return this[k.p(w)]()},x.add=function(w,T){var b,I=this;w=Number(w);var M=k.p(T),W=function(Q){var ke=J(I);return k.w(ke.date(ke.date()+Math.round(Q*w)),I)};if(M===p)return this.set(p,this.$M+w);if(M===P)return this.set(P,this.$y+w);if(M===f)return W(1);if(M===d)return W(7);var G=(b={},b[l]=s,b[a]=r,b[o]=n,b)[M]||1,X=this.$d.getTime()+w*G;return k.w(X,this)},x.subtract=function(w,T){return this.add(-1*w,T)},x.format=function(w){var T=this,b=this.$locale();if(!this.isValid())return b.invalidDate||q;var I=w||"YYYY-MM-DDTHH:mm:ssZ",M=k.z(this),W=this.$H,G=this.$m,X=this.$M,Q=b.weekdays,ke=b.months,Fe=function(me,De,Dt,ot){return me&&(me[De]||me(T,I))||Dt[De].slice(0,ot)},yt=function(me){return k.s(W%12||12,me,"0")},ye=b.meridiem||function(me,De,Dt){var ot=me<12?"AM":"PM";return Dt?ot.toLowerCase():ot},Ue={YY:String(this.$y).slice(-2),YYYY:this.$y,M:X+1,MM:k.s(X+1,2,"0"),MMM:Fe(b.monthsShort,X,ke,3),MMMM:Fe(ke,X),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:Fe(b.weekdaysMin,this.$W,Q,2),ddd:Fe(b.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(W),HH:k.s(W,2,"0"),h:yt(1),hh:yt(2),a:ye(W,G,!0),A:ye(W,G,!1),m:String(G),mm:k.s(G,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:M};return I.replace(L,function(me,De){return De||Ue[me]||M.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(w,T,b){var I,M=k.p(T),W=J(w),G=(W.utcOffset()-this.utcOffset())*s,X=this-W,Q=k.m(this,W);return Q=(I={},I[P]=Q/12,I[p]=Q,I[y]=Q/3,I[d]=(X-G)/6048e5,I[f]=(X-G)/864e5,I[a]=X/r,I[l]=X/s,I[o]=X/n,I)[M]||X,b?Q:k.a(Q)},x.daysInMonth=function(){return this.endOf(p).$D},x.$locale=function(){return Pe[this.$L]},x.locale=function(w,T){if(!w)return this.$L;var b=this.clone(),I=Ne(w,T,!0);return I&&(b.$L=I),b},x.clone=function(){return k.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},N}(),ue=pe.prototype;return J.prototype=ue,[["$ms",i],["$s",o],["$m",l],["$H",a],["$W",f],["$M",p],["$y",P],["$D",R]].forEach(function(N){ue[N[1]]=function(x){return this.$g(x,N[0],N[1])}}),J.extend=function(N,x){return N.$i||(N(x,pe,J),N.$i=!0),J},J.locale=Ne,J.isDayjs=Ze,J.unix=function(N){return J(1e3*N)},J.en=Pe[Se],J.Ls=Pe,J.p={},J})})(Il);function Cn(e){return e?Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:Boolean(e):!1}function Pl(e){return!isNaN(parseFloat(e))||parseFloat(e)>0}function Kr(e,t,n,s){t(e)||s&&s({error:n})}var Ac="",Nc="",We=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const El={class:"message"};var Ve=We(Le({props:{error:null},setup(e){const n=$e(e.error);return(s,r)=>(le(),he("div",El,Xt(n.value),1))}}),[["__scopeId","data-v-78588f23"]]),Fc="",jr=We(Le({props:{size:null,grayscale:{type:Boolean}},setup(e){const t=e,n=t.grayscale?"#2A2A2B":"#253b80",s=t.grayscale?"#555557":"#179bd7",r=t.grayscale?"#000000":"#222d65",i=`--size: ${t.size}px`;return(o,l)=>(le(),he("svg",{id:"paypal",style:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25.576353 30.177"},[Y("path",{d:"m 7.2659888,29.154 0.523,-3.322 -1.165,-0.027 -5.563,0 3.866,-24.513 c 0.012,-0.074 0.051,-0.143 0.108,-0.192 0.057,-0.049 0.13,-0.076 0.206,-0.076 l 9.3800002,0 c 3.114,0 5.263,0.648 6.385,1.927 0.526,0.6 0.861,1.227 1.023,1.917 0.17,0.724 0.173,1.589 0.007,2.644 l -0.012,0.077 0,0.676 0.526,0.298 c 0.443,0.235 0.795,0.504 1.065,0.812 0.45,0.513 0.741,1.165 0.864,1.938 0.127,0.795 0.085,1.741 -0.123,2.812 -0.24,1.232 -0.628,2.305 -1.152,3.183 -0.482,0.809 -1.096,1.48 -1.825,2 -0.696,0.494 -1.523,0.869 -2.458,1.109 -0.906,0.236 -1.939,0.355 -3.072,0.355 l -0.73,0 c -0.522,0 -1.029,0.188 -1.427,0.525 -0.399,0.344 -0.663,0.814 -0.744,1.328 l -0.055,0.299 -0.924,5.855 -0.042,0.215 c -0.011,0.068 -0.03,0.102 -0.058,0.125 -0.025,0.021 -0.061,0.035 -0.096,0.035 l -4.5070002,0 z",style:Ye(`fill: ${tt(n)}`)},null,4),Y("path",{d:"m 23.047989,7.667 0,0 0,0 c -0.028,0.179 -0.06,0.362 -0.096,0.55 -1.237,6.351 -5.469,8.545 -10.874,8.545 l -2.7520002,0 c -0.661,0 -1.218,0.48 -1.321,1.132 l 0,0 0,0 -1.409,8.936 -0.399,2.533 c -0.067,0.428 0.263,0.814 0.695,0.814 l 4.8810002,0 c 0.578,0 1.069,-0.42 1.16,-0.99 l 0.048,-0.248 0.919,-5.832 0.059,-0.32 c 0.09,-0.572 0.582,-0.992 1.16,-0.992 l 0.73,0 c 4.729,0 8.431,-1.92 9.513,-7.476 0.452,-2.321 0.218,-4.259 -0.978,-5.622 -0.362,-0.411 -0.811,-0.752 -1.336,-1.03 z",style:Ye(`fill: ${tt(s)}`)},null,4),Y("path",{d:"m 21.753989,7.151 c -0.189,-0.055 -0.384,-0.105 -0.584,-0.15 -0.201,-0.044 -0.407,-0.083 -0.619,-0.117 -0.742,-0.12 -1.555,-0.177 -2.426,-0.177 l -7.352,0 c -0.181,0 -0.353,0.041 -0.507,0.115 C 9.9269888,6.985 9.6749888,7.306 9.6139888,7.699 l -1.564,9.906 -0.045,0.289 c 0.103,-0.652 0.66,-1.132 1.321,-1.132 l 2.7520002,0 c 5.405,0 9.637,-2.195 10.874,-8.545 0.037,-0.188 0.068,-0.371 0.096,-0.55 -0.313,-0.166 -0.652,-0.308 -1.017,-0.429 -0.09,-0.03 -0.183,-0.059 -0.277,-0.087 z",style:Ye(`fill: ${tt(r)}`)},null,4),Y("path",{d:"m 9.6139888,7.699 c 0.061,-0.393 0.313,-0.714 0.6520002,-0.876 0.155,-0.074 0.326,-0.115 0.507,-0.115 l 7.352,0 c 0.871,0 1.684,0.057 2.426,0.177 0.212,0.034 0.418,0.073 0.619,0.117 0.2,0.045 0.395,0.095 0.584,0.15 0.094,0.028 0.187,0.057 0.278,0.086 0.365,0.121 0.704,0.264 1.017,0.429 0.368,-2.347 -0.003,-3.945 -1.272,-5.392 C 20.377989,0.682 17.852989,0 14.621989,0 L 5.2419888,0 c -0.66,0 -1.223,0.48 -1.325,1.133 L 0.00998882,25.898 c -0.077,0.49 0.301,0.932 0.795,0.932 l 5.79099998,0 1.454,-9.225 1.564,-9.906 z",style:Ye(`fill: ${tt(n)}`)},null,4)]))}}),[["__scopeId","data-v-6c3f4e5e"]]),Rc="";const Wr=e=>(dn("data-v-09c4ea7e"),e=e(),pn(),e),Tl=[Wr(()=>Y("path",{d:"M1188.420307 68.911452c16.92562 0 32.642267 14.507674 32.642267 32.642267v822.101535c0 16.92562-14.507674 32.642267-32.642267 32.642267h-1088.075561c-16.92562 0-32.642267-14.507674-32.642267-32.642267v-822.101535c0-16.92562 14.507674-32.642267 32.642267-32.642267h1088.075561m0-68.911452h-1088.075561C44.731995 0 0 45.940968 0 100.344746v822.101535c0 55.612751 44.731995 100.344746 100.344746 100.344746h1088.075561c55.612751 0 100.344746-44.731995 100.344746-100.344746v-822.101535c1.208973-54.403778-44.731995-100.344746-100.344746-100.344746z"},null,-1)),Wr(()=>Y("path",{d:"M41.105077 252.675325h1221.062574v258.720189H41.105077zM177.719008 778.578512h174.09209v71.329398H177.719008zM432.812279 778.578512h259.929161v71.329398H432.812279z"},null,-1))];var Ol=We(Le({props:{size:null,grayscale:{type:Boolean},color:null},setup(e){const t=e,n=$e(t.color);mn(()=>t.color,r=>{n.value=r});const s=cs(()=>`--size: ${t.size}px;fill:${n.value}`);return(r,i)=>(le(),he("svg",{xmlns:"http://www.w3.org/2000/svg",style:Ye([{width:"1.2587890625em",height:"1em","vertical-align":"middle",overflow:"hidden"},tt(s)]),viewBox:"0 0 1289 1024"},Tl,4))}}),[["__scopeId","data-v-09c4ea7e"]]),Kc="";const $l={class:"combined-container"},Ml={class:"combined-tabs"},Al=["onClick"],Nl={class:"combined-components"},kl=["id"];var Fl=We(Le({props:{elements:null},setup(e){const t=e,n=$e(0),s={};function r(a){n.value=a,setTimeout(()=>{l(a)},200)}function i(a){return n.value===a?"white":"black"}function o(a){return n.value===a}function l(a){!t.elements[a].render||s[a]||(t.elements[a].render(document.getElementById(`container-component${a}`)),s[a]=!0)}return Bt(()=>{t.elements.forEach((a,f)=>{l(f)})}),(a,f)=>(le(),he("div",$l,[Y("div",Ml,[(le(!0),he(xe,null,Ir(t.elements,(d,p)=>(le(),he("div",{class:Jt(["combined-tab",p===n.value?"active":""]),onClick:y=>r(p)},[d.icon?(le(),Cr(Fo(d.icon),{key:0,size:20,color:i(p),grayscale:""},null,8,["color"])):vn("",!0),is(" "+Xt(d.title),1)],10,Al))),256))]),Y("div",Nl,[(le(!0),he(xe,null,Ir(t.elements,(d,p)=>To((le(),he("div",{key:`container-component${p}`,class:"container-component",id:`container-component${p}`},null,8,kl)),[[yl,o(p)]])),128))])]))}}),[["__scopeId","data-v-0a65580e"]]);class xn{constructor(t){A(this,"publicKey","");this.publicKey=t}invoke(t,n,s,r,i){const o=new XMLHttpRequest;o||i==null||i(0,""),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){if(o.status===200||o.status===201){r==null||r(o.status,o.responseText);return}i==null||i(o.status,o.responseText)}},o.open(n,t),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("x-publickey",this.publicKey),o.send(String(s))}}function Ul(){return{email:"",amount:0,currency:"",providerId:"",cardNumber:"",cardExpiry:"",cardHolderName:"",expiryDate:"",threeDSServerTransID:""}}var Wc="",zc="";const Rl={class:"message"},Bl={key:0};var Hl=We(Le({props:{message:null,token:null},setup(e){const t=e;return(n,s)=>(le(),he(xe,null,[Y("div",Rl,Xt(t.message),1),t.token?(le(),he("div",Bl,"TokenId = "+Xt(t.token),1)):vn("",!0)],64))}}),[["__scopeId","data-v-0c5d4794"]]);function bt(e,t){it({el:e,component:Ve,props:{error:t}})}function hs(e,t,n){it({el:e,component:Hl,props:lt({message:t},n||{})})}class Ll{constructor(){A(this,"iframeId","threeDsIframeMethod");A(this,"containerId","payfurlContainerFormInvoker");A(this,"iframe",null);A(this,"container",null)}createIFrame(){this.iframe||(this.container=document.createElement("div"),this.container.id=this.containerId,document.body.appendChild(this.container),this.iframe=document.createElement("iframe"),this.iframe.name=this.iframeId,this.iframe.style.display="none",this.container.appendChild(this.iframe))}invoke(t,n,s,r,i){var l;this.createIFrame();const o=document.createElement("form");o.action=t,o.target=this.iframeId,o.method="post",(l=this.container)==null||l.appendChild(o);for(let a in s){const f=document.createElement("input");f.type="hidden",f.name=a,f.value=s[a],o.appendChild(f)}o.submit()}}const zr={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",ARS:"032",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BMD:"060",BND:"096",BOB:"068",BOV:"984",BRL:"986",BSD:"044",BTN:"064",BWP:"072",BYN:"933",BZD:"084",CAD:"124",CDF:"976",CHE:"947",CHF:"756",CHW:"948",CLF:"990",CLP:"152",CNY:"156",COP:"170",COU:"970",CRC:"188",CUC:"931",CUP:"192",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ERN:"232",ETB:"230",EUR:"978",FJD:"242",FKP:"238",GBP:"826",GEL:"981",GHS:"936",GIP:"292",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HRK:"191",HTG:"332",HUF:"348",IDR:"360",ILS:"376",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KPW:"408",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LAK:"418",LBP:"422",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MUR:"480",MVR:"462",MWK:"454",MXN:"484",MXV:"979",MYR:"458",MZN:"943",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PGK:"598",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RUB:"643",RWF:"646",SAR:"682",SBD:"090",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SHP:"654",SLL:"694",SOS:"706",SRD:"968",SSP:"728",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TOP:"776",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",USN:"997",UYI:"940",UYU:"858",UYW:"927",UZS:"860",VED:"926",VES:"928",VND:"704",VUV:"548",WST:"882",XAF:"950",XAG:"961",XAU:"959",XBA:"955",XBB:"956",XBC:"957",XBD:"958",XCD:"951",XDR:"960",XOF:"952",XPD:"964",XPF:"953",XPT:"962",XSU:"994",XTS:"963",XUA:"965",XXX:"999",YER:"886",ZAR:"710",ZMW:"967",ZWL:"932"},Kl={BHD:3,BIF:0,CLF:4,CLP:0,DJF:0,GNF:0,IQD:3,ISK:0,JOD:3,JPY:0,KMF:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,UYW:4,VND:0,VUV:0,XAF:0,XOF:0,XPF:0};function Yr(e){return Boolean(zr[String(e).toUpperCase()])}function jl(e){return zr[String(e).toUpperCase()]||""}function Wl(e){return Kl[String(e).toUpperCase()]||2}function zl(){const e=[1,4,8,15,16,24,32,48];let t=screen.colorDepth;if(e.indexOf(t)==-1){let n=e[0],s=Math.abs(e[0]-t);for(let r=1;r<=e.length;r++){const i=Math.abs(e[r]-t);i<s&&(n=e[r],s=i)}t=n}return t}var Jc="";const Yl={},Jl=e=>(dn("data-v-ad18c358"),e=e(),pn(),e),Xl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},ql=[Jl(()=>Y("polygon",{points:"39 10.44 37.56 9 24 22.56 10.44 9 9 10.44 22.56 24 9 37.56 10.44 39 24 25.44 37.56 39 39 37.56 25.44 24 39 10.44"},null,-1))];function Vl(e,t){return le(),he("svg",Xl,ql)}var Zl=We(Yl,[["render",Vl],["__scopeId","data-v-ad18c358"]]),qc="",Vc="";const Gl=e=>(dn("data-v-7bf4e048"),e=e(),pn(),e),Ql={class:"mask"},ec={class:"wrapper"},tc={class:"container"},nc=Gl(()=>Y("iframe",{name:"ThreeDsChallengeIFrame"},null,-1)),sc=["action"],rc=["value"];var ic=We(Le({props:{threeDSServerTransID:null,acsTransID:null,formAction:null},emits:["close","submit"],setup(e,{emit:t}){const n=e,s=$e(null),r=JSON.stringify({threeDSServerTransID:n.threeDSServerTransID,acsTransID:n.acsTransID,messageVersion:"2.1.0",messageType:"CReq",challengeWindowSize:"01"}),i=encodeURI(window.btoa(r).replace(/=*$/,""));return Bt(()=>{var o;(o=s.value)==null||o.submit()}),(o,l)=>(le(),he("div",Ql,[Y("div",ec,[Y("div",tc,[Ie(Zl,{onClick:l[0]||(l[0]=a=>t("close"))}),nc,Y("form",{action:n.formAction,target:"ThreeDsChallengeIFrame",method:"post",ref_key:"form",ref:s},[Y("input",{type:"hidden",name:"creq",value:tt(i)},null,8,rc)],8,sc)])])]))}}),[["__scopeId","data-v-7bf4e048"]]),Gc="";const Jr=e=>(dn("data-v-4280055c"),e=e(),pn(),e),oc={x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},lc=["stop-color"],cc=["stop-color"],ac=["stop-color"],uc={fill:"none","fill-rule":"evenodd"},fc={transform:"translate(1 1)"},hc=Jr(()=>Y("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:"url(#a)","stroke-width":"2"},[Y("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})],-1)),dc=["fill"],pc=[Jr(()=>Y("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"},null,-1))];var Xr=We(Le({props:{color:{default:"#1a82b7"},size:{default:50}},setup(e){const t=e,n=$e(t.color),s=$e(t.size),r=cs(()=>`--size: ${s.value}px`);return(i,o)=>(le(),he("svg",{id:"spinner",width:"38",height:"38",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",style:Ye(tt(r))},[Y("defs",null,[Y("linearGradient",oc,[Y("stop",{"stop-color":n.value,"stop-opacity":"0",offset:"0%"},null,8,lc),Y("stop",{"stop-color":n.value,"stop-opacity":".631",offset:"63.146%"},null,8,cc),Y("stop",{"stop-color":n.value,offset:"100%"},null,8,ac)])]),Y("g",uc,[Y("g",fc,[hc,Y("circle",{fill:n.value,cx:"36",cy:"18",r:"1"},pc,8,dc)])])],4))}}),[["__scopeId","data-v-4280055c"]]);let ds=()=>{};function qr(e){ds();const t=e.getElementsByTagName("iframe");t[0]&&(t[0].style.display="none");const n=it({el:e,component:Xr});ds=()=>{t[0]&&(t[0].style.display="visible"),n.destroy()}}function zt(e){ds()}class mc{constructor(t,n,s,r){A(this,"container",document.body);A(this,"iframe",null);A(this,"log");A(this,"apiUrl","");A(this,"tokenise");A(this,"failureCallback",null);A(this,"successCallback",null);A(this,"threeDSData",Ul());A(this,"threeDSDestroy",null);A(this,"threeDSCompleteHandler",null);A(this,"httpInvoker",null);A(this,"formInvoker",null);this.log=t,this.apiUrl=s,this.tokenise=r,this.httpInvoker=new xn(n),this.formInvoker=new Ll,window.addEventListener("message",this.messageHandler.bind(this))}messageHandler(t){var n,s,r,i;if(!(!((n=t==null?void 0:t.data)!=null&&n.status)||((s=t==null?void 0:t.data)==null?void 0:s.status)==="failure")){if(t.data.status==="3ds_method_invocation_complete"){t.stopPropagation(),zt(this.container),this.iframe&&(this.iframe.style.visibility="visible"),this.log("3Ds Method invocation complete",this.threeDSData),this.threeDsAuth(this.threeDSData.cardNumber,this.threeDSData.expiryDate,this.threeDSData.cardHolderName,this.threeDSData.email,this.threeDSData.amount,this.threeDSData.currency,this.threeDSData.threeDSServerTransID,!0);return}if(t.data.status==="3ds_challenge_complete"){t.stopPropagation(),zt(this.container),this.iframe&&(this.iframe.style.visibility="visible"),this.log("3Ds Challenge complete",t.data);const o=JSON.parse(window.atob(t.data.cres));this.log("cresData",o),(r=this.threeDSDestroy)==null||r.call(this),["Y","A"].includes(o.transStatus)?this.threeDsPostAuth(this.threeDSData.threeDSServerTransID):["N","U","R"].includes(o.transStatus)&&(this.log("Failed 3DS Challenge",t.data),bt(this.container,"Authentication Failed"),(i=this.failureCallback)==null||i.call(this,{error:"Failed 3ds Challenge"}));return}}}addThreeDsWithFullParameters(t,n,s,r,i,o,l){this.log("[addThreeDsWithFullParameters]",{cardNumber:n,cardExpiry:s,cardHolderName:r,email:i,amount:o,currency:l}),this.container=t,this.threeDSData.cardNumber=n,this.threeDSData.expiryDate=s,this.threeDSData.cardHolderName=r,this.threeDSData.email=i,this.threeDSData.amount=o,this.threeDSData.currency=l,this.addThreeDs(this.container)}addThreeDs(t,n){this.log("[addThreeDs]",n,t),this.container=t,n&&(this.threeDSData=lt(lt({},this.threeDSData),n)),qr(this.container),this.threeDsPreauth()}requestThreeDs(t,n,s,r,i){var o;this.log("[requestThreeDs]",{iframe:n,container:t,validateCard:s,threeDSData:i}),n&&(this.iframe=n,this.container=t||document.body,this.iframe.style.visibility="hidden",qr(this.container),this.threeDSCompleteHandler=r,i&&(this.threeDSData=lt(lt({},this.threeDSData),i)),(o=n.contentWindow)==null||o.postMessage({type:"request_card",validateCard:s},"*"))}threeDsPostAuth(t){var i;this.log("[threeDsPostAuth]",t);const n=(o,l)=>{var a;this.log("unable to perform postauth for 3Ds"),bt(this.container,"Authentication Error"),(a=this.failureCallback)==null||a.call(this,{error:"unable to perform postauth for 3Ds",body:l})},s=(o,l)=>{var f,d;this.log("postauth success for 3Ds",l);const a=JSON.parse(l);this.log(a),(f=this.threeDSCompleteHandler)==null||f.call(this,a),hs(this.container,"Success"),(d=this.successCallback)==null||d.call(this,a)},r={threeDSServerTransID:t};(i=this.httpInvoker)==null||i.invoke(this.apiUrl+"/3ds/postauth","POST",JSON.stringify(r),s.bind(this),n.bind(this))}threeDsPreauth(){var r;this.log("[threeDsPreauth]",this.threeDSData);const t=(i,o)=>{var l;this.log("[preauthFailureCallback]",i,o),zt(this.container),this.iframe&&(this.iframe.style.visibility="visible"),this.log("unable to perform preauth for 3Ds"),bt(this.container,"Authentication Error"),(l=this.failureCallback)==null||l.call(this,{error:"unable to perform preauth for 3Ds",body:o})},n=(i,o)=>{this.log("[preauthSuccessCallback]",i,o),this.log("[this.threeDSData]",this.threeDSData);const l=JSON.parse(o);if(this.log(l),this.threeDSData.threeDSServerTransID=l.threeDSServerTransID,l.threeDSMethodURL){this.threeDsMethodInvoke(l.threeDSServerTransID,l.threeDSMethodURL);return}this.threeDsAuth(this.threeDSData.cardNumber,this.threeDSData.cardExpiry,this.threeDSData.cardHolderName,this.threeDSData.email,this.threeDSData.amount,this.threeDSData.currency,l.threeDSServerTransID,!1)},s={acctNumber:this.threeDSData.cardNumber,providerId:this.threeDSData.providerId};(r=this.httpInvoker)==null||r.invoke(this.apiUrl+"/3ds/preauth","POST",JSON.stringify(s),n.bind(this),t.bind(this))}threeDsMethodInvoke(t,n){var i;this.log("[threeDsMethodInvoke]",{threeDSServerTransID:t,threeDSMethodURL:n}),this.log("[this.threeDSData]",this.threeDSData);const s={threeDSServerTransID:t,threeDSMethodNotificationURL:this.apiUrl+"/3ds/method_invocation"},r=encodeURI(window.btoa(JSON.stringify(s)).replace(/=*$/,""));(i=this.formInvoker)==null||i.invoke(n,"POST",{threeDSMethodData:r})}threeDsAuth(t,n,s,r,i,o,l,a){var q;this.log("[threeDsAuth]",{cardNumber:t,cardExpiry:n,cardHolderName:s,email:r,amount:i,currency:o,threeDSServerTransID:l,isMethodPerformed:a});const f=(H,L)=>{var te;zt(this.container),this.log("unable to perform auth for 3Ds"),bt(this.container,"Authentication Error"),(te=this.failureCallback)==null||te.call(this,{error:"unable to perform auth for 3Ds",body:L})},d=(H,L)=>{var se;this.log("auth success for 3Ds");const te=JSON.parse(L);te.transStatus==="C"?this.threeDsChallenge(te.threeDSServerTransID,te.acsTransID,te.acsURL):["N","U","R"].includes(te.transStatus)?(this.log("Authentication denied"),bt(this.container,"Authentication Error"),(se=this.failureCallback)==null||se.call(this,{error:"Authentication denied 3Ds",body:L})):(this.log("3DS challenge not required, tranStatus: "+te.transStatus),this.tokenise(""))},p=jl(o),y=Wl(o),P=new Date,R={acctNumber:t,notificationURL:this.apiUrl+"/3ds/auth_complete",threeDSCompInd:a?"Y":"U",threeDSRequestorURL:window.location.href,cardExpiryDate:n,email:r,threeDSRequestorAuthenticationInd:"01",cardholderName:s,deviceChannel:"02",browserJavascriptEnabled:!0,browserAcceptHeader:"text/html,application/xhtml+xml,application/xml; q=0.9,*/*;q=0.8",browserJavaEnabled:!1,browserLanguage:window.navigator.language,browserColorDepth:String(zl()),browserScreenHeight:screen.height+"",browserScreenWidth:screen.width+"",browserTZ:P.getTimezoneOffset()/60+"",browserUserAgent:navigator.userAgent,messageCategory:"01",messageType:"AReq",messageVersion:"2.1.0",purchaseAmount:i*Math.pow(10,y)+"",payTokenInd:!0,purchaseCurrency:p,purchaseExponent:y+"",purchaseDate:P.toISOString().slice(0,19).replace(/[-:T]/g,""),threeDSServerTransID:l,transType:"01"};(q=this.httpInvoker)==null||q.invoke(this.apiUrl+"/3ds/auth","POST",JSON.stringify(R),d.bind(this),f.bind(this))}threeDsChallenge(t,n,s){this.log("[threeDsChallenge]",{threeDSServerTransID:t,acsURL:s,acsTransID:n});const{destroy:r}=it({el:document.body,component:ic,props:{threeDSServerTransID:t,acsTransID:n,formAction:s},on:{close:()=>{zt(this.container),r(),this.threeDSDestroy=null}}});this.threeDSDestroy=r}}var ta="",na="";const gc={class:"loading"},_c=is(" Paypal ");var bc=We(Le({setup(e){return(t,n)=>(le(),he("div",gc,[Ie(jr,{size:20,grayscale:""}),_c,Ie(Xr,{size:20})]))}}),[["__scopeId","data-v-ed95d8b0"]]);const yc=Le({props:{el:null,clientId:null,currency:null,enablePayIn4:{type:Boolean},buttonStyle:null,checkoutId:null},emits:["approve"],setup(e,{emit:t}){const n=e,s=`https://www.paypal.com/sdk/js?client-id=${n.clientId}¤cy=${n.currency.toUpperCase()}&disable-funding=card${n.enablePayIn4?"&enable-funding=paylater":""}`;function r(){window.paypal.Buttons({style:{color:n.buttonStyle},createOrder:function(){return n.checkoutId},onApprove:function(i,o){t("approve",{data:i,actions:o})}}).render(n.el)}return Bt(()=>{window.paypal=null;const i=document.createElement("script");i.src=s,i.onload=r,document.body.appendChild(i)}),(i,o)=>null}});class Dc{constructor(t,n,s,r){A(this,"container",document.body);A(this,"log");A(this,"apiUrl","");A(this,"getPaymentOptions");A(this,"failureCallback",null);A(this,"successCallback",null);A(this,"httpInvoker",null);A(this,"paypalData",{});this.log=t,this.apiUrl=s,this.getPaymentOptions=r,this.httpInvoker=new xn(n)}addPaypal(t,n,s,r,i){if(this.log("[addPaypal]",{amount:n,currency:s,providerId:r,options:i}),this.container=t,!Yr(s))throw new Ve("invalid currency: "+s);if(!Pl(n))throw new Ve("invalid amount: "+n);const o=(l,a,f)=>{var q,H;if(this.log("[getPaymentOptions][callback]",{hasCardProviders:l,required3dsProvider:a,providerId:f}),!f)throw new Ve("invalid providerId: "+f);const{destroy:d}=it({el:this.container,component:bc});i||(i={hideShipping:!1,paypalButtonStyle:null,paypalEnablePayIn4:!1,transfer:null});const p=this.apiUrl+"/payment_method/checkout",y={ProviderId:f,Amount:n,Currency:s,Options:{HideShipping:i.hideShipping?"true":"false"}};(q=i.transfer)!=null&&q.amount&&(y.Transfer={Account:i.transfer.account,Amount:i.transfer.amount});const P=(L,te)=>{throw new Ve("failed to configure paypal, error: "+te)},R=(L,te)=>{const se=JSON.parse(te);this.log("paypal success",se),d();let ie=null;try{const k=window.atob(se.checkoutId);ie=JSON.parse(k)}catch(k){this.log("invalid checkoutId",k);return}const Se=this.successCallback||(k=>{this.log("successPaypalHandler",k),hs(this.container,"paypal login success",{token:k.data.tokenId})}),Pe=(k,pe)=>{try{const ue=JSON.parse(pe);this.log("[tokeniseCheckoutSuccessHandler]",ue),Se({data:{tokenId:ue.tokenId,payer:this.paypalData.payer}})}catch(ue){this.log("error parsing tokenise response",ue)}},Ze=this.failureCallback||(k=>{bt(this.container,"paypal login failed")}),Ne=function(k,pe){Ze({error:"unable to tokenise payment information"})},J=ie.CheckoutId;it({el:this.container,component:yc,props:{el:this.container,clientId:ie.AdditionalParameters,currency:s,enablePayIn4:Boolean(i.paypalEnablePayIn4),buttonStyle:i.paypalButtonStyle,checkoutId:J},on:{approve:({data:k,actions:pe})=>{this.log("approved",{data:k,actions:pe});const ue=pe.order.get();this.log("order",ue);const N=setInterval(()=>{var x;if(this.log("setInterval resolved = "+ue.resolved),ue.resolved){clearInterval(N),this.paypalData.payer=ue.value.payer;const w=this.apiUrl+"/payment_method/tokenise/checkout?ReferenceId="+J;(x=this.httpInvoker)==null||x.invoke(w,"POST","",Pe,Ne)}},200)}}})};(H=this.httpInvoker)==null||H.invoke(p,"POST",JSON.stringify(y),R,P)};r?o(!1,"",r):this.getPaymentOptions(n,s,"",o)}}var ra="";const vc=["src"],Sc={key:0,id:"threeDs"};var wc=We(Le({props:{debug:{type:Boolean},apiUrl:null,iframeSrc:null,publicKey:null,providerId:null,amount:null,currency:null,showEmail:{type:Boolean},threeDSEnabled:{type:Boolean},showSubmitButton:{type:Boolean}},emits:["load","submit"],setup(e,{emit:t}){const n=e,s=$e(null),r=$e(n.iframeSrc+"?v="+Math.random()),i=$e(n.threeDSEnabled),o=$e(n.showSubmitButton),l=$e(!1);function a(p){var y,P;!((y=p==null?void 0:p.data)!=null&&y.status)||p.data.status==="iframe-changed"&&(p.stopPropagation(),d(((P=p.data.message)==null?void 0:P.height)||0))}Zn(()=>{window.removeEventListener("message",a)}),Bt(()=>{window.addEventListener("message",a)});function f(){t("load",s.value)}function d(p){const y=s.value,P=p||240;y==null||y.setAttribute("style",`height: ${P+20}px`),l.value=!0}return(p,y)=>(le(),he(xe,null,[Y("iframe",{src:r.value,onLoad:f,ref_key:"iframe",ref:s},null,40,vc),i.value?(le(),he("div",Sc)):vn("",!0),o.value&&l.value?(le(),he("button",{key:1,onClick:y[0]||(y[0]=P=>t("submit"))},"Submit")):vn("",!0)],64))}}),[["__scopeId","data-v-97ea4dac"]]);class Cc{constructor(t,n){A(this,"container",document.body);A(this,"threeDsContainer",document.body);A(this,"iframe",null);A(this,"log");A(this,"debug",!1);A(this,"environment",_t.DEVELOPMENT);A(this,"apiUrl","");A(this,"url","");A(this,"publicKey","");A(this,"getPaymentOptions");A(this,"email","");A(this,"threeDSEnabled",!1);A(this,"threeDsProcessor",null);A(this,"failureCallback",null);A(this,"successCallback",null);A(this,"httpInvoker");this.log=t,this.debug=n.debug,this.environment=n.environment||_t.DEVELOPMENT,this.url=n.url,this.apiUrl=n.apiUrl,this.publicKey=n.publicKey,this.getPaymentOptions=n.getPaymentOptions,this.httpInvoker=new xn(this.publicKey),window.addEventListener("message",this.messageHandler.bind(this))}addThreeDsProcessor(t){this.threeDsProcessor=t}addCard(t,n,s,r,i){return this.log("[addCard]",{providerId:n,amount:s,currency:r,options:i}),i!=null&&i.threeDSEnabled&&(Kr(s,Cn,"missing or invalid amount option",this.failureCallback),Kr(r,Yr,"missing or invalid currency option",this.failureCallback),this.threeDSEnabled=!0),this.container=t||document.body,this.email=(i==null?void 0:i.threeDSEmail)||"",it({el:this.container,component:wc,props:{debug:this.debug,apiUrl:this.apiUrl,iframeSrc:this.url,publicKey:this.publicKey,providerId:n,amount:s,currency:r,showEmail:!Boolean(this.email),threeDSEnabled:this.threeDSEnabled,showSubmitButton:!0},on:{load:o=>{var l;this.iframe=o,(l=o==null?void 0:o.contentWindow)==null||l.postMessage({type:"init",debug:this.debug,publicKey:this.publicKey,providerId:n,apiUrl:this.apiUrl,amount:s,currency:r,showEmail:!Boolean(this.email)},"*")},submit:()=>{var o;if(this.log("submit card form"),!this.threeDSEnabled){this.tokenise(null);return}this.threeDsContainer=document.getElementById("threeDs")||document.body,(o=this.threeDsProcessor)==null||o.requestThreeDs(this.threeDsContainer,this.iframe,this.environment===_t.DEVELOPMENT||this.environment===_t.SANDBOX,l=>{this.log("threeDs, postAuthData",l),this.tokenise(l.threeDSServerTransID)},{email:i==null?void 0:i.threeDSEmail,amount:s,currency:r,providerId:(i==null?void 0:i.threeDsProviderId)||""})}}}),this}messageHandler(t){var n,s,r;if(!!((n=t==null?void 0:t.data)!=null&&n.status)){if(this.log("[sdk][cardProcessor]: message received",t.data),t.data.status==="failure"){this.log("unable to tokenise payment information",t.data),bt(this.container,"Unable to tokenise payment information"),(s=this.failureCallback)==null||s.call(this,{error:"Unable to tokenise payment information"});return}if(t.data.status==="success"){t.stopPropagation(),this.iframe=null,hs(this.container,"Success",{token:t.data.tokenId}),this.successCallback&&this.successCallback({token:t.data.tokenId});return}if(t.data.status=="card_data"){t.stopPropagation();const i=t.data.message.expiryDate.split("/"),o={cardNumber:t.data.message.cardNumber,cardExpiry:i[1]+i[0],cardHolderName:t.data.message.cardholder};t.data.message.email&&(o.email=t.data.message.email);const l=this.threeDSEnabled?this.threeDsContainer:this.container;(r=this.threeDsProcessor)==null||r.addThreeDs(l||document.body,o);return}}}tokenise(t){var n;!this.iframe||(n=this.iframe.contentWindow)==null||n.postMessage({type:"submit",threeDSServerTransID:t},"*")}}class xc{constructor(){A(this,"environment",_t.DEVELOPMENT);A(this,"debug",!1);A(this,"config",Lr(_t.PRODUCTION));A(this,"publicKey","");A(this,"httpInvoker",null);A(this,"threeDsProcessor",null);A(this,"paypalProcessor",null);A(this,"cardProcessor",null)}init(t,n,s){return this.environment=t,this.debug=s,this.publicKey=n,this.config=Lr(t),this.httpInvoker=new xn(n),this.cardProcessor=new Cc(this.log.bind(this),{debug:this.debug,environment:this.environment,publicKey:this.publicKey,url:this.config.url,apiUrl:this.config.apiUrl,getPaymentOptions:this.getPaymentOptions.bind(this)}),this.threeDsProcessor=new mc(this.log.bind(this),n,this.config.apiUrl,this.cardProcessor.tokenise.bind(this.cardProcessor)),this.paypalProcessor=new Dc(this.log.bind(this),n,this.config.apiUrl,this.getPaymentOptions.bind(this)),this.cardProcessor.addThreeDsProcessor(this.threeDsProcessor),this.loadCss(),this}loadCss(){const t=document.createElement("link");t.href=this.config.cssUrl+"style.css?v="+Math.random(),t.rel="stylesheet",t.media="screen,print",document.getElementsByTagName("head")[0].appendChild(t)}log(t,...n){!this.debug||console.log(t,n)}addCard(t,n,s){var i;if(!Cn(n))throw new Ve("missing parameter: providerId");const r=document.getElementById(t)||document.body;return(i=this.cardProcessor)==null||i.addCard(r,n,0,"",s),this}addCardLeastCost(t,n,s,r){var o;if(!Cn(n))throw new Ve("missing parameter: amount");const i=document.getElementById(t)||document.body;return(o=this.cardProcessor)==null||o.addCard(i,"",n,s,r),this}_addDropIn(t,n,s,r){this.log("[addDropIn]",{dropinParentId:t,options:r,amount:n,currency:s});const i=(o,l,a)=>{var y;this.log("[paymentMethodsCallback]",{hasCardProviders:o,required3dsProvider:l,paypalProviderId:a});const f=o&&a,d=l?{threeDSEnabled:!0,threeDsProviderId:l,threeDSEmail:(r==null?void 0:r.threeDSEmail)||""}:{threeDSEnabled:!1,threeDsProviderId:"",threeDSEmail:(r==null?void 0:r.threeDSEmail)||""};if(!f&&o){const P=document.getElementById(t)||document.body;(y=this.cardProcessor)==null||y.addCard(P,(r==null?void 0:r.cardProviderId)||"",n,s,d);return}const p={hideShipping:!1,paypalButtonStyle:null,paypalEnablePayIn4:!1,transfer:null};if(!f&&a){this.addPaypal(t,n,s,a,p);return}f&&it({el:document.getElementById(t),component:Fl,props:{elements:[{title:"Credit Card",icon:Ol,render:P=>{var R;(R=this.cardProcessor)==null||R.addCard(P,(r==null?void 0:r.cardProviderId)||"",n,s,d)}},{title:"Paypal",icon:jr,render:P=>{var R;(R=this.paypalProcessor)==null||R.addPaypal(P,n,s,a,p)}}]}})};return r!=null&&r.paypalProviderId?this.getPaymentOptions(n,s,r.paypalProviderId,i):this.getPaymentOptions(n,s,"",i),this}addDropIn(t,n,s,r){if(!Cn(t))throw new Ve("missing parameter: dropinParentId");return this._addDropIn(t,n,s,r),this}addPaypal(t,n,s,r,i){var o;return(o=this.paypalProcessor)==null||o.addPaypal(document.getElementById(t)||document.body,n,s,r,i),this}addThreeDsWithFullParameters(t,n,s,r,i,o,l){var f;const a=document.getElementById(t)||document.body;return(f=this.threeDsProcessor)==null||f.addThreeDsWithFullParameters(a,n,s,r,i,o,l),this}getPaymentOptions(t,n,s,r){var a;this.log("getPaymentOptions",{amount:t,currency:n,overridePaypalProviderId:s});const i=this.config.apiUrl+"/info/providers?amount="+t+"¤cy="+n,o=(f,d)=>{throw new Ve("failed to configure, error: "+d)},l=(f,d)=>{const p=JSON.parse(d);let y=null;s?y=s:p.paypalProviders.length&&(y=p.paypalProviders[0]),this.log("getPaymentOptions",y,p),r(p.hasCardProviders,p.required3dsProvider,y)};(a=this.httpInvoker)==null||a.invoke(i,"GET","",l,o)}}var Ic=new xc;return Ic});
|