(function(en){typeof define=="function"&&define.amd?define(en):en()})(function(){"use strict";function en(t,e){const n=Object.create(null),i=t.split(",");for(let s=0;s<i.length;s++)n[i[s]]=!0;return e?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const _t={},nn=[],Yt=()=>{},Qa=()=>!1,Ya=/^on[^a-z]/,Gn=t=>Ya.test(t),is=t=>t.startsWith("onUpdate:"),kt=Object.assign,ss=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Ga=Object.prototype.hasOwnProperty,ft=(t,e)=>Ga.call(t,e),Y=Array.isArray,sn=t=>ei(t)==="[object Map]",Ao=t=>ei(t)==="[object Set]",it=t=>typeof t=="function",wt=t=>typeof t=="string",ti=t=>typeof t=="symbol",yt=t=>t!==null&&typeof t=="object",Po=t=>(yt(t)||it(t))&&it(t.then)&&it(t.catch),Ro=Object.prototype.toString,ei=t=>Ro.call(t),tu=t=>ei(t).slice(8,-1),Bo=t=>ei(t)==="[object Object]",os=t=>wt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ni=en(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ii=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},eu=/-(\w)/g,ne=ii(t=>t.replace(eu,(e,n)=>n?n.toUpperCase():"")),nu=/\B([A-Z])/g,on=ii(t=>t.replace(nu,"-$1").toLowerCase()),si=ii(t=>t.charAt(0).toUpperCase()+t.slice(1)),rs=ii(t=>t?`on${si(t)}`:""),He=(t,e)=>!Object.is(t,e),ls=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},oi=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},iu=t=>{const e=parseFloat(t);return isNaN(e)?t:e},su=t=>{const e=wt(t)?Number(t):NaN;return isNaN(e)?t:e};let Oo;const as=()=>Oo||(Oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(t){if(Y(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],s=wt(i)?au(i):rn(i);if(s)for(const o in s)e[o]=s[o]}return e}else if(wt(t)||yt(t))return t}const ou=/;(?![^(]*\))/g,ru=/:([^]+)/,lu=/\/\*[^]*?\*\//g;function au(t){const e={};return t.replace(lu,"").split(ou).forEach(n=>{if(n){const i=n.split(ru);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function N(t){let e="";if(wt(t))e=t;else if(Y(t))for(let n=0;n<t.length;n++){const i=N(t[n]);i&&(e+=i+" ")}else if(yt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const uu=en("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Io(t){return!!t||t===""}const V=t=>wt(t)?t:t==null?"":Y(t)||yt(t)&&(t.toString===Ro||!it(t.toString))?JSON.stringify(t,Ho,2):String(t),Ho=(t,e)=>e&&e.__v_isRef?Ho(t,e.value):sn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s])=>(n[`${i} =>`]=s,n),{})}:Ao(e)?{[`Set(${e.size})`]:[...e.values()]}:yt(e)&&!Y(e)&&!Bo(e)?String(e):e;let Ht;class No{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ht,!e&&Ht&&(this.index=(Ht.scopes||(Ht.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ht;try{return Ht=this,e()}finally{Ht=n}}}on(){Ht=this}off(){Ht=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Fo(t){return new No(t)}function cu(t,e=Ht){e&&e.active&&e.effects.push(t)}function us(){return Ht}function Do(t){Ht&&Ht.cleanups.push(t)}const cs=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Vo=t=>(t.w&we)>0,jo=t=>(t.n&we)>0,du=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=we},fu=t=>{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i<e.length;i++){const s=e[i];Vo(s)&&!jo(s)?s.delete(t):e[n++]=s,s.w&=~we,s.n&=~we}e.length=n}},ri=new WeakMap;let bn=0,we=1;const ds=30;let Gt;const Ne=Symbol(""),fs=Symbol("");class ps{constructor(e,n=null,i){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,cu(this,i)}run(){if(!this.active)return this.fn();let e=Gt,n=Ce;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Gt,Gt=this,Ce=!0,we=1<<++bn,bn<=ds?du(this):Uo(this),this.fn()}finally{bn<=ds&&fu(this),we=1<<--bn,Gt=this.parent,Ce=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Gt===this?this.deferStop=!0:this.active&&(Uo(this),this.onStop&&this.onStop(),this.active=!1)}}function Uo(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let Ce=!0;const Wo=[];function ln(){Wo.push(Ce),Ce=!1}function an(){const t=Wo.pop();Ce=t===void 0?!0:t}function Rt(t,e,n){if(Ce&&Gt){let i=ri.get(t);i||ri.set(t,i=new Map);let s=i.get(n);s||i.set(n,s=cs()),Zo(s)}}function Zo(t,e){let n=!1;bn<=ds?jo(t)||(t.n|=we,n=!Vo(t)):n=!t.has(Gt),n&&(t.add(Gt),Gt.deps.push(t))}function fe(t,e,n,i,s,o){const r=ri.get(t);if(!r)return;let l=[];if(e==="clear")l=[...r.values()];else if(n==="length"&&Y(t)){const a=Number(i);r.forEach((c,u)=>{(u==="length"||!ti(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(r.get(n)),e){case"add":Y(t)?os(n)&&l.push(r.get("length")):(l.push(r.get(Ne)),sn(t)&&l.push(r.get(fs)));break;case"delete":Y(t)||(l.push(r.get(Ne)),sn(t)&&l.push(r.get(fs)));break;case"set":sn(t)&&l.push(r.get(Ne));break}if(l.length===1)l[0]&&hs(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);hs(cs(a))}}function hs(t,e){const n=Y(t)?t:[...t];for(const i of n)i.computed&&zo(i);for(const i of n)i.computed||zo(i)}function zo(t,e){(t!==Gt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function pu(t,e){var n;return(n=ri.get(t))==null?void 0:n.get(e)}const hu=en("__proto__,__v_isRef,__isVue"),qo=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ti)),Ko=gu();function gu(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=lt(this);for(let o=0,r=this.length;o<r;o++)Rt(i,"get",o+"");const s=i[e](...n);return s===-1||s===!1?i[e](...n.map(lt)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){ln();const i=lt(this)[e].apply(this,n);return an(),i}}),t}function mu(t){const e=lt(this);return Rt(e,"has",t),e.hasOwnProperty(t)}class Jo{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,i){const s=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw"&&i===(s?o?Lu:ir:o?nr:er).get(e))return e;const r=Y(e);if(!s){if(r&&ft(Ko,n))return Reflect.get(Ko,n,i);if(n==="hasOwnProperty")return mu}const l=Reflect.get(e,n,i);return(ti(n)?qo.has(n):hu(n))||(s||Rt(e,"get",n),o)?l:Ct(l)?r&&os(n)?l:l.value:yt(l)?s?sr(l):pi(l):l}}class Xo extends Jo{constructor(e=!1){super(!1,e)}set(e,n,i,s){let o=e[n];if(un(o)&&Ct(o)&&!Ct(i))return!1;if(!this._shallow&&(!hi(i)&&!un(i)&&(o=lt(o),i=lt(i)),!Y(e)&&Ct(o)&&!Ct(i)))return o.value=i,!0;const r=Y(e)&&os(n)?Number(n)<e.length:ft(e,n),l=Reflect.set(e,n,i,s);return e===lt(s)&&(r?He(i,o)&&fe(e,"set",n,i):fe(e,"add",n,i)),l}deleteProperty(e,n){const i=ft(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&i&&fe(e,"delete",n,void 0),s}has(e,n){const i=Reflect.has(e,n);return(!ti(n)||!qo.has(n))&&Rt(e,"has",n),i}ownKeys(e){return Rt(e,"iterate",Y(e)?"length":Ne),Reflect.ownKeys(e)}}class _u extends Jo{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const yu=new Xo,vu=new _u,wu=new Xo(!0),gs=t=>t,li=t=>Reflect.getPrototypeOf(t);function ai(t,e,n=!1,i=!1){t=t.__v_raw;const s=lt(t),o=lt(e);n||(He(e,o)&&Rt(s,"get",e),Rt(s,"get",o));const{has:r}=li(s),l=i?gs:n?ys:Sn;if(r.call(s,e))return l(t.get(e));if(r.call(s,o))return l(t.get(o));t!==s&&t.get(e)}function ui(t,e=!1){const n=this.__v_raw,i=lt(n),s=lt(t);return e||(He(t,s)&&Rt(i,"has",t),Rt(i,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function ci(t,e=!1){return t=t.__v_raw,!e&&Rt(lt(t),"iterate",Ne),Reflect.get(t,"size",t)}function Qo(t){t=lt(t);const e=lt(this);return li(e).has.call(e,t)||(e.add(t),fe(e,"add",t,t)),this}function Yo(t,e){e=lt(e);const n=lt(this),{has:i,get:s}=li(n);let o=i.call(n,t);o||(t=lt(t),o=i.call(n,t));const r=s.call(n,t);return n.set(t,e),o?He(e,r)&&fe(n,"set",t,e):fe(n,"add",t,e),this}function Go(t){const e=lt(this),{has:n,get:i}=li(e);let s=n.call(e,t);s||(t=lt(t),s=n.call(e,t)),i&&i.call(e,t);const o=e.delete(t);return s&&fe(e,"delete",t,void 0),o}function tr(){const t=lt(this),e=t.size!==0,n=t.clear();return e&&fe(t,"clear",void 0,void 0),n}function di(t,e){return function(i,s){const o=this,r=o.__v_raw,l=lt(r),a=e?gs:t?ys:Sn;return!t&&Rt(l,"iterate",Ne),r.forEach((c,u)=>i.call(s,a(c),a(u),o))}}function fi(t,e,n){return function(...i){const s=this.__v_raw,o=lt(s),r=sn(o),l=t==="entries"||t===Symbol.iterator&&r,a=t==="keys"&&r,c=s[t](...i),u=n?gs:e?ys:Sn;return!e&&Rt(o,"iterate",a?fs:Ne),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function be(t){return function(...e){return t==="delete"?!1:this}}function Cu(){const t={get(o){return ai(this,o)},get size(){return ci(this)},has:ui,add:Qo,set:Yo,delete:Go,clear:tr,forEach:di(!1,!1)},e={get(o){return ai(this,o,!1,!0)},get size(){return ci(this)},has:ui,add:Qo,set:Yo,delete:Go,clear:tr,forEach:di(!1,!0)},n={get(o){return ai(this,o,!0)},get size(){return ci(this,!0)},has(o){return ui.call(this,o,!0)},add:be("add"),set:be("set"),delete:be("delete"),clear:be("clear"),forEach:di(!0,!1)},i={get(o){return ai(this,o,!0,!0)},get size(){return ci(this,!0)},has(o){return ui.call(this,o,!0)},add:be("add"),set:be("set"),delete:be("delete"),clear:be("clear"),forEach:di(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=fi(o,!1,!1),n[o]=fi(o,!0,!1),e[o]=fi(o,!1,!0),i[o]=fi(o,!0,!0)}),[t,n,e,i]}const[bu,xu,Su,ku]=Cu();function ms(t,e){const n=e?t?ku:Su:t?xu:bu;return(i,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?i:Reflect.get(ft(n,s)&&s in i?n:i,s,o)}const Eu={get:ms(!1,!1)},Tu={get:ms(!1,!0)},$u={get:ms(!0,!1)},er=new WeakMap,nr=new WeakMap,ir=new WeakMap,Lu=new WeakMap;function Mu(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Au(t){return t.__v_skip||!Object.isExtensible(t)?0:Mu(tu(t))}function pi(t){return un(t)?t:_s(t,!1,yu,Eu,er)}function Pu(t){return _s(t,!1,wu,Tu,nr)}function sr(t){return _s(t,!0,vu,$u,ir)}function _s(t,e,n,i,s){if(!yt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const r=Au(t);if(r===0)return t;const l=new Proxy(t,r===2?i:n);return s.set(t,l),l}function xe(t){return un(t)?xe(t.__v_raw):!!(t&&t.__v_isReactive)}function un(t){return!!(t&&t.__v_isReadonly)}function hi(t){return!!(t&&t.__v_isShallow)}function or(t){return xe(t)||un(t)}function lt(t){const e=t&&t.__v_raw;return e?lt(e):t}function xn(t){return oi(t,"__v_skip",!0),t}const Sn=t=>yt(t)?pi(t):t,ys=t=>yt(t)?sr(t):t;function rr(t){Ce&&Gt&&(t=lt(t),Zo(t.dep||(t.dep=cs())))}function lr(t,e){t=lt(t);const n=t.dep;n&&hs(n)}function Ct(t){return!!(t&&t.__v_isRef===!0)}function J(t){return Ru(t,!1)}function Ru(t,e){return Ct(t)?t:new Bu(t,e)}class Bu{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:lt(e),this._value=n?e:Sn(e)}get value(){return rr(this),this._value}set value(e){const n=this.__v_isShallow||hi(e)||un(e);e=n?e:lt(e),He(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Sn(e),lr(this))}}function w(t){return Ct(t)?t.value:t}const Ou={get:(t,e,n)=>w(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return Ct(s)&&!Ct(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function ar(t){return xe(t)?t:new Proxy(t,Ou)}function Iu(t){const e=Y(t)?new Array(t.length):{};for(const n in t)e[n]=Nu(t,n);return e}class Hu{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return pu(lt(this._object),this._key)}}function Nu(t,e,n){const i=t[e];return Ct(i)?i:new Hu(t,e,n)}class Fu{constructor(e,n,i,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ps(e,()=>{this._dirty||(this._dirty=!0,lr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const e=lt(this);return rr(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Du(t,e,n=!1){let i,s;const o=it(t);return o?(i=t,s=Yt):(i=t.get,s=t.set),new Fu(i,s,o||!s,n)}function D8(t,...e){}function Se(t,e,n,i){let s;try{s=i?t(...i):t()}catch(o){gi(o,e,n)}return s}function Vt(t,e,n,i){if(it(t)){const o=Se(t,e,n,i);return o&&Po(o)&&o.catch(r=>{gi(r,e,n)}),o}const s=[];for(let o=0;o<t.length;o++)s.push(Vt(t[o],e,n,i));return s}function gi(t,e,n,i=!0){const s=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,l=n;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,r,l)===!1)return}o=o.parent}const a=e.appContext.config.errorHandler;if(a){Se(a,null,10,[t,r,l]);return}}Vu(t,n,s,i)}function Vu(t,e,n,i=!0){console.error(t)}let kn=!1,vs=!1;const Lt=[];let ie=0;const cn=[];let pe=null,Fe=0;const ur=Promise.resolve();let ws=null;function Cs(t){const e=ws||ur;return t?e.then(this?t.bind(this):t):e}function ju(t){let e=ie+1,n=Lt.length;for(;e<n;){const i=e+n>>>1,s=Lt[i],o=En(s);o<t||o===t&&s.pre?e=i+1:n=i}return e}function bs(t){(!Lt.length||!Lt.includes(t,kn&&t.allowRecurse?ie+1:ie))&&(t.id==null?Lt.push(t):Lt.splice(ju(t.id),0,t),cr())}function cr(){!kn&&!vs&&(vs=!0,ws=ur.then(pr))}function Uu(t){const e=Lt.indexOf(t);e>ie&&Lt.splice(e,1)}function Wu(t){Y(t)?cn.push(...t):(!pe||!pe.includes(t,t.allowRecurse?Fe+1:Fe))&&cn.push(t),cr()}function dr(t,e=kn?ie+1:0){for(;e<Lt.length;e++){const n=Lt[e];n&&n.pre&&(Lt.splice(e,1),e--,n())}}function fr(t){if(cn.length){const e=[...new Set(cn)];if(cn.length=0,pe){pe.push(...e);return}for(pe=e,pe.sort((n,i)=>En(n)-En(i)),Fe=0;Fe<pe.length;Fe++)pe[Fe]();pe=null,Fe=0}}const En=t=>t.id==null?1/0:t.id,Zu=(t,e)=>{const n=En(t)-En(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function pr(t){vs=!1,kn=!0,Lt.sort(Zu);const e=Yt;try{for(ie=0;ie<Lt.length;ie++){const n=Lt[ie];n&&n.active!==!1&&Se(n,null,14)}}finally{ie=0,Lt.length=0,fr(),kn=!1,ws=null,(Lt.length||cn.length)&&pr()}}function zu(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||_t;let s=n;const o=e.startsWith("update:"),r=o&&e.slice(7);if(r&&r in i){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:f}=i[u]||_t;f&&(s=n.map(_=>wt(_)?_.trim():_)),d&&(s=n.map(iu))}let l,a=i[l=rs(e)]||i[l=rs(ne(e))];!a&&o&&(a=i[l=rs(on(e))]),a&&Vt(a,t,6,s);const c=i[l+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Vt(c,t,6,s)}}function hr(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(s!==void 0)return s;const o=t.emits;let r={},l=!1;if(!it(t)){const a=c=>{const u=hr(c,e,!0);u&&(l=!0,kt(r,u))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!o&&!l?(yt(t)&&i.set(t,null),null):(Y(o)?o.forEach(a=>r[a]=null):kt(r,o),yt(t)&&i.set(t,r),r)}function mi(t,e){return!t||!Gn(e)?!1:(e=e.slice(2).replace(/Once$/,""),ft(t,e[0].toLowerCase()+e.slice(1))||ft(t,on(e))||ft(t,e))}let Tt=null,_i=null;function yi(t){const e=Tt;return Tt=t,_i=t&&t.type.__scopeId||null,e}function gr(t){_i=t}function mr(){_i=null}function Nt(t,e=Tt,n){if(!e||t._n)return t;const i=(...s)=>{i._d&&Kr(-1);const o=yi(e);let r;try{r=t(...s)}finally{yi(o),i._d&&Kr(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function V8(){}function xs(t){const{type:e,vnode:n,proxy:i,withProxy:s,props:o,propsOptions:[r],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:f,setupState:_,ctx:g,inheritAttrs:y}=t;let b,C;const k=yi(t);try{if(n.shapeFlag&4){const T=s||i;b=se(u.call(T,T,d,o,_,f,g)),C=a}else{const T=e;b=se(T.length>1?T(o,{attrs:a,slots:l,emit:c}):T(o,null)),C=e.props?a:qu(a)}}catch(T){Pn.length=0,gi(T,t,1),b=j(Wt)}let A=b;if(C&&y!==!1){const T=Object.keys(C),{shapeFlag:F}=A;T.length&&F&7&&(r&&T.some(is)&&(C=Ku(C,r)),A=Ee(A,C))}return n.dirs&&(A=Ee(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),b=A,yi(k),b}const qu=t=>{let e;for(const n in t)(n==="class"||n==="style"||Gn(n))&&((e||(e={}))[n]=t[n]);return e},Ku=(t,e)=>{const n={};for(const i in t)(!is(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function Ju(t,e,n){const{props:i,children:s,component:o}=t,{props:r,children:l,patchFlag:a}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?_r(i,r,c):!!r;if(a&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(r[f]!==i[f]&&!mi(c,f))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:i===r?!1:i?r?_r(i,r,c):!0:!!r;return!1}function _r(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let s=0;s<i.length;s++){const o=i[s];if(e[o]!==t[o]&&!mi(n,o))return!0}return!1}function Xu({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const Qu=t=>t.__isSuspense;function Yu(t,e){e&&e.pendingBranch?Y(t)?e.effects.push(...t):e.effects.push(t):Wu(t)}function Gu(t,e){return Ss(t,null,e)}const vi={};function Mt(t,e,n){return Ss(t,e,n)}function Ss(t,e,{immediate:n,deep:i,flush:s,onTrack:o,onTrigger:r}=_t){var l;const a=us()===((l=Et)==null?void 0:l.scope)?Et:null;let c,u=!1,d=!1;if(Ct(t)?(c=()=>t.value,u=hi(t)):xe(t)?(c=()=>t,i=!0):Y(t)?(d=!0,u=t.some(T=>xe(T)||hi(T)),c=()=>t.map(T=>{if(Ct(T))return T.value;if(xe(T))return De(T);if(it(T))return Se(T,a,2)})):it(t)?e?c=()=>Se(t,a,2):c=()=>{if(!(a&&a.isUnmounted))return f&&f(),Vt(t,a,3,[_])}:c=Yt,e&&i){const T=c;c=()=>De(T())}let f,_=T=>{f=k.onStop=()=>{Se(T,a,4)}},g;if(Bn)if(_=Yt,e?n&&Vt(e,a,3,[c(),d?[]:void 0,_]):c(),s==="sync"){const T=Xc();g=T.__watcherHandles||(T.__watcherHandles=[])}else return Yt;let y=d?new Array(t.length).fill(vi):vi;const b=()=>{if(k.active)if(e){const T=k.run();(i||u||(d?T.some((F,st)=>He(F,y[st])):He(T,y)))&&(f&&f(),Vt(e,a,3,[T,y===vi?void 0:d&&y[0]===vi?[]:y,_]),y=T)}else k.run()};b.allowRecurse=!!e;let C;s==="sync"?C=b:s==="post"?C=()=>Ot(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),C=()=>bs(b));const k=new ps(c,C);e?n?b():y=k.run():s==="post"?Ot(k.run.bind(k),a&&a.suspense):k.run();const A=()=>{k.stop(),a&&a.scope&&ss(a.scope.effects,k)};return g&&g.push(A),A}function tc(t,e,n){const i=this.proxy,s=wt(t)?t.includes(".")?yr(i,t):()=>i[t]:t.bind(i,i);let o;it(e)?o=e:(o=e.handler,n=e);const r=Et;hn(this);const l=Ss(s,o.bind(i),n);return r?hn(r):Ze(),l}function yr(t,e){const n=e.split(".");return()=>{let i=t;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}function De(t,e){if(!yt(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Ct(t))De(t.value,e);else if(Y(t))for(let n=0;n<t.length;n++)De(t[n],e);else if(Ao(t)||sn(t))t.forEach(n=>{De(n,e)});else if(Bo(t))for(const n in t)De(t[n],e);return t}function Bt(t,e){const n=Tt;if(n===null)return t;const i=Ai(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[r,l,a,c=_t]=e[o];r&&(it(r)&&(r={mounted:r,updated:r}),r.deep&&De(l),s.push({dir:r,instance:i,value:l,oldValue:void 0,arg:a,modifiers:c}))}return t}function Ve(t,e,n,i){const s=t.dirs,o=e&&e.dirs;for(let r=0;r<s.length;r++){const l=s[r];o&&(l.oldValue=o[r].value);let a=l.dir[i];a&&(ln(),Vt(a,n,8,[t.el,l,t,e]),an())}}const ke=Symbol("_leaveCb"),wi=Symbol("_enterCb");function ec(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return je(()=>{t.isMounted=!0}),Sr(()=>{t.isUnmounting=!0}),t}const jt=[Function,Array],vr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jt,onEnter:jt,onAfterEnter:jt,onEnterCancelled:jt,onBeforeLeave:jt,onLeave:jt,onAfterLeave:jt,onLeaveCancelled:jt,onBeforeAppear:jt,onAppear:jt,onAfterAppear:jt,onAppearCancelled:jt},nc={name:"BaseTransition",props:vr,setup(t,{slots:e}){const n=Ds(),i=ec();let s;return()=>{const o=e.default&&br(e.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const y of o)if(y.type!==Wt){r=y;break}}const l=lt(t),{mode:a}=l;if(i.isLeaving)return Es(r);const c=Cr(r);if(!c)return Es(r);const u=ks(c,l,i,n);Ts(c,u);const d=n.subTree,f=d&&Cr(d);let _=!1;const{getTransitionKey:g}=c.type;if(g){const y=g();s===void 0?s=y:y!==s&&(s=y,_=!0)}if(f&&f.type!==Wt&&(!We(c,f)||_)){const y=ks(f,l,i,n);if(Ts(f,y),a==="out-in")return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Es(r);a==="in-out"&&c.type!==Wt&&(y.delayLeave=(b,C,k)=>{const A=wr(i,f);A[String(f.key)]=f,b[ke]=()=>{C(),b[ke]=void 0,delete u.delayedLeave},u.delayedLeave=k})}return r}}};function wr(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function ks(t,e,n,i){const{appear:s,mode:o,persisted:r=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:_,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:C,onAppearCancelled:k}=e,A=String(t.key),T=wr(n,t),F=(P,H)=>{P&&Vt(P,i,9,H)},st=(P,H)=>{const Z=H[1];F(P,H),Y(P)?P.every(X=>X.length<=1)&&Z():P.length<=1&&Z()},et={mode:o,persisted:r,beforeEnter(P){let H=l;if(!n.isMounted)if(s)H=y||l;else return;P[ke]&&P[ke](!0);const Z=T[A];Z&&We(t,Z)&&Z.el[ke]&&Z.el[ke](),F(H,[P])},enter(P){let H=a,Z=c,X=u;if(!n.isMounted)if(s)H=b||a,Z=C||c,X=k||u;else return;let O=!1;const G=P[wi]=ct=>{O||(O=!0,ct?F(X,[P]):F(Z,[P]),et.delayedLeave&&et.delayedLeave(),P[wi]=void 0)};H?st(H,[P,G]):G()},leave(P,H){const Z=String(t.key);if(P[wi]&&P[wi](!0),n.isUnmounting)return H();F(d,[P]);let X=!1;const O=P[ke]=G=>{X||(X=!0,H(),G?F(g,[P]):F(_,[P]),P[ke]=void 0,T[Z]===t&&delete T[Z])};T[Z]=t,f?st(f,[P,O]):O()},clone(P){return ks(P,e,n,i)}};return et}function Es(t){if(Ci(t))return t=Ee(t),t.children=null,t}function Cr(t){return Ci(t)?t.children?t.children[0]:void 0:t}function Ts(t,e){t.shapeFlag&6&&t.component?Ts(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function br(t,e=!1,n){let i=[],s=0;for(let o=0;o<t.length;o++){let r=t[o];const l=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===gt?(r.patchFlag&128&&s++,i=i.concat(br(r.children,e,l))):(e||r.type!==Wt)&&i.push(l!=null?Ee(r,{key:l}):r)}if(s>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function at(t,e){return it(t)?(()=>kt({name:t.name},e,{setup:t}))():t}const Tn=t=>!!t.type.__asyncLoader,Ci=t=>t.type.__isKeepAlive;function ic(t,e){xr(t,"a",e)}function sc(t,e){xr(t,"da",e)}function xr(t,e,n=Et){const i=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(bi(e,i,n),n){let s=n.parent;for(;s&&s.parent;)Ci(s.parent.vnode)&&oc(i,e,n,s),s=s.parent}}function oc(t,e,n,i){const s=bi(e,t,i,!0);dn(()=>{ss(i[e],s)},n)}function bi(t,e,n=Et,i=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;ln(),hn(n);const l=Vt(e,n,t,r);return Ze(),an(),l});return i?s.unshift(o):s.push(o),o}}const he=t=>(e,n=Et)=>(!Bn||t==="sp")&&bi(t,(...i)=>e(...i),n),rc=he("bm"),je=he("m"),lc=he("bu"),ac=he("u"),Sr=he("bum"),dn=he("um"),uc=he("sp"),cc=he("rtg"),dc=he("rtc");function fc(t,e=Et){bi("ec",t,e)}const kr="components",pc="directives",Er=Symbol.for("v-ndc");function xi(t){return wt(t)?$r(kr,t,!1)||t:t||Er}function Tr(t){return $r(pc,t)}function $r(t,e,n=!0,i=!1){const s=Tt||Et;if(s){const o=s.type;if(t===kr){const l=qc(o,!1);if(l&&(l===e||l===ne(e)||l===si(ne(e))))return o}const r=Lr(s[t]||o[t],e)||Lr(s.appContext[t],e);return!r&&i?o:r}}function Lr(t,e){return t&&(t[e]||t[ne(e)]||t[si(ne(e))])}function Ut(t,e,n,i){let s;const o=n&&n[i];if(Y(t)||wt(t)){s=new Array(t.length);for(let r=0,l=t.length;r<l;r++)s[r]=e(t[r],r,void 0,o&&o[r])}else if(typeof t=="number"){s=new Array(t);for(let r=0;r<t;r++)s[r]=e(r+1,r,void 0,o&&o[r])}else if(yt(t))if(t[Symbol.iterator])s=Array.from(t,(r,l)=>e(r,l,void 0,o&&o[l]));else{const r=Object.keys(t);s=new Array(r.length);for(let l=0,a=r.length;l<a;l++){const c=r[l];s[l]=e(t[c],c,l,o&&o[l])}}else s=[];return n&&(n[i]=s),s}function Si(t,e,n={},i,s){if(Tt.isCE||Tt.parent&&Tn(Tt.parent)&&Tt.parent.isCE)return e!=="default"&&(n.name=e),j("slot",n,i&&i());let o=t[e];o&&o._c&&(o._d=!1),v();const r=o&&Mr(o(n)),l=pt(gt,{key:n.key||r&&r.key||`_${e}`},r||(i?i():[]),r&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Mr(t){return t.some(e=>$i(e)?!(e.type===Wt||e.type===gt&&!Mr(e.children)):!0)?t:null}const $s=t=>t?Gr(t)?Ai(t)||t.proxy:$s(t.parent):null,$n=kt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>$s(t.parent),$root:t=>$s(t.root),$emit:t=>t.emit,$options:t=>As(t),$forceUpdate:t=>t.f||(t.f=()=>bs(t.update)),$nextTick:t=>t.n||(t.n=Cs.bind(t.proxy)),$watch:t=>tc.bind(t)}),Ls=(t,e)=>t!==_t&&!t.__isScriptSetup&&ft(t,e),hc={get({_:t},e){const{ctx:n,setupState:i,data:s,props:o,accessCache:r,type:l,appContext:a}=t;let c;if(e[0]!=="$"){const _=r[e];if(_!==void 0)switch(_){case 1:return i[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(Ls(i,e))return r[e]=1,i[e];if(s!==_t&&ft(s,e))return r[e]=2,s[e];if((c=t.propsOptions[0])&&ft(c,e))return r[e]=3,o[e];if(n!==_t&&ft(n,e))return r[e]=4,n[e];Ms&&(r[e]=0)}}const u=$n[e];let d,f;if(u)return e==="$attrs"&&Rt(t,"get",e),u(t);if((d=l.__cssModules)&&(d=d[e]))return d;if(n!==_t&&ft(n,e))return r[e]=4,n[e];if(f=a.config.globalProperties,ft(f,e))return f[e]},set({_:t},e,n){const{data:i,setupState:s,ctx:o}=t;return Ls(s,e)?(s[e]=n,!0):i!==_t&&ft(i,e)?(i[e]=n,!0):ft(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,propsOptions:o}},r){let l;return!!n[r]||t!==_t&&ft(t,r)||Ls(e,r)||(l=o[0])&&ft(l,r)||ft(i,r)||ft($n,r)||ft(s.config.globalProperties,r)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ft(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ar(t){return Y(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Ms=!0;function gc(t){const e=As(t),n=t.proxy,i=t.ctx;Ms=!1,e.beforeCreate&&Pr(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:r,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:_,updated:g,activated:y,deactivated:b,beforeDestroy:C,beforeUnmount:k,destroyed:A,unmounted:T,render:F,renderTracked:st,renderTriggered:et,errorCaptured:P,serverPrefetch:H,expose:Z,inheritAttrs:X,components:O,directives:G,filters:ct}=e;if(c&&mc(c,i,null),r)for(const Q in r){const dt=r[Q];it(dt)&&(i[Q]=dt.bind(n))}if(s){const Q=s.call(n,n);yt(Q)&&(t.data=pi(Q))}if(Ms=!0,o)for(const Q in o){const dt=o[Q],Xt=it(dt)?dt.bind(n,n):it(dt.get)?dt.get.bind(n,n):Yt,Ye=!it(dt)&&it(dt.set)?dt.set.bind(n):Yt,ce=tt({get:Xt,set:Ye});Object.defineProperty(i,Q,{enumerable:!0,configurable:!0,get:()=>ce.value,set:Ft=>ce.value=Ft})}if(l)for(const Q in l)Rr(l[Q],i,n,Q);if(a){const Q=it(a)?a.call(n):a;Reflect.ownKeys(Q).forEach(dt=>{bc(dt,Q[dt])})}u&&Pr(u,t,"c");function z(Q,dt){Y(dt)?dt.forEach(Xt=>Q(Xt.bind(n))):dt&&Q(dt.bind(n))}if(z(rc,d),z(je,f),z(lc,_),z(ac,g),z(ic,y),z(sc,b),z(fc,P),z(dc,st),z(cc,et),z(Sr,k),z(dn,T),z(uc,H),Y(Z))if(Z.length){const Q=t.exposed||(t.exposed={});Z.forEach(dt=>{Object.defineProperty(Q,dt,{get:()=>n[dt],set:Xt=>n[dt]=Xt})})}else t.exposed||(t.exposed={});F&&t.render===Yt&&(t.render=F),X!=null&&(t.inheritAttrs=X),O&&(t.components=O),G&&(t.directives=G)}function mc(t,e,n=Yt){Y(t)&&(t=Ps(t));for(const i in t){const s=t[i];let o;yt(s)?"default"in s?o=fn(s.from||i,s.default,!0):o=fn(s.from||i):o=fn(s),Ct(o)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[i]=o}}function Pr(t,e,n){Vt(Y(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function Rr(t,e,n,i){const s=i.includes(".")?yr(n,i):()=>n[i];if(wt(t)){const o=e[t];it(o)&&Mt(s,o)}else if(it(t))Mt(s,t.bind(n));else if(yt(t))if(Y(t))t.forEach(o=>Rr(o,e,n,i));else{const o=it(t.handler)?t.handler.bind(n):e[t.handler];it(o)&&Mt(s,o,t)}}function As(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=t.appContext,l=o.get(e);let a;return l?a=l:!s.length&&!n&&!i?a=e:(a={},s.length&&s.forEach(c=>ki(a,c,r,!0)),ki(a,e,r)),yt(e)&&o.set(e,a),a}function ki(t,e,n,i=!1){const{mixins:s,extends:o}=e;o&&ki(t,o,n,!0),s&&s.forEach(r=>ki(t,r,n,!0));for(const r in e)if(!(i&&r==="expose")){const l=_c[r]||n&&n[r];t[r]=l?l(t[r],e[r]):e[r]}return t}const _c={data:Br,props:Or,emits:Or,methods:Ln,computed:Ln,beforeCreate:At,created:At,beforeMount:At,mounted:At,beforeUpdate:At,updated:At,beforeDestroy:At,beforeUnmount:At,destroyed:At,unmounted:At,activated:At,deactivated:At,errorCaptured:At,serverPrefetch:At,components:Ln,directives:Ln,watch:vc,provide:Br,inject:yc};function Br(t,e){return e?t?function(){return kt(it(t)?t.call(this,this):t,it(e)?e.call(this,this):e)}:e:t}function yc(t,e){return Ln(Ps(t),Ps(e))}function Ps(t){if(Y(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function At(t,e){return t?[...new Set([].concat(t,e))]:e}function Ln(t,e){return t?kt(Object.create(null),t,e):e}function Or(t,e){return t?Y(t)&&Y(e)?[...new Set([...t,...e])]:kt(Object.create(null),Ar(t),Ar(e??{})):e}function vc(t,e){if(!t)return e;if(!e)return t;const n=kt(Object.create(null),t);for(const i in e)n[i]=At(t[i],e[i]);return n}function Ir(){return{app:null,config:{isNativeTag:Qa,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 wc=0;function Cc(t,e){return function(i,s=null){it(i)||(i=kt({},i)),s!=null&&!yt(s)&&(s=null);const o=Ir(),r=new WeakSet;let l=!1;const a=o.app={_uid:wc++,_component:i,_props:s,_container:null,_context:o,_instance:null,version:Qc,get config(){return o.config},set config(c){},use(c,...u){return r.has(c)||(c&&it(c.install)?(r.add(c),c.install(a,...u)):it(c)&&(r.add(c),c(a,...u))),a},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),a},component(c,u){return u?(o.components[c]=u,a):o.components[c]},directive(c,u){return u?(o.directives[c]=u,a):o.directives[c]},mount(c,u,d){if(!l){const f=j(i,s);return f.appContext=o,u&&e?e(f,c):t(f,c,d),l=!0,a._container=c,c.__vue_app__=a,Ai(f.component)||f.component.proxy}},unmount(){l&&(t(null,a._container),delete a._container.__vue_app__)},provide(c,u){return o.provides[c]=u,a},runWithContext(c){Mn=a;try{return c()}finally{Mn=null}}};return a}}let Mn=null;function bc(t,e){if(Et){let n=Et.provides;const i=Et.parent&&Et.parent.provides;i===n&&(n=Et.provides=Object.create(i)),n[t]=e}}function fn(t,e,n=!1){const i=Et||Tt;if(i||Mn){const s=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Mn._context.provides;if(s&&t in s)return s[t];if(arguments.length>1)return n&&it(e)?e.call(i&&i.proxy):e}}function xc(){return!!(Et||Tt||Mn)}function Sc(t,e,n,i=!1){const s={},o={};oi(o,Li,1),t.propsDefaults=Object.create(null),Hr(t,e,s,o);for(const r in t.propsOptions[0])r in s||(s[r]=void 0);n?t.props=i?s:Pu(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function kc(t,e,n,i){const{props:s,attrs:o,vnode:{patchFlag:r}}=t,l=lt(s),[a]=t.propsOptions;let c=!1;if((i||r>0)&&!(r&16)){if(r&8){const u=t.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(mi(t.emitsOptions,f))continue;const _=e[f];if(a)if(ft(o,f))_!==o[f]&&(o[f]=_,c=!0);else{const g=ne(f);s[g]=Rs(a,l,g,_,t,!1)}else _!==o[f]&&(o[f]=_,c=!0)}}}else{Hr(t,e,s,o)&&(c=!0);let u;for(const d in l)(!e||!ft(e,d)&&((u=on(d))===d||!ft(e,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=Rs(a,l,d,void 0,t,!0)):delete s[d]);if(o!==l)for(const d in o)(!e||!ft(e,d))&&(delete o[d],c=!0)}c&&fe(t,"set","$attrs")}function Hr(t,e,n,i){const[s,o]=t.propsOptions;let r=!1,l;if(e)for(let a in e){if(ni(a))continue;const c=e[a];let u;s&&ft(s,u=ne(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:mi(t.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,r=!0)}if(o){const a=lt(n),c=l||_t;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Rs(s,a,d,c[d],t,!ft(c,d))}}return r}function Rs(t,e,n,i,s,o){const r=t[n];if(r!=null){const l=ft(r,"default");if(l&&i===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&it(a)){const{propsDefaults:c}=s;n in c?i=c[n]:(hn(s),i=c[n]=a.call(null,e),Ze())}else i=a}r[0]&&(o&&!l?i=!1:r[1]&&(i===""||i===on(n))&&(i=!0))}return i}function Nr(t,e,n=!1){const i=e.propsCache,s=i.get(t);if(s)return s;const o=t.props,r={},l=[];let a=!1;if(!it(t)){const u=d=>{a=!0;const[f,_]=Nr(d,e,!0);kt(r,f),_&&l.push(..._)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!a)return yt(t)&&i.set(t,nn),nn;if(Y(o))for(let u=0;u<o.length;u++){const d=ne(o[u]);Fr(d)&&(r[d]=_t)}else if(o)for(const u in o){const d=ne(u);if(Fr(d)){const f=o[u],_=r[d]=Y(f)||it(f)?{type:f}:kt({},f);if(_){const g=jr(Boolean,_.type),y=jr(String,_.type);_[0]=g>-1,_[1]=y<0||g<y,(g>-1||ft(_,"default"))&&l.push(d)}}}const c=[r,l];return yt(t)&&i.set(t,c),c}function Fr(t){return t[0]!=="$"}function Dr(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Vr(t,e){return Dr(t)===Dr(e)}function jr(t,e){return Y(e)?e.findIndex(n=>Vr(n,t)):it(e)&&Vr(e,t)?0:-1}const Ur=t=>t[0]==="_"||t==="$stable",Bs=t=>Y(t)?t.map(se):[se(t)],Ec=(t,e,n)=>{if(e._n)return e;const i=Nt((...s)=>Bs(e(...s)),n);return i._c=!1,i},Wr=(t,e,n)=>{const i=t._ctx;for(const s in t){if(Ur(s))continue;const o=t[s];if(it(o))e[s]=Ec(s,o,i);else if(o!=null){const r=Bs(o);e[s]=()=>r}}},Zr=(t,e)=>{const n=Bs(e);t.slots.default=()=>n},Tc=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=lt(e),oi(e,"_",n)):Wr(e,t.slots={})}else t.slots={},e&&Zr(t,e);oi(t.slots,Li,1)},$c=(t,e,n)=>{const{vnode:i,slots:s}=t;let o=!0,r=_t;if(i.shapeFlag&32){const l=e._;l?n&&l===1?o=!1:(kt(s,e),!n&&l===1&&delete s._):(o=!e.$stable,Wr(e,s)),r=e}else e&&(Zr(t,e),r={default:1});if(o)for(const l in s)!Ur(l)&&r[l]==null&&delete s[l]};function Os(t,e,n,i,s=!1){if(Y(t)){t.forEach((f,_)=>Os(f,e&&(Y(e)?e[_]:e),n,i,s));return}if(Tn(i)&&!s)return;const o=i.shapeFlag&4?Ai(i.component)||i.component.proxy:i.el,r=s?null:o,{i:l,r:a}=t,c=e&&e.r,u=l.refs===_t?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(wt(c)?(u[c]=null,ft(d,c)&&(d[c]=null)):Ct(c)&&(c.value=null)),it(a))Se(a,l,12,[r,u]);else{const f=wt(a),_=Ct(a);if(f||_){const g=()=>{if(t.f){const y=f?ft(d,a)?d[a]:u[a]:a.value;s?Y(y)&&ss(y,o):Y(y)?y.includes(o)||y.push(o):f?(u[a]=[o],ft(d,a)&&(d[a]=u[a])):(a.value=[o],t.k&&(u[t.k]=a.value))}else f?(u[a]=r,ft(d,a)&&(d[a]=r)):_&&(a.value=r,t.k&&(u[t.k]=r))};r?(g.id=-1,Ot(g,n)):g()}}}const Ot=Yu;function Lc(t){return Mc(t)}function Mc(t,e){const n=as();n.__VUE__=!0;const{insert:i,remove:s,patchProp:o,createElement:r,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:_=Yt,insertStaticContent:g}=t,y=(h,m,x,$=null,L=null,B=null,D=!1,R=null,I=!!m.dynamicChildren)=>{if(h===m)return;h&&!We(h,m)&&($=Ge(h),Ft(h,L,B,!0),h=null),m.patchFlag===-2&&(I=!1,m.dynamicChildren=null);const{type:M,ref:q,shapeFlag:W}=m;switch(M){case Ti:b(h,m,x,$);break;case Wt:C(h,m,x,$);break;case Ns:h==null&&k(m,x,$,D);break;case gt:O(h,m,x,$,L,B,D,R,I);break;default:W&1?F(h,m,x,$,L,B,D,R,I):W&6?G(h,m,x,$,L,B,D,R,I):(W&64||W&128)&&M.process(h,m,x,$,L,B,D,R,I,ve)}q!=null&&L&&Os(q,h&&h.ref,B,m||h,!m)},b=(h,m,x,$)=>{if(h==null)i(m.el=l(m.children),x,$);else{const L=m.el=h.el;m.children!==h.children&&c(L,m.children)}},C=(h,m,x,$)=>{h==null?i(m.el=a(m.children||""),x,$):m.el=h.el},k=(h,m,x,$)=>{[h.el,h.anchor]=g(h.children,m,x,$,h.el,h.anchor)},A=({el:h,anchor:m},x,$)=>{let L;for(;h&&h!==m;)L=f(h),i(h,x,$),h=L;i(m,x,$)},T=({el:h,anchor:m})=>{let x;for(;h&&h!==m;)x=f(h),s(h),h=x;s(m)},F=(h,m,x,$,L,B,D,R,I)=>{D=D||m.type==="svg",h==null?st(m,x,$,L,B,D,R,I):H(h,m,L,B,D,R,I)},st=(h,m,x,$,L,B,D,R)=>{let I,M;const{type:q,props:W,shapeFlag:K,transition:nt,dirs:ot}=h;if(I=h.el=r(h.type,B,W&&W.is,W),K&8?u(I,h.children):K&16&&P(h.children,I,null,$,L,B&&q!=="foreignObject",D,R),ot&&Ve(h,null,$,"created"),et(I,h,h.scopeId,D,$),W){for(const ht in W)ht!=="value"&&!ni(ht)&&o(I,ht,null,W[ht],B,h.children,$,L,Qt);"value"in W&&o(I,"value",null,W.value),(M=W.onVnodeBeforeMount)&&oe(M,$,h)}ot&&Ve(h,null,$,"beforeMount");const mt=Ac(L,nt);mt&&nt.beforeEnter(I),i(I,m,x),((M=W&&W.onVnodeMounted)||mt||ot)&&Ot(()=>{M&&oe(M,$,h),mt&&nt.enter(I),ot&&Ve(h,null,$,"mounted")},L)},et=(h,m,x,$,L)=>{if(x&&_(h,x),$)for(let B=0;B<$.length;B++)_(h,$[B]);if(L){let B=L.subTree;if(m===B){const D=L.vnode;et(h,D,D.scopeId,D.slotScopeIds,L.parent)}}},P=(h,m,x,$,L,B,D,R,I=0)=>{for(let M=I;M<h.length;M++){const q=h[M]=R?$e(h[M]):se(h[M]);y(null,q,m,x,$,L,B,D,R)}},H=(h,m,x,$,L,B,D)=>{const R=m.el=h.el;let{patchFlag:I,dynamicChildren:M,dirs:q}=m;I|=h.patchFlag&16;const W=h.props||_t,K=m.props||_t;let nt;x&&Ue(x,!1),(nt=K.onVnodeBeforeUpdate)&&oe(nt,x,m,h),q&&Ve(m,h,x,"beforeUpdate"),x&&Ue(x,!0);const ot=L&&m.type!=="foreignObject";if(M?Z(h.dynamicChildren,M,R,x,$,ot,B):D||dt(h,m,R,null,x,$,ot,B,!1),I>0){if(I&16)X(R,m,W,K,x,$,L);else if(I&2&&W.class!==K.class&&o(R,"class",null,K.class,L),I&4&&o(R,"style",W.style,K.style,L),I&8){const mt=m.dynamicProps;for(let ht=0;ht<mt.length;ht++){const St=mt[ht],ee=W[St],Cn=K[St];(Cn!==ee||St==="value")&&o(R,St,ee,Cn,L,h.children,x,$,Qt)}}I&1&&h.children!==m.children&&u(R,m.children)}else!D&&M==null&&X(R,m,W,K,x,$,L);((nt=K.onVnodeUpdated)||q)&&Ot(()=>{nt&&oe(nt,x,m,h),q&&Ve(m,h,x,"updated")},$)},Z=(h,m,x,$,L,B,D)=>{for(let R=0;R<m.length;R++){const I=h[R],M=m[R],q=I.el&&(I.type===gt||!We(I,M)||I.shapeFlag&70)?d(I.el):x;y(I,M,q,null,$,L,B,D,!0)}},X=(h,m,x,$,L,B,D)=>{if(x!==$){if(x!==_t)for(const R in x)!ni(R)&&!(R in $)&&o(h,R,x[R],null,D,m.children,L,B,Qt);for(const R in $){if(ni(R))continue;const I=$[R],M=x[R];I!==M&&R!=="value"&&o(h,R,M,I,D,m.children,L,B,Qt)}"value"in $&&o(h,"value",x.value,$.value)}},O=(h,m,x,$,L,B,D,R,I)=>{const M=m.el=h?h.el:l(""),q=m.anchor=h?h.anchor:l("");let{patchFlag:W,dynamicChildren:K,slotScopeIds:nt}=m;nt&&(R=R?R.concat(nt):nt),h==null?(i(M,x,$),i(q,x,$),P(m.children,x,q,L,B,D,R,I)):W>0&&W&64&&K&&h.dynamicChildren?(Z(h.dynamicChildren,K,x,L,B,D,R),(m.key!=null||L&&m===L.subTree)&&Is(h,m,!0)):dt(h,m,x,q,L,B,D,R,I)},G=(h,m,x,$,L,B,D,R,I)=>{m.slotScopeIds=R,h==null?m.shapeFlag&512?L.ctx.activate(m,x,$,D,I):ct(m,x,$,L,B,D,I):U(h,m,I)},ct=(h,m,x,$,L,B,D)=>{const R=h.component=jc(h,$,L);if(Ci(h)&&(R.ctx.renderer=ve),Uc(R),R.asyncDep){if(L&&L.registerDep(R,z),!h.el){const I=R.subTree=j(Wt);C(null,I,m,x)}return}z(R,h,m,x,L,B,D)},U=(h,m,x)=>{const $=m.component=h.component;if(Ju(h,m,x))if($.asyncDep&&!$.asyncResolved){Q($,m,x);return}else $.next=m,Uu($.update),$.update();else m.el=h.el,$.vnode=m},z=(h,m,x,$,L,B,D)=>{const R=()=>{if(h.isMounted){let{next:q,bu:W,u:K,parent:nt,vnode:ot}=h,mt=q,ht;Ue(h,!1),q?(q.el=ot.el,Q(h,q,D)):q=ot,W&&ls(W),(ht=q.props&&q.props.onVnodeBeforeUpdate)&&oe(ht,nt,q,ot),Ue(h,!0);const St=xs(h),ee=h.subTree;h.subTree=St,y(ee,St,d(ee.el),Ge(ee),h,L,B),q.el=St.el,mt===null&&Xu(h,St.el),K&&Ot(K,L),(ht=q.props&&q.props.onVnodeUpdated)&&Ot(()=>oe(ht,nt,q,ot),L)}else{let q;const{el:W,props:K}=m,{bm:nt,m:ot,parent:mt}=h,ht=Tn(m);if(Ue(h,!1),nt&&ls(nt),!ht&&(q=K&&K.onVnodeBeforeMount)&&oe(q,mt,m),Ue(h,!0),W&&tn){const St=()=>{h.subTree=xs(h),tn(W,h.subTree,h,L,null)};ht?m.type.__asyncLoader().then(()=>!h.isUnmounted&&St()):St()}else{const St=h.subTree=xs(h);y(null,St,x,$,h,L,B),m.el=St.el}if(ot&&Ot(ot,L),!ht&&(q=K&&K.onVnodeMounted)){const St=m;Ot(()=>oe(q,mt,St),L)}(m.shapeFlag&256||mt&&Tn(mt.vnode)&&mt.vnode.shapeFlag&256)&&h.a&&Ot(h.a,L),h.isMounted=!0,m=x=$=null}},I=h.effect=new ps(R,()=>bs(M),h.scope),M=h.update=()=>I.run();M.id=h.uid,Ue(h,!0),M()},Q=(h,m,x)=>{m.component=h;const $=h.vnode.props;h.vnode=m,h.next=null,kc(h,m.props,$,x),$c(h,m.children,x),ln(),dr(),an()},dt=(h,m,x,$,L,B,D,R,I=!1)=>{const M=h&&h.children,q=h?h.shapeFlag:0,W=m.children,{patchFlag:K,shapeFlag:nt}=m;if(K>0){if(K&128){Ye(M,W,x,$,L,B,D,R,I);return}else if(K&256){Xt(M,W,x,$,L,B,D,R,I);return}}nt&8?(q&16&&Qt(M,L,B),W!==M&&u(x,W)):q&16?nt&16?Ye(M,W,x,$,L,B,D,R,I):Qt(M,L,B,!0):(q&8&&u(x,""),nt&16&&P(W,x,$,L,B,D,R,I))},Xt=(h,m,x,$,L,B,D,R,I)=>{h=h||nn,m=m||nn;const M=h.length,q=m.length,W=Math.min(M,q);let K;for(K=0;K<W;K++){const nt=m[K]=I?$e(m[K]):se(m[K]);y(h[K],nt,x,null,L,B,D,R,I)}M>q?Qt(h,L,B,!0,!1,W):P(m,x,$,L,B,D,R,I,W)},Ye=(h,m,x,$,L,B,D,R,I)=>{let M=0;const q=m.length;let W=h.length-1,K=q-1;for(;M<=W&&M<=K;){const nt=h[M],ot=m[M]=I?$e(m[M]):se(m[M]);if(We(nt,ot))y(nt,ot,x,null,L,B,D,R,I);else break;M++}for(;M<=W&&M<=K;){const nt=h[W],ot=m[K]=I?$e(m[K]):se(m[K]);if(We(nt,ot))y(nt,ot,x,null,L,B,D,R,I);else break;W--,K--}if(M>W){if(M<=K){const nt=K+1,ot=nt<q?m[nt].el:$;for(;M<=K;)y(null,m[M]=I?$e(m[M]):se(m[M]),x,ot,L,B,D,R,I),M++}}else if(M>K)for(;M<=W;)Ft(h[M],L,B,!0),M++;else{const nt=M,ot=M,mt=new Map;for(M=ot;M<=K;M++){const Dt=m[M]=I?$e(m[M]):se(m[M]);Dt.key!=null&&mt.set(Dt.key,M)}let ht,St=0;const ee=K-ot+1;let Cn=!1,Ka=0;const Yn=new Array(ee);for(M=0;M<ee;M++)Yn[M]=0;for(M=nt;M<=W;M++){const Dt=h[M];if(St>=ee){Ft(Dt,L,B,!0);continue}let de;if(Dt.key!=null)de=mt.get(Dt.key);else for(ht=ot;ht<=K;ht++)if(Yn[ht-ot]===0&&We(Dt,m[ht])){de=ht;break}de===void 0?Ft(Dt,L,B,!0):(Yn[de-ot]=M+1,de>=Ka?Ka=de:Cn=!0,y(Dt,m[de],x,null,L,B,D,R,I),St++)}const Ja=Cn?Pc(Yn):nn;for(ht=Ja.length-1,M=ee-1;M>=0;M--){const Dt=ot+M,de=m[Dt],Xa=Dt+1<q?m[Dt+1].el:$;Yn[M]===0?y(null,de,x,Xa,L,B,D,R,I):Cn&&(ht<0||M!==Ja[ht]?ce(de,x,Xa,2):ht--)}}},ce=(h,m,x,$,L=null)=>{const{el:B,type:D,transition:R,children:I,shapeFlag:M}=h;if(M&6){ce(h.component.subTree,m,x,$);return}if(M&128){h.suspense.move(m,x,$);return}if(M&64){D.move(h,m,x,ve);return}if(D===gt){i(B,m,x);for(let W=0;W<I.length;W++)ce(I[W],m,x,$);i(h.anchor,m,x);return}if(D===Ns){A(h,m,x);return}if($!==2&&M&1&&R)if($===0)R.beforeEnter(B),i(B,m,x),Ot(()=>R.enter(B),L);else{const{leave:W,delayLeave:K,afterLeave:nt}=R,ot=()=>i(B,m,x),mt=()=>{W(B,()=>{ot(),nt&&nt()})};K?K(B,ot,mt):mt()}else i(B,m,x)},Ft=(h,m,x,$=!1,L=!1)=>{const{type:B,props:D,ref:R,children:I,dynamicChildren:M,shapeFlag:q,patchFlag:W,dirs:K}=h;if(R!=null&&Os(R,null,x,h,!0),q&256){m.ctx.deactivate(h);return}const nt=q&1&&K,ot=!Tn(h);let mt;if(ot&&(mt=D&&D.onVnodeBeforeUnmount)&&oe(mt,m,h),q&6)ns(h.component,x,$);else{if(q&128){h.suspense.unmount(x,$);return}nt&&Ve(h,null,m,"beforeUnmount"),q&64?h.type.remove(h,m,x,L,ve,$):M&&(B!==gt||W>0&&W&64)?Qt(M,m,x,!1,!0):(B===gt&&W&384||!L&&q&16)&&Qt(I,m,x),$&&Xn(h)}(ot&&(mt=D&&D.onVnodeUnmounted)||nt)&&Ot(()=>{mt&&oe(mt,m,h),nt&&Ve(h,null,m,"unmounted")},x)},Xn=h=>{const{type:m,el:x,anchor:$,transition:L}=h;if(m===gt){es(x,$);return}if(m===Ns){T(h);return}const B=()=>{s(x),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(h.shapeFlag&1&&L&&!L.persisted){const{leave:D,delayLeave:R}=L,I=()=>D(x,B);R?R(h.el,B,I):I()}else B()},es=(h,m)=>{let x;for(;h!==m;)x=f(h),s(h),h=x;s(m)},ns=(h,m,x)=>{const{bum:$,scope:L,update:B,subTree:D,um:R}=h;$&&ls($),L.stop(),B&&(B.active=!1,Ft(D,h,m,x)),R&&Ot(R,m),Ot(()=>{h.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},Qt=(h,m,x,$=!1,L=!1,B=0)=>{for(let D=B;D<h.length;D++)Ft(h[D],m,x,$,L)},Ge=h=>h.shapeFlag&6?Ge(h.component.subTree):h.shapeFlag&128?h.suspense.next():f(h.anchor||h.el),Qn=(h,m,x)=>{h==null?m._vnode&&Ft(m._vnode,null,null,!0):y(m._vnode||null,h,m,null,null,null,x),dr(),fr(),m._vnode=h},ve={p:y,um:Ft,m:ce,r:Xn,mt:ct,mc:P,pc:dt,pbc:Z,n:Ge,o:t};let wn,tn;return e&&([wn,tn]=e(ve)),{render:Qn,hydrate:wn,createApp:Cc(Qn,wn)}}function Ue({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Ac(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Is(t,e,n=!1){const i=t.children,s=e.children;if(Y(i)&&Y(s))for(let o=0;o<i.length;o++){const r=i[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=$e(s[o]),l.el=r.el),n||Is(r,l)),l.type===Ti&&(l.el=r.el)}}function Pc(t){const e=t.slice(),n=[0];let i,s,o,r,l;const a=t.length;for(i=0;i<a;i++){const c=t[i];if(c!==0){if(s=n[n.length-1],t[s]<c){e[i]=s,n.push(i);continue}for(o=0,r=n.length-1;o<r;)l=o+r>>1,t[n[l]]<c?o=l+1:r=l;c<t[n[o]]&&(o>0&&(e[i]=n[o-1]),n[o]=i)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=e[r];return n}const Rc=t=>t.__isTeleport,An=t=>t&&(t.disabled||t.disabled===""),zr=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Hs=(t,e)=>{const n=t&&t.to;return wt(n)?e?e(n):null:n},Bc={__isTeleport:!0,process(t,e,n,i,s,o,r,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:_,querySelector:g,createText:y,createComment:b}}=c,C=An(e.props);let{shapeFlag:k,children:A,dynamicChildren:T}=e;if(t==null){const F=e.el=y(""),st=e.anchor=y("");_(F,n,i),_(st,n,i);const et=e.target=Hs(e.props,g),P=e.targetAnchor=y("");et&&(_(P,et),r=r||zr(et));const H=(Z,X)=>{k&16&&u(A,Z,X,s,o,r,l,a)};C?H(n,st):et&&H(et,P)}else{e.el=t.el;const F=e.anchor=t.anchor,st=e.target=t.target,et=e.targetAnchor=t.targetAnchor,P=An(t.props),H=P?n:st,Z=P?F:et;if(r=r||zr(st),T?(f(t.dynamicChildren,T,H,s,o,r,l),Is(t,e,!0)):a||d(t,e,H,Z,s,o,r,l,!1),C)P?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ei(e,n,F,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const X=e.target=Hs(e.props,g);X&&Ei(e,X,null,c,0)}else P&&Ei(e,st,et,c,1)}qr(e)},remove(t,e,n,i,{um:s,o:{remove:o}},r){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:d,props:f}=t;if(d&&o(u),r&&o(c),l&16){const _=r||!An(f);for(let g=0;g<a.length;g++){const y=a[g];s(y,e,n,_,!!y.dynamicChildren)}}},move:Ei,hydrate:Oc};function Ei(t,e,n,{o:{insert:i},m:s},o=2){o===0&&i(t.targetAnchor,e,n);const{el:r,anchor:l,shapeFlag:a,children:c,props:u}=t,d=o===2;if(d&&i(r,e,n),(!d||An(u))&&a&16)for(let f=0;f<c.length;f++)s(c[f],e,n,2);d&&i(l,e,n)}function Oc(t,e,n,i,s,o,{o:{nextSibling:r,parentNode:l,querySelector:a}},c){const u=e.target=Hs(e.props,a);if(u){const d=u._lpa||u.firstChild;if(e.shapeFlag&16)if(An(e.props))e.anchor=c(r(t),e,l(t),n,i,s,o),e.targetAnchor=d;else{e.anchor=r(t);let f=d;for(;f;)if(f=r(f),f&&f.nodeType===8&&f.data==="teleport anchor"){e.targetAnchor=f,u._lpa=e.targetAnchor&&r(e.targetAnchor);break}c(d,e,u,n,i,s,o)}qr(e)}return e.anchor&&r(e.anchor)}const Ic=Bc;function qr(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const gt=Symbol.for("v-fgt"),Ti=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),Pn=[];let te=null;function v(t=!1){Pn.push(te=t?null:[])}function Hc(){Pn.pop(),te=Pn[Pn.length-1]||null}let Rn=1;function Kr(t){Rn+=t}function Jr(t){return t.dynamicChildren=Rn>0?te||nn:null,Hc(),Rn>0&&te&&te.push(t),t}function S(t,e,n,i,s,o){return Jr(p(t,e,n,i,s,o,!0))}function pt(t,e,n,i,s){return Jr(j(t,e,n,i,s,!0))}function $i(t){return t?t.__v_isVNode===!0:!1}function We(t,e){return t.type===e.type&&t.key===e.key}const Li="__vInternal",Xr=({key:t})=>t??null,Mi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?wt(t)||Ct(t)||it(t)?{i:Tt,r:t,k:e,f:!!n}:t:null);function p(t,e=null,n=null,i=0,s=null,o=t===gt?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Xr(e),ref:e&&Mi(e),scopeId:_i,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:o,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Tt};return l?(Fs(a,n),o&128&&t.normalize(a)):n&&(a.shapeFlag|=wt(n)?8:16),Rn>0&&!r&&te&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&te.push(a),a}const j=Nc;function Nc(t,e=null,n=null,i=0,s=null,o=!1){if((!t||t===Er)&&(t=Wt),$i(t)){const l=Ee(t,e,!0);return n&&Fs(l,n),Rn>0&&!o&&te&&(l.shapeFlag&6?te[te.indexOf(t)]=l:te.push(l)),l.patchFlag|=-2,l}if(Kc(t)&&(t=t.__vccOpts),e){e=Fc(e);let{class:l,style:a}=e;l&&!wt(l)&&(e.class=N(l)),yt(a)&&(or(a)&&!Y(a)&&(a=kt({},a)),e.style=rn(a))}const r=wt(t)?1:Qu(t)?128:Rc(t)?64:yt(t)?4:it(t)?2:0;return p(t,e,n,i,s,r,o,!0)}function Fc(t){return t?or(t)||Li in t?kt({},t):t:null}function Ee(t,e,n=!1){const{props:i,ref:s,patchFlag:o,children:r}=t,l=e?Qr(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Xr(l),ref:e&&e.ref?n&&s?Y(s)?s.concat(Mi(e)):[s,Mi(e)]:Mi(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:r,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==gt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ee(t.ssContent),ssFallback:t.ssFallback&&Ee(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Te(t=" ",e=0){return j(Ti,null,t,e)}function rt(t="",e=!1){return e?(v(),pt(Wt,null,t)):j(Wt,null,t)}function se(t){return t==null||typeof t=="boolean"?j(Wt):Y(t)?j(gt,null,t.slice()):typeof t=="object"?$e(t):j(Ti,null,String(t))}function $e(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ee(t)}function Fs(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(Y(e))n=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),Fs(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(Li in e)?e._ctx=Tt:s===3&&Tt&&(Tt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else it(e)?(e={default:e,_ctx:Tt},n=32):(e=String(e),i&64?(n=16,e=[Te(e)]):n=8);t.children=e,t.shapeFlag|=n}function Qr(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const s in i)if(s==="class")e.class!==i.class&&(e.class=N([e.class,i.class]));else if(s==="style")e.style=rn([e.style,i.style]);else if(Gn(s)){const o=e[s],r=i[s];r&&o!==r&&!(Y(o)&&o.includes(r))&&(e[s]=o?[].concat(o,r):r)}else s!==""&&(e[s]=i[s])}return e}function oe(t,e,n,i=null){Vt(t,e,7,[n,i])}const Dc=Ir();let Vc=0;function jc(t,e,n){const i=t.type,s=(e?e.appContext:t.appContext)||Dc,o={uid:Vc++,vnode:t,type:i,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new No(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Nr(i,s),emitsOptions:hr(i,s),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:i.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,attrsProxy:null,slotsProxy: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 o.ctx={_:o},o.root=e?e.root:o,o.emit=zu.bind(null,o),t.ce&&t.ce(o),o}let Et=null;const Ds=()=>Et||Tt;let Vs,pn,Yr="__VUE_INSTANCE_SETTERS__";(pn=as()[Yr])||(pn=as()[Yr]=[]),pn.push(t=>Et=t),Vs=t=>{pn.length>1?pn.forEach(e=>e(t)):pn[0](t)};const hn=t=>{Vs(t),t.scope.on()},Ze=()=>{Et&&Et.scope.off(),Vs(null)};function Gr(t){return t.vnode.shapeFlag&4}let Bn=!1;function Uc(t,e=!1){Bn=e;const{props:n,children:i}=t.vnode,s=Gr(t);Sc(t,n,s,e),Tc(t,i);const o=s?Wc(t,e):void 0;return Bn=!1,o}function Wc(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=xn(new Proxy(t.ctx,hc));const{setup:i}=n;if(i){const s=t.setupContext=i.length>1?zc(t):null;hn(t),ln();const o=Se(i,t,0,[t.props,s]);if(an(),Ze(),Po(o)){if(o.then(Ze,Ze),e)return o.then(r=>{tl(t,r,e)}).catch(r=>{gi(r,t,0)});t.asyncDep=o}else tl(t,o,e)}else nl(t,e)}function tl(t,e,n){it(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:yt(e)&&(t.setupState=ar(e)),nl(t,n)}let el;function nl(t,e,n){const i=t.type;if(!t.render){if(!e&&el&&!i.render){const s=i.template||As(t).template;if(s){const{isCustomElement:o,compilerOptions:r}=t.appContext.config,{delimiters:l,compilerOptions:a}=i,c=kt(kt({isCustomElement:o,delimiters:l},r),a);i.render=el(s,c)}}t.render=i.render||Yt}{hn(t),ln();try{gc(t)}finally{an(),Ze()}}}function Zc(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Rt(t,"get","$attrs"),e[n]}}))}function zc(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return Zc(t)},slots:t.slots,emit:t.emit,expose:e}}function Ai(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ar(xn(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in $n)return $n[n](t)},has(e,n){return n in e||n in $n}}))}function qc(t,e=!0){return it(t)?t.displayName||t.name:t.name||e&&t.__name}function Kc(t){return it(t)&&"__vccOpts"in t}const tt=(t,e)=>Du(t,e,Bn);function il(t,e,n){const i=arguments.length;return i===2?yt(e)&&!Y(e)?$i(e)?j(t,null,[e]):j(t,e):j(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&$i(n)&&(n=[n]),j(t,e,n))}const Jc=Symbol.for("v-scx"),Xc=()=>fn(Jc),Qc="3.3.7",Yc="http://www.w3.org/2000/svg",ze=typeof document<"u"?document:null,sl=ze&&ze.createElement("template"),Gc={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e?ze.createElementNS(Yc,t):ze.createElement(t,n?{is:n}:void 0);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>ze.createTextNode(t),createComment:t=>ze.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ze.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,o){const r=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{sl.innerHTML=i?`<svg>${t}</svg>`:t;const l=sl.content;if(i){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Le="transition",On="animation",In=Symbol("_vtc"),It=(t,{slots:e})=>il(nc,td(t),e);It.displayName="Transition";const ol={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};It.props=kt({},vr,ol);const qe=(t,e=[])=>{Y(t)?t.forEach(n=>n(...e)):t&&t(...e)},rl=t=>t?Y(t)?t.some(e=>e.length>1):t.length>1:!1;function td(t){const e={};for(const O in t)O in ol||(e[O]=t[O]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=r,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=t,g=ed(s),y=g&&g[0],b=g&&g[1],{onBeforeEnter:C,onEnter:k,onEnterCancelled:A,onLeave:T,onLeaveCancelled:F,onBeforeAppear:st=C,onAppear:et=k,onAppearCancelled:P=A}=e,H=(O,G,ct)=>{Ke(O,G?u:l),Ke(O,G?c:r),ct&&ct()},Z=(O,G)=>{O._isLeaving=!1,Ke(O,d),Ke(O,_),Ke(O,f),G&&G()},X=O=>(G,ct)=>{const U=O?et:k,z=()=>H(G,O,ct);qe(U,[G,z]),ll(()=>{Ke(G,O?a:o),Me(G,O?u:l),rl(U)||al(G,i,y,z)})};return kt(e,{onBeforeEnter(O){qe(C,[O]),Me(O,o),Me(O,r)},onBeforeAppear(O){qe(st,[O]),Me(O,a),Me(O,c)},onEnter:X(!1),onAppear:X(!0),onLeave(O,G){O._isLeaving=!0;const ct=()=>Z(O,G);Me(O,d),sd(),Me(O,f),ll(()=>{O._isLeaving&&(Ke(O,d),Me(O,_),rl(T)||al(O,i,b,ct))}),qe(T,[O,ct])},onEnterCancelled(O){H(O,!1),qe(A,[O])},onAppearCancelled(O){H(O,!0),qe(P,[O])},onLeaveCancelled(O){Z(O),qe(F,[O])}})}function ed(t){if(t==null)return null;if(yt(t))return[js(t.enter),js(t.leave)];{const e=js(t);return[e,e]}}function js(t){return su(t)}function Me(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[In]||(t[In]=new Set)).add(e)}function Ke(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[In];n&&(n.delete(e),n.size||(t[In]=void 0))}function ll(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let nd=0;function al(t,e,n,i){const s=t._endId=++nd,o=()=>{s===t._endId&&i()};if(n)return setTimeout(o,n);const{type:r,timeout:l,propCount:a}=id(t,e);if(!r)return i();const c=r+"end";let u=0;const d=()=>{t.removeEventListener(c,f),o()},f=_=>{_.target===t&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),t.addEventListener(c,f)}function id(t,e){const n=window.getComputedStyle(t),i=g=>(n[g]||"").split(", "),s=i(`${Le}Delay`),o=i(`${Le}Duration`),r=ul(s,o),l=i(`${On}Delay`),a=i(`${On}Duration`),c=ul(l,a);let u=null,d=0,f=0;e===Le?r>0&&(u=Le,d=r,f=o.length):e===On?c>0&&(u=On,d=c,f=a.length):(d=Math.max(r,c),u=d>0?r>c?Le:On:null,f=u?u===Le?o.length:a.length:0);const _=u===Le&&/\b(transform|all)(,|$)/.test(i(`${Le}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:_}}function ul(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>cl(n)+cl(t[i])))}function cl(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function sd(){return document.body.offsetHeight}function od(t,e,n){const i=t[In];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Us=Symbol("_vod"),Ae={beforeMount(t,{value:e},{transition:n}){t[Us]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Hn(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),Hn(t,!0),i.enter(t)):i.leave(t,()=>{Hn(t,!1)}):Hn(t,e))},beforeUnmount(t,{value:e}){Hn(t,e)}};function Hn(t,e){t.style.display=e?t[Us]:"none"}function rd(t,e,n){const i=t.style,s=wt(n);if(n&&!s){if(e&&!wt(e))for(const o in e)n[o]==null&&Ws(i,o,"");for(const o in n)Ws(i,o,n[o])}else{const o=i.display;s?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),Us in t&&(i.display=o)}}const dl=/\s*!important$/;function Ws(t,e,n){if(Y(n))n.forEach(i=>Ws(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=ld(t,e);dl.test(n)?t.setProperty(on(i),n.replace(dl,""),"important"):t[i]=n}}const fl=["Webkit","Moz","ms"],Zs={};function ld(t,e){const n=Zs[e];if(n)return n;let i=ne(e);if(i!=="filter"&&i in t)return Zs[e]=i;i=si(i);for(let s=0;s<fl.length;s++){const o=fl[s]+i;if(o in t)return Zs[e]=o}return e}const pl="http://www.w3.org/1999/xlink";function ad(t,e,n,i,s){if(i&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(pl,e.slice(6,e.length)):t.setAttributeNS(pl,e,n);else{const o=uu(e);n==null||o&&!Io(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function ud(t,e,n,i,s,o,r){if(e==="innerHTML"||e==="textContent"){i&&r(i,s,o),t[e]=n??"";return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){t._value=n;const c=l==="OPTION"?t.getAttribute("value"):t.value,u=n??"";c!==u&&(t.value=u),n==null&&t.removeAttribute(e);return}let a=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=Io(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{t[e]=n}catch{}a&&t.removeAttribute(e)}function cd(t,e,n,i){t.addEventListener(e,n,i)}function dd(t,e,n,i){t.removeEventListener(e,n,i)}const hl=Symbol("_vei");function fd(t,e,n,i,s=null){const o=t[hl]||(t[hl]={}),r=o[e];if(i&&r)r.value=i;else{const[l,a]=pd(e);if(i){const c=o[e]=md(i,s);cd(t,l,c,a)}else r&&(dd(t,l,r,a),o[e]=void 0)}}const gl=/(?:Once|Passive|Capture)$/;function pd(t){let e;if(gl.test(t)){e={};let i;for(;i=t.match(gl);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):on(t.slice(2)),e]}let zs=0;const hd=Promise.resolve(),gd=()=>zs||(hd.then(()=>zs=0),zs=Date.now());function md(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Vt(_d(i,n.value),e,5,[i])};return n.value=t,n.attached=gd(),n}function _d(t,e){if(Y(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const ml=/^on[a-z]/,yd=(t,e,n,i,s=!1,o,r,l,a)=>{e==="class"?od(t,i,s):e==="style"?rd(t,n,i):Gn(e)?is(e)||fd(t,e,n,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vd(t,e,i,s))?ud(t,e,i,o,r,l,a):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),ad(t,e,i,s))};function vd(t,e,n,i){return i?!!(e==="innerHTML"||e==="textContent"||e in t&&ml.test(e)&&it(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||ml.test(e)&&wt(n)?!1:e in t}const wd=["ctrl","shift","alt","meta"],Cd={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>wd.some(n=>t[`${n}Key`]&&!e.includes(n))},qs=(t,e)=>(n,...i)=>{for(let s=0;s<e.length;s++){const o=Cd[e[s]];if(o&&o(n,e))return}return t(n,...i)},bd=kt({patchProp:yd},Gc);let _l;function xd(){return _l||(_l=Lc(bd))}const Pi=(...t)=>{const e=xd().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=Sd(i);if(!s)return;const o=e._component;!it(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},e};function Sd(t){return wt(t)?document.querySelector(t):t}const U8="";function Nn(t){return us()?(Do(t),!0):!1}function Fn(t){return typeof t=="function"?t():w(t)}const Dn=typeof window<"u"&&typeof document<"u",kd=Object.prototype.toString,Ed=t=>kd.call(t)==="[object Object]",yl=()=>+Date.now(),Vn=()=>{},Td=$d();function $d(){var t;return Dn&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Ld(t,e){function n(...i){return new Promise((s,o)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(s).catch(o)})}return n}function Md(t,e=!0,n=!0,i=!1){let s=0,o,r=!0,l=Vn,a;const c=()=>{o&&(clearTimeout(o),o=void 0,l(),l=Vn)};return d=>{const f=Fn(t),_=Date.now()-s,g=()=>a=d();return c(),f<=0?(s=Date.now(),g()):(_>f&&(n||!r)?(s=Date.now(),g()):e&&(a=new Promise((y,b)=>{l=i?b:y,o=setTimeout(()=>{s=Date.now(),r=!0,y(g()),c()},Math.max(0,f-_))})),!n&&!o&&(o=setTimeout(()=>r=!0,f)),r=!1,a)}}function Ad(t,e=!0){Ds()?je(t):e?t():Cs(t)}function Pd(t,e=1e3,n={}){const{immediate:i=!0,immediateCallback:s=!1}=n;let o=null;const r=J(!1);function l(){o&&(clearInterval(o),o=null)}function a(){r.value=!1,l()}function c(){const u=Fn(e);u<=0||(r.value=!0,s&&t(),l(),o=setInterval(t,u))}if(i&&Dn&&c(),Ct(e)||typeof e=="function"){const u=Mt(e,()=>{r.value&&Dn&&c()});Nn(u)}return Nn(a),{isActive:r,pause:a,resume:c}}function re(t){var e;const n=Fn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Je=Dn?window:void 0,Rd=Dn?window.document:void 0;function Xe(...t){let e,n,i,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,s]=t,e=Je):[e,n,i,s]=t,!e)return Vn;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},l=(u,d,f,_)=>(u.addEventListener(d,f,_),()=>u.removeEventListener(d,f,_)),a=Mt(()=>[re(e),Fn(s)],([u,d])=>{if(r(),!u)return;const f=Ed(d)?{...d}:d;o.push(...n.flatMap(_=>i.map(g=>l(u,_,g,f))))},{immediate:!0,flush:"post"}),c=()=>{a(),r()};return Nn(c),c}let vl=!1;function wl(t,e,n={}){const{window:i=Je,ignore:s=[],capture:o=!0,detectIframe:r=!1}=n;if(!i)return;Td&&!vl&&(vl=!0,Array.from(i.document.body.children).forEach(f=>f.addEventListener("click",Vn)),i.document.documentElement.addEventListener("click",Vn));let l=!0;const a=f=>s.some(_=>{if(typeof _=="string")return Array.from(i.document.querySelectorAll(_)).some(g=>g===f.target||f.composedPath().includes(g));{const g=re(_);return g&&(f.target===g||f.composedPath().includes(g))}}),u=[Xe(i,"click",f=>{const _=re(t);if(!(!_||_===f.target||f.composedPath().includes(_))){if(f.detail===0&&(l=!a(f)),!l){l=!0;return}e(f)}},{passive:!0,capture:o}),Xe(i,"pointerdown",f=>{const _=re(t);_&&(l=!f.composedPath().includes(_)&&!a(f))},{passive:!0}),r&&Xe(i,"blur",f=>{setTimeout(()=>{var _;const g=re(t);((_=i.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!(g!=null&&g.contains(i.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}function Bd(){const t=J(!1);return Ds()&&je(()=>{t.value=!0}),t}function Cl(t){const e=Bd();return tt(()=>(e.value,!!t()))}function Od(t,e={}){const{window:n=Je}=e,i=Cl(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=J(!1),r=c=>{o.value=c.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",r):s.removeListener(r))},a=Gu(()=>{i.value&&(l(),s=n.matchMedia(Fn(t)),"addEventListener"in s?s.addEventListener("change",r):s.addListener(r),o.value=s.matches)});return Nn(()=>{a(),l(),s=void 0}),o}function Id(t={}){const{document:e=Rd}=t;if(!e)return J("visible");const n=J(e.visibilityState);return Xe(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}function Hd(t,e,n={}){const{window:i=Je,...s}=n;let o;const r=Cl(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},a=tt(()=>Array.isArray(t)?t.map(d=>re(d)):[re(t)]),c=Mt(a,d=>{if(l(),r.value&&i){o=new ResizeObserver(e);for(const f of d)f&&o.observe(f,s)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{l(),c()};return Nn(u),{isSupported:r,stop:u}}function Nd(t,e={width:0,height:0},n={}){const{window:i=Je,box:s="content-box"}=n,o=tt(()=>{var a,c;return(c=(a=re(t))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),r=J(e.width),l=J(e.height);return Hd(t,([a])=>{const c=s==="border-box"?a.borderBoxSize:s==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(i&&o.value){const u=re(t);if(u){const d=i.getComputedStyle(u);r.value=Number.parseFloat(d.width),l.value=Number.parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];r.value=u.reduce((d,{inlineSize:f})=>d+f,0),l.value=u.reduce((d,{blockSize:f})=>d+f,0)}else r.value=a.contentRect.width,l.value=a.contentRect.height},n),Mt(()=>re(t),a=>{r.value=a?e.width:0,l.value=a?e.height:0}),{width:r,height:l}}const Fd=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Dd=6e4;function Vd(t=Dd,e={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:s=Fd,window:o=Je,eventFilter:r=Md(50)}=e,l=J(n),a=J(yl());let c;const u=()=>{l.value=!1,clearTimeout(c),c=setTimeout(()=>l.value=!0,t)},d=Ld(r,()=>{a.value=yl(),u()});if(o){const f=o.document;for(const _ of s)Xe(o,_,d,{passive:!0});i&&Xe(f,"visibilitychange",()=>{f.hidden||d()}),u()}return{idle:l,lastActive:a,reset:u}}function jd(t={}){const{window:e=Je,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=t,r=J(n),l=J(i),a=()=>{e&&(o?(r.value=e.innerWidth,l.value=e.innerHeight):(r.value=e.document.documentElement.clientWidth,l.value=e.document.documentElement.clientHeight))};if(a(),Ad(a),Xe("resize",a,{passive:!0}),s){const c=Od("(orientation: portrait)");Mt(c,()=>a())}return{width:r,height:l}}function bl(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ud}=Object.prototype,{getPrototypeOf:Ks}=Object,Ri=(t=>e=>{const n=Ud.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),le=t=>(t=t.toLowerCase(),e=>Ri(e)===t),Bi=t=>e=>typeof e===t,{isArray:gn}=Array,jn=Bi("undefined");function Wd(t){return t!==null&&!jn(t)&&t.constructor!==null&&!jn(t.constructor)&&Zt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const xl=le("ArrayBuffer");function Zd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&xl(t.buffer),e}const zd=Bi("string"),Zt=Bi("function"),Sl=Bi("number"),Oi=t=>t!==null&&typeof t=="object",qd=t=>t===!0||t===!1,Ii=t=>{if(Ri(t)!=="object")return!1;const e=Ks(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Kd=le("Date"),Jd=le("File"),Xd=le("Blob"),Qd=le("FileList"),Yd=t=>Oi(t)&&Zt(t.pipe),Gd=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Zt(t.append)&&((e=Ri(t))==="formdata"||e==="object"&&Zt(t.toString)&&t.toString()==="[object FormData]"))},tf=le("URLSearchParams"),ef=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Un(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),gn(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let l;for(i=0;i<r;i++)l=o[i],e.call(null,t[l],l,t)}}function kl(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const El=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Tl=t=>!jn(t)&&t!==El;function Js(){const{caseless:t}=Tl(this)&&this||{},e={},n=(i,s)=>{const o=t&&kl(e,s)||s;Ii(e[o])&&Ii(i)?e[o]=Js(e[o],i):Ii(i)?e[o]=Js({},i):gn(i)?e[o]=i.slice():e[o]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Un(arguments[i],n);return e}const nf=(t,e,n,{allOwnKeys:i}={})=>(Un(e,(s,o)=>{n&&Zt(s)?t[o]=bl(s,n):t[o]=s},{allOwnKeys:i}),t),sf=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),of=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},rf=(t,e,n,i)=>{let s,o,r;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)r=s[o],(!i||i(r,t,e))&&!l[r]&&(e[r]=t[r],l[r]=!0);t=n!==!1&&Ks(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},lf=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},af=t=>{if(!t)return null;if(gn(t))return t;let e=t.length;if(!Sl(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},uf=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ks(Uint8Array)),cf=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=i.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},df=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},ff=le("HTMLFormElement"),pf=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),$l=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),hf=le("RegExp"),Ll=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Un(n,(s,o)=>{let r;(r=e(s,o,t))!==!1&&(i[o]=r||s)}),Object.defineProperties(t,i)},gf=t=>{Ll(t,(e,n)=>{if(Zt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(Zt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mf=(t,e)=>{const n={},i=s=>{s.forEach(o=>{n[o]=!0})};return gn(t)?i(t):i(String(t).split(e)),n},_f=()=>{},yf=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Xs="abcdefghijklmnopqrstuvwxyz",Ml="0123456789",Al={DIGIT:Ml,ALPHA:Xs,ALPHA_DIGIT:Xs+Xs.toUpperCase()+Ml},vf=(t=16,e=Al.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function wf(t){return!!(t&&Zt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Cf=t=>{const e=new Array(10),n=(i,s)=>{if(Oi(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const o=gn(i)?[]:{};return Un(i,(r,l)=>{const a=n(r,s+1);!jn(a)&&(o[l]=a)}),e[s]=void 0,o}}return i};return n(t,0)},bf=le("AsyncFunction"),E={isArray:gn,isArrayBuffer:xl,isBuffer:Wd,isFormData:Gd,isArrayBufferView:Zd,isString:zd,isNumber:Sl,isBoolean:qd,isObject:Oi,isPlainObject:Ii,isUndefined:jn,isDate:Kd,isFile:Jd,isBlob:Xd,isRegExp:hf,isFunction:Zt,isStream:Yd,isURLSearchParams:tf,isTypedArray:uf,isFileList:Qd,forEach:Un,merge:Js,extend:nf,trim:ef,stripBOM:sf,inherits:of,toFlatObject:rf,kindOf:Ri,kindOfTest:le,endsWith:lf,toArray:af,forEachEntry:cf,matchAll:df,isHTMLForm:ff,hasOwnProperty:$l,hasOwnProp:$l,reduceDescriptors:Ll,freezeMethods:gf,toObjectSet:mf,toCamelCase:pf,noop:_f,toFiniteNumber:yf,findKey:kl,global:El,isContextDefined:Tl,ALPHABET:Al,generateString:vf,isSpecCompliantForm:wf,toJSONObject:Cf,isAsyncFn:bf,isThenable:t=>t&&(Oi(t)||Zt(t))&&Zt(t.then)&&Zt(t.catch)};function ut(t,e,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s)}E.inherits(ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pl=ut.prototype,Rl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Rl[t]={value:t}}),Object.defineProperties(ut,Rl),Object.defineProperty(Pl,"isAxiosError",{value:!0}),ut.from=(t,e,n,i,s,o)=>{const r=Object.create(Pl);return E.toFlatObject(t,r,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ut.call(r,t.message,e,n,i,s),r.cause=t,r.name=t.name,o&&Object.assign(r,o),r};const xf=null;function Qs(t){return E.isPlainObject(t)||E.isArray(t)}function Bl(t){return E.endsWith(t,"[]")?t.slice(0,-2):t}function Ol(t,e,n){return t?t.concat(e).map(function(s,o){return s=Bl(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Sf(t){return E.isArray(t)&&!t.some(Qs)}const kf=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function Hi(t,e,n){if(!E.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!E.isUndefined(b[y])});const i=n.metaTokens,s=n.visitor||u,o=n.dots,r=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(e);if(!E.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(E.isDate(g))return g.toISOString();if(!a&&E.isBlob(g))throw new ut("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(g)||E.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,b){let C=g;if(g&&!b&&typeof g=="object"){if(E.endsWith(y,"{}"))y=i?y:y.slice(0,-2),g=JSON.stringify(g);else if(E.isArray(g)&&Sf(g)||(E.isFileList(g)||E.endsWith(y,"[]"))&&(C=E.toArray(g)))return y=Bl(y),C.forEach(function(A,T){!(E.isUndefined(A)||A===null)&&e.append(r===!0?Ol([y],T,o):r===null?y:y+"[]",c(A))}),!1}return Qs(g)?!0:(e.append(Ol(b,y,o),c(g)),!1)}const d=[],f=Object.assign(kf,{defaultVisitor:u,convertValue:c,isVisitable:Qs});function _(g,y){if(!E.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(g),E.forEach(g,function(C,k){(!(E.isUndefined(C)||C===null)&&s.call(e,C,E.isString(k)?k.trim():k,y,f))===!0&&_(C,y?y.concat(k):[k])}),d.pop()}}if(!E.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Il(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Ys(t,e){this._pairs=[],t&&Hi(t,this,e)}const Hl=Ys.prototype;Hl.append=function(e,n){this._pairs.push([e,n])},Hl.toString=function(e){const n=e?function(i){return e.call(this,i,Il)}:Il;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ef(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nl(t,e,n){if(!e)return t;const i=n&&n.encode||Ef,s=n&&n.serialize;let o;if(s?o=s(e,n):o=E.isURLSearchParams(e)?e.toString():new Ys(e,n).toString(i),o){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Tf{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){E.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Fl=Tf,Dl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$f=typeof URLSearchParams<"u"?URLSearchParams:Ys,Lf=typeof FormData<"u"?FormData:null,Mf=typeof Blob<"u"?Blob:null,Af=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Pf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ae={isBrowser:!0,classes:{URLSearchParams:$f,FormData:Lf,Blob:Mf},isStandardBrowserEnv:Af,isStandardBrowserWebWorkerEnv:Pf,protocols:["http","https","file","blob","url","data"]};function Rf(t,e){return Hi(t,new ae.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,o){return ae.isNode&&E.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Bf(t){return E.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Of(t){const e={},n=Object.keys(t);let i;const s=n.length;let o;for(i=0;i<s;i++)o=n[i],e[o]=t[o];return e}function Vl(t){function e(n,i,s,o){let r=n[o++];const l=Number.isFinite(+r),a=o>=n.length;return r=!r&&E.isArray(s)?s.length:r,a?(E.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!l):((!s[r]||!E.isObject(s[r]))&&(s[r]=[]),e(n,i,s[r],o)&&E.isArray(s[r])&&(s[r]=Of(s[r])),!l)}if(E.isFormData(t)&&E.isFunction(t.entries)){const n={};return E.forEachEntry(t,(i,s)=>{e(Bf(i),s,n,0)}),n}return null}function If(t,e,n){if(E.isString(t))try{return(e||JSON.parse)(t),E.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Gs={transitional:Dl,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,o=E.isObject(e);if(o&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return s&&s?JSON.stringify(Vl(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Rf(e,this.formSerializer).toString();if((l=E.isFileList(e))||i.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Hi(l?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),If(e)):e}],transformResponse:[function(e){const n=this.transitional||Gs.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&E.isString(e)&&(i&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(r)throw l.name==="SyntaxError"?ut.from(l,ut.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],t=>{Gs.headers[t]={}});const to=Gs,Hf=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nf=t=>{const e={};let n,i,s;return t&&t.split(`
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!n||e[n]&&Hf[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},jl=Symbol("internals");function Wn(t){return t&&String(t).trim().toLowerCase()}function Ni(t){return t===!1||t==null?t:E.isArray(t)?t.map(Ni):String(t)}function Ff(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Df=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function eo(t,e,n,i,s){if(E.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!E.isString(e)){if(E.isString(i))return e.indexOf(i)!==-1;if(E.isRegExp(i))return i.test(e)}}function Vf(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function jf(t,e){const n=E.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(s,o,r){return this[i].call(this,e,s,o,r)},configurable:!0})})}class Fi{constructor(e){e&&this.set(e)}set(e,n,i){const s=this;function o(l,a,c){const u=Wn(a);if(!u)throw new Error("header name must be a non-empty string");const d=E.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||a]=Ni(l))}const r=(l,a)=>E.forEach(l,(c,u)=>o(c,u,a));return E.isPlainObject(e)||e instanceof this.constructor?r(e,n):E.isString(e)&&(e=e.trim())&&!Df(e)?r(Nf(e),n):e!=null&&o(n,e,i),this}get(e,n){if(e=Wn(e),e){const i=E.findKey(this,e);if(i){const s=this[i];if(!n)return s;if(n===!0)return Ff(s);if(E.isFunction(n))return n.call(this,s,i);if(E.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Wn(e),e){const i=E.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||eo(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let s=!1;function o(r){if(r=Wn(r),r){const l=E.findKey(i,r);l&&(!n||eo(i,i[l],l,n))&&(delete i[l],s=!0)}}return E.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const o=n[i];(!e||eo(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,i={};return E.forEach(this,(s,o)=>{const r=E.findKey(i,o);if(r){n[r]=Ni(s),delete n[o];return}const l=e?Vf(o):String(o).trim();l!==o&&delete n[o],n[l]=Ni(s),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return E.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=e&&E.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const i=(this[jl]=this[jl]={accessors:{}}).accessors,s=this.prototype;function o(r){const l=Wn(r);i[l]||(jf(s,r),i[l]=!0)}return E.isArray(e)?e.forEach(o):o(e),this}}Fi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Fi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),E.freezeMethods(Fi);const ge=Fi;function no(t,e){const n=this||to,i=e||n,s=ge.from(i.headers);let o=i.data;return E.forEach(t,function(l){o=l.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Ul(t){return!!(t&&t.__CANCEL__)}function Zn(t,e,n){ut.call(this,t??"canceled",ut.ERR_CANCELED,e,n),this.name="CanceledError"}E.inherits(Zn,ut,{__CANCEL__:!0});function Uf(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Wf=ae.isStandardBrowserEnv?function(){return{write:function(n,i,s,o,r,l){const a=[];a.push(n+"="+encodeURIComponent(i)),E.isNumber(s)&&a.push("expires="+new Date(s).toGMTString()),E.isString(o)&&a.push("path="+o),E.isString(r)&&a.push("domain="+r),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Zf(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zf(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Wl(t,e){return t&&!Zf(e)?zf(t,e):e}const qf=ae.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function s(o){let r=o;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=s(window.location.href),function(r){const l=E.isString(r)?s(r):r;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Kf(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Jf(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,o=0,r;return e=e!==void 0?e:1e3,function(a){const c=Date.now(),u=i[o];r||(r=c),n[s]=a,i[s]=c;let d=o,f=0;for(;d!==s;)f+=n[d++],d=d%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),c-r<e)return;const _=u&&c-u;return _?Math.round(f*1e3/_):void 0}}function Zl(t,e){let n=0;const i=Jf(50,250);return s=>{const o=s.loaded,r=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=r;n=o;const u={loaded:o,total:r,progress:r?o/r:void 0,bytes:l,rate:a||void 0,estimated:a&&r&&c?(r-o)/a:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const io={http:xf,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,i){let s=t.data;const o=ge.from(t.headers).normalize(),r=t.responseType;let l;function a(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;E.isFormData(s)&&(ae.isStandardBrowserEnv||ae.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?E.isString(c=o.getContentType())&&o.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const d=Wl(t.baseURL,t.url);u.open(t.method.toUpperCase(),Nl(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const g=ge.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:t,request:u};Uf(function(k){n(k),a()},function(k){i(k),a()},b),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(i(new ut("Request aborted",ut.ECONNABORTED,t,u)),u=null)},u.onerror=function(){i(new ut("Network Error",ut.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||Dl;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),i(new ut(y,b.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,t,u)),u=null},ae.isStandardBrowserEnv){const g=qf(d)&&t.xsrfCookieName&&Wf.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&E.forEach(o.toJSON(),function(y,b){u.setRequestHeader(b,y)}),E.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),r&&r!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Zl(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Zl(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{u&&(i(!g||g.type?new Zn(null,t,u):g),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const _=Kf(d);if(_&&ae.protocols.indexOf(_)===-1){i(new ut("Unsupported protocol "+_+":",ut.ERR_BAD_REQUEST,t));return}u.send(s||null)})}};E.forEach(io,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const zl=t=>`- ${t}`,Xf=t=>E.isFunction(t)||t===null||t===!1,ql={getAdapter:t=>{t=E.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let o=0;o<e;o++){n=t[o];let r;if(i=n,!Xf(n)&&(i=io[(r=String(n)).toLowerCase()],i===void 0))throw new ut(`Unknown adapter '${r}'`);if(i)break;s[r||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let r=e?o.length>1?`since :
`+o.map(zl).join(`
`):" "+zl(o[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:io};function so(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Zn(null,t)}function Kl(t){return so(t),t.headers=ge.from(t.headers),t.data=no.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ql.getAdapter(t.adapter||to.adapter)(t).then(function(i){return so(t),i.data=no.call(t,t.transformResponse,i),i.headers=ge.from(i.headers),i},function(i){return Ul(i)||(so(t),i&&i.response&&(i.response.data=no.call(t,t.transformResponse,i.response),i.response.headers=ge.from(i.response.headers))),Promise.reject(i)})}const Jl=t=>t instanceof ge?t.toJSON():t;function mn(t,e){e=e||{};const n={};function i(c,u,d){return E.isPlainObject(c)&&E.isPlainObject(u)?E.merge.call({caseless:d},c,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function s(c,u,d){if(E.isUndefined(u)){if(!E.isUndefined(c))return i(void 0,c,d)}else return i(c,u,d)}function o(c,u){if(!E.isUndefined(u))return i(void 0,u)}function r(c,u){if(E.isUndefined(u)){if(!E.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function l(c,u,d){if(d in e)return i(c,u);if(d in t)return i(void 0,c)}const a={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,u)=>s(Jl(c),Jl(u),!0)};return E.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=a[u]||s,f=d(t[u],e[u],u);E.isUndefined(f)&&d!==l||(n[u]=f)}),n}const Xl="1.6.0",oo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{oo[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Ql={};oo.transitional=function(e,n,i){function s(o,r){return"[Axios v"+Xl+"] Transitional option '"+o+"'"+r+(i?". "+i:"")}return(o,r,l)=>{if(e===!1)throw new ut(s(r," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!Ql[r]&&(Ql[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,r,l):!0}};function Qf(t,e,n){if(typeof t!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const o=i[s],r=e[o];if(r){const l=t[o],a=l===void 0||r(l,o,t);if(a!==!0)throw new ut("option "+o+" must be "+a,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+o,ut.ERR_BAD_OPTION)}}const ro={assertOptions:Qf,validators:oo},Pe=ro.validators;class Di{constructor(e){this.defaults=e,this.interceptors={request:new Fl,response:new Fl}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=mn(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:o}=n;i!==void 0&&ro.assertOptions(i,{silentJSONParsing:Pe.transitional(Pe.boolean),forcedJSONParsing:Pe.transitional(Pe.boolean),clarifyTimeoutError:Pe.transitional(Pe.boolean)},!1),s!=null&&(E.isFunction(s)?n.paramsSerializer={serialize:s}:ro.assertOptions(s,{encode:Pe.function,serialize:Pe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=o&&E.merge(o.common,o[n.method]);o&&E.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ge.concat(r,o);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!a){const g=[Kl.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=l.length;let _=n;for(d=0;d<f;){const g=l[d++],y=l[d++];try{_=g(_)}catch(b){y.call(this,b);break}}try{u=Kl.call(this,_)}catch(g){return Promise.reject(g)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=mn(this.defaults,e);const n=Wl(e.baseURL,e.url);return Nl(n,e.params,e.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(e){Di.prototype[e]=function(n,i){return this.request(mn(i||{},{method:e,url:n,data:(i||{}).data}))}}),E.forEach(["post","put","patch"],function(e){function n(i){return function(o,r,l){return this.request(mn(l||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Di.prototype[e]=n(),Di.prototype[e+"Form"]=n(!0)});const Vi=Di;class lo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const i=this;this.promise.then(s=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(l=>{i.subscribe(l),o=l}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},e(function(o,r,l){i.reason||(i.reason=new Zn(o,r,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new lo(function(s){e=s}),cancel:e}}}const Yf=lo;function Gf(t){return function(n){return t.apply(null,n)}}function t1(t){return E.isObject(t)&&t.isAxiosError===!0}const ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ao).forEach(([t,e])=>{ao[e]=t});const e1=ao;function Yl(t){const e=new Vi(t),n=bl(Vi.prototype.request,e);return E.extend(n,Vi.prototype,e,{allOwnKeys:!0}),E.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return Yl(mn(t,s))},n}const bt=Yl(to);bt.Axios=Vi,bt.CanceledError=Zn,bt.CancelToken=Yf,bt.isCancel=Ul,bt.VERSION=Xl,bt.toFormData=Hi,bt.AxiosError=ut,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=Gf,bt.isAxiosError=t1,bt.mergeConfig=mn,bt.AxiosHeaders=ge,bt.formToJSON=t=>Vl(E.isHTMLForm(t)?new FormData(t):t),bt.getAdapter=ql.getAdapter,bt.HttpStatusCode=e1,bt.default=bt;const n1=bt,i1="https://api.tiun.live/live_api",uo="ICtrpjbkxZkZjNH2L2hYnkuooyhqFjTvywXpFK_1",s1="false",o1="de",co="false",r1="v5_20241120_3",l1="true",zt=n1.create({baseURL:i1,withCredentials:!0,headers:{}});zt.interceptors.response.use(function(t){var n;const e=(n=t.data)==null?void 0:n.newState;return e&&localStorage.setItem("tiun_state",e),t}),zt.interceptors.request.use(function(t){const e=localStorage.getItem("tiun_state");return e&&(t.headers["X-TIUN-STATE"]=e),t.headers["X-TIUN-SNIPPET-ID"]=uo,co.toLowerCase()==="true"&&(t.headers["X-SNIPPET-PREVIEW"]="true"),t.headers["X-TIUN-SNIPPET-APPEARANCE"]="Light",t.headers["X-TIUN-SNIPPET-LANGUAGE"]=o1,t.headers["X-TIUN-SNIPPET-VERSION"]=r1,t},function(t){return Promise.reject(t)});const a1=async()=>{const t=await zt.get("/v1/info");return t==null?void 0:t.data},u1=async()=>{const t=await zt.patch("/v1/info/seen");return t==null?void 0:t.data};var c1=!1;/* pinia v2.2.2 - (c) 2024 Eduardo San Martin Morote - @license MIT */let Gl;const ji=t=>Gl=t,ta=Symbol();function fo(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var zn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(zn||(zn={}));function d1(){const t=Fo(!0),e=t.run(()=>J({}));let n=[],i=[];const s=xn({install(o){ji(s),s._a=o,o.provide(ta,s),o.config.globalProperties.$pinia=s,i.forEach(r=>n.push(r)),i=[]},use(o){return!this._a&&!c1?i.push(o):n.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const ea=()=>{};function na(t,e,n,i=ea){t.push(e);const s=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),i())};return!n&&us()&&Do(s),s}function _n(t,...e){t.slice().forEach(n=>{n(...e)})}const f1=t=>t(),ia=Symbol(),po=Symbol();function ho(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],s=t[n];fo(s)&&fo(i)&&t.hasOwnProperty(n)&&!Ct(i)&&!xe(i)?t[n]=ho(s,i):t[n]=i}return t}const p1=Symbol();function h1(t){return!fo(t)||!t.hasOwnProperty(p1)}const{assign:Re}=Object;function g1(t){return!!(Ct(t)&&t.effect)}function m1(t,e,n,i){const{state:s,actions:o,getters:r}=e,l=n.state.value[t];let a;function c(){l||(n.state.value[t]=s?s():{});const u=Iu(n.state.value[t]);return Re(u,o,Object.keys(r||{}).reduce((d,f)=>(d[f]=xn(tt(()=>{ji(n);const _=n._s.get(t);return r[f].call(_,_)})),d),{}))}return a=sa(t,c,e,n,i,!0),a}function sa(t,e,n={},i,s,o){let r;const l=Re({actions:{}},n),a={deep:!0};let c,u,d=[],f=[],_;const g=i.state.value[t];!o&&!g&&(i.state.value[t]={}),J({});let y;function b(P){let H;c=u=!1,typeof P=="function"?(P(i.state.value[t]),H={type:zn.patchFunction,storeId:t,events:_}):(ho(i.state.value[t],P),H={type:zn.patchObject,payload:P,storeId:t,events:_});const Z=y=Symbol();Cs().then(()=>{y===Z&&(c=!0)}),u=!0,_n(d,H,i.state.value[t])}const C=o?function(){const{state:H}=n,Z=H?H():{};this.$patch(X=>{Re(X,Z)})}:ea;function k(){r.stop(),d=[],f=[],i._s.delete(t)}const A=(P,H="")=>{if(ia in P)return P[po]=H,P;const Z=function(){ji(i);const X=Array.from(arguments),O=[],G=[];function ct(Q){O.push(Q)}function U(Q){G.push(Q)}_n(f,{args:X,name:Z[po],store:F,after:ct,onError:U});let z;try{z=P.apply(this&&this.$id===t?this:F,X)}catch(Q){throw _n(G,Q),Q}return z instanceof Promise?z.then(Q=>(_n(O,Q),Q)).catch(Q=>(_n(G,Q),Promise.reject(Q))):(_n(O,z),z)};return Z[ia]=!0,Z[po]=H,Z},T={_p:i,$id:t,$onAction:na.bind(null,f),$patch:b,$reset:C,$subscribe(P,H={}){const Z=na(d,P,H.detached,()=>X()),X=r.run(()=>Mt(()=>i.state.value[t],O=>{(H.flush==="sync"?u:c)&&P({storeId:t,type:zn.direct,events:_},O)},Re({},a,H)));return Z},$dispose:k},F=pi(T);i._s.set(t,F);const et=(i._a&&i._a.runWithContext||f1)(()=>i._e.run(()=>(r=Fo()).run(()=>e({action:A}))));for(const P in et){const H=et[P];if(Ct(H)&&!g1(H)||xe(H))o||(g&&h1(H)&&(Ct(H)?H.value=g[P]:ho(H,g[P])),i.state.value[t][P]=H);else if(typeof H=="function"){const Z=A(H,P);et[P]=Z,l.actions[P]=H}}return Re(F,et),Re(lt(F),et),Object.defineProperty(F,"$state",{get:()=>i.state.value[t],set:P=>{b(H=>{Re(H,P)})}}),i._p.forEach(P=>{Re(F,r.run(()=>P({store:F,app:i._a,pinia:i,options:l})))}),g&&o&&n.hydrate&&n.hydrate(F.$state,g),c=!0,u=!0,F}function Ui(t,e,n){let i,s;const o=typeof e=="function";typeof t=="string"?(i=t,s=o?n:e):(s=t,i=t.id);function r(l,a){const c=xc();return l=l||(c?fn(ta,null):null),l&&ji(l),l=Gl,l._s.has(i)||(o?sa(i,e,s,l):m1(i,s,l)),l._s.get(i)}return r.$id=i,r}const oa={active:"4eb1d4ce-ec68-49f7-b3d7-ce9f172a84cb",inactive:"de6c0a23-b259-4c4f-aad9-c0eab912c301"},ra=async(t,e)=>{const n=await zt.patch("/v1/sessions",{currentUrl:window.location.href,contentId:t,contentType:e==="active"?oa.active:e==="inactive"?oa.inactive:void 0});return n==null?void 0:n.data},la=async t=>{const e=await zt.post("/v1/sessions",{currentUrl:window.location.href,startMethod:t});return e==null?void 0:e.data},_1=async()=>{const t=await zt.delete("/v1/sessions");return t==null?void 0:t.data},go=Ui("sessionState",()=>{const t=J(null);let e=0;const n=J({contentId:void 0,lastSessionStatus:void 0}),i=J("text"),s=J(),o=vt();function r(c){var u,d,f;if(c.origin===window.location.origin&&((u=c.data)==null?void 0:u.type)==="TIUN_EVENT"&&((d=c.data)==null?void 0:d.content)==="TIUN_UPDATE_CONTENT"){if(n.value.contentId=c.data.contentId,c.data.mediaType==="audio"&&(i.value=c.data.mediaType),c.data.contentType&&c.data.contentType===n.value.lastSessionStatus||(n.value.lastSessionStatus=c.data.contentType,!localStorage.getItem("tiun_state")||!o.pollingStarted||((f=o.snippetInfo)==null?void 0:f.connectionStatus)!=="Session"))return;l()}}async function l(){const c=++e;t.value=c;const u=await ra(n.value.contentId,n.value.lastSessionStatus);return t.value!==c||(s.value=u,o.badgeData=u.badge,u.openBadge&&(o.openDetails=!0)),u}async function a(){const c=await ra(n.value.contentId,"inactive");return s.value=c,o.badgeData=c.badge,c}return{mediaType:i,snippetSession:s,messageHandler:r,pausePolling:a,patchSessionInfo:l}}),Pt=Ui("globalState",()=>{const t=tt(()=>co==="true"),e=tt(()=>l1==="true"),n=tt(()=>s1==="true");return{isPreviewMode:t,areCornersRounded:e,isDarkMode:n}}),vt=Ui("badgeState",()=>{const t=J(),e=J(!1),n=J(),i=J(),s=J(!1),o=J(),r=J(),l=go(),a=Pt(),c=J(!1),u=J(!1),d=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeSessionStartResponseV1"}),f=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeSessionActiveResponseV1"}),_=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeSessionLoadingResponseV1"}),g=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeWarningBalanceLowResponseV1"}),y=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeWarningCountdownResponseV1"}),b=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeErrorTopUpFundsResponseV1"}),C=tt(()=>{var U;return((U=r.value)==null?void 0:U.type)==="BadgeErrorPaymentFailedResponseV1"}),k=tt(()=>{var U,z;return(z=(U=r.value)==null?void 0:U.data)==null?void 0:z.previousSession}),A=tt(()=>{var U,z;switch((z=(U=r.value)==null?void 0:U.data.headerRow)==null?void 0:z.color){case"Gray":return"tiun-bg-gray-400";case"Green":return"tiun-bg-teal-600";case"Purple":return"tiun-bg-indigo-600";case"Orange":return"tiun-bg-orange-500";default:return""}});async function T(){var U;((U=n.value)==null?void 0:U.connectionStatus)==="Session"?(await l.patchSessionInfo(),P()):(await F(),et())}async function F(){var z,Q;if(!localStorage.getItem("tiun_state")&&!a.isPreviewMode){ct(),c.value=!0;return}return n.value=await a1(),r.value=(z=n.value.infoBadge)==null?void 0:z.badge,e.value=((Q=n.value.infoBadge)==null?void 0:Q.open)||!1,st(),c.value=!0,n.value}function st(){var U;((U=n.value)==null?void 0:U.connectionStatus)!=="Session"&&n&&t.value!=="showPaywall"&&(G("TIUN_SHOW_PAYWALL"),t.value="showPaywall")}function et(){var U,z;((U=n.value)==null?void 0:U.connectionStatus)==="SetUp"||((z=n.value)==null?void 0:z.connectionStatus)==="Session"?X():O()}async function P(){var U,z,Q,dt;(((U=l.snippetSession)==null?void 0:U.sessionStatus)==="Active"||((z=l.snippetSession)==null?void 0:z.sessionStatus)==="Paused")&&t.value!=="hidePaywall"?(G("TIUN_HIDE_PAYWALL",(Q=l.snippetSession)==null?void 0:Q.sessionId),t.value="hidePaywall"):((dt=l.snippetSession)==null?void 0:dt.sessionStatus)==="Invalid"&&(ct(),await F())}function H(){e.value=!0}async function Z(){var U,z,Q;((z=(U=n.value)==null?void 0:U.infoBadge)!=null&&z.open||(Q=l.snippetSession)!=null&&Q.openBadge)&&e.value&&(await u1(),T()),e.value=!1}function X(){s.value||(T(),i.value=setInterval(()=>{T()},3e3),s.value=!0)}function O(){clearInterval(i.value),s.value=!1}function G(U,z){window.postMessage({type:"TIUN_EVENT",content:U,sessionId:z},window.location.origin)}function ct(){O(),t.value!=="showPaywall"&&(G("TIUN_SHOW_PAYWALL"),t.value="showPaywall")}return{openDetails:e,snippetInfo:n,paywallConnectionStatus:o,isStartSessionBadge:d,isActiveSessionBadge:f,isLoadingSessionBadge:_,badgeData:r,pollingStarted:s,buttonColor:A,lastSentMessage:t,fetchingInfo:c,previousSession:k,isLowBalanceWarning:g,isCountdownWarning:y,isTopUpError:b,isPaymentError:C,showSpentScreen:u,loadSnippetInfo:F,sendMessage:G,invalidateState:ct,loadInfo:T,closeBadge:Z,openBadge:H,startPolling:X,stopPolling:O,handlePolling:et}}),y1={class:"tiun-h-6 tiun-w-6 tiun-flex tiun-items-center tiun-justify-center"},v1=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"white",d:"M15.7071 16.2071C15.3166 16.5976 14.6834 16.5976 14.2929 16.2071L9.29289 11.2071C8.90237 10.8166 8.90237 10.1834 9.2929 9.79289L14.2929 4.79289C14.6834 4.40237 15.3166 4.40237 15.7071 4.79289C16.0976 5.18342 16.0976 5.81658 15.7071 6.20711L11.4142 10.5L15.7071 14.7929C16.0976 15.1834 16.0976 15.8166 15.7071 16.2071ZM9.70711 16.2071C9.31658 16.5976 8.68342 16.5976 8.29289 16.2071L3.29289 11.2071C2.90237 10.8166 2.90237 10.1834 3.29289 9.79289L8.2929 4.79289C8.68342 4.40237 9.31658 4.40237 9.70711 4.79289C10.0976 5.18342 10.0976 5.81658 9.70711 6.20711L5.41421 10.5L9.70711 14.7929C10.0976 15.1834 10.0976 15.8166 9.70711 16.2071Z"},null,-1)],mo=at({__name:"BadgeButton",emits:["mouseEnterBadgeButton"],setup(t){const e=/Mobi/.test(window.navigator.userAgent),n=vt(),i=Pt();function s(){i.isPreviewMode||(n.openDetails?n.closeBadge():n.openBadge())}return(o,r)=>(v(),S("button",{type:"button",class:"tiun-flex tiun-group tiun-outline-none focus:tiun-outline-none tiun-h-fit",onClick:s,onMouseenter:r[0]||(r[0]=l=>w(e)?void 0:o.$emit("mouseEnterBadgeButton")),"data-cy":"tiunBtnShowBadge"},[p("div",{class:N(["tiun-px-1.5 tiun-py-4 tiun-grid tiun-gap-4 tiun-shadow-md",[w(n).buttonColor,{"tiun-rounded-l-xl":w(i).areCornersRounded}]])},[p("div",y1,[(v(),S("svg",{style:rn(w(n).openDetails?"transform: rotate(180deg);":""),width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-6 tiun-w-6 tiun-transition-all tiun-duration-300"},v1,4))])],2)],32))}}),Wi=t=>(gr("data-v-7a9c941e"),t=t(),mr(),t),w1={class:"tiun-relative tiun-w-[40px] tiun-h-[40px] tiun-flex tiun-items-center tiun-flex-shrink-0 tiun-justify-center"},C1={key:0,class:"tiun-absolute tiun-text-[8px] tiun-font-bold"},b1=["width","height"],x1=Wi(()=>p("path",{d:"M40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20ZM4.99099 20C4.99099 28.2893 11.7108 35.009 20 35.009C28.2893 35.009 35.009 28.2893 35.009 20C35.009 11.7108 28.2893 4.99099 20 4.99099C11.7108 4.99099 4.99099 11.7108 4.99099 20Z",fill:"#10B981"},null,-1)),S1=Wi(()=>p("path",{d:"M20 2.49549C20 1.11727 18.8784 -0.016052 17.5109 0.155472C14.2961 0.558701 11.2141 1.7389 8.53857 3.60989C5.17844 5.95959 2.62168 9.28526 1.21459 13.1364C-0.192503 16.9876 -0.381936 21.1782 0.67195 25.1407C1.72583 29.1031 3.97211 32.6459 7.10653 35.2892C10.241 37.9324 14.1121 39.5485 18.1955 39.9184C22.279 40.2884 26.3775 39.3943 29.9359 37.3574C33.4943 35.3204 36.3407 32.239 38.0895 28.5305C39.4821 25.5775 40.1251 22.3405 39.9799 19.1038C39.9182 17.7269 38.6118 16.8127 37.2533 17.0454C35.8949 17.278 35.0044 18.5717 35.0089 19.95C35.0163 22.17 34.531 24.375 33.5753 26.4017C32.2629 29.1848 30.1268 31.4972 27.4564 33.0258C24.786 34.5545 21.7103 35.2254 18.6458 34.9478C15.5814 34.6702 12.6763 33.4574 10.3241 31.4738C7.97186 29.4901 6.28614 26.8314 5.49525 23.8578C4.70436 20.8842 4.84652 17.7394 5.90248 14.8492C6.95843 11.9591 8.87715 9.46337 11.3988 7.70003C13.2351 6.41592 15.3265 5.5654 17.5159 5.19796C18.8751 4.96985 20 3.87371 20 2.49549Z",fill:"url(#paint0_radial_3286_9385)"},null,-1)),k1={x:"50",y:"75","font-size":"10","font-weight":"500","text-anchor":"middle","alignment-baseline":"middle"},E1=Wi(()=>p("defs",null,[p("radialGradient",{id:"paint0_radial_3286_9385",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19) rotate(44.1931) scale(25.1048)"},[p("stop",{"stop-color":"#047857"}),p("stop",{offset:"1","stop-color":"#14B8A6","stop-opacity":"0.42"})])],-1)),T1={key:2,viewBox:"0 0 40 40",class:"tiun-block tiun-w-full tiun-h-full tiun-transform tiun--rotate-90"},$1=Wi(()=>p("circle",{cx:"20",cy:"20",r:"17.5",fill:"none",class:"tiun-stroke-current tiun-text-gray-300","stroke-width":"5"},null,-1)),L1=["stroke-dashoffset"],M1=at({__name:"RadialProgressBar",props:{maxValue:{type:Number,required:!0},progress:{type:Number,default:0},isFree:{type:Boolean,default:!1}},setup(t){const e=t,n=2*Math.PI*17.5,i=tt(()=>{const o=e.progress/100;return n*(1-o)}),{width:s}=jd();return(o,r)=>(v(),S("div",w1,[t.isFree?(v(),S("span",C1,"FREE")):rt("",!0),t.isFree?(v(),S("svg",{key:1,width:w(s)<=640?40:50,height:w(s)<=640?40:50,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x1,S1,p("text",k1,V(t.maxValue),1),E1],8,b1)):(v(),S("svg",T1,[$1,p("circle",{cx:"20",cy:"20",r:"17.5",fill:"none",stroke:"#10b981",class:"tiun-transition-all tiun-duration-700 tiun-ease-in-out","stroke-width":"5","stroke-linecap":"round","stroke-dasharray":n,"stroke-dashoffset":i.value},null,8,L1)]))]))}}),K8="",xt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},A1=xt(M1,[["__scopeId","data-v-7a9c941e"]]),_o=at({__name:"CurrencyDisplay",props:{value:{type:Object,default:void 0}},setup(t){const e=n=>{switch(n){case"Space":return"";case"Minus":return"-";case"Plus":return"+";default:return""}};return(n,i)=>{var s,o,r,l;return v(),S("div",{class:N({"tiun-line-through":(s=t.value)==null?void 0:s.strikethrough})},V((o=t.value)==null?void 0:o.currencySymbol)+" "+V(e((r=t.value)==null?void 0:r.separator))+V((l=t.value)==null?void 0:l.displayValue),3)}}}),yo=t=>(gr("data-v-eac3d33d"),t=t(),mr(),t),P1={class:"tiun-absolute tiun-backface-hidden tiun-px-4 tiun-py-6 tiun-w-full tiun-h-full"},R1={class:"tiun-grid tiun-justify-center tiun-text-center tiun-gap-4 tiun-content-center"},B1=["src"],O1={class:"tiun-flex tiun-items-center tiun-justify-center tiun-gap-2"},I1={class:"tiun-flex-shrink-0 tiun-flex tiun-items-center tiun-divide-x dark:tiun-divide-gray-600 tiun-divide-gray-200"},H1={class:"tiun-grid tiun-gap-2 tiun-pr-2"},N1={class:"tiun-text-gray-400 tiun-text-xs tiun-font-medium"},F1={class:"tiun-text-sm tiun-font-semibold tiun-text-black dark:tiun-text-white"},D1={class:"tiun-grid tiun-gap-2 tiun-pl-2"},V1=yo(()=>p("span",{class:"tiun-relative tiun-flex tiun-h-5 tiun-w-5 tiun-items-center"},[p("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p("path",{d:"M6.83325 8H6.33325V6H5.83325M6.33325 4H6.33825M10.8333 6C10.8333 8.48528 8.81853 10.5 6.33325 10.5C3.84797 10.5 1.83325 8.48528 1.83325 6C1.83325 3.51472 3.84797 1.5 6.33325 1.5C8.81853 1.5 10.8333 3.51472 10.8333 6Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),j1={class:"tiun-text-sm tiun-font-semibold tiun-flex tiun-gap-1"},U1={class:"tiun-text-gray-400"},W1={class:"tiun-flex tiun-items-center tiun-justify-between tiun-pt-2 tiun-pb-6 dark:tiun-text-white tiun-text-black"},Z1={class:"tiun-flex tiun-items-center tiun-gap-2"},z1=yo(()=>p("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-5 tiun-w-5"},[p("path",{d:"M6.83325 8H6.33325V6H5.83325M6.33325 4H6.33825M10.8333 6C10.8333 8.48528 8.81853 10.5 6.33325 10.5C3.84797 10.5 1.83325 8.48528 1.83325 6C1.83325 3.51472 3.84797 1.5 6.33325 1.5C8.81853 1.5 10.8333 3.51472 10.8333 6Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),q1={class:"tiun-text-sm tiun-font-semibold"},K1=[yo(()=>p("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-5 tiun-w-5"},[p("path",{d:"M4 12L12 4M4 4L12 12",stroke:"currentColor","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],J1={class:"tiun-text-xs !tiun-leading-normal dark:tiun-text-gray-300 tiun-text-gray-500 tiun-font-medium"},X1=at({__name:"ProviderCard",setup(t){const e=J(null),n=J(!1),i=vt(),s=Pt();wl(e,()=>n.value=!1);const o=tt(()=>{var l;return(l=i.badgeData)==null?void 0:l.data});function r(){n.value=!0}return(l,a)=>{var c,u,d,f,_,g,y,b,C,k,A,T;return v(),S("div",{class:N(["tiun-relative tiun-preserve-3d tiun-w-full tiun-h-full tiun-duration-500",{"tiun-my-rotate-y-180":n.value}]),ref_key:"target",ref:e},[p("div",P1,[p("div",{class:N(["tiun-grid tiun-gap-6 tiun-h-full",{"tiun-rounded-xl":w(s).areCornersRounded}])},[p("div",R1,[(c=o.value)!=null&&c.logoUrl?(v(),S("img",{key:0,height:"48",width:"48",class:N(["tiun-flex-shrink-0 tiun-w-12 tiun-h-12 tiun-mx-auto tiun-border tiun-border-gray-100",{"tiun-rounded-md":w(s).areCornersRounded}]),src:(u=o.value)==null?void 0:u.logoUrl},null,10,B1)):rt("",!0)]),p("div",O1,[p("div",I1,[p("div",H1,[p("span",N1,V((d=o.value)==null?void 0:d.sessionSpendTitle),1),p("div",F1,[j(_o,{value:(f=o.value)==null?void 0:f.sessionSpend},null,8,["value"])])]),p("div",D1,[p("button",{class:"tiun-outline-none focus:!tiun-outline-none focus-visible:!tiun-outline-1 tiun-rounded-xl focus-visible:!tiun-outline-black dark:focus-visible:!tiun-outline-white !tiun-text-gray-400 !tiun-text-xs tiun-group !tiun-font-medium tiun-flex tiun-items-center tiun-gap-1 dark:hover:!tiun-text-gray-300 hover:!tiun-text-gray-500 tiun-transition-colors disabled:hover:tiun-text-gray-400",onClick:r},[Te(V((_=o.value)==null?void 0:_.monthlyLimitTitle)+" ",1),V1]),p("div",j1,[j(_o,{value:(g=o.value)==null?void 0:g.monthlyLimit.spend,class:"tiun-text-emerald-500"},null,8,["value"]),p("span",U1," / "+V((y=o.value)==null?void 0:y.monthlyLimit.limit),1)])])]),j(A1,{isFree:(b=o.value)==null?void 0:b.monthlyLimit.isFree,progress:(C=o.value)==null?void 0:C.monthlyLimit.usagePercentage,maxValue:((k=o.value)==null?void 0:k.monthlyLimit.limit)||0},null,8,["isFree","progress","maxValue"])])],2)]),p("div",{class:N(["tiun-absolute tiun-z-20 tiun-my-rotate-y-180 tiun-backface-hidden tiun-px-4 tiun-py-6 tiun-w-full tiun-h-full tiun-overflow-hidden",{"tiun-rounded-xl":w(s).areCornersRounded}])},[p("div",W1,[p("div",Z1,[z1,p("span",q1,V((A=o.value)==null?void 0:A.monthlyLimitHintTitle),1)]),p("button",{type:"button",onClick:a[0]||(a[0]=F=>n.value=!1),class:"focus:!tiun-outline-none tiun-outline-none focus-visible:!tiun-outline-1 tiun-rounded-xl focus-visible:!tiun-outline-black dark:focus-visible:!tiun-outline-white dark:!tiun-text-white !tiun-text-gray-600 tiun-hover tiun-transition-all dark:hover:!tiun-opacity-80 hover:!tiun-text-black"},K1)]),p("p",J1,V((T=o.value)==null?void 0:T.monthlyLimitHintText),1)],2)],2)}}}),X8="",Q1=xt(X1,[["__scopeId","data-v-eac3d33d"]]),aa=async t=>{const e=await zt.post("/v1/sessions/ratings",{rating:t});return e==null?void 0:e.data},Y1=async t=>{const e=await zt.post("/v1/sessions/ratings/reasons",{reason:t});return e==null?void 0:e.data},G1={},t0={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e0=[p("rect",{width:"18",height:"18",rx:"9",fill:"#D1FAE5"},null,-1),p("path",{d:"M6.375 9.375L7.875 10.875L11.625 7.125",stroke:"#059669","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function n0(t,e){return v(),S("svg",t0,e0)}const vo=xt(G1,[["render",n0]]),i0={},s0={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o0=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.86321 3.86361C4.21469 3.51214 4.78453 3.51214 5.13601 3.86361L8.99961 7.72721L12.8632 3.86361C13.2147 3.51214 13.7845 3.51214 14.136 3.86361C14.4875 4.21508 14.4875 4.78493 14.136 5.1364L10.2724 9.00001L14.136 12.8636C14.4875 13.2151 14.4875 13.7849 14.136 14.1364C13.7845 14.4879 13.2147 14.4879 12.8632 14.1364L8.99961 10.2728L5.13601 14.1364C4.78453 14.4879 4.21469 14.4879 3.86321 14.1364C3.51174 13.7849 3.51174 13.2151 3.86321 12.8636L7.72682 9.00001L3.86321 5.1364C3.51174 4.78493 3.51174 4.21508 3.86321 3.86361Z",fill:"currentColor"},null,-1)];function r0(t,e){return v(),S("svg",s0,o0)}const wo=xt(i0,[["render",r0]]),l0={key:0,class:"tiun-inset-0 tiun-absolute tiun-w-full tiun-flex tiun-flex-col tiun-h-full tiun-justify-center tiun-items-center tiun-gap-8"},a0={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},u0={class:"tiun-text-gray-400 tiun-text-tiny"},c0={key:1,class:"tiun-inset-0 tiun-absolute tiun-w-full tiun-flex tiun-flex-col tiun-h-full tiun-justify-center tiun-items-center tiun-gap-6"},d0={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},f0={key:2,class:"tiun-absolute tiun-inset-4 tiun-flex tiun-flex-col tiun-gap-6"},p0={class:"tiun-text-right"},h0={class:"tiun-pt-2 tiun-text-sm tiun-font-bold tiun-pb-4 tiun-text-center dark:tiun-text-white tiun-text-black"},g0={class:"tiun-flex tiun-items-center tiun-gap-2 tiun-w-full tiun-justify-between"},m0=["onClick"],_0=["src"],y0={class:"tiun-text-tiny tiun-leading-4 dark:tiun-text-gray-300 tiun-text-gray-700 tiun-transition-colors tiun-font-semibold dark:group-hover:tiun-text-white group-hover:tiun-text-black"},v0={key:3,class:"tiun-absolute tiun-inset-4 tiun-flex tiun-flex-col tiun-gap-4"},w0={class:"tiun-text-right"},C0={class:"tiun-text-sm tiun-font-bold tiun-pb-4 tiun-text-center dark:tiun-text-white tiun-text-black"},b0={class:"tiun-flex tiun-flex-wrap tiun-gap-x-1 tiun-gap-y-4 tiun-w-full tiun-justify-center"},x0=["onClick"],S0={class:"!tiun-text-xxs !tiun-leading-4 dark:group-hover:tiun-bg-gray-700 group-hover:tiun-bg-gray-100 tiun-rounded-full dark:tiun-text-gray-100 !tiun-px-2.5 !tiun-py-2 tiun-text-gray-600 tiun-transition-colors !tiun-font-medium dark:group-hover:tiun-text-white group-hover:tiun-text-black"},k0=at({__name:"RatingCard",setup(t){const e=vt(),n=J("sessionEnded"),i=J(),s=J();tt(()=>{var u,d;return e.previousSession&&((d=(u=e.snippetInfo)==null?void 0:u.infoBadge)==null?void 0:d.open)&&e.showSpentScreen}).value?(n.value="sessionEnded",setTimeout(()=>n.value="idle",1500)):n.value="idle";async function r(u){var f,_,g;s.value=(_=(f=e.previousSession)==null?void 0:f.ratings.find(y=>y.rating===u))==null?void 0:_.reasons;const d=s.value&&((g=s.value)==null?void 0:g.length)>0;n.value=d?"active":"done",i.value=u,await aa(u),d||setTimeout(()=>l(),1500)}function l(){e.loadInfo()}async function a(){await aa("None"),l()}async function c(u){try{n.value="done",await Y1(u),setTimeout(()=>l(),1500)}catch{console.log("Error while trying to post feedback.")}}return(u,d)=>(v(),pt(It,{name:"tiun-scale"},{default:Nt(()=>{var f,_,g,y,b,C;return[n.value==="sessionEnded"?(v(),S("div",l0,[p("div",a0,V((f=w(e).previousSession)==null?void 0:f.sessionEndSpendTitle),1),j(vo,{class:"tiun-h-10 tiun-w-10"}),p("span",u0,V((_=w(e).previousSession)==null?void 0:_.sessionEndSpendText),1)])):n.value==="done"?(v(),S("div",c0,[p("div",d0,V((g=w(e).previousSession)==null?void 0:g.submittedMessage),1),j(vo,{class:"tiun-h-10 tiun-w-10"})])):n.value==="idle"?(v(),S("div",f0,[p("div",null,[p("div",p0,[p("button",{type:"button",class:"tiun-rounded-xl tiun-outline-none focus-visible:tiun-outline-1 dark:focus-visible:tiun-outline-white focus-visible:tiun-outline-black !tiun-text-gray-600 dark:!tiun-text-white tiun-hover tiun-transition-colors dark:hover:!tiun-text-opacity-80 hover:!tiun-text-black",onClick:d[0]||(d[0]=k=>a())},[j(wo)])]),p("div",h0,V((y=w(e).previousSession)==null?void 0:y.ratingTitle),1)]),p("section",g0,[(v(!0),S(gt,null,Ut((b=w(e).previousSession)==null?void 0:b.ratings,k=>(v(),S("button",{key:k.text,onClick:A=>r(k.rating),type:"button",class:"tiun-outline-none tiun-rounded-sm focus-visible:tiun-outline-1 focus-visible:tiun-outline-black dark:focus-visible:tiun-outline-white tiun-grid tiun-gap-2 tiun-justify-items-center tiun-w-full tiun-group"},[p("img",{src:k.imageUrl,class:"tiun-h-6 tiun-w-6"},null,8,_0),p("div",y0,V(k.text),1)],8,m0))),128))])])):(v(),S("div",v0,[p("div",null,[p("div",w0,[p("button",{type:"button",class:"tiun-rounded-xl focus:!tiun-outline-none tiun-outline-none focus-visible:!tiun-outline-1 dark:focus-visible:!tiun-outline-white focus-visible:!tiun-outline-black !tiun-text-gray-600 dark:!tiun-text-white tiun-hover tiun-transition-colors dark:hover:!tiun-text-opacity-80 hover:!tiun-text-black",onClick:d[1]||(d[1]=k=>l())},[j(wo)])]),p("div",C0,V((C=w(e).previousSession)==null?void 0:C.ratingReasonTitle),1)]),p("section",b0,[(v(!0),S(gt,null,Ut(s.value,k=>(v(),S("button",{key:k,onClick:A=>c(k),type:"button",class:"tiun-border tiun-rounded-full tiun-border-gray-300 tiun-group"},[p("div",S0,V(k),1)],8,x0))),128))])]))]}),_:1}))}}),E0=async()=>{const t=await zt.post("/v1/paywall",{currentUrl:window.location.href});return t==null?void 0:t.data},T0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$0=["fill"],L0=["fill"],M0=["fill"],A0=["fill"],P0=["fill"],R0=["fill"],B0=["fill"],O0=at({__name:"lightBulbIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),S("svg",T0,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{d:"M24.3998 17.7C24.3998 17.203 23.9969 16.8 23.4998 16.8C23.0027 16.8 22.5998 17.203 22.5998 17.7V18.6C22.5998 19.0971 23.0027 19.5 23.4998 19.5C23.9969 19.5 24.3998 19.0971 24.3998 18.6V17.7Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,$0),p("path",{d:"M28.5909 20.1816C28.9424 19.8302 28.9424 19.2603 28.5909 18.9088C28.2395 18.5574 27.6696 18.5574 27.3181 18.9088L26.6817 19.5452C26.3303 19.8967 26.3303 20.4665 26.6817 20.818C27.0332 21.1695 27.6031 21.1695 27.9545 20.818L28.5909 20.1816Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,L0),p("path",{d:"M30.6998 24C30.6998 24.4971 30.2969 24.9 29.7998 24.9H28.8998C28.4027 24.9 27.9998 24.4971 27.9998 24C27.9998 23.503 28.4027 23.1 28.8998 23.1H29.7998C30.2969 23.1 30.6998 23.503 30.6998 24Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,M0),p("path",{d:"M19.045 20.818C19.3964 21.1695 19.9663 21.1695 20.3178 20.818C20.6692 20.4666 20.6692 19.8967 20.3178 19.5452L19.6814 18.9088C19.3299 18.5574 18.7601 18.5574 18.4086 18.9088C18.0571 19.2603 18.0571 19.8302 18.4086 20.1816L19.045 20.818Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,A0),p("path",{d:"M18.9998 24C18.9998 24.4971 18.5969 24.9 18.0998 24.9H17.1998C16.7027 24.9 16.2998 24.4971 16.2998 24C16.2998 23.503 16.7027 23.1 17.1998 23.1H18.0998C18.5969 23.1 18.9998 23.503 18.9998 24Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,P0),p("path",{d:"M21.6998 29.4V28.5H25.2998V29.4C25.2998 30.3942 24.4939 31.2 23.4998 31.2C22.5057 31.2 21.6998 30.3942 21.6998 29.4Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,R0),p("path",{d:"M25.3006 27.6C25.3137 27.2938 25.4866 27.0184 25.7289 26.8271C26.5639 26.1678 27.0998 25.1465 27.0998 24C27.0998 22.0118 25.488 20.4 23.4998 20.4C21.5116 20.4 19.8998 22.0118 19.8998 24C19.8998 25.1465 20.4357 26.1678 21.2707 26.8271C21.513 27.0184 21.6859 27.2938 21.699 27.6H25.3006Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,B0)]))}}),I0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H0=["fill"],N0=at({__name:"pricingIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),S("svg",I0,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9362 23.3637C31.2877 23.7151 31.2877 24.285 30.9362 24.6364L24.6362 30.9364C24.2847 31.2879 23.7149 31.2879 23.3634 30.9364L17.0634 24.6364C16.8876 24.4607 16.7998 24.2303 16.7998 23.9999V19.5C16.7998 18.0089 18.0086 16.8 19.4998 16.8H24.0001C24.2303 16.8001 24.4605 16.888 24.6362 17.0637L30.9362 23.3637ZM19.4998 20.4C19.9969 20.4 20.3998 19.9971 20.3998 19.5C20.3998 19.003 19.9969 18.6 19.4998 18.6C19.0027 18.6 18.5998 19.003 18.5998 19.5C18.5998 19.9971 19.0027 20.4 19.4998 20.4Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,H0)]))}}),F0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D0=["fill"],V0=["fill"],j0=at({__name:"supportIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),S("svg",F0,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{d:"M16.8025 20.2956L23.9998 23.8938L31.1971 20.2956C31.1705 19.837 30.9695 19.4059 30.6353 19.0907C30.3012 18.7754 29.8592 18.5999 29.3998 18.6H18.5998C18.1404 18.5999 17.6984 18.7754 17.3643 19.0907C17.0301 19.4059 16.8291 19.837 16.8025 20.2956Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,D0),p("path",{d:"M31.1998 22.3062L23.9998 25.9062L16.7998 22.3062V27.6C16.7998 28.0774 16.9894 28.5352 17.327 28.8728C17.6646 29.2103 18.1224 29.4 18.5998 29.4H29.3998C29.8772 29.4 30.335 29.2103 30.6726 28.8728C31.0102 28.5352 31.1998 28.0774 31.1998 27.6V22.3062Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,V0)]))}}),U0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W0=["fill"],Z0=at({__name:"videoIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),S("svg",U0,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.9998 31.2C27.9763 31.2 31.1998 27.9765 31.1998 24C31.1998 20.0236 27.9763 16.8 23.9998 16.8C20.0234 16.8 16.7998 20.0236 16.7998 24C16.7998 27.9765 20.0234 31.2 23.9998 31.2ZM23.599 21.4512C23.3229 21.2671 22.9678 21.2499 22.6751 21.4065C22.3825 21.5632 22.1998 21.8681 22.1998 22.2001V25.8001C22.1998 26.132 22.3825 26.4369 22.6751 26.5936C22.9678 26.7502 23.3229 26.733 23.599 26.5489L26.299 24.7489C26.5494 24.582 26.6998 24.301 26.6998 24.0001C26.6998 23.6991 26.5494 23.4181 26.299 23.2512L23.599 21.4512Z",class:N(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,W0)]))}}),qt=Ui("paywallState",()=>{const t=J(!1),e=J(),n=J(),i=J(),s=J("showPaymentMethods"),o=tt(()=>{var c,u,d,f,_,g,y,b,C,k,A,T;return[{type:O0,text:(d=(u=(c=e.value)==null?void 0:c.helpCenter)==null?void 0:u.hintWhatIsTiun)==null?void 0:d.helpCenterCtaString,value:"whatsTiun"},{type:Z0,text:(g=(_=(f=e.value)==null?void 0:f.helpCenter)==null?void 0:_.hintHowItWorks)==null?void 0:g.helpCenterCtaString,value:"howItWorks"},{type:N0,text:(C=(b=(y=e.value)==null?void 0:y.helpCenter)==null?void 0:b.pricing)==null?void 0:C.helpCenterCtaString,value:"pricing"},{type:j0,text:(T=(A=(k=e.value)==null?void 0:k.helpCenter)==null?void 0:A.support)==null?void 0:T.helpCenterCtaString,value:"support"}]});async function r(){var c;t.value=!0;try{e.value=await E0(),n.value=((c=e.value.preselectedPaymentMethod)==null?void 0:c.type)||e.value.paymentMethodList[0].type}catch{console.log("Error while trying to load modules")}finally{setTimeout(()=>t.value=!1,300)}}function l(c){n.value=c}function a(c){i.value=c}return{loadingPaywall:t,paywallConfig:e,selectedMethod:n,currentView:s,selectedHint:i,allHints:o,setHint:a,loadPaywall:r,setPaymentMethod:l}}),z0={class:"tiun-h-full"},q0={class:"tiun-px-6 tiun-h-full tiun-py-4 tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},K0={class:"tiun-text-sm tiun-font-bold tiun-text-black dark:tiun-text-white"},J0=p("div",{"aria-label":"Loading...",role:"status",class:"tiun-flex tiun-justify-center"},[p("svg",{class:"tiun-animate-spin tiun-h-10 tiun-w-10 !tiun-fill-indigo-600",viewBox:"3 3 18 18"},[p("path",{class:"tiun-opacity-20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),p("path",{d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})])],-1),X0=at({__name:"LoadingCard",setup(t){const e=vt(),n=tt(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o;return v(),S("div",z0,[p("div",q0,[p("div",K0,V((o=n.value)==null?void 0:o.loadingSpinnerText),1),J0])])}}}),Q0={class:"tiun-h-full"},Y0={class:"tiun-px-6 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},G0={class:"tiun-text-sm tiun-font-bold tiun-text-black dark:tiun-text-white"},t2=p("div",{role:"status",class:"tiun-flex tiun-justify-center"},[p("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-10 tiun-w-10"},[p("rect",{width:"18",height:"18",rx:"9",fill:"#D1FAE5"}),p("path",{d:"M6.375 9.375L7.875 10.875L11.625 7.125",stroke:"#059669","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1),e2=at({__name:"SuccessCard",setup(t){const e=vt(),n=tt(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o,r;return v(),S("div",Q0,[p("div",Y0,[p("div",G0,V((r=(o=n.value)==null?void 0:o.animation)==null?void 0:r.successfulConnectionText),1),t2])])}}}),n2={key:2,class:"tiun-h-full tiun-absolute tiun-inset-0","data-cy":"tiunUnlockSessionCard"},i2={class:"tiun-text-base tiun-leading-normal tiun-text-white"},s2=p("img",{src:"https://assets.tiun.dev/snippets/emojis/index_pointing_down.svg",class:"!tiun-inline"},null,-1),o2={class:"tiun-h-full tiun-p-4 tiun-grid tiun-justify-center tiun-text-center tiun-gap-4 tiun-content-center"},r2=["src"],l2={class:"tiun-grid tiun-gap-1"},a2={class:"tiun-text-sm tiun-leading-5 tiun-font-bold dark:tiun-text-white tiun-text-black"},u2={class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},ua=at({__name:"UnlockSessionCard",props:{type:{type:String,required:!0}},setup(t){const e=t,n=vt(),i=qt(),s=J(),o=Pt(),r=tt(()=>{var l;return(l=n.badgeData)==null?void 0:l.data});return Mt(()=>{var l;return(l=r.value)==null?void 0:l.animation},()=>{var l,a,c,u,d,f,_,g,y,b;if(!((a=(l=r.value)==null?void 0:l.animation)!=null&&a.successfulConnectionText)&&!((u=(c=r.value)==null?void 0:c.animation)!=null&&u.startNextSessionText)){s.value="idle";return}else i.currentView="showPaymentMethods",e.type==="badge"&&((d=r.value)!=null&&d.animation.showOnPaywallInsteadOfBadge)||e.type==="paywall"&&!((f=r.value)!=null&&f.animation.showOnPaywallInsteadOfBadge)?s.value="idle":(_=r.value)!=null&&_.animation.successfulConnectionText&&((g=r.value)!=null&&g.animation.startNextSessionText)?(s.value="success",setTimeout(()=>s.value="startSession",3e3),setTimeout(()=>s.value="idle",8e3)):(y=r.value)!=null&&y.animation.successfulConnectionText?(s.value="success",setTimeout(()=>s.value="idle",3e3)):(b=r.value)!=null&&b.animation.startNextSessionText?(s.value="startSession",setTimeout(()=>s.value="idle",3e3)):s.value="idle"},{immediate:!0,deep:!0}),(l,a)=>(v(),pt(It,{name:"tiun-fade"},{default:Nt(()=>{var c,u,d,f,_;return[w(n).isLoadingSessionBadge?(v(),pt(X0,{key:0,class:"tiun-absolute tiun-inset-0"})):s.value==="success"||!s.value?(v(),pt(e2,{key:1,class:"tiun-absolute tiun-inset-0"})):(v(),S("div",n2,[p("div",{class:N(["tiun-transition-opacity tiun-duration-300 tiun-absolute tiun-gap-1 tiun-font-bold tiun-text-base tiun-h-full tiun-w-full tiun-bg-black tiun-text-white tiun-flex tiun-items-end tiun-text-end tiun-p-8",[{"tiun-rounded-xl":w(o).areCornersRounded},s.value==="startSession"?"tiun-opacity-90":"tiun-opacity-0"]])},[p("span",i2,V((u=(c=r.value)==null?void 0:c.animation)==null?void 0:u.startNextSessionText),1),s2],2),p("div",o2,[(d=r.value)!=null&&d.logoUrl?(v(),S("img",{key:0,height:"48",width:"48",class:N(["tiun-flex-shrink-0 !tiun-my-0 tiun-w-12 tiun-h-12 tiun-mx-auto tiun-border tiun-border-gray-100",{"tiun-rounded-md":w(o).areCornersRounded}]),src:r.value.logoUrl},null,10,r2)):(v(),S("div",{key:1,class:N([{"tiun-rounded-md":w(o).areCornersRounded},"tiun-h-12 tiun-w-12 dark:tiun-bg-gray-700 tiun-bg-gray-100 tiun-flex tiun-items-center tiun-mx-auto tiun-justify-center"])},null,2)),p("div",l2,[p("div",a2,V((f=r.value)==null?void 0:f.primaryLine),1),p("div",u2,V((_=r.value)==null?void 0:_.secondaryLine),1)])])]))]}),_:1}))}}),c2={},d2={class:"tiun-absolute tiun-top-4 tiun-right-4"},f2=[p("svg",{width:"71",height:"12",viewBox:"0 0 71 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p("path",{d:"M0.795943 9V3.18182H2.86981C3.32246 3.18182 3.69746 3.2642 3.99481 3.42898C4.29216 3.59375 4.51469 3.81913 4.66242 4.10511C4.81015 4.3892 4.88401 4.70928 4.88401 5.06534C4.88401 5.4233 4.8092 5.74527 4.65958 6.03125C4.51185 6.31534 4.28837 6.54072 3.98912 6.70739C3.69178 6.87216 3.31772 6.95455 2.86697 6.95455H1.44083V6.21023H2.78742C3.07341 6.21023 3.30541 6.16098 3.48344 6.0625C3.66147 5.96212 3.79215 5.82576 3.87549 5.65341C3.95882 5.48106 4.00049 5.28504 4.00049 5.06534C4.00049 4.84564 3.95882 4.65057 3.87549 4.48011C3.79215 4.30966 3.66053 4.17614 3.4806 4.07955C3.30257 3.98295 3.06772 3.93466 2.77606 3.93466H1.67378V9H0.795943ZM7.62833 9.08807C7.21924 9.08807 6.86223 8.99432 6.55731 8.80682C6.25238 8.61932 6.01564 8.35701 5.84708 8.01989C5.67852 7.68277 5.59424 7.28883 5.59424 6.83807C5.59424 6.38542 5.67852 5.98958 5.84708 5.65057C6.01564 5.31155 6.25238 5.0483 6.55731 4.8608C6.86223 4.6733 7.21924 4.57955 7.62833 4.57955C8.03742 4.57955 8.39443 4.6733 8.69935 4.8608C9.00428 5.0483 9.24102 5.31155 9.40958 5.65057C9.57814 5.98958 9.66242 6.38542 9.66242 6.83807C9.66242 7.28883 9.57814 7.68277 9.40958 8.01989C9.24102 8.35701 9.00428 8.61932 8.69935 8.80682C8.39443 8.99432 8.03742 9.08807 7.62833 9.08807ZM7.63117 8.375C7.89632 8.375 8.11602 8.30492 8.29026 8.16477C8.4645 8.02462 8.59329 7.83807 8.67662 7.60511C8.76185 7.37216 8.80447 7.11553 8.80447 6.83523C8.80447 6.55682 8.76185 6.30114 8.67662 6.06818C8.59329 5.83333 8.4645 5.64489 8.29026 5.50284C8.11602 5.3608 7.89632 5.28977 7.63117 5.28977C7.36412 5.28977 7.14253 5.3608 6.9664 5.50284C6.79215 5.64489 6.66242 5.83333 6.57719 6.06818C6.49386 6.30114 6.45219 6.55682 6.45219 6.83523C6.45219 7.11553 6.49386 7.37216 6.57719 7.60511C6.66242 7.83807 6.79215 8.02462 6.9664 8.16477C7.14253 8.30492 7.36412 8.375 7.63117 8.375ZM11.4238 9L10.1397 4.63636H11.0175L11.8726 7.84091H11.9153L12.7732 4.63636H13.6511L14.5033 7.8267H14.5459L15.3954 4.63636H16.2732L14.992 9H14.1255L13.2391 5.84943H13.1738L12.2874 9H11.4238ZM18.8272 9.08807C18.3973 9.08807 18.027 8.99621 17.7164 8.8125C17.4077 8.62689 17.169 8.36648 17.0005 8.03125C16.8338 7.69413 16.7505 7.29924 16.7505 6.84659C16.7505 6.39962 16.8338 6.00568 17.0005 5.66477C17.169 5.32386 17.4039 5.05777 17.705 4.86648C18.0081 4.67519 18.3622 4.57955 18.7675 4.57955C19.0137 4.57955 19.2524 4.62027 19.4834 4.7017C19.7145 4.78314 19.9219 4.91098 20.1056 5.08523C20.2893 5.25947 20.4342 5.4858 20.5403 5.7642C20.6463 6.04072 20.6994 6.37689 20.6994 6.77273V7.07386H17.2306V6.4375H19.867C19.867 6.21402 19.8215 6.0161 19.7306 5.84375C19.6397 5.66951 19.5119 5.5322 19.3471 5.43182C19.1842 5.33144 18.9929 5.28125 18.7732 5.28125C18.5346 5.28125 18.3262 5.33996 18.1482 5.45739C17.9721 5.57292 17.8357 5.72443 17.7391 5.91193C17.6444 6.09754 17.5971 6.29924 17.5971 6.51705V7.0142C17.5971 7.30587 17.6482 7.55398 17.7505 7.75852C17.8547 7.96307 17.9995 8.11932 18.1851 8.22727C18.3708 8.33333 18.5876 8.38636 18.8357 8.38636C18.9967 8.38636 19.1435 8.36364 19.2761 8.31818C19.4086 8.27083 19.5232 8.20076 19.6198 8.10795C19.7164 8.01515 19.7903 7.90057 19.8414 7.7642L20.6454 7.90909C20.581 8.14583 20.4655 8.35322 20.2988 8.53125C20.134 8.70739 19.9266 8.8447 19.6766 8.94318C19.4285 9.03977 19.1454 9.08807 18.8272 9.08807ZM21.6418 9V4.63636H22.4628V5.32955H22.5083C22.5878 5.0947 22.728 4.91004 22.9288 4.77557C23.1314 4.6392 23.3606 4.57102 23.6163 4.57102C23.6693 4.57102 23.7318 4.57292 23.8038 4.5767C23.8776 4.58049 23.9354 4.58523 23.9771 4.59091V5.40341C23.943 5.39394 23.8824 5.38352 23.7952 5.37216C23.7081 5.3589 23.621 5.35227 23.5339 5.35227C23.3331 5.35227 23.1541 5.39489 22.9969 5.48011C22.8416 5.56345 22.7185 5.67992 22.6276 5.82955C22.5367 5.97727 22.4913 6.14583 22.4913 6.33523V9H21.6418ZM26.4366 9.08807C26.0066 9.08807 25.6364 8.99621 25.3258 8.8125C25.0171 8.62689 24.7784 8.36648 24.6099 8.03125C24.4432 7.69413 24.3599 7.29924 24.3599 6.84659C24.3599 6.39962 24.4432 6.00568 24.6099 5.66477C24.7784 5.32386 25.0133 5.05777 25.3144 4.86648C25.6174 4.67519 25.9716 4.57955 26.3769 4.57955C26.6231 4.57955 26.8618 4.62027 27.0928 4.7017C27.3239 4.78314 27.5313 4.91098 27.715 5.08523C27.8987 5.25947 28.0436 5.4858 28.1496 5.7642C28.2557 6.04072 28.3087 6.37689 28.3087 6.77273V7.07386H24.84V6.4375H27.4763C27.4763 6.21402 27.4309 6.0161 27.34 5.84375C27.2491 5.66951 27.1212 5.5322 26.9565 5.43182C26.7936 5.33144 26.6023 5.28125 26.3826 5.28125C26.144 5.28125 25.9356 5.33996 25.7576 5.45739C25.5815 5.57292 25.4451 5.72443 25.3485 5.91193C25.2538 6.09754 25.2065 6.29924 25.2065 6.51705V7.0142C25.2065 7.30587 25.2576 7.55398 25.3599 7.75852C25.464 7.96307 25.6089 8.11932 25.7945 8.22727C25.9801 8.33333 26.197 8.38636 26.4451 8.38636C26.6061 8.38636 26.7529 8.36364 26.8854 8.31818C27.018 8.27083 27.1326 8.20076 27.2292 8.10795C27.3258 8.01515 27.3996 7.90057 27.4508 7.7642L28.2547 7.90909C28.1904 8.14583 28.0748 8.35322 27.9082 8.53125C27.7434 8.70739 27.536 8.8447 27.286 8.94318C27.0379 9.03977 26.7547 9.08807 26.4366 9.08807ZM30.8847 9.08523C30.5324 9.08523 30.2181 8.99527 29.9415 8.81534C29.6669 8.63352 29.451 8.375 29.2938 8.03977C29.1385 7.70265 29.0609 7.2983 29.0609 6.8267C29.0609 6.35511 29.1395 5.9517 29.2967 5.61648C29.4557 5.28125 29.6735 5.02462 29.9501 4.84659C30.2266 4.66856 30.54 4.57955 30.8904 4.57955C31.1612 4.57955 31.379 4.625 31.5438 4.71591C31.7105 4.80492 31.8393 4.90909 31.9302 5.02841C32.023 5.14773 32.0949 5.25284 32.1461 5.34375H32.1972V3.18182H33.0467V9H32.2171V8.32102H32.1461C32.0949 8.41383 32.0211 8.51989 31.9245 8.6392C31.8298 8.75852 31.6991 8.86269 31.5324 8.9517C31.3658 9.04072 31.1499 9.08523 30.8847 9.08523ZM31.0722 8.3608C31.3165 8.3608 31.523 8.2964 31.6915 8.16761C31.862 8.03693 31.9908 7.85606 32.0779 7.625C32.1669 7.39394 32.2114 7.125 32.2114 6.81818C32.2114 6.51515 32.1679 6.25 32.0807 6.02273C31.9936 5.79545 31.8658 5.61837 31.6972 5.49148C31.5287 5.36458 31.3203 5.30114 31.0722 5.30114C30.8165 5.30114 30.6035 5.36742 30.433 5.5C30.2626 5.63258 30.1338 5.81345 30.0467 6.04261C29.9614 6.27178 29.9188 6.5303 29.9188 6.81818C29.9188 7.10985 29.9624 7.37216 30.0495 7.60511C30.1366 7.83807 30.2654 8.02273 30.4359 8.15909C30.6082 8.29356 30.8203 8.3608 31.0722 8.3608ZM36.4444 9V3.18182H37.2938V5.34375H37.3449C37.3942 5.25284 37.4652 5.14773 37.558 5.02841C37.6508 4.90909 37.7796 4.80492 37.9444 4.71591C38.1092 4.625 38.327 4.57955 38.5978 4.57955C38.9501 4.57955 39.2645 4.66856 39.541 4.84659C39.8175 5.02462 40.0343 5.28125 40.1915 5.61648C40.3506 5.9517 40.4302 6.35511 40.4302 6.8267C40.4302 7.2983 40.3516 7.70265 40.1944 8.03977C40.0372 8.375 39.8213 8.63352 39.5467 8.81534C39.272 8.99527 38.9586 9.08523 38.6063 9.08523C38.3412 9.08523 38.1243 9.04072 37.9557 8.9517C37.7891 8.86269 37.6584 8.75852 37.5637 8.6392C37.469 8.51989 37.3961 8.41383 37.3449 8.32102H37.2739V9H36.4444ZM37.2768 6.81818C37.2768 7.125 37.3213 7.39394 37.4103 7.625C37.4993 7.85606 37.6281 8.03693 37.7967 8.16761C37.9652 8.2964 38.1717 8.3608 38.416 8.3608C38.6698 8.3608 38.8819 8.29356 39.0523 8.15909C39.2228 8.02273 39.3516 7.83807 39.4387 7.60511C39.5277 7.37216 39.5722 7.10985 39.5722 6.81818C39.5722 6.5303 39.5287 6.27178 39.4415 6.04261C39.3563 5.81345 39.2275 5.63258 39.0552 5.5C38.8847 5.36742 38.6717 5.30114 38.416 5.30114C38.1698 5.30114 37.9614 5.36458 37.791 5.49148C37.6224 5.61837 37.4946 5.79545 37.4074 6.02273C37.3203 6.25 37.2768 6.51515 37.2768 6.81818ZM41.7725 10.6364C41.6456 10.6364 41.5301 10.6259 41.4259 10.6051C41.3217 10.5862 41.2441 10.5653 41.193 10.5426L41.3975 9.84659C41.5528 9.88826 41.6911 9.90625 41.8123 9.90057C41.9335 9.89489 42.0405 9.84943 42.1333 9.7642C42.228 9.67898 42.3113 9.53977 42.3833 9.34659L42.4884 9.05682L40.8918 4.63636H41.8009L42.906 8.02273H42.9515L44.0566 4.63636H44.9685L43.1702 9.58239C43.0869 9.80966 42.9808 10.0019 42.8521 10.1591C42.7233 10.3182 42.5699 10.4375 42.3918 10.517C42.2138 10.5966 42.0074 10.6364 41.7725 10.6364Z",fill:"#6B7280"}),p("path",{d:"M51.8137 4.52092V5.80908H48.3464V4.52092H51.8137ZM49.0728 3.20413H50.8225V8.2888C50.8225 8.39615 50.8392 8.48322 50.8726 8.55001C50.9084 8.61442 50.9597 8.66094 51.0265 8.68956C51.0933 8.7158 51.1732 8.72892 51.2662 8.72892C51.333 8.72892 51.4034 8.72296 51.4773 8.71103C51.5537 8.69672 51.6109 8.68479 51.6491 8.67525L51.9139 9.93837C51.8304 9.96222 51.7123 9.99204 51.5596 10.0278C51.4094 10.0636 51.2293 10.0863 51.0193 10.0958C50.609 10.1149 50.2572 10.0672 49.9637 9.95268C49.6727 9.83579 49.4497 9.6545 49.2946 9.40879C49.1419 9.16308 49.068 8.85416 49.0728 8.48203V3.20413ZM52.7065 10.0171V4.52092H54.4562V10.0171H52.7065ZM53.5831 3.88041C53.3374 3.88041 53.1263 3.79931 52.9498 3.63709C52.7733 3.47249 52.685 3.2745 52.685 3.04311C52.685 2.8141 52.7733 2.61849 52.9498 2.45627C53.1263 2.29168 53.3374 2.20938 53.5831 2.20938C53.8312 2.20938 54.0423 2.29168 54.2165 2.45627C54.393 2.61849 54.4813 2.8141 54.4813 3.04311C54.4813 3.2745 54.393 3.47249 54.2165 3.63709C54.0423 3.79931 53.8312 3.88041 53.5831 3.88041ZM59.116 7.64472V4.52092H60.8622V10.0171H59.1947V8.99371H59.1375C59.0158 9.33007 58.8083 9.59724 58.5148 9.79524C58.2238 9.99085 57.872 10.0887 57.4593 10.0887C57.0847 10.0887 56.7555 10.0028 56.4717 9.83102C56.1878 9.65927 55.9671 9.41952 55.8097 9.1118C55.6523 8.80168 55.5723 8.43909 55.57 8.02401V4.52092H57.3197V7.6805C57.3221 7.97869 57.4008 8.21366 57.5559 8.38541C57.7109 8.55717 57.922 8.64305 58.1892 8.64305C58.3634 8.64305 58.5196 8.60488 58.658 8.52854C58.7987 8.44982 58.9096 8.33651 58.9907 8.18861C59.0742 8.03832 59.116 7.85703 59.116 7.64472ZM63.7256 6.88255V10.0171H61.9759V4.52092H63.6398V5.52998H63.7006C63.8223 5.19363 64.0298 4.93003 64.3232 4.73919C64.6166 4.54597 64.9661 4.44935 65.3716 4.44935C65.7581 4.44935 66.0932 4.53642 66.3771 4.71056C66.6634 4.88232 66.8852 5.12325 67.0427 5.43337C67.2025 5.7411 67.2812 6.10131 67.2788 6.514V10.0171H65.5291V6.85751C65.5315 6.55216 65.4539 6.31361 65.2965 6.14186C65.1414 5.9701 64.9256 5.88423 64.6488 5.88423C64.4652 5.88423 64.3029 5.92478 64.1622 6.00589C64.0238 6.08461 63.9165 6.19792 63.8402 6.34582C63.7662 6.49372 63.728 6.67263 63.7256 6.88255ZM69.3462 10.1209C69.0885 10.1209 68.8679 10.0302 68.6842 9.84891C68.5029 9.66762 68.4134 9.44815 68.4158 9.19052C68.4134 8.93765 68.5029 8.72177 68.6842 8.54286C68.8679 8.36156 69.0885 8.27091 69.3462 8.27091C69.5895 8.27091 69.8042 8.36156 69.9902 8.54286C70.1787 8.72177 70.2741 8.93765 70.2765 9.19052C70.2741 9.36227 70.2288 9.51852 70.1405 9.65927C70.0547 9.80001 69.9413 9.91213 69.8006 9.99562C69.6622 10.0791 69.5108 10.1209 69.3462 10.1209Z",fill:"#6B7280"})],-1)];function p2(t,e){return v(),S("div",d2,f2)}const ca=xt(c2,[["render",p2]]),h2={class:"tiun-w-full tiun-grid tiun-bg-black"},g2={class:"tiun-text-center tiun-text-white tiun-text-xs tiun-font-medium tiun-leading-none"},m2={class:"tiun-p-4 tiun-grid"},_2={class:"tiun-h-[2.75em]"},y2={class:"tiun-grid tiun-gap-1 tiun-h-full tiun-text-left"},v2={key:0,class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},w2=at({__name:"BadgeTopPart",setup(t){const e=vt(),n=tt(()=>{var i,s;return(s=(i=e.badgeData)==null?void 0:i.data)==null?void 0:s.headerRow});return(i,s)=>{var o,r,l,a,c,u;return v(),S("div",h2,[p("div",{class:N(["tiun-h-[3.25em] tiun-p-4 tiun-self-stretch tiun-w-full tiun-items-center tiun-inline-flex",(o=n.value)!=null&&o.tagText?"tiun-justify-between":"tiun-justify-end"])},[(r=n.value)!=null&&r.tagText?(v(),S("div",{key:0,class:N(["tiun-px-2.5 tiun-py-1 tiun-rounded-[10px] tiun-justify-center tiun-items-center tiun-flex",w(e).buttonColor])},[p("div",g2,V(n.value.tagText),1)],2)):rt("",!0),j(ca)],2),p("div",m2,[p("div",_2,[p("div",y2,[p("div",{class:N(["tiun-flex tiun-font-semibold tiun-text-white tiun-items-center tiun-gap-1",{"tiun--mt-8":!((l=n.value)!=null&&l.subtitleLine)}])},V((a=n.value)==null?void 0:a.titleLine),3),(c=n.value)!=null&&c.subtitleLine?(v(),S("div",v2,V((u=n.value)==null?void 0:u.subtitleLine),1)):rt("",!0)])])])])}}}),Co=async()=>{const t=await zt.delete("/v1/connections");return t==null?void 0:t.data},da=async t=>{const e=await zt.post("/v1/connections",{currentUrl:window.location.href,connectionType:t});return e==null?void 0:e.data},C2=["disabled"],b2={class:"tiunBadgeButtonText"},x2=["disabled"],S2={class:"tiunBadgeButtonText"},k2=at({__name:"BadgeCta",setup(t){const e=vt(),n=Pt(),i=qt(),s=go(),o=J(!1),r=tt(()=>{var g,y;return(y=(g=e.badgeData)==null?void 0:g.data)==null?void 0:y.ctaRow}),l=tt(()=>{var g;return(g=e.badgeData)==null?void 0:g.data});function a(){e.isPaymentError&&u()}function c(){e.isPaymentError?f():e.isLowBalanceWarning||e.isTopUpError?d():e.isActiveSessionBadge||e.isCountdownWarning?_():(e.isStartSessionBadge||e.isLoadingSessionBadge)&&u()}async function u(){if(!n.isPreviewMode)try{o.value=!0,await la("Badge"),await e.loadInfo(),o.value=!1}catch{o.value=!1}}function d(){var g;(g=l.value)!=null&&g.topUpLink&&window.open(l.value.topUpLink,"_blank")}async function f(){n.isPreviewMode||(e.closeBadge(),await Co(),await i.loadPaywall(),await e.loadInfo())}async function _(){try{o.value=!0,e.showSpentScreen=!0,await _1(),await e.loadSnippetInfo(),s.snippetSession=void 0,e.stopPolling(),e.sendMessage("TIUN_SHOW_PAYWALL"),e.lastSentMessage="showPaywall",o.value=!1}catch{o.value=!1}}return(g,y)=>{var C,k,A,T,F,st;const b=Tr("ripple");return v(),S("div",{class:N(["tiun-bg-gray-200 tiun-w-full tiun-p-4",{"tiun-rounded-xl":w(n).areCornersRounded}])},[p("div",{class:N({"tiun-flex tiun-items-center tiun-gap-4":((C=r.value)==null?void 0:C.primaryCtaLabel)&&((k=r.value)==null?void 0:k.secondaryCtaLabel)})},[(A=r.value)!=null&&A.secondaryCtaLabel?Bt((v(),S("button",{key:0,type:"button",class:N(["tiunBadgeSecondaryButton !tiun-min-w-[4.5em]",{"tiun-rounded-xl":w(n).areCornersRounded}]),onClick:a,disabled:w(e).isLoadingSessionBadge||o.value},[p("div",b2,V((T=r.value)==null?void 0:T.secondaryCtaLabel),1)],10,C2)),[[b]]):rt("",!0),(F=r.value)!=null&&F.primaryCtaLabel?Bt((v(),S("button",{key:1,type:"button",class:N(["tiunBadgePrimaryButton tiun-w-full",{"tiun-rounded-xl":w(n).areCornersRounded}]),"data-cy":"tiunBtnEndSession",onClick:c,disabled:w(e).isLoadingSessionBadge||o.value},[p("div",S2,V((st=r.value)==null?void 0:st.primaryCtaLabel),1)],10,x2)),[[b]]):rt("",!0)],2)],2)}}}),E2={},T2={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$2=[p("path",{d:"M11.327 4.12721C12.0299 3.42427 13.1696 3.42427 13.8726 4.12721C14.5755 4.83015 14.5755 5.96985 13.8726 6.6728L11.1726 9.37279C10.4696 10.0757 9.32994 10.0757 8.627 9.3728C8.27552 9.02132 7.70568 9.02132 7.3542 9.3728C7.00273 9.72427 7.00273 10.2941 7.3542 10.6456C8.76009 12.0515 11.0395 12.0515 12.4454 10.6456L15.1454 7.94559C16.5513 6.5397 16.5513 4.26031 15.1454 2.85442C13.7395 1.44853 11.4601 1.44853 10.0542 2.85442L8.7042 4.20442C8.35273 4.55589 8.35273 5.12574 8.7042 5.47721C9.05568 5.82868 9.62552 5.82868 9.977 5.47721L11.327 4.12721Z",fill:"currentColor"},null,-1),p("path",{d:"M6.82701 8.62721C7.52996 7.92427 8.66965 7.92427 9.3726 8.62721C9.72407 8.97868 10.2939 8.97868 10.6454 8.62721C10.9969 8.27574 10.9969 7.70589 10.6454 7.35442C9.2395 5.94853 6.96011 5.94853 5.55422 7.35442L2.85422 10.0544C1.44833 11.4603 1.44833 13.7397 2.85422 15.1456C4.26011 16.5515 6.5395 16.5515 7.94539 15.1456L9.29539 13.7956C9.64686 13.4441 9.64686 12.8743 9.29539 12.5228C8.94392 12.1713 8.37407 12.1713 8.0226 12.5228L6.6726 13.8728C5.96965 14.5757 4.82996 14.5757 4.12701 13.8728C3.42407 13.1699 3.42407 12.0302 4.12701 11.3272L6.82701 8.62721Z",fill:"currentColor"},null,-1)];function L2(t,e){return v(),S("svg",T2,$2)}const M2=xt(E2,[["render",L2]]),A2={},P2={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"dark:tiun-text-white tiun-text-gray-500 hover:tiun-text-black dark:hover:!tiun-text-opacity-80 tiun-transition-colors"},R2=[p("path",{d:"M9 3.75L9 3.7575M9 9L9 9.0075M9 14.25L9 14.2575M9 4.5C8.58579 4.5 8.25 4.16421 8.25 3.75C8.25 3.33579 8.58579 3 9 3C9.41421 3 9.75 3.33579 9.75 3.75C9.75 4.16421 9.41421 4.5 9 4.5ZM9 9.75C8.58579 9.75 8.25 9.41421 8.25 9C8.25 8.58579 8.58579 8.25 9 8.25C9.41421 8.25 9.75 8.58579 9.75 9C9.75 9.41421 9.41421 9.75 9 9.75ZM9 15C8.58579 15 8.25 14.6642 8.25 14.25C8.25 13.8358 8.58579 13.5 9 13.5C9.41421 13.5 9.75 13.8358 9.75 14.25C9.75 14.6642 9.41421 15 9 15Z",stroke:"currentColor","stroke-width":"0.75","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function B2(t,e){return v(),S("svg",P2,R2)}const O2=xt(A2,[["render",B2]]),I2={class:"tiun-flex tiun-gap-2 tiun-items-center tiun-w-full"},H2=["src"],N2={class:"tiun-text-xs tiun-gap-2 tiun-flex tiun-w-full tiun-font-medium dark:tiun-text-white tiun-text-gray-700"},F2={key:0},D2={key:1},V2={key:0,class:"tiun-flex tiun-items-center tiun-gap-1"},j2={key:1,class:"tiun-relative"},U2=["aria-expanded"],W2={key:0,class:"tiun-flex tiun-items-center tiun-justify-between tiun-text-gray-700 tiun-p-4"},Z2={class:"tiun-font-semibold tiun-text-xs"},z2={class:"!tiun-font-medium !tiun-text-xs"},q2={class:"!tiun-font-medium !tiun-text-xs"},fa=at({__name:"PaymentMethod",setup(t){const e=vt(),n=qt(),i=J(!1),s=tt(()=>{var u,d;return(d=(u=e.badgeData)==null?void 0:u.data)==null?void 0:d.connectionRow}),o=Pt();function r(){i.value=!i.value}function l(){i.value&&(i.value=!1)}async function a(){o.isPreviewMode||(e.closeBadge(),await Co(),await n.loadPaywall(),await e.loadInfo())}function c(){var u,d,f;(f=(d=(u=s.value)==null?void 0:u.menu)==null?void 0:d.walletLink)!=null&&f.linkUrl&&window.open(s.value.menu.walletLink.linkUrl,"_blank")}return(u,d)=>{var f,_,g,y,b,C;return v(),S("div",{class:N(["tiun-flex tiun-justify-between tiun-items-center tiun-border tiun-border-gray-200 dark:tiun-border-none tiun-shadow-sm tiun-p-4 tiun-bg-white dark:tiun-bg-gray-800",{"tiun-rounded-xl":w(o).areCornersRounded}])},[p("div",I2,[(f=s.value)!=null&&f.iconUrl?(v(),S("img",{key:0,src:s.value.iconUrl,class:"!tiun-my-0"},null,8,H2)):rt("",!0),p("div",N2,[(_=s.value)!=null&&_.maskedCardNumber?(v(),S("div",F2," **"+V(s.value.maskedCardNumber),1)):rt("",!0),(g=s.value)!=null&&g.text?(v(),S("span",D2,V(s.value.text),1)):rt("",!0)])]),(y=s.value)!=null&&y.menu||(b=s.value)!=null&&b.showCheckmark?(v(),S("div",V2,[(C=s.value)!=null&&C.showCheckmark?(v(),pt(vo,{key:0})):rt("",!0),s.value.menu?(v(),S("div",j2,[p("button",{onClick:r,onBlur:l,class:"tiun-p-2 tiun-flex tiun-group tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black dark:focus-visible:tiun-outline-white","aria-haspopup":"true","aria-expanded":i.value,"data-cy":"tiunBtnExpandPaymentMethod"},[j(O2)],40,U2),j(It,{name:"tiun-scale"},{default:Nt(()=>{var k,A,T,F;return[Bt(p("div",{class:N(["tiun-absolute tiun-min-w-[227px] tiun-group tiun-divide-y tiun-transition-colors tiun-right-0 tiun-mt-2 tiun-bg-white dark:tiun-bg-gray-700 dark:tiun-border-none tiun-shadow-sm tiun-border tiun-z-50",{"tiun-rounded-xl":w(o).areCornersRounded}]),role:"menu"},[(k=s.value.menu.balance)!=null&&k.text?(v(),S("div",W2,[p("span",Z2,V((A=s.value.menu.balance)==null?void 0:A.text),1),j(_o,{class:"tiun-font-semibold tiun-text-xs",value:s.value.menu.balance.amount},null,8,["value"])])):rt("",!0),(T=s.value.menu.walletLink)!=null&&T.linkText?(v(),S("button",{key:1,class:"tiun-flex tiun-items-center tiun-justify-between tiun-gap-2 !tiun-px-4 !tiun-py-4 tiun-w-full tiunLink",role:"menuitem",onClick:c,"data-cy":"tiunBtnOpenWallet"},[p("span",z2,V((F=s.value.menu.walletLink)==null?void 0:F.linkText),1),j(M2)])):rt("",!0),s.value.menu.disconnectCtaText?(v(),S("button",{key:2,class:"tiun-flex tiun-items-center tiun-justify-between tiun-gap-2 !tiun-px-4 !tiun-py-4 tiun-w-full tiunLink",role:"menuitem",onClick:a,"data-cy":"tiunBtnDisconnectWallet"},[p("span",q2,V(s.value.menu.disconnectCtaText),1),j(wo)])):rt("",!0)],2),[[Ae,i.value]])]}),_:1})])):rt("",!0)])):rt("",!0)],2)}}}),K2={},J2={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X2=[p("rect",{width:"40",height:"40",rx:"20",fill:"#FEF3C7"},null,-1),p("path",{d:"M19.9995 17V19M19.9995 23H20.0095M13.0713 27H26.9277C28.4673 27 29.4296 25.3333 28.6598 24L21.7316 12C20.9618 10.6667 19.0373 10.6667 18.2675 12L11.3393 24C10.5695 25.3333 11.5317 27 13.0713 27Z",stroke:"#F97316","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function Q2(t,e){return v(),S("svg",J2,X2)}const Y2=xt(K2,[["render",Q2]]),G2={class:"tiun-absolute tiun-inset-0 tiun-py-4 tiun-px-6 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},tp={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},ep={role:"status",class:"tiun-flex tiun-justify-center"},np={class:"tiun-text-xxs tiun-text-gray-400"},ip=at({__name:"LowBalanceCard",setup(t){const e=vt(),n=tt(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o,r;return v(),S("div",G2,[p("div",tp,V((o=n.value)==null?void 0:o.primaryLine),1),p("div",ep,[j(Y2)]),p("span",np,V((r=n.value)==null?void 0:r.secondaryLine),1)])}}}),sp={},op={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rp=[p("rect",{width:"40",height:"40",rx:"20",fill:"#FCE7F3"},null,-1),p("path",{d:"M19.9995 17V19M19.9995 23H20.0095M13.0713 27H26.9277C28.4673 27 29.4296 25.3333 28.6598 24L21.7316 12C20.9618 10.6667 19.0373 10.6667 18.2675 12L11.3393 24C10.5695 25.3333 11.5317 27 13.0713 27Z",stroke:"#DB2777","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function lp(t,e){return v(),S("svg",op,rp)}const pa=xt(sp,[["render",lp]]),ap={class:"tiun-text-gray-400 !tiun-leading-[0.875em]"},up={key:0,class:"!tiun-text-xxs !tiun-leading-[0.875em]"},cp=["href"],dp={key:2,class:"!tiun-text-xxs !tiun-leading-[0.875em]"},fp=at({__name:"TextAndLinkDisplay",props:{data:{type:Object,default:void 0}},setup(t){return(e,n)=>{var i,s,o,r,l,a,c;return v(),S("span",ap,[(i=t.data)!=null&&i.secondaryLineBefore?(v(),S("span",up,V((s=t.data)==null?void 0:s.secondaryLineBefore),1)):rt("",!0),(r=(o=t.data)==null?void 0:o.secondaryLineLink)!=null&&r.linkUrl?(v(),S("a",{key:1,class:"!tiun-underline !tiun-text-xxs !tiun-leading-[0.875em]",href:t.data.secondaryLineLink.linkUrl,target:"_blank"},V((l=t.data)==null?void 0:l.secondaryLineLink.displayName),9,cp)):rt("",!0),(a=t.data)!=null&&a.secondaryLineAfter?(v(),S("span",dp,V((c=t.data)==null?void 0:c.secondaryLineAfter),1)):rt("",!0)])}}}),a5="",ha=xt(fp,[["__scopeId","data-v-bb170cb6"]]),pp={class:"tiun-absolute tiun-inset-0 tiun-px-6 tiun-py-4 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},hp={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},gp={role:"status",class:"tiun-flex tiun-justify-center"},ga=at({__name:"InsufficientFundsCard",setup(t){const e=vt(),n=tt(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o;return v(),S("div",pp,[p("div",hp,V((o=n.value)==null?void 0:o.primaryLine),1),p("div",gp,[j(pa)]),j(ha,{data:n.value},null,8,["data"])])}}}),mp={class:"tiun-absolute tiun-inset-0 tiun-py-4 tiun-px-6 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},_p={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},yp={role:"status",class:"tiun-flex tiun-justify-center"},ma=at({__name:"PaymentFailedCard",setup(t){const e=vt(),n=tt(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o;return v(),S("div",mp,[p("div",_p,V((o=n.value)==null?void 0:o.primaryLine),1),p("div",yp,[j(pa)]),j(ha,{data:n.value},null,8,["data"])])}}}),vp={class:"tiun-absolute tiun-inset-0 tiun-px-6 tiun-py-4 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},wp={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},Cp={class:"tiun-text-gray-400"},bp=at({__name:"CountdownWarningCard",setup(t){const e=vt(),n=tt(()=>{var r;return(r=e.badgeData)==null?void 0:r.data}),i=J(null),s=J();je(()=>{var r;(r=n.value)!=null&&r.terminationTimeUtc&&(i.value=new Date(n.value.terminationTimeUtc)),i.value&&(s.value=i.value.getTime()-Date.now())}),Pd(()=>{i.value&&(s.value=i.value.getTime()-Date.now())},1e3);const o=tt(()=>{if(s.value===void 0)return;if(s.value<=0)return"00:00";const r=Math.floor(s.value/(1e3*60)).toString().padStart(2,"0"),l=Math.floor(s.value%(1e3*60)/1e3).toString().padStart(2,"0");return`${r}:${l}`});return(r,l)=>{var a;return v(),S("div",vp,[p("div",wp,V((a=n.value)==null?void 0:a.countdownText),1),p("span",Cp,V(o.value),1)])}}}),xp={class:"tiun-rounded-xl tiun-flex tiun-flex-col tiun-h-full"},Sp={class:"tiun-h-full tiun-w-[304px]"},kp={class:"tiun-p-4 tiun-h-full tiun-flex tiun-flex-col tiun-gap-2"},bo=at({__name:"Badge",setup(t){const e=vt(),n=Pt(),i=tt(()=>e.isStartSessionBadge&&e.previousSession);return(s,o)=>(v(),S("div",xp,[j(w2),p("div",Sp,[p("div",kp,[j(fa),p("div",{class:N(["tiun-bg-white dark:tiun-bg-gray-800 tiun-h-full tiun-border tiun-border-gray-200 dark:tiun-border-none tiun-relative",{"tiun-rounded-xl":w(n).areCornersRounded}])},[j(It,{name:"tiun-fade"},{default:Nt(()=>[w(e).isLowBalanceWarning?(v(),pt(ip,{key:0})):w(e).isTopUpError?(v(),pt(ga,{key:1})):w(e).isPaymentError?(v(),pt(ma,{key:2})):w(e).isCountdownWarning?(v(),pt(bp,{key:3})):i.value?(v(),pt(k0,{key:4})):w(e).isStartSessionBadge||w(e).isLoadingSessionBadge?(v(),pt(ua,{key:5,type:"badge"})):w(e).isActiveSessionBadge?(v(),pt(Q1,{key:6})):rt("",!0)]),_:1})],2)])]),j(k2)]))}}),Ep=at({__name:"BadgeWrapper",setup(t){const e=/Mobi/.test(window.navigator.userAgent),n=J(),i=vt(),s=J(),o=J(""),r=J(null),l=J({x:0,y:0}),a=J({x:0,y:0}),{width:c}=Nd(n),u=Pt();je(()=>{document.addEventListener("touchstart",g),document.addEventListener("touchend",y)}),dn(()=>{document.removeEventListener("touchstart",g),document.removeEventListener("touchend",y)});const d=b=>{o.value=`-${b}px`},f=()=>{s.value&&(clearTimeout(s.value),s.value=null),i.openBadge()},_=()=>{s.value=setTimeout(()=>{i.closeBadge()},300)};wl(r,()=>i.closeBadge());const g=b=>{l.value={x:b.touches[0].clientX,y:b.touches[0].clientY}},y=b=>{if(a.value={x:b.changedTouches[0].clientX,y:b.changedTouches[0].clientY},Math.abs(a.value.x-l.value.x)>0||Math.abs(a.value.y-l.value.y)>0){const k=r.value;if(k){const A=k.getBoundingClientRect();(l.value.x<A.left||l.value.x>A.right||l.value.y<A.top||l.value.y>A.bottom||a.value.x<A.left||a.value.x>A.right||a.value.y<A.top||a.value.y>A.bottom)&&i.closeBadge()}}};return Mt(c,b=>{d(b)}),(b,C)=>{var k,A,T,F,st,et,P,H,Z,X,O,G;return Bt((v(),S("div",{class:"tiun-fixed tiun-z-[99999] tiun-transition-transform tiun-duration-300",style:rn([`right: ${o.value}`,w(i).openDetails?`transform: translateX(${o.value})`:"",`top: ${(A=(k=w(i).snippetInfo)==null?void 0:k.infoBadge)!=null&&A.topOffsetInPixels&&((T=w(i).snippetInfo)==null?void 0:T.infoBadge.topOffsetInPixels)>=0?((F=w(i).snippetInfo)==null?void 0:F.infoBadge.topOffsetInPixels)+"px":"74px"}`]),ref_key:"badgeRef",ref:r},[(et=(st=w(i).snippetInfo)==null?void 0:st.infoBadge)!=null&&et.animate?(v(),pt(It,{key:0,mode:"out-in",appear:(H=(P=w(i).snippetInfo)==null?void 0:P.infoBadge)==null?void 0:H.animate,"enter-active-class":"tiun-transition tiun-ease-out tiun-duration-300","enter-from-class":"tiun-transform tiun-translate-x-full tiun-opacity-0","enter-to-class":"tiun-transform tiun-translate-x-0 tiun-opacity-100","leave-active-class":"tiun-transition tiun-ease-in tiun-duration-200","leave-from-class":"tiun-transform tiun-translate-x-0 tiun-opacity-100","leave-to-class":"tiun-transform tiun-translate-x-full tiun-opacity-0"},{default:Nt(()=>{var ct,U;return[(U=(ct=w(i).snippetInfo)==null?void 0:ct.infoBadge)!=null&&U.badge?(v(),S("div",{key:0,class:"tiun-flex",onMouseleave:C[2]||(C[2]=z=>w(e)?void 0:_())},[j(mo,{onMouseEnterBadgeButton:C[0]||(C[0]=z=>f())}),p("div",{ref_key:"statusDetails",ref:n,onMouseenter:C[1]||(C[1]=z=>w(e)||!w(i).openDetails?void 0:f()),class:"tiun-h-[507px]"},[p("div",{class:N(["tiun-transition-shadow tiun-duration-300 dark:tiun-bg-black tiun-bg-white tiun-flex tiun-flex-col tiun-h-full",[w(i).openDetails?"tiun-shadow-2xl":"tiun-shadow-none",{"tiun-rounded-b-xl":w(u).areCornersRounded}]])},[j(bo)],2)],544)],32)):rt("",!0)]}),_:1},8,["appear"])):(v(),S(gt,{key:1},[(X=(Z=w(i).snippetInfo)==null?void 0:Z.infoBadge)!=null&&X.badge?(v(),S("div",{key:0,class:"tiun-flex",onMouseleave:C[5]||(C[5]=ct=>w(e)?void 0:_())},[j(mo,{onMouseEnterBadgeButton:C[3]||(C[3]=ct=>f())}),p("div",{ref_key:"statusDetails",ref:n,onMouseenter:C[4]||(C[4]=ct=>w(e)||!w(i).openDetails?void 0:f()),class:"tiun-h-[507px]"},[p("div",{class:N(["tiun-transition-shadow tiun-duration-300 dark:tiun-bg-black tiun-bg-white tiun-flex tiun-flex-col tiun-h-full",[w(i).openDetails?"tiun-shadow-2xl":"tiun-shadow-none",{"tiun-rounded-b-xl":w(u).areCornersRounded}]])},[j(bo)],2)],544)],32)):rt("",!0)],64))],4)),[[Ae,(G=(O=w(i).snippetInfo)==null?void 0:O.infoBadge)==null?void 0:G.badge]])}}}),Tp=at({__name:"App",setup(t){const e=vt(),n=go(),i=Id(),{idle:s}=Vd(18e4);async function o(){await e.loadInfo(),e.sendMessage("TIUN_SNIPPET_INITIALIZED")}return je(()=>{o()}),Mt(()=>i.value,()=>{var r;i.value==="hidden"&&n.mediaType==="text"?(e.stopPolling(),((r=n.snippetSession)==null?void 0:r.sessionStatus)==="Active"&&n.pausePolling()):(e.loadInfo(),e.handlePolling())}),Mt(()=>s.value,()=>{var r;s.value&&n.mediaType==="text"?(e.stopPolling(),((r=n.snippetSession)==null?void 0:r.sessionStatus)==="Active"&&n.pausePolling()):s.value||(e.loadInfo(),e.handlePolling())}),window.addEventListener("message",n.messageHandler),dn(()=>{window.removeEventListener("message",n.messageHandler),e.stopPolling()}),(r,l)=>(v(),pt(Ep))}}),u5="",$p=80,_a=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34});function ya(t,e){t.style.transform=e,t.style.webkitTransform=e}function xo(t,e){t.style.opacity=e.toString()}function So(t){return t.constructor.name==="TouchEvent"}function va(t){return t.constructor.name==="KeyboardEvent"}const Lp=(t,e,n={})=>{let i=0,s=0;if(!va(t)){const d=e.getBoundingClientRect(),f=So(t)?t.touches[t.touches.length-1]:t;i=f.clientX-d.left,s=f.clientY-d.top}let o=0,r=.3;e._ripple&&e._ripple.circle?(r=.15,o=e.clientWidth/2,o=n.center?o:o+Math.sqrt((i-o)**2+(s-o)**2)/4):o=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const l=`${(e.clientWidth-o*2)/2}px`,a=`${(e.clientHeight-o*2)/2}px`,c=n.center?l:`${i-o}px`,u=n.center?a:`${s-o}px`;return{radius:o,scale:r,x:c,y:u,centerX:l,centerY:a}},Zi={show(t,e,n={}){if(!e._ripple||!e._ripple.enabled)return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:o,scale:r,x:l,y:a,centerX:c,centerY:u}=Lp(t,e,n),d=`${o*2}px`;s.className="v-ripple__animation",s.style.width=d,s.style.height=d,e.appendChild(i);const f=window.getComputedStyle(e);f&&f.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),ya(s,`translate(${l}, ${a}) scale3d(${r},${r},${r})`),xo(s,0),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),ya(s,`translate(${c}, ${u}) scale3d(1,1,1)`),xo(s,.1)},0)},hide(t){if(!t||!t._ripple||!t._ripple.enabled)return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),xo(n,0),setTimeout(()=>{t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)},300)},s)}};function wa(t){return typeof t>"u"||!!t}function qn(t){const e={},n=t.currentTarget;if(!(!n||!n._ripple||n._ripple.touched)){if(So(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||va(t),n._ripple.class&&(e.class=n._ripple.class),So(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Zi.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{n&&n._ripple&&n._ripple.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},$p)}else Zi.show(t,n,e)}}function Kt(t){const e=t.currentTarget;if(!(!e||!e._ripple)){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=setTimeout(()=>{Kt(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),Zi.hide(e)}}function Ca(t){const e=t.currentTarget;!e||!e._ripple||(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let ko=!1;function ba(t){!ko&&(t.keyCode===_a.enter||t.keyCode===_a.space)&&(ko=!0,qn(t))}function xa(t){ko=!1,Kt(t)}function Sa(t,e,n){const i=wa(e.value);i||Zi.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=i;const s=e.value||{};s.center&&(t._ripple.centered=!0),s.class&&(t._ripple.class=e.value.class),s.circle&&(t._ripple.circle=s.circle),i&&!n?(t.addEventListener("touchstart",qn,{passive:!0}),t.addEventListener("touchend",Kt,{passive:!0}),t.addEventListener("touchmove",Ca,{passive:!0}),t.addEventListener("touchcancel",Kt),t.addEventListener("mousedown",qn),t.addEventListener("mouseup",Kt),t.addEventListener("mouseleave",Kt),t.addEventListener("keydown",ba),t.addEventListener("keyup",xa),t.addEventListener("dragstart",Kt,{passive:!0})):!i&&n&&ka(t)}function ka(t){t.removeEventListener("mousedown",qn),t.removeEventListener("touchstart",qn),t.removeEventListener("touchend",Kt),t.removeEventListener("touchmove",Ca),t.removeEventListener("touchcancel",Kt),t.removeEventListener("mouseup",Kt),t.removeEventListener("mouseleave",Kt),t.removeEventListener("keydown",ba),t.removeEventListener("keyup",xa),t.removeEventListener("dragstart",Kt)}function Mp(t,e,n){Sa(t,e,!1)}function Ap(t){delete t._ripple,ka(t)}function Pp(t,e){if(e.value===e.oldValue)return;const n=wa(e.oldValue);Sa(t,e,n)}const Eo={unmounted:Ap,mounted:Mp,updated:Pp},Rp={},Bp={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Op=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 19.6C15.3019 19.6 19.6 15.3019 19.6 10C19.6 4.69807 15.3019 0.400002 10 0.400002C4.69807 0.400002 0.400002 4.69807 0.400002 10C0.400002 15.3019 4.69807 19.6 10 19.6ZM8.44853 6.75147C7.9799 6.28284 7.2201 6.28284 6.75147 6.75147C6.28284 7.2201 6.28284 7.9799 6.75147 8.44853L8.30295 10L6.75147 11.5515C6.28284 12.0201 6.28284 12.7799 6.75147 13.2485C7.2201 13.7172 7.9799 13.7172 8.44853 13.2485L10 11.6971L11.5515 13.2485C12.0201 13.7172 12.7799 13.7172 13.2485 13.2485C13.7172 12.7799 13.7172 12.0201 13.2485 11.5515L11.6971 10L13.2485 8.44853C13.7172 7.9799 13.7172 7.2201 13.2485 6.75147C12.7799 6.28284 12.0201 6.28284 11.5515 6.75147L10 8.30295L8.44853 6.75147Z",fill:"currentColor"},null,-1)];function Ip(t,e){return v(),S("svg",Bp,Op)}const To=xt(Rp,[["render",Ip]]),Hp={},Np={class:"tiun-flex-grow tiun-mb-[5px] tiun-flex tiun-self-end",height:"3",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fp=[p("pattern",{id:"dots",width:"5",height:"3",patternUnits:"userSpaceOnUse"},[p("circle",{cx:"2.5",cy:"1.5",r:"1",fill:"#9CA3AF"})],-1),p("rect",{width:"100%",height:"3",fill:"url(#dots)"},null,-1)];function Dp(t,e){return v(),S("svg",Np,Fp)}const Vp=xt(Hp,[["render",Dp]]),jp={},Up={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wp=[p("path",{d:"M4.5 6.00001L5.5 7.00001L7.5 5.00001M10.309 2.99217C10.2066 2.99736 10.1036 2.99999 10 2.99999C8.46327 2.99999 7.06148 2.42227 5.99997 1.47217C4.93846 2.42223 3.53669 2.99992 2 2.99992C1.89639 2.99992 1.79339 2.9973 1.69106 2.99211C1.56635 3.47392 1.5 3.97921 1.5 4.50001C1.5 7.29576 3.41216 9.64491 6 10.311C8.58784 9.64491 10.5 7.29576 10.5 4.50001C10.5 3.97923 10.4337 3.47396 10.309 2.99217Z",stroke:"#10B981","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function Zp(t,e){return v(),S("svg",Up,Wp)}const zp=xt(jp,[["render",Zp]]),qp={class:"tiun-flex tiun-flex-col tiun-gap-6 tiun-h-full"},Kp={class:"tiun-flex tiun-flex-col tiun-gap-2 tiun-font-medium","data-cy":"tiunPricingCard"},Jp={class:"tiun-flex-shrink-0 tiun-text-xs tiun-leading-4"},Xp={class:"tiun-flex-shrink-0 tiun-text-gray-500 tiun-text-xs tiun-leading-4"},Qp={class:"tiun-font-medium tiun-grid tiun-gap-2"},Yp={class:"tiun-text-emerald-500 tiun-text-xxs tiun-flex tiun-items-center tiun-gap-1"},Gp={class:"tiun-text-gray-400 !tiun-text-xxs !tiun-leading-normal tiun-text-left"},t3={class:"tiun-flex tiun-items-center tiun-gap-8 tiun-m-auto"},e3=["onClick"],n3={class:"tiun-hintBtnText group-hover:!tiun-text-black tiun-text-gray-600"},i3=at({__name:"PricingHint",setup(t){const e=qt(),n=tt(()=>e.allHints.filter(i=>i.value!=="pricing"));return(i,s)=>{var o,r,l,a,c,u;return v(),S("div",qp,[p("div",Kp,[(v(!0),S(gt,null,Ut((r=(o=w(e).paywallConfig)==null?void 0:o.helpCenter)==null?void 0:r.pricing.breakdownLines,(d,f)=>(v(),S("div",{key:d,class:"tiun-flex tiun-justify-between tiun-items-center tiun-gap-3"},[p("span",Jp,V(f),1),j(Vp),p("span",Xp,V(d),1)]))),128))]),p("div",Qp,[p("div",Yp,[Te(V((a=(l=w(e).paywallConfig)==null?void 0:l.helpCenter)==null?void 0:a.pricing.userProtectionTitle)+" ",1),j(zp)]),p("p",Gp,V((u=(c=w(e).paywallConfig)==null?void 0:c.helpCenter)==null?void 0:u.pricing.userProtectionBody),1)]),p("div",t3,[(v(!0),S(gt,null,Ut(n.value,d=>(v(),S("button",{key:d.text,type:"button",class:"tiun-hintBtn tiun-group !tiun-text-gray-300 tiun-h-full",onClick:f=>w(e).setHint(d.value)},[(v(),pt(xi(d.type))),p("span",n3,V(d.text),1)],8,e3))),128))])])}}}),h5="",s3=xt(i3,[["__scopeId","data-v-85f7b8eb"]]),o3={class:"tiun-bg-white tiun-flex tiun-flex-col tiun-gap-6 tiun-h-full","data-cy":"tiunSupportCard"},r3={class:"tiun-text-left !tiun-leading-4"},l3={class:"!tiun-text-xs !tiun-font-medium"},a3=["href"],u3={class:"tiun-text-left !tiun-leading-4"},c3={class:"!tiun-text-xs !tiun-font-medium"},d3=["href"],f3={class:"tiun-flex tiun-gap-8 tiun-items-center tiun-m-auto"},p3=["onClick"],h3={class:"tiun-hintBtnText group-hover:!tiun-text-black tiun-text-gray-600"},g3=at({__name:"SupportHint",setup(t){const e=qt(),n=tt(()=>e.allHints.filter(i=>i.value!=="support"));return(i,s)=>{var o,r,l,a,c,u,d,f,_,g,y,b;return v(),S("div",o3,[p("div",r3,[p("div",l3,V((r=(o=w(e).paywallConfig)==null?void 0:o.helpCenter)==null?void 0:r.support.contactSupportText),1),p("a",{class:"tiunLink",href:(a=(l=w(e).paywallConfig)==null?void 0:l.helpCenter)==null?void 0:a.support.supportEmail.linkUrl},V((u=(c=w(e).paywallConfig)==null?void 0:c.helpCenter)==null?void 0:u.support.supportEmail.displayName),9,a3)]),p("div",u3,[p("div",c3,V((f=(d=w(e).paywallConfig)==null?void 0:d.helpCenter)==null?void 0:f.support.helpPageText),1),p("a",{class:"tiunLink",href:(g=(_=w(e).paywallConfig)==null?void 0:_.helpCenter)==null?void 0:g.support.helpPageLink.linkUrl,target:"_blank"},V((b=(y=w(e).paywallConfig)==null?void 0:y.helpCenter)==null?void 0:b.support.helpPageLink.displayName),9,d3)]),p("div",f3,[(v(!0),S(gt,null,Ut(n.value,C=>(v(),S("button",{key:C.text,type:"button",class:"tiun-hintBtn tiun-group !tiun-text-gray-300 tiun-h-full",onClick:k=>w(e).setHint(C.value)},[(v(),pt(xi(C.type))),p("span",h3,V(C.text),1)],8,p3))),128))])])}}}),g5="",m3=xt(g3,[["__scopeId","data-v-dd76703e"]]),_3=["onClick","data-cy"],y3={class:"tiun-hintBtnText group-hover:!tiun-text-white tiun-text-gray-400"},v3=at({__name:"HintButtons",setup(t){const e=qt();return(n,i)=>(v(),S("section",null,[p("div",{class:N(["tiun-grid tiun-grid-cols-2 tiun-transition-opacity tiun-duration-300 tiun-gap-10 tiun-absolute tiun-bottom-28 tiun-inset-x-0 tiun-mx-auto tiun-w-fit",!w(e).currentView||w(e).currentView==="showPaymentMethods"?"tiun-opacity-0 -tiun-z-10 ":"tiun-delay-100 tiun-opacity-100"])},[(v(!0),S(gt,null,Ut(w(e).allHints,s=>(v(),S("button",{key:s.text,type:"button",class:"tiun-hintBtn tiun-group !tiun-text-gray-800",onClick:o=>w(e).setHint(s.value),"data-cy":s.value},[(v(),pt(xi(s.type),{darkMode:!0})),p("span",y3,V(s.text),1)],8,_3))),128))],2)]))}}),w3={class:"tiun-h-full tiun-flex tiun-flex-col tiun-relative","data-cy":"tiunHintCard"},C3={key:0},b3={class:"tiun-text-end tiun-pr-4 tiun-pt-4"},x3={class:"tiun-absolute tiun-p-4 tiun-top-12 tiun-left-0 tiun-right-0 tiun-text-center"},S3={class:"tiun-text-base tiun-font-semibold tiun-text-white"},k3={class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},E3={key:1,class:"tiun-grid tiun-gap-2 tiun-p-4 tiun-bg-black"},T3={class:"tiun-text-sm tiun-font-semibold tiun-text-white"},$3={class:"tiun-h-[3px]"},L3={key:0,class:"tiun-flex tiun-gap-2 tiun-h-[3px]"},M3=["onClick"],A3=["src"],P3=at({__name:"HintCard",setup(t){var y;const e=J(0),n=qt(),i=Pt();let s;const o=tt(()=>n.selectedHint==="howItWorks"||n.selectedHint==="whatsTiun"),r=tt(()=>{var b,C,k;return n.selectedHint==="howItWorks"?(C=(b=n.paywallConfig)==null?void 0:b.helpCenter)==null?void 0:C.hintHowItWorks.hintImages:n.selectedHint==="whatsTiun"?(k=n.paywallConfig)==null?void 0:k.helpCenter.hintWhatIsTiun.hintImages:[]}),l=J(((y=r.value)==null?void 0:y.map(()=>0))||[]),a=tt(()=>{var b,C,k,A,T,F,st,et;return n.selectedHint==="howItWorks"?(C=(b=n.paywallConfig)==null?void 0:b.helpCenter)==null?void 0:C.hintHowItWorks.title:n.selectedHint==="whatsTiun"?(A=(k=n.paywallConfig)==null?void 0:k.helpCenter)==null?void 0:A.hintWhatIsTiun.title:n.selectedHint==="support"?(F=(T=n.paywallConfig)==null?void 0:T.helpCenter)==null?void 0:F.support.title:n.selectedHint==="pricing"?(et=(st=n.paywallConfig)==null?void 0:st.helpCenter)==null?void 0:et.pricing.title:""}),c=()=>{var b,C;(b=l.value)!=null&&b.length&&(e.value<((C=l.value)==null?void 0:C.length)-1?(l.value[e.value]=100,e.value++):_())},u=()=>{if(e.value>0){const b=l.value[e.value];l.value[e.value]=0,b<=25&&(l.value[e.value-1]=0),e.value--}else l.value[e.value]=0},d=b=>{const{offsetX:C,currentTarget:k}=b;if(k){const A=k.clientWidth;C<A/3?u():c()}},f=()=>{var C,k;if(!((C=l.value)!=null&&C.length))return;const b=[...l.value];b[e.value]+=1,b[e.value]>=100&&(b[e.value]=100,e.value<((k=l.value)==null?void 0:k.length)-1?(e.value++,b[e.value]=b[e.value]||0):_()),l.value=b};function _(){g(),n.setHint(void 0)}function g(){var b;s&&(clearInterval(s),l.value=((b=l.value)==null?void 0:b.map(()=>0))||[],e.value=0)}return dn(()=>{s&&clearInterval(s)}),Mt(()=>n.selectedHint,()=>{var b;l.value=((b=r.value)==null?void 0:b.map(()=>0))||[],o.value&&(s=setInterval(f,50))},{immediate:!0}),(b,C)=>(v(),S("div",w3,[j(It,{name:"tiun-fasterFade"},{default:Nt(()=>{var k,A;return[w(n).selectedHint?(v(),S("div",E3,[p("span",T3,V(a.value),1),p("div",$3,[o.value?(v(),S("div",L3,[(v(!0),S(gt,null,Ut(l.value,(T,F)=>(v(),S("div",{key:F,class:"tiun-w-full tiun-rounded-xl tiun-bg-gray-600 tiun-flex-1"},[p("span",{class:N(["tiun-h-full tiun-flex tiun-rounded-xl",F<=e.value?"tiun-bg-white":"tiun-bg-gray-600 "]),style:rn({width:`${T}%`})},null,6)]))),128))])):rt("",!0)])])):(v(),S("div",C3,[p("div",b3,[p("button",{type:"button",class:"tiun-top-4 !tiun-ml-auto hover:tiun-opacity-80 tiun-transition-opacity tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black","data-cy":"tiunBtnHideHelp",onClick:C[0]||(C[0]=T=>w(n).currentView="showPaymentMethods")},[j(To,{class:"tiun-text-gray-400"})])]),p("div",x3,[p("div",S3,V((k=w(n).paywallConfig)==null?void 0:k.helpCenter.titleLine),1),p("div",k3,V((A=w(n).paywallConfig)==null?void 0:A.helpCenter.subtitleLine),1)]),j(v3)]))]}),_:1}),j(It,{name:"tiun-slide-up"},{default:Nt(()=>{var k;return[Bt(p("div",{class:N(["tiun-p-4 tiun-bg-white tiun-flex tiun-flex-col tiun-gap-4 tiun-bottom-0 tiun-left-0 tiun-right-0 tiun-absolute tiun-h-[435px]",{"tiun-rounded-xl":w(i).areCornersRounded}])},[p("button",{type:"button",onClick:qs(_,["stop"]),class:"!tiun-ml-auto hover:tiun-opacity-80 tiun-transition-opacity tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black","data-cy":"tiunBtnCloseHint"},[j(To,{class:"tiun-text-gray-400"})],8,M3),o.value?(v(),S("div",{key:0,onClick:d,class:N(["tiun-relative tiun-transition-opacity tiun-h-full tiun-cursor-pointer",w(n).selectedHint?"tiun-delay-700 tiun-opacity-100":"tiun-opacity-0"])},[p("img",{src:(k=r.value)==null?void 0:k[e.value],class:N(["tiun-absolute !tiun-my-0 tiun-object-cover tiun-w-full !tiun-h-full",{"tiun-rounded-xl":w(i).areCornersRounded}]),"data-cy":"tiunCarouselImg"},null,10,A3)],2)):rt("",!0),w(n).selectedHint==="pricing"?(v(),pt(s3,{key:1})):rt("",!0),w(n).selectedHint==="support"?(v(),pt(m3,{key:2})):rt("",!0)],2),[[Ae,w(n).selectedHint]])]}),_:1})]))}}),R3={},B3={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},O3=[p("rect",{width:"16",height:"16",rx:"8",fill:"#4F46E5"},null,-1),p("path",{d:"M12.2069 4.79303C12.3944 4.98056 12.4997 5.23487 12.4997 5.50003C12.4997 5.76519 12.3944 6.0195 12.2069 6.20703L7.20692 11.207C7.01939 11.3945 6.76508 11.4998 6.49992 11.4998C6.23475 11.4998 5.98045 11.3945 5.79292 11.207L3.79292 9.20703C3.61076 9.01843 3.50997 8.76583 3.51224 8.50363C3.51452 8.24143 3.61969 7.99062 3.8051 7.80521C3.99051 7.6198 4.24132 7.51463 4.50352 7.51236C4.76571 7.51008 5.01832 7.61087 5.20692 7.79303L6.49992 9.08603L10.7929 4.79303C10.9804 4.60556 11.2348 4.50024 11.4999 4.50024C11.7651 4.50024 12.0194 4.60556 12.2069 4.79303Z",fill:"white"},null,-1)];function I3(t,e){return v(),S("svg",B3,O3)}const H3=xt(R3,[["render",I3]]),N3={},F3={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D3=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.31265 9.30722V9.3879H8.346V9.30722C8.34807 9.08792 8.37393 8.9038 8.42358 8.75485C8.4753 8.60383 8.55392 8.47246 8.65943 8.36075C8.767 8.24903 8.90458 8.14145 9.07215 8.03801C9.26248 7.92423 9.42695 7.79493 9.56555 7.65012C9.70416 7.5053 9.81071 7.3398 9.88518 7.15361C9.96173 6.96742 10 6.7564 10 6.52056C10 6.17093 9.91518 5.86889 9.74554 5.61443C9.57797 5.3579 9.34316 5.16033 9.04112 5.02172C8.74114 4.88311 8.39359 4.81381 7.99845 4.81381C7.63641 4.81381 7.3054 4.88001 7.00543 5.01241C6.70753 5.14482 6.46755 5.34342 6.28549 5.60822C6.10551 5.87303 6.01034 6.20197 6 6.59504H7.10473C7.11508 6.40057 7.16266 6.24024 7.24748 6.11404C7.33437 5.98578 7.44298 5.89061 7.57331 5.82855C7.70572 5.76442 7.84536 5.73235 7.99224 5.73235C8.15154 5.73235 8.29532 5.76545 8.42358 5.83165C8.55392 5.89785 8.65736 5.99095 8.7339 6.11094C8.81045 6.23093 8.84872 6.37264 8.84872 6.53607C8.84872 6.68089 8.81976 6.81226 8.76183 6.93018C8.70391 7.04603 8.62426 7.15154 8.52289 7.2467C8.42358 7.3398 8.31083 7.42565 8.18464 7.50427C8.00052 7.61805 7.84432 7.74321 7.71606 7.87975C7.58779 8.01422 7.48849 8.19214 7.41815 8.4135C7.34988 8.63486 7.31471 8.93277 7.31265 9.30722ZM7.37161 11.1257C7.50608 11.2581 7.66641 11.3243 7.8526 11.3243C7.97673 11.3243 8.08947 11.2943 8.19085 11.2343C8.29428 11.1722 8.37704 11.0895 8.4391 10.986C8.50323 10.8826 8.5353 10.7678 8.5353 10.6416C8.5353 10.4554 8.46703 10.2961 8.33049 10.1637C8.19602 10.0313 8.03672 9.96509 7.8526 9.96509C7.66641 9.96509 7.50608 10.0313 7.37161 10.1637C7.23713 10.2961 7.1699 10.4554 7.1699 10.6416C7.1699 10.8319 7.23713 10.9933 7.37161 11.1257Z",fill:"#4B5563"},null,-1)];function V3(t,e){return v(),S("svg",F3,D3)}const j3=xt(N3,[["render",V3]]),U3={},W3={class:"tiun-grid tiun-gap-2.5"},Z3=p("span",{class:"tiun-h-[1.125em] tiun-w-full tiun-bg-gray-200 tiun-animate-pulse tiun-rounded-md"},null,-1),z3=p("hr",null,null,-1),q3=[p("span",{class:"tiun-h-6 tiun-w-full tiun-bg-gray-200 tiun-animate-pulse tiun-rounded-md"},null,-1),p("hr",null,null,-1)];function K3(t,e){return v(),S("div",W3,[Z3,z3,(v(),S(gt,null,Ut([1,2,3,4],n=>p("div",{key:n,class:"tiun-grid tiun-gap-2.5"},q3)),64))])}const J3=xt(U3,[["render",K3]]),X3={key:1,class:"tiun-flex tiun-flex-col"},Q3={class:"tiun-flex tiun-items-center tiun-justify-between tiun-pb-2.5"},Y3={class:"tiun-text-xs tiun-font-medium tiun-text-gray-600"},G3={class:"tiun-max-h-[240px] tiun--mx-4 tiun-px-4 tiun-overflow-y-auto"},th=["data-cy"],eh=["value","checked","onChange"],nh={class:"tiun-flex tiun-items-center tiun-gap-1"},ih=["src"],sh={class:"tiun-flex tiun-items-center tiun-gap-1"},oh=at({__name:"PaymentOptions",setup(t){const e=qt(),n=vt(),i=Pt(),s=tt(()=>{var o;return(o=e.paywallConfig)==null?void 0:o.paymentMethodList});return(o,r)=>(v(),pt(It,{name:"tiun-slide-up"},{default:Nt(()=>{var l;return[Bt(p("div",{class:N(["tiun-z-10 tiun-bg-white dark:tiun-bg-gray-700 tiun-p-4 tiun-h-[362px] tiun-absolute tiun-left-0 tiun-right-0",{"tiun-rounded-xl":w(i).areCornersRounded}]),"data-cy":"tiunPaymentOptions"},[j(It,{name:"tiun-fasterFade"},{default:Nt(()=>{var a,c,u;return[w(e).loadingPaywall?(v(),pt(J3,{key:0})):(v(),S("div",X3,[p("div",Q3,[p("span",Y3,V((a=w(e).paywallConfig)==null?void 0:a.paymentMethodSelectorString),1),(c=w(e).paywallConfig)!=null&&c.helpCenter.helpCenterCtaString?(v(),S("button",{key:0,typ:"button",class:"tiun-flex tiun-gap-1.5 tiun-items-center !tiun-text-gray-500 !tiun-italic !tiun-text-xxs hover:!tiun-text-gray-800 tiun-transition-colors",onClick:r[0]||(r[0]=d=>w(e).currentView="showHelp"),"data-cy":"tiunBtnShowHelp"},[Te(V((u=w(e).paywallConfig)==null?void 0:u.helpCenter.helpCenterCtaString)+" ",1),j(j3)])):rt("",!0)]),p("div",G3,[(v(!0),S(gt,null,Ut(s.value,(d,f)=>{var _;return v(),S("div",{key:d.type,class:N(["tiun-border-t tiun-border-b-gray-200 tiun-transition-colors",{"tiun-border-b":((_=s.value)==null?void 0:_.length)===f+1}])},[p("label",{class:"tiun-flex tiun-justify-between tiun-items-center tiun-cursor-pointer tiun-py-2.5","data-cy":`tiunOption-${d.type}`},[p("input",{type:"radio",value:d.type,checked:w(e).selectedMethod===d.type,onChange:g=>w(e).setPaymentMethod(d.type),class:"tiun-hidden tiun-peer"},null,40,eh),p("div",nh,[(v(!0),S(gt,null,Ut(d.paymentMethodImageUrls,g=>(v(),S("img",{key:g,src:g,class:"!tiun-my-0"},null,8,ih))),128))]),p("div",sh,[p("span",{class:N(["tiun-font-medium tiun-text-xxs",w(e).selectedMethod===d.type?"tiun-text-indigo-600":"tiun-text-gray-400"])},V(d.explanation),3),p("div",{class:N(["tiun-relative tiun-flex tiun-items-center tiun-justify-center tiun-w-4 tiun-h-4 tiun-border tiun-rounded-full peer-checked:tiun-bg-indigo-600",w(e).selectedMethod===d.type?"tiun-border-indigo-600":"tiun-border-gray-300"])},[p("div",{class:N(["tiun-absolute tiun-inset-0 tiun-rounded-full",w(e).selectedMethod===d.type?"tiun-bg-indigo-600":"tiun-bg-white"])},null,2),j(H3,{class:N(["tiun-w-4 tiun-h-4 tiun-text-white tiun-z-10 tiun-transition-opacity",w(e).selectedMethod===d.type?"tiun-opacity-100":"tiun-opacity-0"])},null,8,["class"])],2)])],8,th)],2)}),128))])]))]}),_:1})],2),[[Ae,!((l=w(n).badgeData)!=null&&l.data)||w(i).isPreviewMode]])]}),_:1}))}}),C5="",rh=xt(oh,[["__scopeId","data-v-cbbad1ea"]]),lh={class:"tiun-flex tiun-flex-col tiun-h-full"},ah=at({__name:"PaywallConnected",setup(t){const e=qt(),n=vt(),i=Pt();return(s,o)=>(v(),pt(It,{name:"tiun-slide-up"},{default:Nt(()=>[Bt(p("div",{class:N(["tiun-z-20 tiun-mb-14 tiun-pb-4 tiun-absolute tiun-w-full tiun-bg-white dark:tiun-bg-gray-700 tiun-h-[306px]",{"tiun-rounded-t-xl":w(i).areCornersRounded}])},[p("div",{class:N(["tiun-transition-opacity tiun-p-4 tiun-flex tiun-flex-col tiun-gap-2 tiun-h-full",w(n).isStartSessionBadge||w(n).isLoadingSessionBadge||w(n).isTopUpError||w(n).isPaymentError?"tiun-delay-700 tiun-opacity-100":"tiun-opacity-0 "])},[j(fa),p("div",lh,[p("div",{class:N(["tiun-bg-white dark:tiun-bg-gray-800 tiun-h-full tiun-border tiun-border-gray-200 dark:tiun-border-none tiun-relative",{"tiun-rounded-xl":w(i).areCornersRounded}])},[w(n).isTopUpError?(v(),pt(ga,{key:0})):w(n).isPaymentError?(v(),pt(ma,{key:1})):(v(),pt(ua,{key:2,type:"paywall"}))],2)])],2)],2),[[Ae,!w(i).isPreviewMode&&!w(e).loadingPaywall&&(w(n).isStartSessionBadge||w(n).isLoadingSessionBadge||w(n).isTopUpError||w(n).isPaymentError)]])]),_:1}))}}),uh={},ch={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dh=[p("path",{d:"M8.00002 6V7.33333M8.00002 10H8.00669M3.38122 12.6667H12.6188C13.6452 12.6667 14.2867 11.5556 13.7735 10.6667L9.15472 2.66667C8.64152 1.77778 7.35852 1.77778 6.84532 2.66667L2.22652 10.6667C1.71332 11.5556 2.35482 12.6667 3.38122 12.6667Z",stroke:"#F59E0B","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function fh(t,e){return v(),S("svg",ch,dh)}const ph=xt(uh,[["render",fh]]),hh={key:0,class:"tiun-absolute tiun-grid tiun-gap-1 tiun-p-4 tiun-top-8 tiun-text-left"},gh={class:"tiun-text-base tiun-font-semibold tiun-text-white"},mh={class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},_h={key:1,class:"tiun-absolute tiun-grid tiun-gap-1 tiun-p-4 tiun-top-8 tiun-text-left"},yh={class:"tiun-text-base tiun-leading-normal tiun-font-semibold tiun-text-white"},vh=at({__name:"HeaderTitle",setup(t){const e=vt(),n=qt(),i=Pt(),s=tt(()=>{var r,l;return(l=(r=e.badgeData)==null?void 0:r.data)==null?void 0:l.headerRow}),o=tt(()=>{var r;return(r=n.paywallConfig)==null?void 0:r.paymentMethodList.find(l=>l.type===n.selectedMethod)});return(r,l)=>(v(),pt(It,{name:"tiun-fasterFade"},{default:Nt(()=>{var a,c,u,d,f,_;return[s.value&&!w(i).isPreviewMode?(v(),S("div",hh,[p("div",gh,V((a=s.value)==null?void 0:a.titleLine),1),p("div",mh,V((c=s.value)==null?void 0:c.subtitleLine),1)])):(v(),S("div",_h,[p("div",yh,[(v(!0),S(gt,null,Ut((u=o.value)==null?void 0:u.titleLine.fragments,(g,y)=>(v(),S("span",{key:y,class:N({"tiun-line-through !tiun-text-gray-400":g.isStrikethrough})},V(g.text),3))),128))]),p("div",{class:N(["tiun-text-xs tiun-font-medium",(d=o.value)!=null&&d.subtitleLine.isWarning?"tiun-text-amber-500 tiun-flex tiun-items-center tiun-gap-1":"tiun-text-gray-400"])},[(f=o.value)!=null&&f.subtitleLine.isWarning?(v(),pt(ph,{key:0})):rt("",!0),Te(" "+V((_=o.value)==null?void 0:_.subtitleLine.text),1)],2)]))]}),_:1}))}}),wh={class:"tiun-mt-12 tiun-w-[148px] tiun-h-[148px] tiun-m-auto"},Ch=["src"],bh={key:1,class:"tiun-m-auto tiun-w-[148px] tiun-h-[148px] tiun-animate-pulse tiun-bg-gray-400 dark:tiun-bg-gray-600"},xh={class:"tiun-w-fit tiun-flex tiun-items-center tiun-mx-auto"},Sh={class:"tiun-bg-gray-300 dark:tiun-bg-white tiun-pl-2 tiun-text-[8px] tiun-leading-[16px] tiun-text-gray-600 dark:tiun-text-gray-700 tiun-font-medium tiun-flex tiun-items-center tiun-gap-0.5 tiun-rounded-[4px]"},kh={width:"16",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eh=["stroke"],Th=["stroke"],$h=["src"],Lh={key:0,class:"tiun-flex tiun-items-center tiun-gap-4 tiun-animate-pulse"},Mh=["disabled"],Ah={class:"tiunBadgeButtonText"},Ph=["disabled"],Rh={class:"tiunBadgeButtonText"},Bh={class:"mr-0.5 tiun-shrink-0",width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oh=["fill"],Ih=["disabled"],Hh=at({__name:"QrCodeFooterActions",setup(t){const e=qt(),n=vt(),i=Pt(),s=J(!1),o=J(),r=J(!1),l=tt(()=>{var C;return(C=e.paywallConfig)==null?void 0:C.paymentMethodList.find(k=>k.type===e.selectedMethod)}),a=tt(()=>{var C;return(C=n.badgeData)==null?void 0:C.data});function c(){n.isPaymentError&&b()}function u(){n.isPaymentError?f():n.isTopUpError?d():(n.isStartSessionBadge||n.isLoadingSessionBadge)&&b()}function d(){var C;(C=a.value)!=null&&C.topUpLink&&window.open(a.value.topUpLink,"_blank")}async function f(){if(!i.isPreviewMode)try{s.value=!0,n.closeBadge(),await Co(),await e.loadPaywall(),await n.loadInfo(),s.value=!1}catch{s.value=!1}}async function _(){var C,k,A,T;if(!i.isPreviewMode)if(s.value=!0,((k=(C=e.paywallConfig)==null?void 0:C.preselectedPaymentMethod)==null?void 0:k.type)===e.selectedMethod&&((T=(A=e.paywallConfig)==null?void 0:A.preselectedPaymentMethod)!=null&&T.redirectUrl))window.location.href=e.paywallConfig.preselectedPaymentMethod.redirectUrl;else{const F=await da(e.selectedMethod);if(!F.redirectUrl)return;s.value=!1,window.location.href=F.redirectUrl}}async function g(){var C,k,A,T,F;if(e.currentView=e.currentView==="showQr"?"showPaymentMethods":"showQr",e.currentView==="showQr")if(i.isPreviewMode)await y((C=e.paywallConfig)==null?void 0:C.previewQrCodeImageUrl);else{if(((A=(k=e.paywallConfig)==null?void 0:k.preselectedPaymentMethod)==null?void 0:A.type)===e.selectedMethod){y((F=(T=e.paywallConfig)==null?void 0:T.preselectedPaymentMethod)==null?void 0:F.qrCodeImageUrl);return}const st=await da(e.selectedMethod);await y(st.qrCodeImageUrl),await e.loadPaywall(),n.startPolling()}}async function y(C){if(C){r.value=!0;try{if(!o.value){const k=new Image;await new Promise((A,T)=>{k.onload=A,k.onerror=T,k.src=C})}o.value=C}catch(k){console.error("Error fetching or displaying QR code:",k)}finally{r.value=!1}}}async function b(){if(!i.isPreviewMode)try{s.value=!0,await la("Paywall"),await n.loadInfo(),s.value=!1}catch{s.value=!1}}return(C,k)=>{var T,F,st,et,P,H,Z,X,O,G,ct,U,z,Q,dt,Xt,Ye,ce,Ft,Xn,es,ns,Qt,Ge,Qn,ve,wn;const A=Tr("ripple");return v(),S(gt,null,[j(It,{name:"tiun-slide-up"},{default:Nt(()=>{var tn,h,m;return[Bt(p("div",{class:N(["tiun-flex -tiun-mb-5 tiun-justify-center tiun-items-center tiun-text-center tiun-absolute tiun-bottom-20 tiun-left-0 tiun-right-0 dark:tiun-bg-gray-700 tiun-bg-gray-200 tiun-z-10 tiun-h-[304px]",{"tiun-rounded-t-xl":w(i).areCornersRounded}])},[p("div",{class:N(["tiun-flex tiun-flex-col tiun-gap-4 tiun-transition-opacity",w(e).currentView==="showQr"?"tiun-delay-700 tiun-opacity-100 ":"tiun-opacity-0 "])},[p("button",{type:"button",class:"tiun-absolute tiun-top-4 tiun-right-4 hover:tiun-opacity-80 tiun-transition-opacity tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black","data-cy":"tiunBtnHideQr",onClick:g},[j(To,{class:"tiun-text-gray-400"})]),p("div",wh,[o.value&&!r.value?(v(),S("img",{key:0,id:"tiunQrCodeImg","data-cy":"tiunQrCodeImg",src:o.value,class:"tiun-m-auto !tiun-my-0 tiun-w-[148px] tiun-h-[148px]",height:"148",width:"148"},null,8,Ch)):(v(),S("div",bh))]),p("div",xh,[p("div",Sh,[(v(),S("svg",kh,[p("path",{d:"M1.75 5.25016C1.75 4.60583 2.27233 4.0835 2.91667 4.0835H3.45895C3.84903 4.0835 4.2133 3.88854 4.42968 3.56398L4.90366 2.85301C5.12003 2.52845 5.4843 2.3335 5.87438 2.3335H8.12562C8.5157 2.3335 8.87997 2.52845 9.09634 2.85301L9.57032 3.56398C9.7867 3.88854 10.151 4.0835 10.541 4.0835H11.0833C11.7277 4.0835 12.25 4.60583 12.25 5.25016V10.5002C12.25 11.1445 11.7277 11.6668 11.0833 11.6668H2.91667C2.27233 11.6668 1.75 11.1445 1.75 10.5002V5.25016Z",stroke:w(i).isDarkMode?"#374151":"#4B5563","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Eh),p("path",{d:"M8.75 7.5835C8.75 8.54999 7.9665 9.3335 7 9.3335C6.0335 9.3335 5.25 8.54999 5.25 7.5835C5.25 6.617 6.0335 5.8335 7 5.8335C7.9665 5.8335 8.75 6.617 8.75 7.5835Z",stroke:w(i).isDarkMode?"#374151":"#4B5563","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Th)])),p("span",null,V((tn=l.value)==null?void 0:tn.qrCta.scanExplanationText),1),(h=l.value)!=null&&h.qrCta.qrPaymentMethodImageUrl?(v(),S("img",{key:0,src:(m=l.value)==null?void 0:m.qrCta.qrPaymentMethodImageUrl,class:"tiun-py-[1px] tiun-pr-[1px] tiun-ml-2 !tiun-my-0",height:"24",width:"48"},null,8,$h)):rt("",!0)])])],2)],2),[[Ae,w(e).currentView==="showQr"]])]}),_:1}),p("div",{class:N(["tiun-z-30 tiun-h-[70.5px] tiun-absolute tiun-bottom-0 tiun-w-full tiun-mb-[-2px] tiun-bg-gray-200 dark:tiun-bg-gray-700 tiun-p-4 tiun-flex tiun-flex-col tiun-gap-4",{"tiun-rounded-xl":w(i).areCornersRounded}])},[!w(i).isPreviewMode&&w(e).loadingPaywall&&w(e).currentView!=="showQr"?(v(),S("div",Lh,[p("div",{class:N(["tiun-h-[38.5px] tiun-w-full tiun-bg-gray-300 dark:tiun-bg-gray-600",{"tiun-rounded-xl":w(i).areCornersRounded}])},null,2)])):!w(i).isPreviewMode&&(w(n).isStartSessionBadge||w(n).isLoadingSessionBadge||w(n).isTopUpError||w(n).isPaymentError)?(v(),S("div",{key:1,class:N({"tiun-flex tiun-items-center tiun-gap-4":((st=(F=(T=w(n).badgeData)==null?void 0:T.data)==null?void 0:F.ctaRow)==null?void 0:st.primaryCtaLabel)&&((H=(P=(et=w(n).badgeData)==null?void 0:et.data)==null?void 0:P.ctaRow)==null?void 0:H.secondaryCtaLabel)})},[(O=(X=(Z=w(n).badgeData)==null?void 0:Z.data)==null?void 0:X.ctaRow)!=null&&O.secondaryCtaLabel?Bt((v(),S("button",{key:0,type:"button",class:N(["tiunBadgeSecondaryButton !tiun-min-w-[4.5em]",{"tiun-rounded-xl":w(i).areCornersRounded}]),onClick:c,disabled:w(n).isLoadingSessionBadge||s.value},[p("div",Ah,V((U=(ct=(G=w(n).badgeData)==null?void 0:G.data)==null?void 0:ct.ctaRow)==null?void 0:U.secondaryCtaLabel),1)],10,Mh)),[[A]]):rt("",!0),(dt=(Q=(z=w(n).badgeData)==null?void 0:z.data)==null?void 0:Q.ctaRow)!=null&&dt.primaryCtaLabel?Bt((v(),S("button",{key:1,type:"button",class:N(["tiunBadgePrimaryButton tiun-w-full",{"tiun-rounded-xl":w(i).areCornersRounded}]),onClick:u,disabled:w(n).isLoadingSessionBadge||s.value},[p("div",Rh,V((ce=(Ye=(Xt=w(n).badgeData)==null?void 0:Xt.data)==null?void 0:Ye.ctaRow)==null?void 0:ce.primaryCtaLabel),1)],10,Ph)),[[A]]):rt("",!0)],2)):w(e).currentView==="showPaymentMethods"?(v(),S("div",{key:2,class:N({"tiun-flex tiun-items-center tiun-gap-4":((Ft=l.value)==null?void 0:Ft.ctaVisibility)==="Both"})},[((Xn=l.value)==null?void 0:Xn.ctaVisibility)==="Both"||((es=l.value)==null?void 0:es.ctaVisibility)==="QrOnly"?Bt((v(),S("button",{key:0,type:"button",class:N(["tiunButton tiunWhiteButton tiun-gap-1 tiun-flex-shrink-0",{"tiun-rounded-xl":w(i).areCornersRounded,"tiun-w-fit":((ns=l.value)==null?void 0:ns.ctaVisibility)==="Both","tiun-w-full":((Qt=l.value)==null?void 0:Qt.ctaVisibility)==="QrOnly"}]),"data-cy":"tiunBtnShowQr",onClick:g},[(v(),S("svg",Bh,[p("path",{d:"M8.24998 2.3335C8.24998 1.91928 7.91419 1.5835 7.49998 1.5835C7.08577 1.5835 6.74998 1.91928 6.74998 2.3335H8.24998ZM6.74998 2.91683C6.74998 3.33104 7.08577 3.66683 7.49998 3.66683C7.91419 3.66683 8.24998 3.33104 8.24998 2.91683H6.74998ZM11 8.5835C10.5858 8.5835 10.25 8.91928 10.25 9.3335C10.25 9.74771 10.5858 10.0835 11 10.0835V8.5835ZM12.1666 10.0835C12.5809 10.0835 12.9166 9.74771 12.9166 9.3335C12.9166 8.91928 12.5809 8.5835 12.1666 8.5835V10.0835ZM7.49998 9.3335V8.5835C7.08577 8.5835 6.74998 8.91928 6.74998 9.3335H7.49998ZM8.66665 10.0835C9.08086 10.0835 9.41665 9.74771 9.41665 9.3335C9.41665 8.91928 9.08086 8.5835 8.66665 8.5835V10.0835ZM6.74998 11.6668C6.74998 12.081 7.08577 12.4168 7.49998 12.4168C7.91419 12.4168 8.24998 12.081 8.24998 11.6668H6.74998ZM8.24998 5.25016C8.24998 4.83595 7.91419 4.50016 7.49998 4.50016C7.08577 4.50016 6.74998 4.83595 6.74998 5.25016H8.24998ZM7.49998 7.00016H6.74998C6.74998 7.41438 7.08577 7.75016 7.49998 7.75016V7.00016ZM9.83331 10.9168C9.4191 10.9168 9.08331 11.2526 9.08331 11.6668C9.08331 12.081 9.4191 12.4168 9.83331 12.4168V10.9168ZM12.1666 12.4168C12.5809 12.4168 12.9166 12.081 12.9166 11.6668C12.9166 11.2526 12.5809 10.9168 12.1666 10.9168V12.4168ZM2.83331 6.25016C2.4191 6.25016 2.08331 6.58595 2.08331 7.00016C2.08331 7.41438 2.4191 7.75016 2.83331 7.75016V6.25016ZM5.16665 7.75016C5.58086 7.75016 5.91665 7.41438 5.91665 7.00016C5.91665 6.58595 5.58086 6.25016 5.16665 6.25016V7.75016ZM7.50581 7.75016C7.92003 7.75016 8.25581 7.41438 8.25581 7.00016C8.25581 6.58595 7.92003 6.25016 7.50581 6.25016V7.75016ZM9.83915 7.75016C10.2534 7.75016 10.5891 7.41438 10.5891 7.00016C10.5891 6.58595 10.2534 6.25016 9.83915 6.25016V7.75016ZM12.1666 6.25016C11.7524 6.25016 11.4166 6.58595 11.4166 7.00016C11.4166 7.41438 11.7524 7.75016 12.1666 7.75016V6.25016ZM12.1725 7.75016C12.5867 7.75016 12.9225 7.41438 12.9225 7.00016C12.9225 6.58595 12.5867 6.25016 12.1725 6.25016V7.75016ZM3.41665 3.0835H4.58331V1.5835H3.41665V3.0835ZM4.41665 2.91683V4.0835H5.91665V2.91683H4.41665ZM4.58331 3.91683H3.41665V5.41683H4.58331V3.91683ZM3.58331 4.0835V2.91683H2.08331V4.0835H3.58331ZM3.41665 3.91683C3.50869 3.91683 3.58331 3.99145 3.58331 4.0835H2.08331C2.08331 4.81988 2.68027 5.41683 3.41665 5.41683V3.91683ZM4.41665 4.0835C4.41665 3.99145 4.49127 3.91683 4.58331 3.91683V5.41683C5.31969 5.41683 5.91665 4.81988 5.91665 4.0835H4.41665ZM4.58331 3.0835C4.49127 3.0835 4.41665 3.00888 4.41665 2.91683H5.91665C5.91665 2.18045 5.31969 1.5835 4.58331 1.5835V3.0835ZM3.41665 1.5835C2.68027 1.5835 2.08331 2.18045 2.08331 2.91683H3.58331C3.58331 3.00888 3.50869 3.0835 3.41665 3.0835V1.5835ZM10.4166 3.0835H11.5833V1.5835H10.4166V3.0835ZM11.4166 2.91683V4.0835H12.9166V2.91683H11.4166ZM11.5833 3.91683H10.4166V5.41683H11.5833V3.91683ZM10.5833 4.0835V2.91683H9.08331V4.0835H10.5833ZM10.4166 3.91683C10.5087 3.91683 10.5833 3.99145 10.5833 4.0835H9.08331C9.08331 4.81988 9.68027 5.41683 10.4166 5.41683V3.91683ZM11.4166 4.0835C11.4166 3.99145 11.4913 3.91683 11.5833 3.91683V5.41683C12.3197 5.41683 12.9166 4.81988 12.9166 4.0835H11.4166ZM11.5833 3.0835C11.4913 3.0835 11.4166 3.00888 11.4166 2.91683H12.9166C12.9166 2.18045 12.3197 1.5835 11.5833 1.5835V3.0835ZM10.4166 1.5835C9.68027 1.5835 9.08331 2.18045 9.08331 2.91683H10.5833C10.5833 3.00888 10.5087 3.0835 10.4166 3.0835V1.5835ZM3.41665 10.0835H4.58331V8.5835H3.41665V10.0835ZM4.41665 9.91683V11.0835H5.91665V9.91683H4.41665ZM4.58331 10.9168H3.41665V12.4168H4.58331V10.9168ZM3.58331 11.0835V9.91683H2.08331V11.0835H3.58331ZM3.41665 10.9168C3.50869 10.9168 3.58331 10.9914 3.58331 11.0835H2.08331C2.08331 11.8199 2.68027 12.4168 3.41665 12.4168V10.9168ZM4.41665 11.0835C4.41665 10.9914 4.49127 10.9168 4.58331 10.9168V12.4168C5.31969 12.4168 5.91665 11.8199 5.91665 11.0835H4.41665ZM4.58331 10.0835C4.49127 10.0835 4.41665 10.0089 4.41665 9.91683H5.91665C5.91665 9.18045 5.31969 8.5835 4.58331 8.5835V10.0835ZM3.41665 8.5835C2.68027 8.5835 2.08331 9.18045 2.08331 9.91683H3.58331C3.58331 10.0089 3.50869 10.0835 3.41665 10.0835V8.5835ZM6.74998 2.3335V2.91683H8.24998V2.3335H6.74998ZM11 10.0835H12.1666V8.5835H11V10.0835ZM7.49998 10.0835H8.66665V8.5835H7.49998V10.0835ZM6.74998 9.3335V11.6668H8.24998V9.3335H6.74998ZM6.74998 5.25016V7.00016H8.24998V5.25016H6.74998ZM9.83331 12.4168H12.1666V10.9168H9.83331V12.4168ZM2.83331 7.75016H5.16665V6.25016H2.83331V7.75016ZM7.49998 7.75016H7.50581V6.25016H7.49998V7.75016ZM12.1666 7.75016H12.1725V6.25016H12.1666V7.75016ZM7.49998 7.75016H9.83915V6.25016H7.49998V7.75016Z",fill:w(i).isDarkMode?"white":"black"},null,8,Oh)])),Te(" "+V((Ge=l.value)==null?void 0:Ge.qrCta.openCtaText),1)],2)),[[A]]):rt("",!0),((Qn=l.value)==null?void 0:Qn.ctaVisibility)==="Both"||((ve=l.value)==null?void 0:ve.ctaVisibility)==="RedirectOnly"?Bt((v(),S("button",{key:1,type:"button",class:N(["tiunButton tiunBlackButton tiun-w-full",{"tiun-rounded-xl":w(i).areCornersRounded}]),"data-cy":"tiunBtnConnect",disabled:s.value,onClick:k[0]||(k[0]=tn=>_())},[Te(V((wn=l.value)==null?void 0:wn.redirectCta.ctaText),1)],10,Ih)),[[A]]):rt("",!0)],2)):rt("",!0)],2)],64)}}}),Nh={class:"tiun-min-w-[304px] tiun-h-[490px] tiun-max-w-[343px] tiun-mx-auto","data-cy":"tiunPaywallDiv"},Fh=at({__name:"Paywall",setup(t){const e=vt(),n=qt(),i=Pt();return dn(()=>{n.currentView="showPaymentMethods"}),Mt(()=>e.fetchingInfo,(s,o)=>{var r,l;!o&&s&&(((r=e.snippetInfo)==null?void 0:r.connectionStatus)!=="Connected"&&((l=e.snippetInfo)==null?void 0:l.connectionStatus)!=="Session"||i.isPreviewMode)&&n.loadPaywall()},{immediate:!0}),(s,o)=>(v(),S("div",Nh,[p("div",{class:N([{"tiun-my-rotate-y-180":w(n).currentView==="showHelp","tiun-rounded-xl":w(i).areCornersRounded},"tiun-relative tiun-preserve-3d tiun-w-full tiun-h-full tiun-duration-500 tiun-shadow-md"])},[p("div",{class:N(["tiun-z-10 tiun-relative tiun-backface-hidden tiun-w-full tiun-h-full dark:tiun-bg-gray-900",{"tiun-rounded-xl":w(i).areCornersRounded}])},[p("div",{class:N(["tiun-bg-black tiun-flex tiun-flex-col tiun-h-full tiun-justify-end",{"tiun-rounded-xl":w(i).areCornersRounded}])},[j(ca),j(vh),j(ah),j(rh),j(Hh)],2)],2),p("div",{class:N(["tiun-z-20 tiun-top-0 dark:tiun-text-white dark:tiun-bg-gray-900 tiun-bg-black tiun-w-full tiun-my-rotate-y-180 tiun-h-full tiun-overflow-hidden tiun-absolute tiun-backface-hidden",{"tiun-rounded-xl":w(i).areCornersRounded}])},[j(P3)],2)],2)]))}}),Dh={class:"tiun-flex"},Vh={ref:"statusDetails",class:"tiun-h-[507px]"},jh=at({__name:"MockBadgeApp",setup(t){const e=vt(),n=Pt();return e.loadInfo(),(i,s)=>(v(),S("div",Dh,[j(mo),p("div",Vh,[p("div",{class:N(["tiun-shadow-2xl tiun-relative tiun-transition-shadow tiun-duration-300 dark:tiun-bg-black tiun-bg-white tiun-flex tiun-flex-col tiun-h-full",[{"tiun-rounded-b-xl":w(n).areCornersRounded}]])},[j(bo)],2)],512)]))}});let zi;const Uh=new Uint8Array(16);function Wh(){if(!zi&&(zi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zi(Uh)}const $t=[];for(let t=0;t<256;++t)$t.push((t+256).toString(16).slice(1));function Zh(t,e=0){return($t[t[e+0]]+$t[t[e+1]]+$t[t[e+2]]+$t[t[e+3]]+"-"+$t[t[e+4]]+$t[t[e+5]]+"-"+$t[t[e+6]]+$t[t[e+7]]+"-"+$t[t[e+8]]+$t[t[e+9]]+"-"+$t[t[e+10]]+$t[t[e+11]]+$t[t[e+12]]+$t[t[e+13]]+$t[t[e+14]]+$t[t[e+15]]).toLowerCase()}const zh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ea={randomUUID:zh};function qh(t,e,n){if(Ea.randomUUID&&!e&&!t)return Ea.randomUUID();t=t||{};const i=t.random||(t.rng||Wh)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=i[s];return e}return Zh(i)}function yn(t){return t.split("-")[0]}function $o(t){return t.split("-")[1]}function qi(t){return["top","bottom"].includes(yn(t))?"x":"y"}function Ta(t){return t==="y"?"height":"width"}function $a(t,e,n){let{reference:i,floating:s}=t;const o=i.x+i.width/2-s.width/2,r=i.y+i.height/2-s.height/2,l=qi(e),a=Ta(l),c=i[a]/2-s[a]/2,u=yn(e),d=l==="x";let f;switch(u){case"top":f={x:o,y:i.y-s.height};break;case"bottom":f={x:o,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:r};break;case"left":f={x:i.x-s.width,y:r};break;default:f={x:i.x,y:i.y}}switch($o(e)){case"start":f[l]-=c*(n&&d?-1:1);break;case"end":f[l]+=c*(n&&d?-1:1);break}return f}const Kh=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,l=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:u}=$a(a,i,l),d=i,f={},_=0;for(let g=0;g<o.length;g++){const{name:y,fn:b}=o[g],{x:C,y:k,data:A,reset:T}=await b({x:c,y:u,initialPlacement:i,placement:d,strategy:s,middlewareData:f,rects:a,platform:r,elements:{reference:t,floating:e}});if(c=C??c,u=k??u,f={...f,[y]:{...f[y],...A}},T&&_<=50){_++,typeof T=="object"&&(T.placement&&(d=T.placement),T.rects&&(a=T.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):T.rects),{x:c,y:u}=$a(a,d,l)),g=-1;continue}}return{x:c,y:u,placement:d,strategy:s,middlewareData:f}};function Jh(t){return{top:0,right:0,bottom:0,left:0,...t}}function La(t){return typeof t!="number"?Jh(t):{top:t,right:t,bottom:t,left:t}}function Kn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Xh(t,e){var n;e===void 0&&(e={});const{x:i,y:s,platform:o,rects:r,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:_=0}=e,g=La(_),y=l[f?d==="floating"?"reference":"floating":d],b=Kn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),C=Kn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...r.floating,x:i,y:s}:r.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),strategy:a}):r[d]);return{top:b.top-C.top+g.top,bottom:C.bottom-b.bottom+g.bottom,left:b.left-C.left+g.left,right:C.right-b.right+g.right}}const Qh=Math.min,Yh=Math.max,Gh={left:"right",right:"left",bottom:"top",top:"bottom"};function Ki(t){return t.replace(/left|right|bottom|top/g,e=>Gh[e])}function t8(t,e,n){n===void 0&&(n=!1);const i=$o(t),s=qi(t),o=Ta(s);let r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(r=Ki(r)),{main:r,cross:Ki(r)}}const e8={start:"end",end:"start"};function Ma(t){return t.replace(/start|end/g,e=>e8[e])}function n8(t){const e=Ki(t);return[Ma(t),e,Ma(e)]}const i8=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:i,middlewareData:s,rects:o,initialPlacement:r,platform:l,elements:a}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:_=!0,...g}=t,y=yn(i),b=d||(y===r||!_?[Ki(r)]:n8(r)),C=[r,...b],k=await Xh(e,g),A=[];let T=((n=s.flip)==null?void 0:n.overflows)||[];if(c&&A.push(k[y]),u){const{main:P,cross:H}=t8(i,o,await(l.isRTL==null?void 0:l.isRTL(a.floating)));A.push(k[P],k[H])}if(T=[...T,{placement:i,overflows:A}],!A.every(P=>P<=0)){var F,st;const P=((F=(st=s.flip)==null?void 0:st.index)!=null?F:0)+1,H=C[P];if(H)return{data:{index:P,overflows:T},reset:{placement:H}};let Z="bottom";switch(f){case"bestFit":{var et;const X=(et=T.map(O=>[O,O.overflows.filter(G=>G>0).reduce((G,ct)=>G+ct,0)]).sort((O,G)=>O[1]-G[1])[0])==null?void 0:et[0].placement;X&&(Z=X);break}case"initialPlacement":Z=r;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};async function s8(t,e){const{placement:n,platform:i,elements:s}=t,o=await(i.isRTL==null?void 0:i.isRTL(s.floating)),r=yn(n),l=$o(n),a=qi(n)==="x",c=["left","top"].includes(r)?-1:1,u=o&&a?-1:1,d=typeof e=="function"?e(t):e;let{mainAxis:f,crossAxis:_,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof g=="number"&&(_=l==="end"?g*-1:g),a?{x:_*u,y:f*c}:{x:f*c,y:_*u}}const o8=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:i}=e,s=await s8(e,t);return{x:n+s.x,y:i+s.y,data:s}}}},r8=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){var n;const{placement:i,elements:s,rects:o,platform:r,strategy:l}=e,{padding:a=2,x:c,y:u}=t,d=Kn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),strategy:l}):o.reference),f=(n=await(r.getClientRects==null?void 0:r.getClientRects(s.reference)))!=null?n:[],_=La(a);function g(){if(f.length===2&&f[0].left>f[1].right&&c!=null&&u!=null){var b;return(b=f.find(C=>c>C.left-_.left&&c<C.right+_.right&&u>C.top-_.top&&u<C.bottom+_.bottom))!=null?b:d}if(f.length>=2){if(qi(i)==="x"){const X=f[0],O=f[f.length-1],G=yn(i)==="top",ct=X.top,U=O.bottom,z=G?X.left:O.left,Q=G?X.right:O.right,dt=Q-z,Xt=U-ct;return{top:ct,bottom:U,left:z,right:Q,width:dt,height:Xt,x:z,y:ct}}const C=yn(i)==="left",k=Yh(...f.map(X=>X.right)),A=Qh(...f.map(X=>X.left)),T=f.filter(X=>C?X.left===A:X.right===k),F=T[0].top,st=T[T.length-1].bottom,et=A,P=k,H=P-et,Z=st-F;return{top:F,bottom:st,left:et,right:P,width:H,height:Z,x:et,y:F}}return d}const y=await r.getElementRects({reference:{getBoundingClientRect:g},floating:s.floating,strategy:l});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};function Aa(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function me(t){if(t==null)return window;if(!Aa(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function Be(t){return me(t).getComputedStyle(t)}function _e(t){return Aa(t)?"":t?(t.nodeName||"").toLowerCase():""}function Pa(){const t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function ue(t){return t instanceof me(t).HTMLElement}function Oe(t){return t instanceof me(t).Element}function l8(t){return t instanceof me(t).Node}function Ji(t){if(typeof ShadowRoot>"u")return!1;const e=me(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Xi(t){const{overflow:e,overflowX:n,overflowY:i}=Be(t);return/auto|scroll|overlay|hidden/.test(e+i+n)}function a8(t){return["table","td","th"].includes(_e(t))}function Ra(t){const e=/firefox/i.test(Pa()),n=Be(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}function Ba(){return!/^((?!chrome|android).)*safari/i.test(Pa())}const Oa=Math.min,Jn=Math.max,Qi=Math.round;function ye(t,e,n){var i,s,o,r;e===void 0&&(e=!1),n===void 0&&(n=!1);const l=t.getBoundingClientRect();let a=1,c=1;e&&ue(t)&&(a=t.offsetWidth>0&&Qi(l.width)/t.offsetWidth||1,c=t.offsetHeight>0&&Qi(l.height)/t.offsetHeight||1);const u=Oe(t)?me(t):window,d=!Ba()&&n,f=(l.left+(d&&(i=(s=u.visualViewport)==null?void 0:s.offsetLeft)!=null?i:0))/a,_=(l.top+(d&&(o=(r=u.visualViewport)==null?void 0:r.offsetTop)!=null?o:0))/c,g=l.width/a,y=l.height/c;return{width:g,height:y,top:_,right:f+g,bottom:_+y,left:f,x:f,y:_}}function Ie(t){return((l8(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yi(t){return Oe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ia(t){return ye(Ie(t)).left+Yi(t).scrollLeft}function u8(t){const e=ye(t);return Qi(e.width)!==t.offsetWidth||Qi(e.height)!==t.offsetHeight}function c8(t,e,n){const i=ue(e),s=Ie(e),o=ye(t,i&&u8(e),n==="fixed");let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&n!=="fixed")if((_e(e)!=="body"||Xi(s))&&(r=Yi(e)),ue(e)){const a=ye(e,!0);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else s&&(l.x=Ia(s));return{x:o.left+r.scrollLeft-l.x,y:o.top+r.scrollTop-l.y,width:o.width,height:o.height}}function Ha(t){return _e(t)==="html"?t:t.assignedSlot||t.parentNode||(Ji(t)?t.host:null)||Ie(t)}function Na(t){return!ue(t)||Be(t).position==="fixed"?null:t.offsetParent}function d8(t){let e=Ha(t);for(Ji(e)&&(e=e.host);ue(e)&&!["html","body"].includes(_e(e));){if(Ra(e))return e;{const n=e.parentNode;e=Ji(n)?n.host:n}}return null}function Lo(t){const e=me(t);let n=Na(t);for(;n&&a8(n)&&Be(n).position==="static";)n=Na(n);return n&&(_e(n)==="html"||_e(n)==="body"&&Be(n).position==="static"&&!Ra(n))?e:n||d8(t)||e}function Fa(t){if(ue(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=ye(t);return{width:e.width,height:e.height}}function f8(t){let{rect:e,offsetParent:n,strategy:i}=t;const s=ue(n),o=Ie(n);if(n===o)return e;let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((s||!s&&i!=="fixed")&&((_e(n)!=="body"||Xi(o))&&(r=Yi(n)),ue(n))){const a=ye(n,!0);l.x=a.x+n.clientLeft,l.y=a.y+n.clientTop}return{...e,x:e.x-r.scrollLeft+l.x,y:e.y-r.scrollTop+l.y}}function p8(t,e){const n=me(t),i=Ie(t),s=n.visualViewport;let o=i.clientWidth,r=i.clientHeight,l=0,a=0;if(s){o=s.width,r=s.height;const c=Ba();(c||!c&&e==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:o,height:r,x:l,y:a}}function h8(t){var e;const n=Ie(t),i=Yi(t),s=(e=t.ownerDocument)==null?void 0:e.body,o=Jn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Jn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let l=-i.scrollLeft+Ia(t);const a=-i.scrollTop;return Be(s||n).direction==="rtl"&&(l+=Jn(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:l,y:a}}function Da(t){const e=Ha(t);return["html","body","#document"].includes(_e(e))?t.ownerDocument.body:ue(e)&&Xi(e)?e:Da(e)}function Gi(t,e){var n;e===void 0&&(e=[]);const i=Da(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=me(i),r=s?[o].concat(o.visualViewport||[],Xi(i)?i:[]):i,l=e.concat(r);return s?l:l.concat(Gi(r))}function g8(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Ji(n)){let i=e;do{if(i&&t===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function m8(t,e){const n=ye(t,!1,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft;return{top:i,left:s,x:s,y:i,right:s+t.clientWidth,bottom:i+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function Va(t,e,n){return e==="viewport"?Kn(p8(t,n)):Oe(e)?m8(e,n):Kn(h8(Ie(t)))}function _8(t){const e=Gi(t),n=["absolute","fixed"].includes(Be(t).position)&&ue(t)?Lo(t):t;return Oe(n)?e.filter(i=>Oe(i)&&g8(i,n)&&_e(i)!=="body"):[]}function y8(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=[...n==="clippingAncestors"?_8(e):[].concat(n),i],r=o[0],l=o.reduce((a,c)=>{const u=Va(e,c,s);return a.top=Jn(u.top,a.top),a.right=Oa(u.right,a.right),a.bottom=Oa(u.bottom,a.bottom),a.left=Jn(u.left,a.left),a},Va(e,r,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}const v8={getClippingRect:y8,convertOffsetParentRelativeRectToViewportRelativeRect:f8,isElement:Oe,getDimensions:Fa,getOffsetParent:Lo,getDocumentElement:Ie,getElementRects:t=>{let{reference:e,floating:n,strategy:i}=t;return{reference:c8(e,Lo(n),i),floating:{...Fa(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Be(t).direction==="rtl"};function w8(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:r=!0,animationFrame:l=!1}=i,a=s&&!l,c=o&&!l,u=a||c?[...Oe(t)?Gi(t):[],...Gi(e)]:[];u.forEach(y=>{a&&y.addEventListener("scroll",n,{passive:!0}),c&&y.addEventListener("resize",n)});let d=null;if(r){let y=!0;d=new ResizeObserver(()=>{y||n(),y=!1}),Oe(t)&&!l&&d.observe(t),d.observe(e)}let f,_=l?ye(t):null;l&&g();function g(){const y=ye(t);_&&(y.x!==_.x||y.y!==_.y||y.width!==_.width||y.height!==_.height)&&n(),_=y,f=requestAnimationFrame(g)}return n(),()=>{var y;u.forEach(b=>{a&&b.removeEventListener("scroll",n),c&&b.removeEventListener("resize",n)}),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(f)}}const C8=(t,e,n)=>Kh(t,e,{platform:v8,...n}),b8={id:{type:String,default:null},reference:{type:HTMLElement,default:null},trigger:{type:String,default:"hover"},placement:{type:String,default:null},size:{type:String,default:"small"},type:{type:String,default:"dark"},title:{type:String,required:!0},description:{type:String,default:null},buttons:{type:Array,default:null},container:{type:Boolean,default:null}},x8=at({name:"Tooltip",props:b8,emits:["close"],data(){return{isOpen:!1,options:fn("tooltipOptions",null),cleanupAutoUpdate:null}},computed:{defaultButtonType(){return this.type==="light"?"primary":"secondary"},disableTeleport(){var t;return((t=this.options)==null?void 0:t.container)===!1||this.container===!1},popperPlacement(){var t,e,n;return(n=(e=this.placement)!=null?e:(t=this.options)==null?void 0:t.placement)!=null?n:"top"}},beforeUnmount(){var t;(t=this.cleanupAutoUpdate)==null||t.call(this)},methods:{markRaw:xn,initialize(){var t,e;const n=this.$refs.tooltip,i=(t=this.reference)!=null?t:this.$refs["tooltip-holder"];(e=this.cleanupAutoUpdate)==null||e.call(this),this.cleanupAutoUpdate=w8(i,n,async()=>{const s=await C8(i,n,{placement:this.popperPlacement,middleware:[i8(),r8(),o8(()=>({mainAxis:10}))]});n.setAttribute("data-placement",s.placement),Object.assign(n.style,{left:"0",top:"0",transform:`translate(${Math.round(s.x)}px,${Math.round(s.y)}px)`})})},async buttonClick(t){typeof t.onClick=="function"?t.onClick()&&this.$emit("close"):this.$emit("close")},open(t){this.trigger===t&&(this.isOpen=!0,this.initialize())},close(t){var e;this.trigger===t&&((e=this.cleanupAutoUpdate)==null||e.call(this),this.isOpen=!1)},toggle(t){if(this.isOpen){this.close(t);return}this.open(t)},click(){this.toggle("click")}}}),S8=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},k8=["id","data-type","data-size"],E8={class:"tooltip-container"},T8={class:"title"},$8=["innerHTML"],L8={key:0,class:"mt-4 flex"},M8=["data-type","data-size","onClick"];function A8(t,e,n,i,s,o){var r,l;return v(),S("span",null,[p("span",{onMouseenter:e[1]||(e[1]=qs(()=>t.open("hover"),["prevent"])),onMouseleave:e[2]||(e[2]=qs(()=>t.close("hover"),["prevent"]))},[p("span",{ref:"tooltip-holder",class:"tooltip-holder",onClick:e[0]||(e[0]=(...a)=>t.click&&t.click(...a))},[Si(t.$slots,"default")],512)],32),(v(),pt(Ic,{disabled:t.disableTeleport,to:"#tooltip-container"},[(r=t.options)!=null&&r.template?Bt((v(),pt(xi((l=t.options)==null?void 0:l.template),Qr({key:0,ref:"tooltip"},{...t.$props,...t.$attrs}),null,16)),[[Ae,t.isOpen]]):Bt((v(),S("div",{key:1,id:t.id,ref:"tooltip","data-type":t.type,"data-size":t.size,class:"tooltip",style:{width:"fit-content"}},[p("div",E8,[p("div",null,[p("p",T8,[Si(t.$slots,"title",{},()=>[Te(V(t.title),1)])]),Si(t.$slots,"description",{},()=>[t.description?(v(),S("p",{key:0,class:"description",style:{"font-size":"calc(100% - .2rem)"},innerHTML:t.description},null,8,$8)):rt("",!0)]),Si(t.$slots,"actions",{},()=>[t.buttons&&t.buttons.length>0?(v(),S("div",L8,[(v(!0),S(gt,null,Ut(t.buttons,(a,c)=>{var u,d;return v(),S("button",{key:`toast-button-${c}`,"data-type":(u=a.type)!=null?u:t.defaultButtonType,"data-size":(d=a.size)!=null?d:t.size,class:"cursor-pointer mr-2",onClick:f=>t.buttonClick(a)},V(a.title),9,M8)}),128))])):rt("",!0)])])])],8,k8)),[[Ae,t.isOpen]])],8,["disabled"]))])}const P8=S8(x8,[["render",A8]]),ja={install:(t,e={})=>{var n,i,s,o,r;if(typeof(e==null?void 0:e.container)=="object"&&((n=e==null?void 0:e.container)==null?void 0:n.enabled)!==!1||(e==null?void 0:e.container)!==!1){let a="tooltip-container",c=document.createElement("div");typeof(e==null?void 0:e.container)=="object"&&typeof((i=e==null?void 0:e.container)==null?void 0:i.ref)=="string"&&(a=(s=e==null?void 0:e.container)==null?void 0:s.ref),c.setAttribute("id",a),typeof(e==null?void 0:e.container)=="object"&&((o=e==null?void 0:e.container)==null?void 0:o.ref)instanceof HTMLDivElement&&(c=(r=e==null?void 0:e.container)==null?void 0:r.ref),document.body.append(c)}t.config.globalProperties.$tooltipOptions=e,t.provide("tooltipOptions",e);const l={};t.directive("tooltip",{mounted(a,c,u){const d=qh(),f=il(P8,{id:d,title:c.value},{default:()=>u.children});a.dataset.tooltipId=d;const _=Pi(f);_.mount(a),l[d]=_},unmounted(a){var c;const u=a.dataset.tooltipId;u&&((c=l[u])==null||c.unmount())}})}},x5="",Ua={},Mo=d1(),Wa="tiunPaymentSnippet",R8="tiunBadgeSnippet";let Jt=null,Qe=null,vn=null,ts;const Za=tt(()=>co==="true");document.readyState==="loading"?document.addEventListener("DOMContentLoaded",za):za();function za(){Za.value?(I8(),qa()):B8()}function B8(){let t=document.getElementById(uo);t||(t=document.createElement("div"),t.id=uo,t.classList.add("tiun-html"),document.body.appendChild(t)),ts=new MutationObserver(n=>{for(const i of n)i.type==="childList"&&O8()});const e={childList:!0,subtree:!0};ts.observe(document.body,e),Qe=Pi(Tp),Qe.use(Mo),Qe.use(ja,Ua),Qe.directive("ripple",Eo),Qe.mount(t)}function O8(){const t=document.getElementById(Wa);t&&!Jt?qa():!t&&Jt&&H8()}function qa(){const t=document.getElementById(Wa);if(t&&(t.classList.add("tiun-html"),Jt=Pi(Fh),Jt.use(Mo),Jt.directive("ripple",Eo),Jt.use(ja,Ua),Jt.mount(t),Za.value)){const e=vt();e.fetchingInfo=!0}}function I8(){const t=document.getElementById(R8);t&&(t.classList.add("tiun-html"),vn=Pi(jh),vn.use(Mo),vn.directive("ripple",Eo),vn.mount(t))}function H8(){Jt&&(Jt.unmount(),Jt=null)}function N8(){ts&&ts.disconnect(),Jt&&Jt.unmount(),vn&&vn.unmount(),Qe&&Qe.unmount()}window.unloadMyApp=N8});