const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dv_iPEiX.js","./DeCX3Z2D.js","./Dqr4rgKi.js","./Czvl2tVM.js","./g.CetD1WXK.css","./dXbEenQr.js","./DQuw37yc.js","./t-pk84MT.js","./D82M3s_A.js","./C9FEcaFV.js","./BLH_OBOE.js","./BQiEnYfI.js","./aBWeekJD.js","./BmZlVpsO.js","./C0sLBqbq.js","./DVV0UZSY.js","./C01NrIIY.js","./CPkbKcfz.js","./ClNc3BGS.js","./hasTenantHostApi.CktMezBd.css","./XVBENqct.js","./x_rD_Ya3.js","./BROrcCLp.js","./BV83Kx5Y.js","./BZm2Qjeg.js","./5naiGO6v.js","./Dz2kaL65.js","./kZokfpnf.js","./Bm_1i6JO.js","./CL9feeBO.js","./DA1M0VaM.js","./1W4Eq2dv.js","./CZ5j6Ozl.js","./COwGQ0i4.js","./BVvpDQge.js","./Searchbox.DWfqAHWb.css","./BWzPNot6.js","./D5cZrOG6.js","./DqL3eeN0.js","./CvihTE2Y.js","./Footer.oLHHz4Eu.css","./DNaRyJ7T.js","./rPa3fKqD.js","./Button.BVzTBofY.css","./CTASection.DHDfQRBd.css","./index.HzTonhft.css","./CJJser74.js","./0Iq74aFk.js","./Cv5htza5.js","./BI1iCHdd.js","./index.C7_FIYXD.css","./BQJgq60s.js","./DAPiKMh9.js","./DULlc7cO.js","./index.ClrJKV1S.css","./CuoDDnBD.js","./C1bQH659.js","./IconCSS.CeFK9RwE.css","./CxQypAmk.js","./custom.C44L-8sj.css","./D9Hnwi_S.js"])))=>i.map(i=>d[i]); var LA=Object.defineProperty;var e_=e=>{throw TypeError(e)};var PA=(e,t,r)=>t in e?LA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Pr=(e,t,r)=>PA(e,typeof t!="symbol"?t+"":t,r),NA=(e,t,r)=>t.has(e)||e_("Cannot "+r);var xa=(e,t,r)=>(NA(e,t,"read from private field"),r?r.call(e):t.get(e)),t_=(e,t,r)=>t.has(e)?e_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Xg(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Ge={},Oi=[],an=()=>{},MA=()=>!1,fc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jg=e=>e.startsWith("onUpdate:"),Vt=Object.assign,Qg=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},DA=Object.prototype.hasOwnProperty,Ze=(e,t)=>DA.call(e,t),he=Array.isArray,Ri=e=>dc(e)==="[object Map]",kw=e=>dc(e)==="[object Set]",$A=e=>dc(e)==="[object RegExp]",ye=e=>typeof e=="function",pt=e=>typeof e=="string",mo=e=>typeof e=="symbol",ct=e=>e!==null&&typeof e=="object",em=e=>(ct(e)||ye(e))&&ye(e.then)&&ye(e.catch),Cw=Object.prototype.toString,dc=e=>Cw.call(e),FA=e=>dc(e).slice(8,-1),Tw=e=>dc(e)==="[object Object]",tm=e=>pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Li=Xg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wf=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},UA=/-(\w)/g,$r=Wf(e=>e.replace(UA,(t,r)=>r?r.toUpperCase():"")),jA=/\B([A-Z])/g,yo=Wf(e=>e.replace(jA,"-$1").toLowerCase()),zf=Wf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vd=Wf(e=>e?`on${zf(e)}`:""),Ar=(e,t)=>!Object.is(e,t),Pi=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},fh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Iw=e=>{const t=pt(e)?Number(e):NaN;return isNaN(t)?e:t};let r_;const Gf=()=>r_||(r_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ps(e){if(he(e)){const t={};for(let r=0;r{if(r){const n=r.split(HA);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function tt(e){let t="";if(pt(e))t=e;else if(he(e))for(let r=0;r!!(e&&e.__v_isRef===!0),Uo=e=>pt(e)?e:e==null?"":he(e)||ct(e)&&(e.toString===Cw||!ye(e.toString))?Rw(e)?Uo(e.value):JSON.stringify(e,Lw,2):String(e),Lw=(e,t)=>Rw(t)?Lw(e,t.value):Ri(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],s)=>(r[Wd(n,s)+" =>"]=o,r),{})}:kw(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Wd(r))}:mo(t)?Wd(t):ct(t)&&!he(t)&&!Tw(t)?String(t):t,Wd=(e,t="")=>{var r;return mo(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let _r;class Pw{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_r,!t&&_r&&(this.index=(_r.scopes||(_r.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(ol){let t=ol;for(ol=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;nl;){let t=nl;for(nl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function $w(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fw(e){let t,r=e.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),om(n),qA(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=r}function dh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Uw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Uw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xl))return;e.globalVersion=xl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!dh(e)){e.flags&=-3;return}const r=it,n=ln;it=e,ln=!0;try{$w(e);const o=e.fn(e._value);(t.version===0||Ar(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{it=r,ln=n,Fw(e),e.flags&=-3}}function om(e,t=!1){const{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let s=r.computed.deps;s;s=s.nextDep)om(s,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function qA(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ln=!0;const jw=[];function Qo(){jw.push(ln),ln=!1}function es(){const e=jw.pop();ln=e===void 0?!0:e}function o_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=it;it=void 0;try{t()}finally{it=r}}}let xl=0;class KA{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qf{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!it||!ln||it===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==it)r=this.activeLink=new KA(it,this),it.deps?(r.prevDep=it.depsTail,it.depsTail.nextDep=r,it.depsTail=r):it.deps=it.depsTail=r,Bw(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=it.depsTail,r.nextDep=void 0,it.depsTail.nextDep=r,it.depsTail=r,it.deps===r&&(it.deps=n)}return r}trigger(t){this.version++,xl++,this.notify(t)}notify(t){rm();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{nm()}}}function Bw(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Bw(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const $u=new WeakMap,Cs=Symbol(""),ph=Symbol(""),kl=Symbol("");function or(e,t,r){if(ln&&it){let n=$u.get(e);n||$u.set(e,n=new Map);let o=n.get(r);o||(n.set(r,o=new qf),o.map=n,o.key=r),o.track()}}function to(e,t,r,n,o,s){const i=$u.get(e);if(!i){xl++;return}const a=l=>{l&&l.trigger()};if(rm(),t==="clear")i.forEach(a);else{const l=he(e),c=l&&tm(r);if(l&&r==="length"){const u=Number(n);i.forEach((f,d)=>{(d==="length"||d===kl||!mo(d)&&d>=u)&&a(f)})}else switch((r!==void 0||i.has(void 0))&&a(i.get(r)),c&&a(i.get(kl)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Cs)),Ri(e)&&a(i.get(ph)));break;case"delete":l||(a(i.get(Cs)),Ri(e)&&a(i.get(ph)));break;case"set":Ri(e)&&a(i.get(Cs));break}}nm()}function YA(e,t){const r=$u.get(e);return r&&r.get(t)}function ai(e){const t=Me(e);return t===e?t:(or(t,"iterate",kl),Gr(e)?t:t.map(sr))}function Kf(e){return or(e=Me(e),"iterate",kl),e}const ZA={__proto__:null,[Symbol.iterator](){return Gd(this,Symbol.iterator,sr)},concat(...e){return ai(this).concat(...e.map(t=>he(t)?ai(t):t))},entries(){return Gd(this,"entries",e=>(e[1]=sr(e[1]),e))},every(e,t){return Wn(this,"every",e,t,void 0,arguments)},filter(e,t){return Wn(this,"filter",e,t,r=>r.map(sr),arguments)},find(e,t){return Wn(this,"find",e,t,sr,arguments)},findIndex(e,t){return Wn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wn(this,"findLast",e,t,sr,arguments)},findLastIndex(e,t){return Wn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wn(this,"forEach",e,t,void 0,arguments)},includes(...e){return qd(this,"includes",e)},indexOf(...e){return qd(this,"indexOf",e)},join(e){return ai(this).join(e)},lastIndexOf(...e){return qd(this,"lastIndexOf",e)},map(e,t){return Wn(this,"map",e,t,void 0,arguments)},pop(){return ka(this,"pop")},push(...e){return ka(this,"push",e)},reduce(e,...t){return s_(this,"reduce",e,t)},reduceRight(e,...t){return s_(this,"reduceRight",e,t)},shift(){return ka(this,"shift")},some(e,t){return Wn(this,"some",e,t,void 0,arguments)},splice(...e){return ka(this,"splice",e)},toReversed(){return ai(this).toReversed()},toSorted(e){return ai(this).toSorted(e)},toSpliced(...e){return ai(this).toSpliced(...e)},unshift(...e){return ka(this,"unshift",e)},values(){return Gd(this,"values",sr)}};function Gd(e,t,r){const n=Kf(e),o=n[t]();return n!==e&&!Gr(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=r(s.value)),s}),o}const XA=Array.prototype;function Wn(e,t,r,n,o,s){const i=Kf(e),a=i!==e&&!Gr(e),l=i[t];if(l!==XA[t]){const f=l.apply(e,s);return a?sr(f):f}let c=r;i!==e&&(a?c=function(f,d){return r.call(this,sr(f),d,e)}:r.length>2&&(c=function(f,d){return r.call(this,f,d,e)}));const u=l.call(i,c,n);return a&&o?o(u):u}function s_(e,t,r,n){const o=Kf(e);let s=r;return o!==e&&(Gr(e)?r.length>3&&(s=function(i,a,l){return r.call(this,i,a,l,e)}):s=function(i,a,l){return r.call(this,i,sr(a),l,e)}),o[t](s,...n)}function qd(e,t,r){const n=Me(e);or(n,"iterate",kl);const o=n[t](...r);return(o===-1||o===!1)&&am(r[0])?(r[0]=Me(r[0]),n[t](...r)):o}function ka(e,t,r=[]){Qo(),rm();const n=Me(e)[t].apply(e,r);return nm(),es(),n}const JA=Xg("__proto__,__v_isRef,__isVue"),Hw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mo));function QA(e){mo(e)||(e=String(e));const t=Me(this);return or(t,"has",e),t.hasOwnProperty(e)}class Vw{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(o?s?cI:qw:s?Gw:zw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=he(t);if(!o){let l;if(i&&(l=ZA[r]))return l;if(r==="hasOwnProperty")return QA}const a=Reflect.get(t,r,qe(t)?t:n);return(mo(r)?Hw.has(r):JA(r))||(o||or(t,"get",r),s)?a:qe(a)?i&&tm(r)?a:a.value:ct(a)?o?Yf(a):lr(a):a}}class Ww extends Vw{constructor(t=!1){super(!1,t)}set(t,r,n,o){let s=t[r];if(!this._isShallow){const l=Vo(s);if(!Gr(n)&&!Vo(n)&&(s=Me(s),n=Me(n)),!he(t)&&qe(s)&&!qe(n))return l?!1:(s.value=n,!0)}const i=he(t)&&tm(r)?Number(r)e,Nc=e=>Reflect.getPrototypeOf(e);function oI(e,t,r){return function(...n){const o=this.__v_raw,s=Me(o),i=Ri(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...n),u=r?hh:t?gh:sr;return!t&&or(s,"iterate",l?ph:Cs),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sI(e,t){const r={get(o){const s=this.__v_raw,i=Me(s),a=Me(o);e||(Ar(o,a)&&or(i,"get",o),or(i,"get",a));const{has:l}=Nc(i),c=t?hh:e?gh:sr;if(l.call(i,o))return c(s.get(o));if(l.call(i,a))return c(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&or(Me(o),"iterate",Cs),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Me(s),a=Me(o);return e||(Ar(o,a)&&or(i,"has",o),or(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=Me(a),c=t?hh:e?gh:sr;return!e&&or(l,"iterate",Cs),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return Vt(r,e?{add:Mc("add"),set:Mc("set"),delete:Mc("delete"),clear:Mc("clear")}:{add(o){!t&&!Gr(o)&&!Vo(o)&&(o=Me(o));const s=Me(this);return Nc(s).has.call(s,o)||(s.add(o),to(s,"add",o,o)),this},set(o,s){!t&&!Gr(s)&&!Vo(s)&&(s=Me(s));const i=Me(this),{has:a,get:l}=Nc(i);let c=a.call(i,o);c||(o=Me(o),c=a.call(i,o));const u=l.call(i,o);return i.set(o,s),c?Ar(s,u)&&to(i,"set",o,s):to(i,"add",o,s),this},delete(o){const s=Me(this),{has:i,get:a}=Nc(s);let l=i.call(s,o);l||(o=Me(o),l=i.call(s,o)),a&&a.call(s,o);const c=s.delete(o);return l&&to(s,"delete",o,void 0),c},clear(){const o=Me(this),s=o.size!==0,i=o.clear();return s&&to(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=oI(o,e,t)}),r}function sm(e,t){const r=sI(e,t);return(n,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Ze(r,o)&&o in n?r:n,o,s)}const iI={get:sm(!1,!1)},aI={get:sm(!1,!0)},lI={get:sm(!0,!1)};const zw=new WeakMap,Gw=new WeakMap,qw=new WeakMap,cI=new WeakMap;function uI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fI(e){return e.__v_skip||!Object.isExtensible(e)?0:uI(FA(e))}function lr(e){return Vo(e)?e:im(e,!1,tI,iI,zw)}function oo(e){return im(e,!1,nI,aI,Gw)}function Yf(e){return im(e,!0,rI,lI,qw)}function im(e,t,r,n,o){if(!ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=fI(e);if(i===0)return e;const a=new Proxy(e,i===2?n:r);return o.set(e,a),a}function Pn(e){return Vo(e)?Pn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vo(e){return!!(e&&e.__v_isReadonly)}function Gr(e){return!!(e&&e.__v_isShallow)}function am(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function lm(e){return!Ze(e,"__v_skip")&&Object.isExtensible(e)&&Aw(e,"__v_skip",!0),e}const sr=e=>ct(e)?lr(e):e,gh=e=>ct(e)?Yf(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function ue(e){return Kw(e,!1)}function fn(e){return Kw(e,!0)}function Kw(e,t){return qe(e)?e:new dI(e,t)}class dI{constructor(t,r){this.dep=new qf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Me(t),this._value=r?t:sr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Gr(t)||Vo(t);t=n?t:Me(t),Ar(t,r)&&(this._rawValue=t,this._value=n?t:sr(t),this.dep.trigger())}}function fq(e){e.dep&&e.dep.trigger()}function Ve(e){return qe(e)?e.value:e}function mu(e){return ye(e)?e():Ve(e)}const pI={get:(e,t,r)=>t==="__v_raw"?e:Ve(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return qe(o)&&!qe(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Yw(e){return Pn(e)?e:new Proxy(e,pI)}class hI{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new qf,{get:n,set:o}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Zw(e){return new hI(e)}function gI(e){const t=he(e)?new Array(e.length):{};for(const r in e)t[r]=Xw(e,r);return t}class mI{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return YA(Me(this._object),this._key)}}class yI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Js(e,t,r){return qe(e)?e:ye(e)?new yI(e):ct(e)&&arguments.length>1?Xw(e,t,r):ue(e)}function Xw(e,t,r){const n=e[t];return qe(n)?n:new mI(e,t,r)}class _I{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new qf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&it!==this)return Dw(this,!0),!0}get value(){const t=this.dep.track();return Uw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vI(e,t,r=!1){let n,o;return ye(e)?n=e:(n=e.get,o=e.set),new _I(n,o,r)}const Dc={},Fu=new WeakMap;let gs;function bI(e,t=!1,r=gs){if(r){let n=Fu.get(r);n||Fu.set(r,n=[]),n.push(e)}}function wI(e,t,r=Ge){const{immediate:n,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=r,c=v=>o?v:Gr(v)||o===!1||o===0?ro(v,1):ro(v);let u,f,d,p,g=!1,h=!1;if(qe(e)?(f=()=>e.value,g=Gr(e)):Pn(e)?(f=()=>c(e),g=!0):he(e)?(h=!0,g=e.some(v=>Pn(v)||Gr(v)),f=()=>e.map(v=>{if(qe(v))return v.value;if(Pn(v))return c(v);if(ye(v))return l?l(v,2):v()})):ye(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Qo();try{d()}finally{es()}}const v=gs;gs=u;try{return l?l(e,3,[p]):e(p)}finally{gs=v}}:f=an,t&&o){const v=f,E=o===!0?1/0:o;f=()=>ro(v(),E)}const m=ua(),y=()=>{u.stop(),m&&m.active&&Qg(m.effects,u)};if(s&&t){const v=t;t=(...E)=>{v(...E),y()}}let b=h?new Array(e.length).fill(Dc):Dc;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const E=u.run();if(o||g||(h?E.some((S,x)=>Ar(S,b[x])):Ar(E,b))){d&&d();const S=gs;gs=u;try{const x=[E,b===Dc?void 0:h&&b[0]===Dc?[]:b,p];l?l(t,3,x):t(...x),b=E}finally{gs=S}}}else u.run()};return a&&a(_),u=new Nw(f),u.scheduler=i?()=>i(_,!1):_,p=v=>bI(v,!1,u),d=u.onStop=()=>{const v=Fu.get(u);if(v){if(l)l(v,4);else for(const E of v)E();Fu.delete(u)}},t?n?_(!0):b=u.run():i?i(_.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function ro(e,t=1/0,r){if(t<=0||!ct(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,qe(e))ro(e.value,t,r);else if(he(e))for(let n=0;n{ro(n,t,r)});else if(Tw(e)){for(const n in e)ro(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ro(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function pc(e,t,r,n){try{return n?e(...n):e()}catch(o){fa(o,t,r)}}function dn(e,t,r,n){if(ye(e)){const o=pc(e,t,r,n);return o&&em(o)&&o.catch(s=>{fa(s,t,r)}),o}if(he(e)){const o=[];for(let s=0;s>>1,o=vr[n],s=Cl(o);s=Cl(r)?vr.push(e):vr.splice(EI(t),0,e),e.flags|=1,Qw()}}function Qw(){Uu||(Uu=Jw.then(eS))}function ju(e){he(e)?Ni.push(...e):To&&e.id===-1?To.splice(hi+1,0,e):e.flags&1||(Ni.push(e),e.flags|=1),Qw()}function i_(e,t,r=An+1){for(;rCl(r)-Cl(n));if(Ni.length=0,To){To.push(...t);return}for(To=t,hi=0;hie.id==null?e.flags&2?-1:1/0:e.id;function eS(e){try{for(An=0;An{n._d&&w_(-1);const s=Hu(t);let i;try{i=e(...o)}finally{Hu(s),n._d&&w_(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function dq(e,t){if(Bt===null)return e;const r=nd(Bt),n=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,sl=e=>e&&(e.disabled||e.disabled===""),a_=e=>e&&(e.defer||e.defer===""),l_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,c_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,mh=(e,t)=>{const r=e&&e.to;return pt(r)?t?t(r):null:r},oS={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:h,createComment:m}}=c,y=sl(t.props);let{shapeFlag:b,children:_,dynamicChildren:v}=t;if(e==null){const E=t.el=h(""),S=t.anchor=h("");p(E,r,n),p(S,r,n);const x=(I,P)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=I),u(_,I,P,o,s,i,a,l))},D=()=>{const I=t.target=mh(t.props,g),P=sS(I,t,h,p);I&&(i!=="svg"&&l_(I)?i="svg":i!=="mathml"&&c_(I)&&(i="mathml"),y||(x(I,P),yu(t,!1)))};y&&(x(r,S),yu(t,!0)),a_(t.props)?Ft(()=>{D(),t.el.__isMounted=!0},s):D()}else{if(a_(t.props)&&!e.el.__isMounted){Ft(()=>{oS.process(e,t,r,n,o,s,i,a,l,c),delete e.el.__isMounted},s);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,S=t.target=e.target,x=t.targetAnchor=e.targetAnchor,D=sl(e.props),I=D?r:S,P=D?E:x;if(i==="svg"||l_(S)?i="svg":(i==="mathml"||c_(S))&&(i="mathml"),v?(d(e.dynamicChildren,v,I,o,s,i,a),gm(e,t,!0)):l||f(e,t,I,P,o,s,i,a,!1),y)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$c(t,r,E,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=mh(t.props,g);j&&$c(t,j,null,c,0)}else D&&$c(t,S,x,c,1);yu(t,y)}},remove(e,t,r,{um:n,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(o(c),o(u)),s&&o(l),i&16){const p=s||!sl(d);for(let g=0;g{e.isMounted=!0}),da(()=>{e.isUnmounting=!0}),e}const jr=[Function,Array],iS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jr,onEnter:jr,onAfterEnter:jr,onEnterCancelled:jr,onBeforeLeave:jr,onLeave:jr,onAfterLeave:jr,onLeaveCancelled:jr,onBeforeAppear:jr,onAppear:jr,onAfterAppear:jr,onAppearCancelled:jr},aS=e=>{const t=e.subTree;return t.component?aS(t.component):t},TI={name:"BaseTransition",props:iS,setup(e,{slots:t}){const r=ur(),n=CI();return()=>{const o=t.default&&uS(t.default(),!0);if(!o||!o.length)return;const s=lS(o),i=Me(e),{mode:a}=i;if(n.isLeaving)return Kd(s);const l=u_(s);if(!l)return Kd(s);let c=yh(l,i,n,r,f=>c=f);l.type!==Ut&&ji(l,c);let u=r.subTree&&u_(r.subTree);if(u&&u.type!==Ut&&!rn(l,u)&&aS(r).type!==Ut){let f=yh(u,i,n,r);if(ji(u,f),a==="out-in"&&l.type!==Ut)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,u=void 0},Kd(s);a==="in-out"&&l.type!==Ut?f.delayLeave=(d,p,g)=>{const h=cS(n,u);h[String(u.key)]=u,d[Ao]=()=>{p(),d[Ao]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function lS(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Ut){t=r;break}}return t}const AI=TI;function cS(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function yh(e,t,r,n,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:h,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,v=String(e.key),E=cS(r,e),S=(I,P)=>{I&&dn(I,n,9,P)},x=(I,P)=>{const j=P[1];S(I,P),he(I)?I.every(L=>L.length<=1)&&j():I.length<=1&&j()},D={mode:i,persisted:a,beforeEnter(I){let P=l;if(!r.isMounted)if(s)P=m||l;else return;I[Ao]&&I[Ao](!0);const j=E[v];j&&rn(e,j)&&j.el[Ao]&&j.el[Ao](),S(P,[I])},enter(I){let P=c,j=u,L=f;if(!r.isMounted)if(s)P=y||c,j=b||u,L=_||f;else return;let G=!1;const re=I[Fc]=de=>{G||(G=!0,de?S(L,[I]):S(j,[I]),D.delayedLeave&&D.delayedLeave(),I[Fc]=void 0)};P?x(P,[I,re]):re()},leave(I,P){const j=String(e.key);if(I[Fc]&&I[Fc](!0),r.isUnmounting)return P();S(d,[I]);let L=!1;const G=I[Ao]=re=>{L||(L=!0,P(),re?S(h,[I]):S(g,[I]),I[Ao]=void 0,E[j]===e&&delete E[j])};E[j]=e,p?x(p,[I,G]):G()},clone(I){const P=yh(I,t,r,n,o);return o&&o(P),P}};return D}function Kd(e){if(hc(e))return e=fo(e),e.children=null,e}function u_(e){if(!hc(e))return nS(e.type)&&e.children?lS(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&ye(r.default))return r.default()}}function ji(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ji(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function uS(e,t=!1,r){let n=[],o=0;for(let s=0;s1)for(let s=0;sr.value,set:s=>r.value=s})}return r}function Tl(e,t,r,n,o=!1){if(he(e)){e.forEach((g,h)=>Tl(g,t&&(he(t)?t[h]:t),r,n,o));return}if(jo(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Tl(e,t,r,n.component.subTree);return}const s=n.shapeFlag&4?nd(n.component):n.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ge?a.refs={}:a.refs,f=a.setupState,d=Me(f),p=f===Ge?()=>!1:g=>Ze(d,g);if(c!=null&&c!==l&&(pt(c)?(u[c]=null,p(c)&&(f[c]=null)):qe(c)&&(c.value=null)),ye(l))pc(l,a,12,[i,u]);else{const g=pt(l),h=qe(l);if(g||h){const m=()=>{if(e.f){const y=g?p(l)?f[l]:u[l]:l.value;o?he(y)&&Qg(y,s):he(y)?y.includes(s)||y.push(s):g?(u[l]=[s],p(l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else g?(u[l]=i,p(l)&&(f[l]=i)):h&&(l.value=i,e.k&&(u[e.k]=i))};i?(m.id=-1,Ft(m,r)):m()}}}let f_=!1;const li=()=>{f_||(console.error("Hydration completed but contains mismatches."),f_=!0)},OI=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",RI=e=>e.namespaceURI.includes("MathML"),Uc=e=>{if(e.nodeType===1){if(OI(e))return"svg";if(RI(e))return"mathml"}},Si=e=>e.nodeType===8;function LI(e){const{mt:t,p:r,o:{patchProp:n,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(_,v)=>{if(!v.hasChildNodes()){r(null,_,v),Bu(),v._vnode=_;return}f(v.firstChild,_,null,null,null),Bu(),v._vnode=_},f=(_,v,E,S,x,D=!1)=>{D=D||!!v.dynamicChildren;const I=Si(_)&&_.data==="[",P=()=>h(_,v,E,S,x,I),{type:j,ref:L,shapeFlag:G,patchFlag:re}=v;let de=_.nodeType;v.el=_,re===-2&&(D=!1,v.dynamicChildren=null);let q=null;switch(j){case Bo:de!==3?v.children===""?(l(v.el=o(""),i(_),_),q=_):q=P():(_.data!==v.children&&(li(),_.data=v.children),q=s(_));break;case Ut:b(_)?(q=s(_),y(v.el=_.content.firstChild,_,E)):de!==8||I?q=P():q=s(_);break;case Di:if(I&&(_=s(_),de=_.nodeType),de===1||de===3){q=_;const ne=!v.children.length;for(let oe=0;oe{D=D||!!v.dynamicChildren;const{type:I,props:P,patchFlag:j,shapeFlag:L,dirs:G,transition:re}=v,de=I==="input"||I==="option";if(de||j!==-1){G&&In(v,null,E,"created");let q=!1;if(b(_)){q=PS(null,re)&&E&&E.vnode.props&&E.vnode.props.appear;const oe=_.content.firstChild;q&&re.beforeEnter(oe),y(oe,_,E),v.el=_=oe}if(L&16&&!(P&&(P.innerHTML||P.textContent))){let oe=p(_.firstChild,v,_,E,S,x,D);for(;oe;){jc(_,1)||li();const Te=oe;oe=oe.nextSibling,a(Te)}}else if(L&8){let oe=v.children;oe[0]===` `&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(oe=oe.slice(1)),_.textContent!==oe&&(jc(_,0)||li(),_.textContent=v.children)}if(P){if(de||!D||j&48){const oe=_.tagName.includes("-");for(const Te in P)(de&&(Te.endsWith("value")||Te==="indeterminate")||fc(Te)&&!Li(Te)||Te[0]==="."||oe)&&n(_,Te,null,P[Te],void 0,E)}else if(P.onClick)n(_,"onClick",null,P.onClick,void 0,E);else if(j&4&&Pn(P.style))for(const oe in P.style)P.style[oe]}let ne;(ne=P&&P.onVnodeBeforeMount)&&Tr(ne,E,v),G&&In(v,null,E,"beforeMount"),((ne=P&&P.onVnodeMounted)||G||q)&&jS(()=>{ne&&Tr(ne,E,v),q&&re.enter(_),G&&In(v,null,E,"mounted")},S)}return _.nextSibling},p=(_,v,E,S,x,D,I)=>{I=I||!!v.dynamicChildren;const P=v.children,j=P.length;for(let L=0;L{const{slotScopeIds:I}=v;I&&(x=x?x.concat(I):I);const P=i(_),j=p(s(_),v,P,E,S,x,D);return j&&Si(j)&&j.data==="]"?s(v.anchor=j):(li(),l(v.anchor=c("]"),P,j),j)},h=(_,v,E,S,x,D)=>{if(jc(_.parentElement,1)||li(),v.el=null,D){const j=m(_);for(;;){const L=s(_);if(L&&L!==j)a(L);else break}}const I=s(_),P=i(_);return a(_),r(null,v,P,I,E,S,Uc(P),x),E&&(E.vnode.el=v.el,rd(E,v.el)),I},m=(_,v="[",E="]")=>{let S=0;for(;_;)if(_=s(_),_&&Si(_)&&(_.data===v&&S++,_.data===E)){if(S===0)return s(_);S--}return _},y=(_,v,E)=>{const S=v.parentNode;S&&S.replaceChild(_,v);let x=E;for(;x;)x.vnode.el===v&&(x.vnode.el=x.subTree.el=_),x=x.parent},b=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[u,f]}const d_="data-allow-mismatch",PI={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function jc(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(d_);)e=e.parentElement;const r=e&&e.getAttribute(d_);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(PI[t])}}Gf().requestIdleCallback;Gf().cancelIdleCallback;function NI(e,t){if(Si(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Si(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const jo=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Zf(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,hydrate:s,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const d=()=>(f++,c=null,p()),p=()=>{let g;return c||(g=c=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),l)return new Promise((m,y)=>{l(h,()=>m(d()),()=>y(h),f+1)});throw h}).then(h=>g!==c&&c?c:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return It({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,h,m){const y=s?()=>{const b=s(m,_=>NI(g,_));b&&(h.bum||(h.bum=[])).push(b)}:m;u?y():p().then(()=>!h.isUnmounted&&y())},get __asyncResolved(){return u},setup(){const g=jt;if(um(g),u)return()=>Yd(u,g);const h=_=>{c=null,fa(_,g,13,!n)};if(a&&g.suspense||Hi)return p().then(_=>()=>Yd(_,g)).catch(_=>(h(_),()=>n?at(n,{error:_}):null));const m=ue(!1),y=ue(),b=ue(!!o);return o&&setTimeout(()=>{b.value=!1},o),i!=null&&setTimeout(()=>{if(!m.value&&!y.value){const _=new Error(`Async component timed out after ${i}ms.`);h(_),y.value=_}},i),p().then(()=>{m.value=!0,g.parent&&hc(g.parent.vnode)&&g.parent.update()}).catch(_=>{h(_),y.value=_}),()=>{if(m.value&&u)return Yd(u,g);if(y.value&&n)return at(n,{error:y.value});if(r&&!b.value)return at(r)}}})}function Yd(e,t){const{ref:r,props:n,children:o,ce:s}=t.vnode,i=at(e,n,o);return i.ref=r,i.ce=s,delete t.vnode.ce,i}const hc=e=>e.type.__isKeepAlive,MI={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=ur(),n=r.ctx;if(!n.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const o=new Map,s=new Set;let i=null;const a=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=n,d=f("div");n.activate=(b,_,v,E,S)=>{const x=b.component;c(b,_,v,0,a),l(x.vnode,b,_,v,x,a,E,b.slotScopeIds,S),Ft(()=>{x.isDeactivated=!1,x.a&&Pi(x.a);const D=b.props&&b.props.onVnodeMounted;D&&Tr(D,x.parent,b)},a)},n.deactivate=b=>{const _=b.component;Gu(_.m),Gu(_.a),c(b,d,null,1,a),Ft(()=>{_.da&&Pi(_.da);const v=b.props&&b.props.onVnodeUnmounted;v&&Tr(v,_.parent,b),_.isDeactivated=!0},a)};function p(b){Zd(b),u(b,r,a,!0)}function g(b){o.forEach((_,v)=>{const E=Th(_.type);E&&!b(E)&&h(v)})}function h(b){const _=o.get(b);_&&(!i||!rn(_,i))?p(_):i&&Zd(i),o.delete(b),s.delete(b)}Oe(()=>[e.include,e.exclude],([b,_])=>{b&&g(v=>Za(b,v)),_&&g(v=>!Za(_,v))},{flush:"post",deep:!0});let m=null;const y=()=>{m!=null&&(qu(r.subTree.type)?Ft(()=>{o.set(m,Bc(r.subTree))},r.subTree.suspense):o.set(m,Bc(r.subTree)))};return Rr(y),gS(y),da(()=>{o.forEach(b=>{const{subTree:_,suspense:v}=r,E=Bc(_);if(b.type===E.type&&b.key===E.key){Zd(E);const S=E.component.da;S&&Ft(S,v);return}p(b)})}),()=>{if(m=null,!t.default)return i=null;const b=t.default(),_=b[0];if(b.length>1)return i=null,b;if(!Ms(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return i=null,_;let v=Bc(_);if(v.type===Ut)return i=null,v;const E=v.type,S=Th(jo(v)?v.type.__asyncResolved||{}:E),{include:x,exclude:D,max:I}=e;if(x&&(!S||!Za(x,S))||D&&S&&Za(D,S))return v.shapeFlag&=-257,i=v,_;const P=v.key==null?E:v.key,j=o.get(P);return v.el&&(v=fo(v),_.shapeFlag&128&&(_.ssContent=v)),m=P,j?(v.el=j.el,v.component=j.component,v.transition&&ji(v,v.transition),v.shapeFlag|=512,s.delete(P),s.add(P)):(s.add(P),I&&s.size>parseInt(I,10)&&h(s.values().next().value)),v.shapeFlag|=256,i=v,qu(_.type)?_:v}}},DI=MI;function Za(e,t){return he(e)?e.some(r=>Za(r,t)):pt(e)?e.split(",").includes(t):$A(e)?(e.lastIndex=0,e.test(t)):!1}function fS(e,t){pS(e,"a",t)}function dS(e,t){pS(e,"da",t)}function pS(e,t,r=jt){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xf(t,n,r),r){let o=r.parent;for(;o&&o.parent;)hc(o.parent.vnode)&&$I(n,t,r,o),o=o.parent}}function $I(e,t,r,n){const o=Xf(t,e,n,!0);Qs(()=>{Qg(n[t],o)},r)}function Zd(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Bc(e){return e.shapeFlag&128?e.ssContent:e}function Xf(e,t,r=jt,n=!1){if(r){const o=r[e]||(r[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Qo();const a=Ds(r),l=dn(t,r,e,i);return a(),es(),l});return n?o.unshift(s):o.push(s),s}}const _o=e=>(t,r=jt)=>{(!Hi||e==="sp")&&Xf(e,(...n)=>t(...n),r)},fm=_o("bm"),Rr=_o("m"),hS=_o("bu"),gS=_o("u"),da=_o("bum"),Qs=_o("um"),FI=_o("sp"),UI=_o("rtg"),jI=_o("rtc");function mS(e,t=jt){Xf("ec",e,t)}const dm="components",BI="directives";function p_(e,t){return pm(dm,e,!0,t)||e}const yS=Symbol.for("v-ndc");function Jf(e){return pt(e)?pm(dm,e,!1)||e:e||yS}function hq(e){return pm(BI,e)}function pm(e,t,r=!0,n=!1){const o=Bt||jt;if(o){const s=o.type;if(e===dm){const a=Th(s,!1);if(a&&(a===t||a===$r(t)||a===zf($r(t))))return s}const i=h_(o[e]||s[e],t)||h_(o.appContext[e],t);return!i&&n?s:i}}function h_(e,t){return e&&(e[t]||e[$r(t)]||e[zf($r(t))])}function Vu(e,t,r,n){let o;const s=r,i=he(e);if(i||pt(e)){const a=i&&Pn(e);let l=!1;a&&(l=!Gr(e),e=Kf(e)),o=new Array(e.length);for(let c=0,u=e.length;ct(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l{const s=n.fn(...o);return s&&(s.key=n.key),s}:n.fn)}return e}function Nn(e,t,r={},n,o){if(Bt.ce||Bt.parent&&jo(Bt.parent)&&Bt.parent.ce)return t!=="default"&&(r.name=t),me(),dt(wt,null,[at("slot",r,n&&n())],64);let s=e[t];s&&s._c&&(s._d=!1),me();const i=s&&_S(s(r)),a=r.key||i&&i.key,l=dt(wt,{key:(a&&!mo(a)?a:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function _S(e){return e.some(t=>Ms(t)?!(t.type===Ut||t.type===wt&&!_S(t.children)):!0)?e:null}const _h=e=>e?WS(e)?nd(e):_h(e.parent):null,il=Vt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_h(e.parent),$root:e=>_h(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wS(e),$forceUpdate:e=>e.f||(e.f=()=>{cm(e.update)}),$nextTick:e=>e.n||(e.n=yn.bind(e.proxy)),$watch:e=>fO.bind(e)}),Xd=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Ze(e,t),VI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return s[t]}else{if(Xd(n,t))return i[t]=1,n[t];if(o!==Ge&&Ze(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&Ze(c,t))return i[t]=3,s[t];if(r!==Ge&&Ze(r,t))return i[t]=4,r[t];vh&&(i[t]=0)}}const u=il[t];let f,d;if(u)return t==="$attrs"&&or(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(r!==Ge&&Ze(r,t))return i[t]=4,r[t];if(d=l.config.globalProperties,Ze(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:s}=e;return Xd(o,t)?(o[t]=r,!0):n!==Ge&&Ze(n,t)?(n[t]=r,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:s}},i){let a;return!!r[i]||e!==Ge&&Ze(e,i)||Xd(t,i)||(a=s[0])&&Ze(a,i)||Ze(n,i)||Ze(il,i)||Ze(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function WI(){return zI().attrs}function zI(){const e=ur();return e.setupContext||(e.setupContext=GS(e))}function Wu(e){return he(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function gq(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):Vt({},Wu(e),Wu(t))}function vS(e){const t=ur();let r=e();return kh(),em(r)&&(r=r.catch(n=>{throw Ds(t),n})),[r,()=>Ds(t)]}let vh=!0;function GI(e){const t=wS(e),r=e.proxy,n=e.ctx;vh=!1,t.beforeCreate&&g_(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:h,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:v,render:E,renderTracked:S,renderTriggered:x,errorCaptured:D,serverPrefetch:I,expose:P,inheritAttrs:j,components:L,directives:G,filters:re}=t;if(c&&qI(c,n,null),i)for(const ne in i){const oe=i[ne];ye(oe)&&(n[ne]=oe.bind(r))}if(o){const ne=o.call(r,r);ct(ne)&&(e.data=lr(ne))}if(vh=!0,s)for(const ne in s){const oe=s[ne],Te=ye(oe)?oe.bind(r,r):ye(oe.get)?oe.get.bind(r,r):an,kt=!ye(oe)&&ye(oe.set)?oe.set.bind(r):an,we=Z({get:Te,set:kt});Object.defineProperty(n,ne,{enumerable:!0,configurable:!0,get:()=>we.value,set:Xe=>we.value=Xe})}if(a)for(const ne in a)bS(a[ne],n,r,ne);if(l){const ne=ye(l)?l.call(r):l;Reflect.ownKeys(ne).forEach(oe=>{As(oe,ne[oe])})}u&&g_(u,e,"c");function q(ne,oe){he(oe)?oe.forEach(Te=>ne(Te.bind(r))):oe&&ne(oe.bind(r))}if(q(fm,f),q(Rr,d),q(hS,p),q(gS,g),q(fS,h),q(dS,m),q(mS,D),q(jI,S),q(UI,x),q(da,b),q(Qs,v),q(FI,I),he(P))if(P.length){const ne=e.exposed||(e.exposed={});P.forEach(oe=>{Object.defineProperty(ne,oe,{get:()=>r[oe],set:Te=>r[oe]=Te})})}else e.exposed||(e.exposed={});E&&e.render===an&&(e.render=E),j!=null&&(e.inheritAttrs=j),L&&(e.components=L),G&&(e.directives=G),I&&um(e)}function qI(e,t,r=an){he(e)&&(e=bh(e));for(const n in e){const o=e[n];let s;ct(o)?"default"in o?s=Ht(o.from||n,o.default,!0):s=Ht(o.from||n):s=Ht(o),qe(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[n]=s}}function g_(e,t,r){dn(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function bS(e,t,r,n){let o=n.includes(".")?MS(r,n):()=>r[n];if(pt(e)){const s=t[e];ye(s)&&Oe(o,s)}else if(ye(e))Oe(o,e.bind(r));else if(ct(e))if(he(e))e.forEach(s=>bS(s,t,r,n));else{const s=ye(e.handler)?e.handler.bind(r):t[e.handler];ye(s)&&Oe(o,s,e)}}function wS(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(c=>zu(l,c,i,!0)),zu(l,t,i)),ct(t)&&s.set(t,l),l}function zu(e,t,r,n=!1){const{mixins:o,extends:s}=t;s&&zu(e,s,r,!0),o&&o.forEach(i=>zu(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const a=KI[i]||r&&r[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const KI={data:m_,props:y_,emits:y_,methods:Xa,computed:Xa,beforeCreate:mr,created:mr,beforeMount:mr,mounted:mr,beforeUpdate:mr,updated:mr,beforeDestroy:mr,beforeUnmount:mr,destroyed:mr,unmounted:mr,activated:mr,deactivated:mr,errorCaptured:mr,serverPrefetch:mr,components:Xa,directives:Xa,watch:ZI,provide:m_,inject:YI};function m_(e,t){return t?e?function(){return Vt(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function YI(e,t){return Xa(bh(e),bh(t))}function bh(e){if(he(e)){const t={};for(let r=0;r1)return r&&ye(t)?t.call(n&&n.proxy):t}}function gc(){return!!(jt||Bt||Ts)}const ES={},xS=()=>Object.create(ES),kS=e=>Object.getPrototypeOf(e)===ES;function QI(e,t,r,n=!1){const o={},s=xS();e.propsDefaults=Object.create(null),CS(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:oo(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function eO(e,t,r,n){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Me(o),[l]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=TS(f,t,!0);Vt(i,d),p&&a.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return ct(e)&&n.set(e,Oi),Oi;if(he(s))for(let u=0;ue[0]==="_"||e==="$stable",hm=e=>he(e)?e.map(Mr):[Mr(e)],rO=(e,t,r)=>{if(t._n)return t;const n=Ns((...o)=>hm(t(...o)),r);return n._c=!1,n},IS=(e,t,r)=>{const n=e._ctx;for(const o in e){if(AS(o))continue;const s=e[o];if(ye(s))t[o]=rO(o,s,n);else if(s!=null){const i=hm(s);t[o]=()=>i}}},OS=(e,t)=>{const r=hm(t);e.slots.default=()=>r},RS=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},nO=(e,t,r)=>{const n=e.slots=xS();if(e.vnode.shapeFlag&32){const o=t._;o?(RS(n,t,r),r&&Aw(n,"_",o,!0)):IS(t,n)}else t&&OS(e,t)},oO=(e,t,r)=>{const{vnode:n,slots:o}=e;let s=!0,i=Ge;if(n.shapeFlag&32){const a=t._;a?r&&a===1?s=!1:RS(o,t,r):(s=!t.$stable,IS(t,o)),i=t}else t&&(OS(e,t),i={default:1});if(s)for(const a in o)!AS(a)&&i[a]==null&&delete o[a]},Ft=jS;function sO(e){return LS(e)}function iO(e){return LS(e,LI)}function LS(e,t){const r=Gf();r.__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=an,insertStaticContent:g}=e,h=(C,A,$,B=null,H=null,k=null,T=void 0,M=null,U=!!A.dynamicChildren)=>{if(C===A)return;C&&!rn(C,A)&&(B=W(C),Xe(C,H,k,!0),C=null),A.patchFlag===-2&&(U=!1,A.dynamicChildren=null);const{type:z,ref:K,shapeFlag:R}=A;switch(z){case Bo:m(C,A,$,B);break;case Ut:y(C,A,$,B);break;case Di:C==null&&b(A,$,B,T);break;case wt:L(C,A,$,B,H,k,T,M,U);break;default:R&1?E(C,A,$,B,H,k,T,M,U):R&6?G(C,A,$,B,H,k,T,M,U):(R&64||R&128)&&z.process(C,A,$,B,H,k,T,M,U,ie)}K!=null&&H&&Tl(K,C&&C.ref,k,A||C,!A)},m=(C,A,$,B)=>{if(C==null)n(A.el=a(A.children),$,B);else{const H=A.el=C.el;A.children!==C.children&&c(H,A.children)}},y=(C,A,$,B)=>{C==null?n(A.el=l(A.children||""),$,B):A.el=C.el},b=(C,A,$,B)=>{[C.el,C.anchor]=g(C.children,A,$,B,C.el,C.anchor)},_=({el:C,anchor:A},$,B)=>{let H;for(;C&&C!==A;)H=d(C),n(C,$,B),C=H;n(A,$,B)},v=({el:C,anchor:A})=>{let $;for(;C&&C!==A;)$=d(C),o(C),C=$;o(A)},E=(C,A,$,B,H,k,T,M,U)=>{A.type==="svg"?T="svg":A.type==="math"&&(T="mathml"),C==null?S(A,$,B,H,k,T,M,U):I(C,A,H,k,T,M,U)},S=(C,A,$,B,H,k,T,M)=>{let U,z;const{props:K,shapeFlag:R,transition:F,dirs:ee}=C;if(U=C.el=i(C.type,k,K&&K.is,K),R&8?u(U,C.children):R&16&&D(C.children,U,null,B,H,Jd(C,k),T,M),ee&&In(C,null,B,"created"),x(U,C,C.scopeId,T,B),K){for(const Le in K)Le!=="value"&&!Li(Le)&&s(U,Le,null,K[Le],k,B);"value"in K&&s(U,"value",null,K.value,k),(z=K.onVnodeBeforeMount)&&Tr(z,B,C)}ee&&In(C,null,B,"beforeMount");const fe=PS(H,F);fe&&F.beforeEnter(U),n(U,A,$),((z=K&&K.onVnodeMounted)||fe||ee)&&Ft(()=>{z&&Tr(z,B,C),fe&&F.enter(U),ee&&In(C,null,B,"mounted")},H)},x=(C,A,$,B,H)=>{if($&&p(C,$),B)for(let k=0;k{for(let z=U;z{const M=A.el=C.el;let{patchFlag:U,dynamicChildren:z,dirs:K}=A;U|=C.patchFlag&16;const R=C.props||Ge,F=A.props||Ge;let ee;if($&&us($,!1),(ee=F.onVnodeBeforeUpdate)&&Tr(ee,$,A,C),K&&In(A,C,$,"beforeUpdate"),$&&us($,!0),(R.innerHTML&&F.innerHTML==null||R.textContent&&F.textContent==null)&&u(M,""),z?P(C.dynamicChildren,z,M,$,B,Jd(A,H),k):T||oe(C,A,M,null,$,B,Jd(A,H),k,!1),U>0){if(U&16)j(M,R,F,$,H);else if(U&2&&R.class!==F.class&&s(M,"class",null,F.class,H),U&4&&s(M,"style",R.style,F.style,H),U&8){const fe=A.dynamicProps;for(let Le=0;Le{ee&&Tr(ee,$,A,C),K&&In(A,C,$,"updated")},B)},P=(C,A,$,B,H,k,T)=>{for(let M=0;M{if(A!==$){if(A!==Ge)for(const k in A)!Li(k)&&!(k in $)&&s(C,k,A[k],null,H,B);for(const k in $){if(Li(k))continue;const T=$[k],M=A[k];T!==M&&k!=="value"&&s(C,k,M,T,H,B)}"value"in $&&s(C,"value",A.value,$.value,H)}},L=(C,A,$,B,H,k,T,M,U)=>{const z=A.el=C?C.el:a(""),K=A.anchor=C?C.anchor:a("");let{patchFlag:R,dynamicChildren:F,slotScopeIds:ee}=A;ee&&(M=M?M.concat(ee):ee),C==null?(n(z,$,B),n(K,$,B),D(A.children||[],$,K,H,k,T,M,U)):R>0&&R&64&&F&&C.dynamicChildren?(P(C.dynamicChildren,F,$,H,k,T,M),(A.key!=null||H&&A===H.subTree)&&gm(C,A,!0)):oe(C,A,$,K,H,k,T,M,U)},G=(C,A,$,B,H,k,T,M,U)=>{A.slotScopeIds=M,C==null?A.shapeFlag&512?H.ctx.activate(A,$,B,T,U):re(A,$,B,H,k,T,U):de(C,A,U)},re=(C,A,$,B,H,k,T)=>{const M=C.component=CO(C,B,H);if(hc(C)&&(M.ctx.renderer=ie),TO(M,!1,T),M.asyncDep){if(H&&H.registerDep(M,q,T),!C.el){const U=M.subTree=at(Ut);y(null,U,A,$)}}else q(M,C,A,$,H,k,T)},de=(C,A,$)=>{const B=A.component=C.component;if(mO(C,A,$))if(B.asyncDep&&!B.asyncResolved){ne(B,A,$);return}else B.next=A,B.update();else A.el=C.el,B.vnode=A},q=(C,A,$,B,H,k,T)=>{const M=()=>{if(C.isMounted){let{next:R,bu:F,u:ee,parent:fe,vnode:Le}=C;{const zt=NS(C);if(zt){R&&(R.el=Le.el,ne(C,R,T)),zt.asyncDep.then(()=>{C.isUnmounted||M()});return}}let Pe=R,mt;us(C,!1),R?(R.el=Le.el,ne(C,R,T)):R=Le,F&&Pi(F),(mt=R.props&&R.props.onVnodeBeforeUpdate)&&Tr(mt,fe,R,Le),us(C,!0);const Tt=Qd(C),Yt=C.subTree;C.subTree=Tt,h(Yt,Tt,f(Yt.el),W(Yt),C,H,k),R.el=Tt.el,Pe===null&&rd(C,Tt.el),ee&&Ft(ee,H),(mt=R.props&&R.props.onVnodeUpdated)&&Ft(()=>Tr(mt,fe,R,Le),H)}else{let R;const{el:F,props:ee}=A,{bm:fe,m:Le,parent:Pe,root:mt,type:Tt}=C,Yt=jo(A);if(us(C,!1),fe&&Pi(fe),!Yt&&(R=ee&&ee.onVnodeBeforeMount)&&Tr(R,Pe,A),us(C,!0),F&&be){const zt=()=>{C.subTree=Qd(C),be(F,C.subTree,C,H,null)};Yt&&Tt.__asyncHydrate?Tt.__asyncHydrate(F,C,zt):zt()}else{mt.ce&&mt.ce._injectChildStyle(Tt);const zt=C.subTree=Qd(C);h(null,zt,$,B,C,H,k),A.el=zt.el}if(Le&&Ft(Le,H),!Yt&&(R=ee&&ee.onVnodeMounted)){const zt=A;Ft(()=>Tr(R,Pe,zt),H)}(A.shapeFlag&256||Pe&&jo(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&C.a&&Ft(C.a,H),C.isMounted=!0,A=$=B=null}};C.scope.on();const U=C.effect=new Nw(M);C.scope.off();const z=C.update=U.run.bind(U),K=C.job=U.runIfDirty.bind(U);K.i=C,K.id=C.uid,U.scheduler=()=>cm(K),us(C,!0),z()},ne=(C,A,$)=>{A.component=C;const B=C.vnode.props;C.vnode=A,C.next=null,eO(C,A.props,B,$),oO(C,A.children,$),Qo(),i_(C),es()},oe=(C,A,$,B,H,k,T,M,U=!1)=>{const z=C&&C.children,K=C?C.shapeFlag:0,R=A.children,{patchFlag:F,shapeFlag:ee}=A;if(F>0){if(F&128){kt(z,R,$,B,H,k,T,M,U);return}else if(F&256){Te(z,R,$,B,H,k,T,M,U);return}}ee&8?(K&16&>(z,H,k),R!==z&&u($,R)):K&16?ee&16?kt(z,R,$,B,H,k,T,M,U):gt(z,H,k,!0):(K&8&&u($,""),ee&16&&D(R,$,B,H,k,T,M,U))},Te=(C,A,$,B,H,k,T,M,U)=>{C=C||Oi,A=A||Oi;const z=C.length,K=A.length,R=Math.min(z,K);let F;for(F=0;FK?gt(C,H,k,!0,!1,R):D(A,$,B,H,k,T,M,U,R)},kt=(C,A,$,B,H,k,T,M,U)=>{let z=0;const K=A.length;let R=C.length-1,F=K-1;for(;z<=R&&z<=F;){const ee=C[z],fe=A[z]=U?Io(A[z]):Mr(A[z]);if(rn(ee,fe))h(ee,fe,$,null,H,k,T,M,U);else break;z++}for(;z<=R&&z<=F;){const ee=C[R],fe=A[F]=U?Io(A[F]):Mr(A[F]);if(rn(ee,fe))h(ee,fe,$,null,H,k,T,M,U);else break;R--,F--}if(z>R){if(z<=F){const ee=F+1,fe=eeF)for(;z<=R;)Xe(C[z],H,k,!0),z++;else{const ee=z,fe=z,Le=new Map;for(z=fe;z<=F;z++){const Zt=A[z]=U?Io(A[z]):Mr(A[z]);Zt.key!=null&&Le.set(Zt.key,z)}let Pe,mt=0;const Tt=F-fe+1;let Yt=!1,zt=0;const fr=new Array(Tt);for(z=0;z=Tt){Xe(Zt,H,k,!0);continue}let xr;if(Zt.key!=null)xr=Le.get(Zt.key);else for(Pe=fe;Pe<=F;Pe++)if(fr[Pe-fe]===0&&rn(Zt,A[Pe])){xr=Pe;break}xr===void 0?Xe(Zt,H,k,!0):(fr[xr-fe]=z+1,xr>=zt?zt=xr:Yt=!0,h(Zt,A[xr],$,null,H,k,T,M,U),mt++)}const Hn=Yt?aO(fr):Oi;for(Pe=Hn.length-1,z=Tt-1;z>=0;z--){const Zt=fe+z,xr=A[Zt],Oc=Zt+1{const{el:k,type:T,transition:M,children:U,shapeFlag:z}=C;if(z&6){we(C.component.subTree,A,$,B);return}if(z&128){C.suspense.move(A,$,B);return}if(z&64){T.move(C,A,$,ie);return}if(T===wt){n(k,A,$);for(let R=0;RM.enter(k),H);else{const{leave:R,delayLeave:F,afterLeave:ee}=M,fe=()=>n(k,A,$),Le=()=>{R(k,()=>{fe(),ee&&ee()})};F?F(k,fe,Le):Le()}else n(k,A,$)},Xe=(C,A,$,B=!1,H=!1)=>{const{type:k,props:T,ref:M,children:U,dynamicChildren:z,shapeFlag:K,patchFlag:R,dirs:F,cacheIndex:ee}=C;if(R===-2&&(H=!1),M!=null&&Tl(M,null,$,C,!0),ee!=null&&(A.renderCache[ee]=void 0),K&256){A.ctx.deactivate(C);return}const fe=K&1&&F,Le=!jo(C);let Pe;if(Le&&(Pe=T&&T.onVnodeBeforeUnmount)&&Tr(Pe,A,C),K&6)ze(C.component,$,B);else{if(K&128){C.suspense.unmount($,B);return}fe&&In(C,null,A,"beforeUnmount"),K&64?C.type.remove(C,A,$,ie,B):z&&!z.hasOnce&&(k!==wt||R>0&&R&64)?gt(z,A,$,!1,!0):(k===wt&&R&384||!H&&K&16)&>(U,A,$),B&&je(C)}(Le&&(Pe=T&&T.onVnodeUnmounted)||fe)&&Ft(()=>{Pe&&Tr(Pe,A,C),fe&&In(C,null,A,"unmounted")},$)},je=C=>{const{type:A,el:$,anchor:B,transition:H}=C;if(A===wt){tr($,B);return}if(A===Di){v(C);return}const k=()=>{o($),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(C.shapeFlag&1&&H&&!H.persisted){const{leave:T,delayLeave:M}=H,U=()=>T($,k);M?M(C.el,k,U):U()}else k()},tr=(C,A)=>{let $;for(;C!==A;)$=d(C),o(C),C=$;o(A)},ze=(C,A,$)=>{const{bum:B,scope:H,job:k,subTree:T,um:M,m:U,a:z}=C;Gu(U),Gu(z),B&&Pi(B),H.stop(),k&&(k.flags|=8,Xe(T,C,A,$)),M&&Ft(M,A),Ft(()=>{C.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},gt=(C,A,$,B=!1,H=!1,k=0)=>{for(let T=k;T{if(C.shapeFlag&6)return W(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const A=d(C.anchor||C.el),$=A&&A[rS];return $?d($):A};let Q=!1;const J=(C,A,$)=>{C==null?A._vnode&&Xe(A._vnode,null,null,!0):h(A._vnode||null,C,A,null,null,null,$),A._vnode=C,Q||(Q=!0,i_(),Bu(),Q=!1)},ie={p:h,um:Xe,m:we,r:je,mt:re,mc:D,pc:oe,pbc:P,n:W,o:e};let te,be;return t&&([te,be]=t(ie)),{render:J,hydrate:te,createApp:JI(J,te)}}function Jd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function us({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function PS(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gm(e,t,r=!1){const n=e.children,o=t.children;if(he(n)&&he(o))for(let s=0;s>1,e[r[a]]0&&(t[n]=r[s-1]),r[s]=n)}}for(s=r.length,i=r[s-1];s-- >0;)r[s]=i,i=t[i];return r}function NS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:NS(t)}function Gu(e){if(e)for(let t=0;tHt(lO);function Qf(e,t){return ed(e,null,t)}function uO(e,t){return ed(e,null,{flush:"sync"})}function Oe(e,t,r){return ed(e,t,r)}function ed(e,t,r=Ge){const{immediate:n,deep:o,flush:s,once:i}=r,a=Vt({},r),l=t&&n||!t&&s!=="post";let c;if(Hi){if(s==="sync"){const p=cO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=an,p.resume=an,p.pause=an,p}}const u=jt;a.call=(p,g,h)=>dn(p,u,g,h);let f=!1;s==="post"?a.scheduler=p=>{Ft(p,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():cm(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=wI(e,t,a);return Hi&&(c?c.push(d):l&&d()),d}function fO(e,t,r){const n=this.proxy,o=pt(e)?e.includes(".")?MS(n,e):()=>n[e]:e.bind(n,n);let s;ye(t)?s=t:(s=t.handler,r=t);const i=Ds(this),a=ed(o,s.bind(n),r);return i(),a}function MS(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{let u,f=Ge,d;return uO(()=>{const p=e[o];Ar(u,p)&&(u=p,c())}),{get(){return l(),r.get?r.get(u):u},set(p){const g=r.set?r.set(p):p;if(!Ar(g,u)&&!(f!==Ge&&Ar(p,f)))return;const h=n.vnode.props;h&&(t in h||o in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${o}`in h||`onUpdate:${s}`in h)||(u=p,c()),n.emit(`update:${t}`,g),Ar(p,g)&&Ar(p,f)&&!Ar(g,d)&&c(),f=p,d=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Ge:a,done:!1}:{done:!0}}}},a}const DS=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$r(t)}Modifiers`]||e[`${yo(t)}Modifiers`];function dO(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ge;let o=r;const s=t.startsWith("update:"),i=s&&DS(n,t.slice(7));i&&(i.trim&&(o=r.map(u=>pt(u)?u.trim():u)),i.number&&(o=r.map(fh)));let a,l=n[a=Vd(t)]||n[a=Vd($r(t))];!l&&s&&(l=n[a=Vd(yo(t))]),l&&dn(l,e,6,o);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,dn(c,e,6,o)}}function $S(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ye(e)){const l=c=>{const u=$S(c,t,!0);u&&(a=!0,Vt(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ct(e)&&n.set(e,null),null):(he(s)?s.forEach(l=>i[l]=null):Vt(i,s),ct(e)&&n.set(e,i),i)}function td(e,t){return!e||!fc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,yo(t))||Ze(e,t))}function Qd(e){const{type:t,vnode:r,proxy:n,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:g,inheritAttrs:h}=e,m=Hu(e);let y,b;try{if(r.shapeFlag&4){const v=o||n,E=v;y=Mr(c.call(E,v,u,f,p,d,g)),b=a}else{const v=t;y=Mr(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),b=t.props?a:hO(a)}}catch(v){al.length=0,fa(v,e,1),y=at(Ut)}let _=y;if(b&&h!==!1){const v=Object.keys(b),{shapeFlag:E}=_;v.length&&E&7&&(s&&v.some(Jg)&&(b=gO(b,s)),_=fo(_,b,!1,!0))}return r.dirs&&(_=fo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&ji(_,r.transition),y=_,Hu(m),y}function pO(e,t=!0){let r;for(let n=0;n{let t;for(const r in e)(r==="class"||r==="style"||fc(r))&&((t||(t={}))[r]=e[r]);return t},gO=(e,t)=>{const r={};for(const n in e)(!Jg(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function mO(e,t,r){const{props:n,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?v_(n,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let Sh=0;const yO={name:"Suspense",__isSuspense:!0,process(e,t,r,n,o,s,i,a,l,c){if(e==null)_O(t,r,n,o,s,i,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}vO(e,t,r,n,o,i,a,l,c)}},hydrate:bO,normalize:wO},FS=yO;function Al(e,t){const r=e.props&&e.props[t];ye(r)&&r()}function _O(e,t,r,n,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=US(e,o,n,t,f,r,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,n,d,s,i),d.deps>0?(Al(e,"onPending"),Al(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,s,i),Mi(d,e.ssFallback)):d.resolve(!1,!0)}function vO(e,t,r,n,o,s,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:h,isInFallback:m,isHydrating:y}=f;if(h)f.pendingBranch=d,rn(d,h)?(l(h,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():m&&(y||(l(g,p,r,n,o,null,s,i,a),Mi(f,p)))):(f.pendingId=Sh++,y?(f.isHydrating=!1,f.activeBranch=h):c(h,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),m?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(g,p,r,n,o,null,s,i,a),Mi(f,p))):g&&rn(d,g)?(l(g,d,r,n,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(g&&rn(d,g))l(g,d,r,n,o,f,s,i,a),Mi(f,d);else if(Al(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Sh++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:_}=f;b>0?setTimeout(()=>{f.pendingId===_&&f.fallback(p)},b):b===0&&f.fallback(p)}}function US(e,t,r,n,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:g,o:{parentNode:h,remove:m}}=c;let y;const b=SO(e);b&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const _=e.props?Iw(e.props.timeout):void 0,v=s,E={vnode:e,parent:t,parentComponent:r,namespace:i,container:n,hiddenContainer:o,deps:0,pendingId:Sh++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,x=!1){const{vnode:D,activeBranch:I,pendingBranch:P,pendingId:j,effects:L,parentComponent:G,container:re}=E;let de=!1;E.isHydrating?E.isHydrating=!1:S||(de=I&&P.transition&&P.transition.mode==="out-in",de&&(I.transition.afterLeave=()=>{j===E.pendingId&&(d(P,re,s===v?g(I):s,0),ju(L))}),I&&(h(I.el)===re&&(s=g(I)),p(I,G,E,!0)),de||d(P,re,s,0)),Mi(E,P),E.pendingBranch=null,E.isInFallback=!1;let q=E.parent,ne=!1;for(;q;){if(q.pendingBranch){q.effects.push(...L),ne=!0;break}q=q.parent}!ne&&!de&&ju(L),E.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Al(D,"onResolve")},fallback(S){if(!E.pendingBranch)return;const{vnode:x,activeBranch:D,parentComponent:I,container:P,namespace:j}=E;Al(x,"onFallback");const L=g(D),G=()=>{E.isInFallback&&(f(null,S,P,L,I,null,j,a,l),Mi(E,S))},re=S.transition&&S.transition.mode==="out-in";re&&(D.transition.afterLeave=G),E.isInFallback=!0,p(D,I,null,!0),re||G()},move(S,x,D){E.activeBranch&&d(E.activeBranch,S,x,D),E.container=S},next(){return E.activeBranch&&g(E.activeBranch)},registerDep(S,x,D){const I=!!E.pendingBranch;I&&E.deps++;const P=S.vnode.el;S.asyncDep.catch(j=>{fa(j,S,0)}).then(j=>{if(S.isUnmounted||E.isUnmounted||E.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:L}=S;Ch(S,j),P&&(L.el=P);const G=!P&&S.subTree.el;x(S,L,h(P||S.subTree.el),P?null:g(S.subTree),E,i,D),G&&m(G),rd(S,L.el),I&&--E.deps===0&&E.resolve()})},unmount(S,x){E.isUnmounted=!0,E.activeBranch&&p(E.activeBranch,r,S,x),E.pendingBranch&&p(E.pendingBranch,r,S,x)}};return E}function bO(e,t,r,n,o,s,i,a,l){const c=t.suspense=US(t,n,r,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function wO(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=b_(n?r.default:r),e.ssFallback=n?b_(r.fallback):at(Ut)}function b_(e){let t;if(ye(e)){const r=Bi&&e._c;r&&(e._d=!1,me()),e=e(),r&&(e._d=!0,t=Ir,BS())}return he(e)&&(e=pO(e)),e=Mr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function jS(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ju(e)}function Mi(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;r.el=o,n&&n.subTree===r&&(n.vnode.el=o,rd(n,o))}function SO(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const wt=Symbol.for("v-fgt"),Bo=Symbol.for("v-txt"),Ut=Symbol.for("v-cmt"),Di=Symbol.for("v-stc"),al=[];let Ir=null;function me(e=!1){al.push(Ir=e?null:[])}function BS(){al.pop(),Ir=al[al.length-1]||null}let Bi=1;function w_(e,t=!1){Bi+=e,e<0&&Ir&&t&&(Ir.hasOnce=!0)}function HS(e){return e.dynamicChildren=Bi>0?Ir||Oi:null,BS(),Bi>0&&Ir&&Ir.push(e),e}function vt(e,t,r,n,o,s){return HS(Do(e,t,r,n,o,s,!0))}function dt(e,t,r,n,o){return HS(at(e,t,r,n,o,!0))}function Ms(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const VS=({key:e})=>e??null,_u=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?pt(e)||qe(e)||ye(e)?{i:Bt,r:e,k:t,f:!!r}:e:null);function Do(e,t=null,r=null,n=0,o=null,s=e===wt?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&VS(t),ref:t&&_u(t),scopeId:tS,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Bt};return a?(mm(l,r),s&128&&e.normalize(l)):r&&(l.shapeFlag|=pt(r)?8:16),Bi>0&&!i&&Ir&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ir.push(l),l}const at=EO;function EO(e,t=null,r=null,n=0,o=null,s=!1){if((!e||e===yS)&&(e=Ut),Ms(e)){const a=fo(e,t,!0);return r&&mm(a,r),Bi>0&&!s&&Ir&&(a.shapeFlag&6?Ir[Ir.indexOf(e)]=a:Ir.push(a)),a.patchFlag=-2,a}if(OO(e)&&(e=e.__vccOpts),t){t=Eh(t);let{class:a,style:l}=t;a&&!pt(a)&&(t.class=tt(a)),ct(l)&&(am(l)&&!he(l)&&(l=Vt({},l)),t.style=Ps(l))}const i=pt(e)?1:qu(e)?128:nS(e)?64:ct(e)?4:ye(e)?2:0;return Do(e,t,r,n,o,i,s,!0)}function Eh(e){return e?am(e)||kS(e)?Vt({},e):e:null}function fo(e,t,r=!1,n=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?ir(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&VS(c),ref:t&&t.ref?r&&s?he(s)?s.concat(_u(t)):[s,_u(t)]:_u(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ji(u,l.clone(u)),u}function Il(e=" ",t=0){return at(Bo,null,e,t)}function yq(e,t){const r=at(Di,null,e);return r.staticCount=t,r}function Qt(e="",t=!1){return t?(me(),dt(Ut,null,e)):at(Ut,null,e)}function Mr(e){return e==null||typeof e=="boolean"?at(Ut):he(e)?at(wt,null,e.slice()):Ms(e)?Io(e):at(Bo,null,String(e))}function Io(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function mm(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),mm(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!kS(t)?t._ctx=Bt:o===3&&Bt&&(Bt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:Bt},r=32):(t=String(t),n&64?(r=16,t=[Il(t)]):r=8);e.children=t,e.shapeFlag|=r}function ir(...e){const t={};for(let r=0;rjt||Bt;let Ku,xh;{const e=Gf(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Ku=t("__VUE_INSTANCE_SETTERS__",r=>jt=r),xh=t("__VUE_SSR_SETTERS__",r=>Hi=r)}const Ds=e=>{const t=jt;return Ku(e),e.scope.on(),()=>{e.scope.off(),Ku(t)}},kh=()=>{jt&&jt.scope.off(),Ku(null)};function WS(e){return e.vnode.shapeFlag&4}let Hi=!1;function TO(e,t=!1,r=!1){t&&xh(t);const{props:n,children:o}=e.vnode,s=WS(e);QI(e,n,s,t),nO(e,o,r);const i=s?AO(e,t):void 0;return t&&xh(!1),i}function AO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,VI);const{setup:n}=r;if(n){Qo();const o=e.setupContext=n.length>1?GS(e):null,s=Ds(e),i=pc(n,e,0,[e.props,o]),a=em(i);if(es(),s(),(a||e.sp)&&!jo(e)&&um(e),a){if(i.then(kh,kh),t)return i.then(l=>{Ch(e,l)}).catch(l=>{fa(l,e,0)});e.asyncDep=i}else Ch(e,i)}else zS(e)}function Ch(e,t,r){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ct(t)&&(e.setupState=Yw(t)),zS(e)}function zS(e,t,r){const n=e.type;e.render||(e.render=n.render||an);{const o=Ds(e);Qo();try{GI(e)}finally{es(),o()}}}const IO={get(e,t){return or(e,"get",""),e[t]}};function GS(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,IO),slots:e.slots,emit:e.emit,expose:t}}function nd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yw(lm(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in il)return il[r](e)},has(t,r){return r in t||r in il}})):e.proxy}function Th(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function OO(e){return ye(e)&&"__vccOpts"in e}const Z=(e,t)=>vI(e,t,Hi);function At(e,t,r){const n=arguments.length;return n===2?ct(t)&&!he(t)?Ms(t)?at(e,null,[t]):at(e,t):at(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ms(r)&&(r=[r]),at(e,t,r))}const RO="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ah;const S_=typeof window<"u"&&window.trustedTypes;if(S_)try{Ah=S_.createPolicy("vue",{createHTML:e=>e})}catch{}const qS=Ah?e=>Ah.createHTML(e):e=>e,LO="http://www.w3.org/2000/svg",PO="http://www.w3.org/1998/Math/MathML",Qn=typeof document<"u"?document:null,E_=Qn&&Qn.createElement("template"),NO={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Qn.createElementNS(LO,e):t==="mathml"?Qn.createElementNS(PO,e):r?Qn.createElement(e,{is:r}):Qn.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Qn.createTextNode(e),createComment:e=>Qn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,s){const i=r?r.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===s||!(o=o.nextSibling)););else{E_.innerHTML=qS(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=E_.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},So="transition",Ca="animation",Ol=Symbol("_vtc"),KS={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},MO=Vt({},iS,KS),DO=e=>(e.displayName="Transition",e.props=MO,e),YS=DO((e,{slots:t})=>At(AI,$O(e),t)),fs=(e,t=[])=>{he(e)?e.forEach(r=>r(...t)):e&&e(...t)},x_=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function $O(e){const t={};for(const L in e)L in KS||(t[L]=e[L]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:s=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,g=FO(o),h=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:v,onLeaveCancelled:E,onBeforeAppear:S=y,onAppear:x=b,onAppearCancelled:D=_}=t,I=(L,G,re,de)=>{L._enterCancelled=de,ds(L,G?u:a),ds(L,G?c:i),re&&re()},P=(L,G)=>{L._isLeaving=!1,ds(L,f),ds(L,p),ds(L,d),G&&G()},j=L=>(G,re)=>{const de=L?x:b,q=()=>I(G,L,re);fs(de,[G,q]),k_(()=>{ds(G,L?l:s),zn(G,L?u:a),x_(de)||C_(G,n,h,q)})};return Vt(t,{onBeforeEnter(L){fs(y,[L]),zn(L,s),zn(L,i)},onBeforeAppear(L){fs(S,[L]),zn(L,l),zn(L,c)},onEnter:j(!1),onAppear:j(!0),onLeave(L,G){L._isLeaving=!0;const re=()=>P(L,G);zn(L,f),L._enterCancelled?(zn(L,d),I_()):(I_(),zn(L,d)),k_(()=>{L._isLeaving&&(ds(L,f),zn(L,p),x_(v)||C_(L,n,m,re))}),fs(v,[L,re])},onEnterCancelled(L){I(L,!1,void 0,!0),fs(_,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),fs(D,[L])},onLeaveCancelled(L){P(L),fs(E,[L])}})}function FO(e){if(e==null)return null;if(ct(e))return[ep(e.enter),ep(e.leave)];{const t=ep(e);return[t,t]}}function ep(e){return Iw(e)}function zn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ol]||(e[Ol]=new Set)).add(t)}function ds(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Ol];r&&(r.delete(t),r.size||(e[Ol]=void 0))}function k_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let UO=0;function C_(e,t,r,n){const o=e._endId=++UO,s=()=>{o===e._endId&&n()};if(r!=null)return setTimeout(s,r);const{type:i,timeout:a,propCount:l}=jO(e,t);if(!i)return n();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(r[g]||"").split(", "),o=n(`${So}Delay`),s=n(`${So}Duration`),i=T_(o,s),a=n(`${Ca}Delay`),l=n(`${Ca}Duration`),c=T_(a,l);let u=null,f=0,d=0;t===So?i>0&&(u=So,f=i,d=s.length):t===Ca?c>0&&(u=Ca,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?So:Ca:null,d=u?u===So?s.length:l.length:0);const p=u===So&&/\b(transform|all)(,|$)/.test(n(`${So}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function T_(e,t){for(;e.lengthA_(r)+A_(e[n])))}function A_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function I_(){return document.body.offsetHeight}function BO(e,t,r){const n=e[Ol];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Yu=Symbol("_vod"),ZS=Symbol("_vsh"),_q={beforeMount(e,{value:t},{transition:r}){e[Yu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ta(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ta(e,!0),n.enter(e)):n.leave(e,()=>{Ta(e,!1)}):Ta(e,t))},beforeUnmount(e,{value:t}){Ta(e,t)}};function Ta(e,t){e.style.display=t?e[Yu]:"none",e[ZS]=!t}const XS=Symbol("");function vq(e){const t=ur();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Zu(s,o))},n=()=>{const o=e(t.proxy);t.ce?Zu(t.ce,o):Ih(t.subTree,o),r(o)};hS(()=>{ju(n)}),Rr(()=>{Oe(n,an,{flush:"post"});const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),Qs(()=>o.disconnect())})}function Ih(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Ih(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zu(e.el,t);else if(e.type===wt)e.children.forEach(r=>Ih(r,t));else if(e.type===Di){let{el:r,anchor:n}=e;for(;r&&(Zu(r,t),r!==n);)r=r.nextSibling}}function Zu(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t)r.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;r[XS]=n}}const HO=/(^|;)\s*display\s*:/;function VO(e,t,r){const n=e.style,o=pt(r);let s=!1;if(r&&!o){if(t)if(pt(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();r[a]==null&&vu(n,a,"")}else for(const i in t)r[i]==null&&vu(n,i,"");for(const i in r)i==="display"&&(s=!0),vu(n,i,r[i])}else if(o){if(t!==r){const i=n[XS];i&&(r+=";"+i),n.cssText=r,s=HO.test(r)}}else t&&e.removeAttribute("style");Yu in e&&(e[Yu]=s?n.display:"",e[ZS]&&(n.display="none"))}const O_=/\s*!important$/;function vu(e,t,r){if(he(r))r.forEach(n=>vu(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=WO(e,t);O_.test(r)?e.setProperty(yo(n),r.replace(O_,""),"important"):e[n]=r}}const R_=["Webkit","Moz","ms"],tp={};function WO(e,t){const r=tp[t];if(r)return r;let n=$r(t);if(n!=="filter"&&n in e)return tp[t]=n;n=zf(n);for(let o=0;orp||(KO.then(()=>rp=0),rp=Date.now());function ZO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;dn(XO(n,r.value),t,5,[n])};return r.value=e,r.attached=YO(),r}function XO(e,t){if(he(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const $_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,JO=(e,t,r,n,o,s)=>{const i=o==="svg";t==="class"?BO(e,n,i):t==="style"?VO(e,r,n):fc(t)?Jg(t)||GO(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):QO(e,t,n,i))?(N_(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&P_(e,t,n,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pt(n))?N_(e,$r(t),n,s,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),P_(e,t,n,i))};function QO(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&$_(t)&&ye(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return $_(t)&&pt(r)?!1:t in e}const F_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?r=>Pi(t,r):t};function eR(e){e.target.composing=!0}function U_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const np=Symbol("_assign"),bq={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[np]=F_(o);const s=n||o.props&&o.props.type==="number";gi(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;r&&(a=a.trim()),s&&(a=fh(a)),e[np](a)}),r&&gi(e,"change",()=>{e.value=e.value.trim()}),t||(gi(e,"compositionstart",eR),gi(e,"compositionend",U_),gi(e,"change",U_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:o,number:s}},i){if(e[np]=F_(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?fh(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||o&&e.value.trim()===l)||(e.value=l))}},tR=["ctrl","shift","alt","meta"],rR={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tR.some(r=>e[`${r}Key`]&&!t.includes(r))},op=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...s)=>{for(let i=0;i{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const s=yo(o.key);if(t.some(i=>i===s||nR[i]===s))return e(o)})},JS=Vt({patchProp:JO},NO);let ll,j_=!1;function QS(){return ll||(ll=sO(JS))}function oR(){return ll=j_?ll:iO(JS),j_=!0,ll}const sR=(...e)=>{QS().render(...e)},iR=(...e)=>{const t=QS().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=tE(n);if(!o)return;const s=t._component;!ye(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=r(o,!1,eE(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},aR=(...e)=>{const t=oR().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=tE(n);if(o)return r(o,!0,eE(o))},t};function eE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tE(e){return pt(e)?document.querySelector(e):e}const lR=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,cR=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,uR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function fR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){dR(e);return}return t}function dR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Rl(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!uR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(lR.test(e)||cR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,fR)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const rE=/#/g,nE=/&/g,oE=/\//g,pR=/=/g,hR=/\?/g,od=/\+/g,gR=/%5e/gi,mR=/%60/gi,yR=/%7c/gi,_R=/%20/gi,vR=/%252f/gi;function sE(e){return encodeURI(""+e).replace(yR,"|")}function Oh(e){return sE(typeof e=="string"?e:JSON.stringify(e)).replace(od,"%2B").replace(_R,"+").replace(rE,"%23").replace(nE,"%26").replace(mR,"`").replace(gR,"^").replace(oE,"%2F")}function sp(e){return Oh(e).replace(pR,"%3D")}function bR(e){return sE(e).replace(rE,"%23").replace(hR,"%3F").replace(vR,"%2F").replace(nE,"%26").replace(od,"%2B")}function Sq(e){return bR(e).replace(oE,"%2F")}function Xu(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function wR(e){return Xu(e.replace(od," "))}function SR(e){return Xu(e.replace(od," "))}function sd(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const o=wR(n[1]);if(o==="__proto__"||o==="constructor")continue;const s=SR(n[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function ER(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${sp(e)}=${Oh(r)}`).join("&"):`${sp(e)}=${Oh(t)}`:sp(e)}function xR(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>ER(t,e[t])).filter(Boolean).join("&")}const kR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,iE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,CR=/^([/\\]\s*){2,}[^/\\]/,TR=/^[\s\0]*(blob|data|javascript|vbscript):$/i,AR=/\/$|\/\?|\/#/,IR=/^\.?\//;function _n(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?kR.test(e):iE.test(e)||(t.acceptRelative?CR.test(e):!1)}function OR(e){return!!e&&TR.test(e)}function Rh(e="",t){return t?AR.test(e):e.endsWith("/")}function id(e="",t){if(!t)return(Rh(e)?e.slice(0,-1):e)||"/";if(!Rh(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");o>=0&&(r=e.slice(0,o),n=e.slice(o));const[s,...i]=r.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+n}function Ll(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Rh(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");if(o>=0&&(r=e.slice(0,o),n=e.slice(o),!r))return n;const[s,...i]=r.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+n}function RR(e=""){return e.startsWith("/")}function B_(e=""){return RR(e)?e:"/"+e}function LR(e,t){if(aE(t)||_n(e))return e;const r=id(t);return e.startsWith(r)?e:ei(r,e)}function H_(e,t){if(aE(t))return e;const r=id(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function Pl(e,t){const r=uE(e),n={...sd(r.search),...t};return r.search=xR(n),MR(r)}function aE(e){return!e||e==="/"}function PR(e){return e&&e!=="/"}function ei(e,...t){let r=e||"";for(const n of t.filter(o=>PR(o)))if(r){const o=n.replace(IR,"");r=Ll(r)+o}else r=n;return r}function lE(...e){var i,a,l,c;const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let o=0;for(const u of r)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(n.length===1&&_n(n[0]))continue;n.pop(),o--;continue}if(f===1&&((i=n[n.length-1])!=null&&i.endsWith(":/"))){n[n.length-1]+="/"+d;continue}n.push(d),o++}}let s=n.join("/");return o>=0?(a=r[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=r[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(c=r[r.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Eq(e){return NR(e,"https://")}function NR(e,t){let r=e.match(iE);return r||(r=e.match(/^\/{2,}/)),r?t+e.slice(r[0].length):t+e}function Lh(e,t,r={}){return r.trailingSlash||(e=Ll(e),t=Ll(t)),r.leadingSlash||(e=B_(e),t=B_(t)),r.encoding||(e=Xu(e),t=Xu(t)),e===t}const cE=Symbol.for("ufo:protocolRelative");function uE(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,f,d=""]=r;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!_n(e,{acceptRelative:!0}))return Ph(e);const[,n="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Ph(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u,[cE]:!n}}function Ph(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function MR(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[cE]?(e.protocol||"")+"//":"")+o+s+t+r+n}class DR extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function $R(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",r=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",n=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new DR(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[g]}});return a}const FR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function V_(e="GET"){return FR.has(e.toUpperCase())}function UR(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const jR=new Set(["image/svg","application/xml","application/xhtml","application/html"]),BR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function HR(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return BR.test(t)?"json":jR.has(t)||t.startsWith("text/")?"text":"blob"}function VR(e,t,r,n){const o=WR((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,n);let s;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(s={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:s,params:s,headers:o}}function WR(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,s);return n}async function Hc(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const zR=new Set([408,409,425,429,500,502,503,504]),GR=new Set([101,204,205,304]);function fE(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=V_(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):zR.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(a.request,{...a.options,retry:u-1})}}const c=$R(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:VR(l,c,e.defaults,r),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Hc(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=LR(u.request,u.options.baseURL)),u.options.query&&(u.request=Pl(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&V_(u.options.method)&&(UR(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new r(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const p=new n;f=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,p.abort(g)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await Hc(u,u.options.onRequestError),await o(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!GR.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||HR(u.response.headers.get("content-type")||"");switch(p){case"json":{const g=await u.response.text(),h=u.options.parseResponse||Rl;u.response._data=h(g);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await Hc(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Hc(u,u.options.onResponseError),await o(u)):u.response},i=async function(l,c){return(await s(l,c))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},l={})=>fE({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Ju=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),qR=Ju.fetch?(...e)=>Ju.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),KR=Ju.Headers,YR=Ju.AbortController,ZR=fE({fetch:qR,Headers:KR,AbortController:YR}),XR=ZR,JR=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qu=JR().app,QR=()=>Qu.baseURL,e1=()=>Qu.buildAssetsDir,t1=(...e)=>lE(dE(),e1(),...e),dE=(...e)=>{const t=Qu.cdnURL||Qu.baseURL;return e.length?lE(t,...e):t};globalThis.__buildAssetsURL=t1,globalThis.__publicAssetsURL=dE;globalThis.$fetch||(globalThis.$fetch=XR.create({baseURL:QR()}));function Nh(e,t={},r){for(const n in e){const o=e[n],s=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?Nh(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const r1={run:e=>e()},n1=()=>r1,pE=typeof console.createTask<"u"?console.createTask:n1;function o1(e,t){const r=t.shift(),n=pE(r);return e.reduce((o,s)=>o.then(()=>n.run(()=>s(...t))),Promise.resolve())}function s1(e,t){const r=t.shift(),n=pE(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function ip(e,t){for(const r of[...e])r(t)}class i1{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,o=(...s)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...s));return n=this.hook(t,o),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const o of n)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Nh(t),n=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of n.splice(0,n.length))o()}}removeHooks(t){const r=Nh(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(o1,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(s1,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&ip(this._before,o);const s=t(r in this._hooks?[...this._hooks[r]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&o&&ip(this._after,o)}):(this._after&&o&&ip(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function hE(){return new i1}function a1(e={}){let t,r=!1;const n=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||n(i),t=i,r=!0},unset:()=>{t=void 0,r=!1},call:(i,a)=>{n(i),t=i;try{return o?o.run(i,a):a()}finally{r||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;Mh.add(c);try{const u=o?o.run(i,a):a();return r||(t=void 0),await u}finally{Mh.delete(c)}}}}function l1(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=a1({...e,...n})),t[r]}}}const ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},W_="__unctx__",c1=ef[W_]||(ef[W_]=l1()),u1=(e,t={})=>c1.get(e,t),z_="__unctx_async_handlers__",Mh=ef[z_]||(ef[z_]=new Set);function Nt(e){const t=[];for(const o of Mh){const s=o();s&&t.push(s)}const r=()=>{for(const o of t)o()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(o=>{throw r(),o})),[n,r]}const xq=!1,Dh=!1,f1=!0,d1=!1,p1={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},kq={value:null,errorValue:null,deep:!0},h1=null,Cq={},g1="#__nuxt",gE="nuxt-app",m1="vite:preloadError";function mE(e=gE){return u1(e,{asyncContext:!1})}const y1="__nuxt_plugin";function _1(e){var o;let t=0;const r={_id:e.id||gE||"nuxt-app",_scope:ca(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return r.vueApp.version}},payload:oo({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:oo({}),state:lr({}),once:new Set,_errors:oo({})}),static:{data:{}},runWithContext(s){return r._scope.active&&!ua()?r._scope.run(()=>G_(r,s)):G_(r,s)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:oo({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(r.payload[i],s[i]);break;default:r.payload[i]=s[i]}}r.hooks=hE(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(s,i)=>{const a="$"+s;Vc(r,a,i),Vc(r.vueApp.config.globalProperties,a,i)},Vc(r.vueApp,"$nuxt",r),Vc(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(m1,i=>{r.callHook("app:chunkError",{error:i.payload}),(r.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ce);const s=r.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});r.hook("app:mounted",s)}const n=r.payload.config;return r.provide("config",n),r}function v1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function b1(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function w1(e,t){const r=[],n=[],o=[],s=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!r.includes(f)))??[];if(c.length>0)n.push([new Set(c),l]);else{const f=b1(e,l).then(async()=>{l._name&&(r.push(l._name),await Promise.all(n.map(async([d,p])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(p)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)v1(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[y1]:!0,_name:t})}function G_(e,t,r){const n=()=>t();return mE(e._id).set(e),e.vueApp.runWithContext(n)}function yE(e){var r;let t;return gc()&&(t=(r=ur())==null?void 0:r.appContext.app.$nuxt),t||(t=mE(e).tryUse()),t||null}function Ce(e){const t=yE(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function lt(e){return Ce().$config}function Vc(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function ap(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function $h(e,t,r=".",n){if(!ap(t))return $h(e,{},r,n);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(n&&n(o,s,i,r)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:ap(i)&&ap(o[s])?o[s]=$h(i,o[s],(r?`${r}.`:"")+s.toString(),n):o[s]=i))}return o}function ym(e){return(...t)=>t.reduce((r,n)=>$h(r,n,"",e),{})}const _E=ym(),S1=ym((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0});function E1(e,t){try{return t in e}catch{return!1}}class Fh extends Error{constructor(r,n={}){super(r,n);Pr(this,"statusCode",500);Pr(this,"fatal",!1);Pr(this,"unhandled",!1);Pr(this,"statusMessage");Pr(this,"data");Pr(this,"cause");n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const r={message:this.message,statusCode:Uh(this.statusCode,500)};return this.statusMessage&&(r.statusMessage=vE(this.statusMessage)),this.data!==void 0&&(r.data=this.data),r}}Pr(Fh,"__h3_error__",!0);function bu(e){if(typeof e=="string")return new Fh(e);if(x1(e))return e;const t=new Fh(e.message??e.statusMessage??"",{cause:e.cause||e});if(E1(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Uh(e.statusCode,t.statusCode):e.status&&(t.statusCode=Uh(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;vE(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function x1(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const k1=/[^\u0009\u0020-\u007E]/g;function vE(e=""){return e.replace(k1,"")}function Uh(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const C1=Symbol("layout-meta"),mc=Symbol("route"),Wt=()=>{var e;return(e=Ce())==null?void 0:e.$router},ti=()=>gc()?Ht(mc,Ce()._route):Ce()._route;const T1=(e,t,r={})=>{const n=Ce(),o=r.global||!1,s=t;if(!s){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}o?n._middleware.global.push(s):n._middleware.named[e]=s},A1=()=>{try{if(Ce()._processingMiddleware)return!0}catch{return!1}return!1},Oo=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:"path"in e?jh(e):Wt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(r,l,u),Promise.resolve()}const n=_n(r,{acceptRelative:!0}),o=(t==null?void 0:t.external)||n;if(o){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(r,window.location.href);if(l&&OR(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=A1();if(!o&&s){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=uE(e);return{path:l,...c&&{query:sd(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Wt(),a=Ce();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(r):location.href=r,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function jh(e){return Pl(e.path||"",e.query||{})+(e.hash||"")}const bE="__nuxt_error",ad=()=>Js(Ce().payload,"error"),Ro=e=>{const t=ld(e);try{const r=Ce(),n=ad();r.hooks.callHook("app:error",t),n.value||(n.value=t)}catch{throw t}return t},I1=async(e={})=>{const t=Ce(),r=ad();t.callHook("app:error:cleared",e),e.redirect&&await Wt().replace(e.redirect),r.value=h1},wE=e=>!!e&&typeof e=="object"&&bE in e,ld=e=>{const t=bu(e);return Object.defineProperty(t,bE,{value:!0,configurable:!1,writable:!1}),t};function q_(e){const t=R1(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let o=0;o>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const L1=-1,P1=-2,N1=-3,M1=-4,D1=-5,$1=-6;function F1(e,t){return U1(JSON.parse(e),t)}function U1(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function o(s,i=!1){if(s===L1)return;if(s===N1)return NaN;if(s===M1)return 1/0;if(s===D1)return-1/0;if(s===$1)return-0;if(i)throw new Error("Invalid input");if(s in n)return n[s];const a=r[s];if(!a||typeof a!="object")n[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return n[s]=c(o(a[1]));switch(l){case"Date":n[s]=new Date(a[1]);break;case"Set":const u=new Set;n[s]=u;for(let p=1;p`${so(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?so(e):`${so(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${so(e)} ${t}`}},charset:{}};function so(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return r===-1?t:Nl.META.has(t.slice(0,r))||Nl.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function EE(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function Bh(e){return Array.isArray(e)?e.map(Bh):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[so(t),Bh(r)]))}function xE(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:o,resolve:s}=t;return Object.entries(e).map(([i,a])=>{if(s){const c=s({key:i,value:a});if(c!==void 0)return c}const l=typeof a=="object"?xE(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${n}${l}`}).join(r)}function Y_(e,t){const r=EE(t),n=so(e),o=kE(n);if(!_m.has(n))return[{[o]:n,...r}];const s=Object.fromEntries(Object.entries(r).map(([i,a])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,a]));return tf(s||{}).sort((i,a)=>{var l,c;return(((l=i[o])==null?void 0:l.length)||0)-(((c=a[o])==null?void 0:c.length)||0)})}function kE(e){var n;if(((n=SE[e])==null?void 0:n.metaKey)==="http-equiv"||Nl.HTTP_EQUIV.has(e))return"http-equiv";const t=so(e),r=t.indexOf(":");return r===-1?"name":Nl.OG.has(t.slice(0,r))?"property":"name"}function q1(e){return G1[e]||so(e)}function K1(e,t){var r;return t==="refresh"?`${e.seconds};url=${e.url}`:xE(Bh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:o})=>n===null?"":typeof n=="boolean"?o:void 0,...(r=SE[t])==null?void 0:r.unpack})}function tf(e){const t=[],r={};for(const[o,s]of Object.entries(e)){if(Array.isArray(s)){if(o==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const a=[],l=[];for(const[c,u]of Object.entries(i)){const f=`${o}${c==="url"?"":`:${c}`}`,d=tf({[f]:u});(c==="url"?a:l).push(...d)}t.push(...a,...l)}else t.push(...typeof i=="string"?tf({[o]:i}):Y_(o,i));continue}if(typeof s=="object"&&s)if(Nl.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),l=i==="twitter"?"name":"property";s.url&&t.push({[l]:`${i}:${a}`,content:s.url}),s.secureUrl&&t.push({[l]:`${i}:${a}:secure_url`,content:s.secureUrl});for(const[c,u]of Object.entries(s))c!=="url"&&c!=="secureUrl"&&t.push({[l]:`${i}:${a}:${c}`,content:u})}else _m.has(so(o))?t.push(...Y_(o,s)):r[o]=EE(s);else r[o]=s}const n=Object.entries(r).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=kE(o),a=q1(o),l=s===null?"_null":typeof s=="object"?K1(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:l}:{[i]:a,content:l}});return[...t,...n].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Y1={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(tf(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},Z1=["name","property","http-equiv"];function CE(e){const t=e.split(":")[1];return _m.has(t)}function Hh(e){const{props:t,tag:r}=e;if(V1.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of Z1)if(t[n]!==void 0)return`${r}:${t[n]}`}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(B1.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function Z_(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`}function rf(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let o;if(t&&(o=t(r,e)),Array.isArray(o))return o.map(s=>rf(s,t));if((o==null?void 0:o.constructor)===Object){const s={};for(const i of Object.keys(o))s[i]=rf(o[i],t,i);return s}return o}function X1(e,t){const r=e==="style"?new Map:new Set;function n(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l.trim());i&&a.length&&r.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>r.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(o=>n(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?r.set(o.trim(),s):n(o))}),r}function TE(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=X1(r,n);return}if(W1.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),s=r.startsWith("data-");o==="true"||o===""?e.props[r]=s?o:!0:!n&&s&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function J1(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=TE({tag:e,props:{}},r);return n.key&&j1.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(o=>({...n,props:{...n.props,content:o}})):n}function Q1(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,s)=>{for(let i=0;i{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])n.push(J1(o,i))}),n.flat()}const Vh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,X_={base:-10,title:10},eL={critical:-8,high:-1,low:2},J_={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},tL=/@import/,Aa=e=>e===""||e===!0;function rL(e,t){var s;if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=eL[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:J_;if(t.tag in X_)r=X_[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(r=J_.meta[i])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?Aa(t.props.async)?r=o.script.async:t.props.src&&!Aa(t.props.defer)&&!Aa(t.props.async)&&t.props.type!=="module"&&!((s=t.props.type)!=null&&s.endsWith("json"))?r=o.script.sync:Aa(t.props.defer)&&t.props.src&&!Aa(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&tL.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function Q_(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function nL(e={}){var a;const t=hE();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,s=[],i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:l=>Q_(i,l),push(l,c){const u={...c||{}};delete u.head;const f=u._index??i._entryCount++,d={_i:f,input:l,options:u},p={_poll(g=!1){i.dirty=!0,!g&&s.push(f),t.callHook("entries:updated",i)},dispose(){n.delete(f)&&p._poll(!0)},patch(g){(!u.mode||u.mode==="server"&&r||u.mode==="client"&&!r)&&(d.input=g,n.set(f,d),p._poll())}};return p.patch(l),p},async resolveTags(){var p;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);s.length;){const g=s.shift(),h=n.get(g);if(h){const m={tags:Q1(h.input,e.propResolvers||[]).map(y=>Object.assign(y,h.options)),entry:h};await t.callHook("entries:normalize",m),h._tags=m.tags.map((y,b)=>(y._w=rL(i,y),y._p=(h._i<<10)+b,y._d=Hh(y),y))}}let c=!1;l.entries.flatMap(g=>(g._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Vh).reduce((g,h)=>{const m=String(h._d||h._p);if(!g.has(m))return g.set(m,h);const y=g.get(m);if(((h==null?void 0:h.tagDuplicateStrategy)||(z1.has(h.tag)?"merge":null)||(h.key&&h.key===y.key?"merge":null))==="merge"){const _={...y.props};Object.entries(h.props).forEach(([v,E])=>_[v]=v==="style"?new Map([...y.props.style||new Map,...E]):v==="class"?new Set([...y.props.class||new Set,...E]):E),g.set(m,{...h,props:_})}else h._p>>10===y._p>>10&&CE(h._d)?(g.set(m,Object.assign([...Array.isArray(y)?y:[y],h],h)),c=!0):(h._w===y._w?h._p>y._p:(h==null?void 0:h._w)<(y==null?void 0:y._w))&&g.set(m,h);return g},l.tagMap);const u=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,f){const g=f==null?void 0:f.textContent;if(i._titleTemplate=g,g){let h=typeof g=="function"?g(u==null?void 0:u.textContent):g;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",(u==null?void 0:u.textContent)||"")),u?h===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:h}):(f.tag="title",f.textContent=h)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(Vh)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const g of l.tags){const{innerHTML:h,tag:m,props:y}=g;if(H1.has(m)&&!(Object.keys(y).length===0&&!g.innerHTML&&!g.textContent)&&!(m==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(m==="script"&&h){if((p=y.type)!=null&&p.endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);g.innerHTML=b.replace(/Q_(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const Lo="%separator",oL=new RegExp(`${Lo}(?:\\s*${Lo})*`,"g");function sL(e,t,r=!1){var o;let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");n=(o=e[t.substring(0,s)])==null?void 0:o[t.substring(s+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/{if(a===Lo||!s.includes(a))return a;const l=sL(t,a.slice(1),n);return l!==void 0?l:a}).trim(),i&&(e.endsWith(Lo)&&(e=e.slice(0,-Lo.length)),e.startsWith(Lo)&&(e=e.slice(Lo.length)),e=e.replace(oL,r||"").trim()),e}const ev=e=>e.includes(":key")?e:e.split(":").join(":key:"),iL={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const o=String(n);if(o.startsWith("before:")){const s=ev(o.slice(7)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(r.tagPriority=i.tagPriority),r._p=i._p-1,t=!0)}else if(o.startsWith("after:")){const s=ev(o.slice(6)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(r.tagPriority=i.tagPriority),r._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Vh))}}},aL={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function Wh(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(r=>Wh(r)));if((e==null?void 0:e.constructor)===Object){const r={};for(const n of Object.keys(e))r[n]=await Wh(e[n]);return r}return e}const lL={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(Wh(e.entries[r].input).then(n=>{e.entries[r].input=n,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},cL={meta:"content",link:"href",htmlAttrs:"lang"},uL=["innerHTML","textContent"],fL=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var n,o,s;const r=((o=(n=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:n[0])==null?void 0:o.props)||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...((s=e._ssrPayload)==null?void 0:s.templateParams)||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{var s;const n=((s=t.get("templateParams"))==null?void 0:s.props)||{},o=n.separator||"|";delete n.separator,n.pageTitle=Wc(n.pageTitle||e._title||"",n,o);for(const i of r){if(i.processTemplateParams===!1)continue;const a=cL[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Wc(i.props[a],n,o);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of uL)typeof i[l]=="string"&&(i[l]=Wc(i[l],n,o,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=n,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r!=null&&r.textContent&&r.processTemplateParams!==!1&&(r.textContent=Wc(r.textContent,e._templateParams,e._separator))}}}),dL=(e,t)=>qe(t)?mu(t):t,vm="usehead";function pL(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(vm,e)}}.install}function AE(){if(gc()){const e=Ht(vm);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function IE(e,t={}){const r=t.head||AE();return r.ssr?r.push(e||{},t):hL(r,e,t)}function hL(e,t,r={}){const n=ue(!1);let o;return Qf(()=>{const i=n.value?{}:rf(t,dL);o?o.patch(i):o=e.push(i,r)}),ur()&&(da(()=>{o.dispose()}),dS(()=>{n.value=!0}),fS(()=>{n.value=!1})),o}function gL(e={},t={}){(t.head||AE()).use(Y1);const{title:n,titleTemplate:o,...s}=e;return IE({title:n,titleTemplate:o,_flatMeta:s},t)}function OE(e){var r;const t=e||yE();return((r=t==null?void 0:t.ssrContext)==null?void 0:r.head)||(t==null?void 0:t.runWithContext(()=>{if(gc())return Ht(vm)}))}function $s(e,t={}){const r=OE(t.nuxt);if(r)return IE(e,{head:r,...t})}function Tq(e,t={}){const r=OE(t.nuxt);if(r)return gL(e,{head:r,...t})}const mL="modulepreload",yL=function(e,t){return new URL(e,t).href},tv={},Jt=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(r.map(c=>{if(c=yL(c,n),c in tv)return;tv[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!n)for(let g=i.length-1;g>=0;g--){const h=i[g];if(h.href===c&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":mL,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((g,h)=>{p.addEventListener("load",g),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};async function rv(e,t={}){if(!await LE(e))return null;const n=await vL(e,t);return await RE(n)||null}const _L="_payload.json";async function vL(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||_n(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=lt(),o=t.hash||(t.fresh?Date.now():n.app.buildId),s=n.app.cdnURL,i=s&&await LE(e)?s:n.app.baseURL;return ei(i,r.pathname,_L+(o?`?${o}`:""))}async function RE(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then(PE));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function LE(e=ti().path){return!!Ce().payload.prerenderedAt}let ps=null;async function bL(){var n;if(ps)return ps;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await PE(e.textContent||""),r=e.dataset.src?await RE(e.dataset.src):void 0;return ps={...t,...r,...window.__NUXT__},(n=ps.config)!=null&&n.public&&(ps.config.public=lr(ps.config.public)),ps}async function PE(e){return await F1(e,Ce()._payloadRevivers)}function wL(e,t){Ce()._payloadRevivers[e]=t}const SL=[["NuxtError",e=>ld(e)],["EmptyShallowRef",e=>fn(e==="_"?void 0:e==="0n"?BigInt(0):Rl(e))],["EmptyRef",e=>ue(e==="_"?void 0:e==="0n"?BigInt(0):Rl(e))],["ShallowRef",e=>fn(e)],["ShallowReactive",e=>oo(e)],["Ref",e=>ue(e)],["Reactive",e=>lr(e)]],EL=et({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,o]of SL)wL(n,o);Object.assign(e.payload,([t,r]=Nt(()=>e.runWithContext(bL)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function bm(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var p;const s=new Map,i=new Promise(g=>{e.resolveTags().then(h=>{g(h.map(m=>{const y=s.get(m._d)||0,b={tag:m,id:(y?`${m._d}:${y}`:m._d)||Z_(m),shouldRender:!0};return m._d&&CE(m._d)&&s.set(m._d,y+1),b}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const g of["body","head"]){const h=(p=r[g])==null?void 0:p.children;for(const m of h){const y=m.tagName.toLowerCase();if(!K_.has(y))continue;const b=TE({tag:y,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((_,v)=>(_[v]=m.getAttribute(v),_),{})||{}});if(b.key=m.getAttribute("data-hid")||void 0,b._d=Hh(b)||Z_(b),a.elMap.has(b._d)){let _=1,v=b._d;for(;a.elMap.has(v);)v=`${b._d}:${_++}`;a.elMap.set(v,m)}else a.elMap.set(b._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(g,h,m){const y=`${g}:${h}`;a.sideEffects[y]=m,delete a.pendingSideEffects[y]}function c({id:g,$el:h,tag:m}){const y=m.tag.endsWith("Attrs");a.elMap.set(g,h),y||(m.textContent&&m.textContent!==h.textContent&&(h.textContent=m.textContent),m.innerHTML&&m.innerHTML!==h.innerHTML&&(h.innerHTML=m.innerHTML),l(g,"el",()=>{h==null||h.remove(),a.elMap.delete(g)}));for(const b in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,b))continue;const _=m.props[b];if(b.startsWith("on")&&typeof _=="function"){const E=h==null?void 0:h.dataset;if(E&&E[`${b}fired`]){const S=b.slice(0,-5);_.call(h,new Event(S.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((m.tag==="bodyAttrs"?r.defaultView:h).addEventListener(b.substring(2),_.bind(h)),h.setAttribute(`data-${b}`,""));continue}const v=`attr:${b}`;if(b==="class"){if(!_)continue;for(const E of _)y&&l(g,`${v}:${E}`,()=>h.classList.remove(E)),!h.classList.contains(E)&&h.classList.add(E)}else if(b==="style"){if(!_)continue;for(const[E,S]of _)l(g,`${v}:${E}`,()=>{h.style.removeProperty(E)}),h.style.setProperty(E,S)}else _!==!1&&_!==null&&(h.getAttribute(b)!==_&&h.setAttribute(b,_===!0?"":String(_)),y&&l(g,v,()=>h.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const g of d){const{tag:h,shouldRender:m,id:y}=g;if(m){if(h.tag==="title"){r.title=h.textContent,l("title","",()=>r.title=a.title);continue}g.$el=g.$el||a.elMap.get(y),g.$el?c(g):K_.has(h.tag)&&u.push(g)}}for(const g of u){const h=g.tag.tagPosition||"head";g.$el=r.createElement(g.tag.tag),c(g),f[h]=f[h]||r.createDocumentFragment(),f[h].appendChild(g.$el)}for(const g of d)await e.hooks.callHook("dom:renderTag",g,r,l);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.body.appendChild(f.bodyClose);for(const g in a.pendingSideEffects)a.pendingSideEffects[g]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function xL(e={}){var n,o,s;const t=((n=e.domOptions)==null?void 0:n.render)||bm;e.document=e.document||(typeof window<"u"?document:void 0);const r=((s=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return nL({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function kL(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function CL(e={}){const t=xL({domOptions:{render:kL(()=>bm(t),r=>setTimeout(r,0))},...e});return t.install=pL(t),t}const TL={disableDefaults:!0,disableCapoSorting:!1,plugins:[aL,lL,fL,iL]},AL=et({name:"nuxt:head",enforce:"pre",setup(e){const t=CL(TL);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await bm(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const mi=typeof document<"u";function NE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&NE(e.default)}const Ye=Object.assign;function lp(e,t){const r={};for(const n in t){const o=t[n];r[n]=pn(o)?o.map(e):e(o)}return r}const cl=()=>{},pn=Array.isArray,ME=/#/g,OL=/&/g,RL=/\//g,LL=/=/g,PL=/\?/g,DE=/\+/g,NL=/%5B/g,ML=/%5D/g,$E=/%5E/g,DL=/%60/g,FE=/%7B/g,$L=/%7C/g,UE=/%7D/g,FL=/%20/g;function wm(e){return encodeURI(""+e).replace($L,"|").replace(NL,"[").replace(ML,"]")}function UL(e){return wm(e).replace(FE,"{").replace(UE,"}").replace($E,"^")}function zh(e){return wm(e).replace(DE,"%2B").replace(FL,"+").replace(ME,"%23").replace(OL,"%26").replace(DL,"`").replace(FE,"{").replace(UE,"}").replace($E,"^")}function jL(e){return zh(e).replace(LL,"%3D")}function BL(e){return wm(e).replace(ME,"%23").replace(PL,"%3F")}function HL(e){return e==null?"":BL(e).replace(RL,"%2F")}function Ml(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const VL=/\/$/,WL=e=>e.replace(VL,"");function cp(e,t,r="/"){let n,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(n=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(n=n||t.slice(0,a),i=t.slice(a,t.length)),n=KL(n??t,r),{fullPath:n+(s&&"?")+s+i,path:n,query:o,hash:Ml(i)}}function zL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function nv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function GL(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Vi(t.matched[n],r.matched[o])&&jE(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Vi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!qL(e[r],t[r]))return!1;return!0}function qL(e,t){return pn(e)?ov(e,t):pn(t)?ov(t,e):e===t}function ov(e,t){return pn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function KL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let s=r.length-1,i,a;for(i=0;i1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(i).join("/")}const Qr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Dl;(function(e){e.pop="pop",e.push="push"})(Dl||(Dl={}));var ul;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ul||(ul={}));function YL(e){if(!e)if(mi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),WL(e)}const ZL=/^[^#]+#/;function XL(e,t){return e.replace(ZL,"#")+t}function JL(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const cd=()=>({left:window.scrollX,top:window.scrollY});function QL(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=JL(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sv(e,t){return(history.state?history.state.position-t:-1)+e}const Gh=new Map;function eP(e,t){Gh.set(e,t)}function tP(e){const t=Gh.get(e);return Gh.delete(e),t}let rP=()=>location.protocol+"//"+location.host;function BE(e,t){const{pathname:r,search:n,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),nv(l,"")}return nv(r,e)+n+o}function nP(e,t,r,n){let o=[],s=[],i=null;const a=({state:d})=>{const p=BE(e,location),g=r.value,h=t.value;let m=0;if(d){if(r.value=p,t.value=d,i&&i===g){i=null;return}m=h?d.position-h.position:0}else n(p);o.forEach(y=>{y(r.value,g,{delta:m,type:Dl.pop,direction:m?m>0?ul.forward:ul.back:ul.unknown})})};function l(){i=r.value}function c(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ye({},d.state,{scroll:cd()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function iv(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?cd():null}}function oP(e){const{history:t,location:r}=window,n={value:BE(e,r)},o={value:t.state};o.value||s(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:rP()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),r[u?"replace":"assign"](d)}}function i(l,c){const u=Ye({},t.state,iv(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),n.value=l}function a(l,c){const u=Ye({},o.value,t.state,{forward:l,scroll:cd()});s(u.current,u,!0);const f=Ye({},iv(n.value,l,null),{position:u.position+1},c);s(l,f,!1),n.value=l}return{location:n,state:o,push:a,replace:i}}function sP(e){e=YL(e);const t=oP(e),r=nP(e,t.state,t.location,t.replace);function n(s,i=!0){i||r.pauseListeners(),history.go(s)}const o=Ye({location:"",base:e,go:n,createHref:XL.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function iP(e){return typeof e=="string"||e&&typeof e=="object"}function HE(e){return typeof e=="string"||typeof e=="symbol"}const VE=Symbol("");var av;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(av||(av={}));function Wi(e,t){return Ye(new Error,{type:e,[VE]:!0},t)}function Cn(e,t){return e instanceof Error&&VE in e&&(t==null||!!(e.type&t))}const lv="[^/]+?",aP={sensitive:!1,strict:!1,start:!0,end:!0},lP=/[.+*?^${}()[\]/\\]/g;function cP(e,t){const r=Ye({},aP,t),n=[];let o=r.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function WE(e,t){let r=0;const n=e.score,o=t.score;for(;r0&&t[t.length-1]<0}const fP={type:0,value:""},dP=/[a-zA-Z0-9_]/;function pP(e){if(!e)return[[]];if(e==="/")return[[fP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${c}": ${p}`)}let r=0,n=r;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(r===0?s.push({type:0,value:c}):r===1||r===2||r===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(_)}:cl}function i(f){if(HE(f)){const d=n.get(f);d&&(n.delete(f),r.splice(r.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=r.indexOf(f);d>-1&&(r.splice(d,1),f.record.name&&n.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return r}function l(f){const d=_P(f,r);r.splice(d,0,f),f.record.name&&!dv(f)&&n.set(f.record.name,f)}function c(f,d){let p,g={},h,m;if("name"in f&&f.name){if(p=n.get(f.name),!p)throw Wi(1,{location:f});m=p.record.name,g=Ye(uv(d.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&uv(f.params,p.keys.map(_=>_.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=r.find(_=>_.re.test(h)),p&&(g=p.parse(h),m=p.record.name);else{if(p=d.name?n.get(d.name):r.find(_=>_.re.test(d.path)),!p)throw Wi(1,{location:f,currentLocation:d});m=p.record.name,g=Ye({},d.params,f.params),h=p.stringify(g)}const y=[];let b=p;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:h,params:g,matched:y,meta:yP(y)}}e.forEach(f=>s(f));function u(){r.length=0,n.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function uv(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function fv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mP(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function dv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yP(e){return e.reduce((t,r)=>Ye(t,r.meta),{})}function pv(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function _P(e,t){let r=0,n=t.length;for(;r!==n;){const s=r+n>>1;WE(e,t[s])<0?n=s:r=s+1}const o=vP(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function vP(e){let t=e;for(;t=t.parent;)if(zE(t)&&WE(e,t)===0)return t}function zE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bP(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&zh(s)):[n&&zh(n)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function wP(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=pn(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const SP=Symbol(""),gv=Symbol(""),Sm=Symbol(""),Em=Symbol(""),qh=Symbol("");function Ia(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Po(e,t,r,n,o,s=i=>i()){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Wi(4,{from:r,to:t})):d instanceof Error?l(d):iP(d)?l(Wi(2,{from:t,to:d})):(i&&n.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(n&&n.instances[o],t,r,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function up(e,t,r,n,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(NE(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Po(u,r,n,i,a,o))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=IL(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Po(p,r,n,i,a,o)()}))}}return s}function mv(e){const t=Ht(Sm),r=Ht(Em),n=Z(()=>{const l=Ve(e.to);return t.resolve(l)}),o=Z(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const d=f.findIndex(Vi.bind(null,u));if(d>-1)return d;const p=yv(l[c-2]);return c>1&&yv(u)===p&&f[f.length-1].path!==p?f.findIndex(Vi.bind(null,l[c-2])):d}),s=Z(()=>o.value>-1&&TP(r.params,n.value.params)),i=Z(()=>o.value>-1&&o.value===r.matched.length-1&&jE(r.params,n.value.params));function a(l={}){if(CP(l)){const c=t[Ve(e.replace)?"replace":"push"](Ve(e.to)).catch(cl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:Z(()=>n.value.href),isActive:s,isExactActive:i,navigate:a}}function EP(e){return e.length===1?e[0]:e}const xP=It({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:mv,setup(e,{slots:t}){const r=lr(mv(e)),{options:n}=Ht(Sm),o=Z(()=>({[_v(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[_v(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=t.default&&EP(t.default(r));return e.custom?s:At("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},s)}}}),kP=xP;function CP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TP(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!pn(o)||o.length!==n.length||n.some((s,i)=>s!==o[i]))return!1}return!0}function yv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const _v=(e,t,r)=>e??t??r,AP=It({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ht(qh),o=Z(()=>e.route||n.value),s=Ht(gv,0),i=Z(()=>{let c=Ve(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Z(()=>o.value.matched[i.value]);As(gv,Z(()=>i.value+1)),As(SP,a),As(qh,o);const l=ue();return Oe(()=>[l.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Vi(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return vv(r.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,m=At(d,Ye({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return vv(r.default,{Component:m,route:c})||m}}});function vv(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const GE=AP;function IP(e){const t=gP(e.routes,e),r=e.parseQuery||bP,n=e.stringifyQuery||hv,o=e.history,s=Ia(),i=Ia(),a=Ia(),l=fn(Qr);let c=Qr;mi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=lp.bind(null,W=>""+W),f=lp.bind(null,HL),d=lp.bind(null,Ml);function p(W,Q){let J,ie;return HE(W)?(J=t.getRecordMatcher(W),ie=Q):ie=W,t.addRoute(ie,J)}function g(W){const Q=t.getRecordMatcher(W);Q&&t.removeRoute(Q)}function h(){return t.getRoutes().map(W=>W.record)}function m(W){return!!t.getRecordMatcher(W)}function y(W,Q){if(Q=Ye({},Q||l.value),typeof W=="string"){const A=cp(r,W,Q.path),$=t.resolve({path:A.path},Q),B=o.createHref(A.fullPath);return Ye(A,$,{params:d($.params),hash:Ml(A.hash),redirectedFrom:void 0,href:B})}let J;if(W.path!=null)J=Ye({},W,{path:cp(r,W.path,Q.path).path});else{const A=Ye({},W.params);for(const $ in A)A[$]==null&&delete A[$];J=Ye({},W,{params:f(A)}),Q.params=f(Q.params)}const ie=t.resolve(J,Q),te=W.hash||"";ie.params=u(d(ie.params));const be=zL(n,Ye({},W,{hash:UL(te),path:ie.path})),C=o.createHref(be);return Ye({fullPath:be,hash:te,query:n===hv?wP(W.query):W.query||{}},ie,{redirectedFrom:void 0,href:C})}function b(W){return typeof W=="string"?cp(r,W,l.value.path):Ye({},W)}function _(W,Q){if(c!==W)return Wi(8,{from:Q,to:W})}function v(W){return x(W)}function E(W){return v(Ye(b(W),{replace:!0}))}function S(W){const Q=W.matched[W.matched.length-1];if(Q&&Q.redirect){const{redirect:J}=Q;let ie=typeof J=="function"?J(W):J;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=b(ie):{path:ie},ie.params={}),Ye({query:W.query,hash:W.hash,params:ie.path!=null?{}:W.params},ie)}}function x(W,Q){const J=c=y(W),ie=l.value,te=W.state,be=W.force,C=W.replace===!0,A=S(J);if(A)return x(Ye(b(A),{state:typeof A=="object"?Ye({},te,A.state):te,force:be,replace:C}),Q||J);const $=J;$.redirectedFrom=Q;let B;return!be&&GL(n,ie,J)&&(B=Wi(16,{to:$,from:ie}),we(ie,ie,!0,!1)),(B?Promise.resolve(B):P($,ie)).catch(H=>Cn(H)?Cn(H,2)?H:kt(H):oe(H,$,ie)).then(H=>{if(H){if(Cn(H,2))return x(Ye({replace:C},b(H.to),{state:typeof H.to=="object"?Ye({},te,H.to.state):te,force:be}),Q||$)}else H=L($,ie,!0,C,te);return j($,ie,H),H})}function D(W,Q){const J=_(W,Q);return J?Promise.reject(J):Promise.resolve()}function I(W){const Q=tr.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function P(W,Q){let J;const[ie,te,be]=OP(W,Q);J=up(ie.reverse(),"beforeRouteLeave",W,Q);for(const A of ie)A.leaveGuards.forEach($=>{J.push(Po($,W,Q))});const C=D.bind(null,W,Q);return J.push(C),gt(J).then(()=>{J=[];for(const A of s.list())J.push(Po(A,W,Q));return J.push(C),gt(J)}).then(()=>{J=up(te,"beforeRouteUpdate",W,Q);for(const A of te)A.updateGuards.forEach($=>{J.push(Po($,W,Q))});return J.push(C),gt(J)}).then(()=>{J=[];for(const A of be)if(A.beforeEnter)if(pn(A.beforeEnter))for(const $ of A.beforeEnter)J.push(Po($,W,Q));else J.push(Po(A.beforeEnter,W,Q));return J.push(C),gt(J)}).then(()=>(W.matched.forEach(A=>A.enterCallbacks={}),J=up(be,"beforeRouteEnter",W,Q,I),J.push(C),gt(J))).then(()=>{J=[];for(const A of i.list())J.push(Po(A,W,Q));return J.push(C),gt(J)}).catch(A=>Cn(A,8)?A:Promise.reject(A))}function j(W,Q,J){a.list().forEach(ie=>I(()=>ie(W,Q,J)))}function L(W,Q,J,ie,te){const be=_(W,Q);if(be)return be;const C=Q===Qr,A=mi?history.state:{};J&&(ie||C?o.replace(W.fullPath,Ye({scroll:C&&A&&A.scroll},te)):o.push(W.fullPath,te)),l.value=W,we(W,Q,J,C),kt()}let G;function re(){G||(G=o.listen((W,Q,J)=>{if(!ze.listening)return;const ie=y(W),te=S(ie);if(te){x(Ye(te,{replace:!0,force:!0}),ie).catch(cl);return}c=ie;const be=l.value;mi&&eP(sv(be.fullPath,J.delta),cd()),P(ie,be).catch(C=>Cn(C,12)?C:Cn(C,2)?(x(Ye(b(C.to),{force:!0}),ie).then(A=>{Cn(A,20)&&!J.delta&&J.type===Dl.pop&&o.go(-1,!1)}).catch(cl),Promise.reject()):(J.delta&&o.go(-J.delta,!1),oe(C,ie,be))).then(C=>{C=C||L(ie,be,!1),C&&(J.delta&&!Cn(C,8)?o.go(-J.delta,!1):J.type===Dl.pop&&Cn(C,20)&&o.go(-1,!1)),j(ie,be,C)}).catch(cl)}))}let de=Ia(),q=Ia(),ne;function oe(W,Q,J){kt(W);const ie=q.list();return ie.length?ie.forEach(te=>te(W,Q,J)):console.error(W),Promise.reject(W)}function Te(){return ne&&l.value!==Qr?Promise.resolve():new Promise((W,Q)=>{de.add([W,Q])})}function kt(W){return ne||(ne=!W,re(),de.list().forEach(([Q,J])=>W?J(W):Q()),de.reset()),W}function we(W,Q,J,ie){const{scrollBehavior:te}=e;if(!mi||!te)return Promise.resolve();const be=!J&&tP(sv(W.fullPath,0))||(ie||!J)&&history.state&&history.state.scroll||null;return yn().then(()=>te(W,Q,be)).then(C=>C&&QL(C)).catch(C=>oe(C,W,Q))}const Xe=W=>o.go(W);let je;const tr=new Set,ze={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:h,resolve:y,options:e,push:v,replace:E,go:Xe,back:()=>Xe(-1),forward:()=>Xe(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:q.add,isReady:Te,install(W){const Q=this;W.component("RouterLink",kP),W.component("RouterView",GE),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Ve(l)}),mi&&!je&&l.value===Qr&&(je=!0,v(o.location).catch(te=>{}));const J={};for(const te in Qr)Object.defineProperty(J,te,{get:()=>l.value[te],enumerable:!0});W.provide(Sm,Q),W.provide(Em,oo(J)),W.provide(qh,l);const ie=W.unmount;tr.add(W),W.unmount=function(){tr.delete(W),tr.size<1&&(c=Qr,G&&G(),G=null,l.value=Qr,je=!1,ne=!1),ie()}}};function gt(W){return W.reduce((Q,J)=>Q.then(()=>I(J)),Promise.resolve())}return ze}function OP(e,t){const r=[],n=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iVi(c,a))?n.push(a):r.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Vi(c,l))||o.push(l))}return[r,n,o]}function Aq(e){return Ht(Em)}const RP=/(:\w+)\([^)]+\)/g,LP=/(:\w+)[?+*]/g,PP=/:\w+/g,NP=(e,t)=>t.path.replace(RP,"$1").replace(LP,"$1").replace(PP,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Kh=(e,t)=>{const r=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),n=t??(r==null?void 0:r.meta.key)??(r&&NP(e.route,r));return typeof n=="function"?n(e.route):n},MP=(e,t)=>({default:()=>e?At(DI,e===!0?{}:e,t):t});function xm(e){return Array.isArray(e)?e:[e]}const DP={layout:!1,pageTransition:!1},$P={layout:!1,pageTransition:!1},FP={layout:!1,pageTransition:!1},UP={layout:!1,pageTransition:!1};const fp=[{name:"g",path:"/g",component:()=>Jt(()=>import("./Dv_iPEiX.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"index",path:"/",component:()=>Jt(()=>import("./dXbEenQr.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,2,15,16,17,18,19,20,21,22,3]),import.meta.url)},{name:"search",path:"/search",component:()=>Jt(()=>import("./BV83Kx5Y.js"),__vite__mapDeps([23,24,25,13,8,9,10,11,26,27,28,22]),import.meta.url)},{name:"v8",path:"/v8",component:()=>Jt(()=>import("./CL9feeBO.js"),__vite__mapDeps([29,6,7,8,9,10,11,12,13,14,2,15,16,17,18,19,20,21,22,3]),import.meta.url)},{name:"video-id",path:"/video/:id()",component:()=>Jt(()=>import("./DA1M0VaM.js"),__vite__mapDeps([30,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37,26]),import.meta.url)},{name:"terms",path:"/terms",meta:DP||{},component:()=>Jt(()=>import("./DqL3eeN0.js"),__vite__mapDeps([38,39,40,13,41,42,43,44,3,45]),import.meta.url)},{name:"article-id",path:"/article/:id()",component:()=>Jt(()=>import("./CJJser74.js"),__vite__mapDeps([46,47,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37]),import.meta.url)},{name:"contact",path:"/contact",meta:$P||{},component:()=>Jt(()=>import("./Cv5htza5.js"),__vite__mapDeps([48,39,40,3,49,50]),import.meta.url)},{name:"v8-article-id",path:"/v8/article/:id()",component:()=>Jt(()=>import("./BQJgq60s.js"),__vite__mapDeps([51,47,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37]),import.meta.url)},{name:"privacy-policy",path:"/privacy-policy",meta:FP||{},component:()=>Jt(()=>import("./DAPiKMh9.js"),__vite__mapDeps([52,39,40,53,13,41,42,43,44,3,54]),import.meta.url)},{name:"privacy-policy-relationships",path:"/privacy-policy/relationships",meta:UP||{},component:()=>Jt(()=>import("./CuoDDnBD.js"),__vite__mapDeps([55,39,40,53,13,41,42,43,44,3,54]),import.meta.url)}],jP=(e,t)=>({default:()=>{var r;return e?At(YS,e===!0?{}:e,t):(r=t.default)==null?void 0:r.call(t)}}),BP=/(:\w+)\([^)]+\)/g,HP=/(:\w+)[?+*]/g,VP=/:\w+/g;function bv(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(BP,"$1").replace(HP,"$1").replace(VP,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof t=="function"?t(e):t}function qE(e,t){return e===t||t===Qr?!1:bv(e)!==bv(t)?!0:!e.matched.every((n,o)=>{var s,i;return n.components&&n.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const WP={scrollBehavior(e,t,r){var c;const n=Ce(),o=((c=Wt().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=r||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&qE(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:KE(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??Dh),l=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{n.hooks.hookOnce(l,()=>{requestAnimationFrame(()=>u(zP(e,"instant",s)))})})}};function KE(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function zP(e,t,r){return r||(e.hash?{el:e.hash,top:KE(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const GP={hashMode:!1,scrollBehaviorType:"auto"},Br={...GP,...WP},qP=async e=>{var l;let t,r;if(!((l=e.meta)!=null&&l.validate))return;const n=Ce(),o=Wt(),s=([t,r]=Nt(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t);if(s===!0)return;const i=ld({statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await n.runWithContext(()=>Ro(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},KP=[qP],fl={};function YP(e,t,r){const{pathname:n,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),H_(u,"")}const a=H_(n,e),l=!r||Lh(a,r,{trailingSlash:!0})?a:r;return l+(l.includes("?")?"":o)+s}const ZP=et({name:"nuxt:router",enforce:"pre",async setup(e){var m;let t,r,n=lt().app.baseURL;const o=((m=Br.history)==null?void 0:m.call(Br,n))??sP(n),s=Br.routes?([t,r]=Nt(()=>Br.routes(fp)),t=await t,r(),t??fp):fp;let i;const a=IP({...Br,scrollBehavior:(y,b,_)=>{if(b===Qr){i=_;return}if(Br.scrollBehavior){if(a.options.scrollBehavior=Br.scrollBehavior,"scrollRestoration"in window.history){const v=a.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return Br.scrollBehavior(y,Qr,i||_)}},history:o,routes:s});Br.routes&&Br.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=fn(a.currentRoute.value);a.afterEach((y,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=YP(n,window.location,e.payload.path),u=fn(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,b)=>{var _,v,E,S;((v=(_=y.matched[0])==null?void 0:_.components)==null?void 0:v.default)===((S=(E=b.matched[0])==null?void 0:E.components)==null?void 0:S.default)&&f()});const d={};for(const y in u.value)Object.defineProperty(d,y,{get:()=>u.value[y],enumerable:!0});e._route=oo(d),e._middleware||(e._middleware={global:[],named:{}});const p=ad();a.afterEach(async(y,b,_)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(I1),_&&await e.callHook("page:loading:end")});try{[t,r]=Nt(()=>a.isReady()),await t,r()}catch(y){[t,r]=Nt(()=>e.runWithContext(()=>Ro(y))),await t,r()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const h=e.payload.state._layout;return a.beforeEach(async(y,b)=>{var _;await e.callHook("page:loading:start"),y.meta=lr(y.meta),e.isHydrating&&h&&!Vo(y.meta.layout)&&(y.meta.layout=h),e._processingMiddleware=!0;{const v=new Set([...KP,...e._middleware.global]);for(const E of y.matched){const S=E.meta.middleware;if(S)for(const x of xm(S))v.add(x)}for(const E of v){const S=typeof E=="string"?e._middleware.named[E]||await((_=fl[E])==null?void 0:_.call(fl).then(x=>x.default||x)):E;if(!S)throw new Error(`Unknown route middleware: '${E}'.`);try{const x=await e.runWithContext(()=>S(y,b));if(!e.payload.serverRendered&&e.isHydrating&&(x===!1||x instanceof Error)){const D=x||bu({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Ro(D)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return wE(x)&&x.fatal&&await e.runWithContext(()=>Ro(x)),x}catch(x){const D=bu(x);return D.fatal&&await e.runWithContext(()=>Ro(D)),D}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(y,b)=>{y.matched.length===0&&await e.runWithContext(()=>Ro(bu({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=Br.scrollBehavior}catch(y){await e.runWithContext(()=>Ro(y))}}),{provide:{router:a}}}}),Yh=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),XP=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),km=e=>{const t=Ce();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Yh(()=>e())}):Yh(()=>e())},JP=et({name:"nuxt:payload",setup(e){const t=new Set;Wt().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const o=await rv(r.path);if(o){for(const s of t)delete e.static.data[s];for(const s in o.data)s in e.static.data||t.add(s),e.static.data[s]=o.data[s]}}),km(()=>{e.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await rv(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})})})}}),QP=et(()=>{const e=Wt();km(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),eN=et(e=>{if(!document.startViewTransition)return;let t,r;Wt().beforeResolve(async(o,s)=>{const i=o.meta.viewTransition??f1,l=window.matchMedia("(prefers-reduced-motion: reduce)").matches&&i!=="always";if(i===!1||l||!qE(o,s))return;const c=new Promise((p,g)=>{t=p,r=g});let u;const f=new Promise(p=>u=p),d=document.startViewTransition(()=>(u(),c));return d.finished.then(()=>{r=void 0,t=void 0}),await e.callHook("page:view-transition:start",d),f}),e.hook("vue:error",()=>{r==null||r(),r=void 0}),e.hook("page:finish",()=>{t==null||t(),t=void 0})});function tN(e={}){const t=e.path||window.location.pathname;let r={};try{r=Rl(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires){n.clear()}),e.hook("app:chunkError",({error:s})=>{n.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?r.app.baseURL+s.href:ei(r.app.baseURL,s.fullPath);tN({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{n.has(s)&&o(i)})}});/*! * pinia v2.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */let YE;const yc=e=>YE=e,ZE=Symbol();function Zh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var dl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(dl||(dl={}));function nN(){const e=ca(!0),t=e.run(()=>ue({}));let r=[],n=[];const o=lm({install(s){yc(o),o._a=s,s.provide(ZE,o),s.config.globalProperties.$pinia=o,n.forEach(i=>r.push(i)),n=[]},use(s){return this._a?r.push(s):n.push(s),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const XE=()=>{};function wv(e,t,r,n=XE){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),n())};return!r&&ua()&&El(o),o}function ci(e,...t){e.slice().forEach(r=>{r(...t)})}const oN=e=>e(),Sv=Symbol(),dp=Symbol();function Xh(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,n)=>e.set(n,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];Zh(o)&&Zh(n)&&e.hasOwnProperty(r)&&!qe(n)&&!Pn(n)?e[r]=Xh(o,n):e[r]=n}return e}const sN=Symbol();function iN(e){return!Zh(e)||!e.hasOwnProperty(sN)}const{assign:Co}=Object;function aN(e){return!!(qe(e)&&e.effect)}function lN(e,t,r,n){const{state:o,actions:s,getters:i}=t,a=r.state.value[e];let l;function c(){a||(r.state.value[e]=o?o():{});const u=gI(r.state.value[e]);return Co(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=lm(Z(()=>{yc(r);const p=r._s.get(e);return i[d].call(p,p)})),f),{}))}return l=JE(e,c,t,r,n,!0),l}function JE(e,t,r={},n,o,s){let i;const a=Co({actions:{}},r),l={deep:!0};let c,u,f=[],d=[],p;const g=n.state.value[e];!s&&!g&&(n.state.value[e]={}),ue({});let h;function m(D){let I;c=u=!1,typeof D=="function"?(D(n.state.value[e]),I={type:dl.patchFunction,storeId:e,events:p}):(Xh(n.state.value[e],D),I={type:dl.patchObject,payload:D,storeId:e,events:p});const P=h=Symbol();yn().then(()=>{h===P&&(c=!0)}),u=!0,ci(f,I,n.state.value[e])}const y=s?function(){const{state:I}=r,P=I?I():{};this.$patch(j=>{Co(j,P)})}:XE;function b(){i.stop(),f=[],d=[],n._s.delete(e)}const _=(D,I="")=>{if(Sv in D)return D[dp]=I,D;const P=function(){yc(n);const j=Array.from(arguments),L=[],G=[];function re(ne){L.push(ne)}function de(ne){G.push(ne)}ci(d,{args:j,name:P[dp],store:E,after:re,onError:de});let q;try{q=D.apply(this&&this.$id===e?this:E,j)}catch(ne){throw ci(G,ne),ne}return q instanceof Promise?q.then(ne=>(ci(L,ne),ne)).catch(ne=>(ci(G,ne),Promise.reject(ne))):(ci(L,q),q)};return P[Sv]=!0,P[dp]=I,P},v={_p:n,$id:e,$onAction:wv.bind(null,d),$patch:m,$reset:y,$subscribe(D,I={}){const P=wv(f,D,I.detached,()=>j()),j=i.run(()=>Oe(()=>n.state.value[e],L=>{(I.flush==="sync"?u:c)&&D({storeId:e,type:dl.direct,events:p},L)},Co({},l,I)));return P},$dispose:b},E=lr(v);n._s.set(e,E);const x=(n._a&&n._a.runWithContext||oN)(()=>n._e.run(()=>(i=ca()).run(()=>t({action:_}))));for(const D in x){const I=x[D];if(qe(I)&&!aN(I)||Pn(I))s||(g&&iN(I)&&(qe(I)?I.value=g[D]:Xh(I,g[D])),n.state.value[e][D]=I);else if(typeof I=="function"){const P=_(I,D);x[D]=P,a.actions[D]=I}}return Co(E,x),Co(Me(E),x),Object.defineProperty(E,"$state",{get:()=>n.state.value[e],set:D=>{m(I=>{Co(I,D)})}}),n._p.forEach(D=>{Co(E,i.run(()=>D({store:E,app:n._a,pinia:n,options:a})))}),g&&s&&r.hydrate&&r.hydrate(E.$state,g),c=!0,u=!0,E}/*! #__NO_SIDE_EFFECTS__ */function pa(e,t,r){let n,o;const s=typeof t=="function";typeof e=="string"?(n=e,o=s?r:t):(o=e,n=e.id);function i(a,l){const c=gc();return a=a||(c?Ht(ZE,null):null),a&&yc(a),a=YE,a._s.has(n)||(s?JE(n,t,o,a):lN(n,o,a)),a._s.get(n)}return i.$id=n,i}function ha(e){{const t=Me(e),r={};for(const n in t){const o=t[n];o.effect?r[n]=Z({get:()=>e[n],set(s){e[n]=s}}):(qe(o)||Pn(o))&&(r[n]=Js(e,n))}return r}}function Ev(e){return typeof e=="string"?`'${e}'`:new cN().serialize(e)}const cN=function(){var t;class e{constructor(){t_(this,t,new Map)}compare(n,o){const s=typeof n,i=typeof o;return s==="string"&&i==="string"?n.localeCompare(o):s==="number"&&i==="number"?n-o:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(o,!0))}serialize(n,o){if(n===null)return"null";switch(typeof n){case"string":return o?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const o=Object.prototype.toString.call(n);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return i+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,o){const s=this["$"+n];if(s)return s.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(n,o.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,o){const s=Array.from(o).sort((a,l)=>this.compare(a[0],l[0]));let i=`${n}{`;for(let a=0;athis.compare(o,s)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}t=new WeakMap;for(const r of["Error","RegExp","URL"])e.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return e}();function uN(e,t){return e===t||Ev(e)===Ev(t)}const fN="$s";function ri(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const o=fN+r,s=Ce(),i=Js(s.payload.state,o);if(i.value===void 0&&n){const a=n();if(qe(a))return s.payload.state[o]=a,a;i.value=a}return i}function dN(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},n=t||{},o=n.decode||pN;let s=0;for(;sRl(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Gc=window.cookieStore;function wu(e,t){var c;const r={...mN,...t};r.filter??(r.filter=u=>u===e);const n=kv(r)||{};let o;r.maxAge!==void 0?o=r.maxAge*1e3:r.expires&&(o=r.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s||n[e]===void 0||n[e]===null,a=en(s?void 0:n[e]??((c=r.default)==null?void 0:c.call(r))),l=o&&!s?vN(a,o,r.watch&&r.watch!=="shallow"):ue(a);{let u=null;try{!Gc&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{!h&&(r.readonly||uN(l.value,n[e]))||(_N(e,l.value,r),n[e]=en(l.value),u==null||u.postMessage({value:r.encode(l.value)}))},d=h=>{var y;const m=h.refresh?(y=kv(r))==null?void 0:y[e]:r.decode(h.value);p=!0,l.value=m,n[e]=en(m),yn(()=>{p=!1})};let p=!1;const g=!!ua();if(g&&El(()=>{p=!0,f(),u==null||u.close()}),Gc){const h=m=>{const y=m.changed.find(_=>_.name===e),b=m.deleted.find(_=>_.name===e);y&&d({value:y.value}),b&&d({value:null})};Gc.addEventListener("change",h),g&&El(()=>Gc.removeEventListener("change",h))}else u&&(u.onmessage=({data:h})=>d(h));r.watch&&Oe(l,()=>{p||f()},{deep:r.watch!=="shallow"}),i&&f(i)}return l}function kv(e={}){return dN(document.cookie,e)}function yN(e,t,r={}){return t==null?xv(e,t,{...r,maxAge:-1}):xv(e,t,r)}function _N(e,t,r={}){document.cookie=yN(e,t,r)}const Cv=2147483647;function vN(e,t,r){let n,o,s=0;const i=r?ue(e):{value:e};return ua()&&El(()=>{o==null||o(),clearTimeout(n)}),Zw((a,l)=>{r&&(o=Oe(i,l));function c(){s=0,clearTimeout(n);const u=t-s,f=u{if(s+=f,s4)return Promise.all(o).then(()=>QE(e,t));t._routePreloaded.add(r);const s=n.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of s){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const bN=(...e)=>e.find(t=>t!==void 0);function wN(e){const t=e.componentName||"NuxtLink";function r(s){return typeof s=="string"&&s.startsWith("#")}function n(s,i){if(!s||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return s;if(typeof s=="string")return Tv(s,e.trailingSlash);const a="path"in s&&s.path!==void 0?s.path:i(s).path;return{...s,name:void 0,path:Tv(a,e.trailingSlash)}}function o(s){const i=Wt(),a=lt(),l=Z(()=>!!s.target&&s.target!=="_self"),c=Z(()=>{const m=s.to||s.href||"";return typeof m=="string"&&_n(m,{acceptRelative:!0})}),u=p_("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=Z(()=>{if(s.external)return!0;const m=s.to||s.href||"";return typeof m=="object"?!1:m===""||c.value}),p=Z(()=>{const m=s.to||s.href||"";return d.value?m:n(m,i.resolve)}),g=d.value||f==null?void 0:f({...s,to:p}),h=Z(()=>{var m;if(!p.value||c.value||r(p.value))return p.value;if(d.value){const y=typeof p.value=="object"&&"path"in p.value?jh(p.value):p.value,b=typeof y=="object"?i.resolve(y).href:y;return n(b,i.resolve)}return typeof p.value=="object"?((m=i.resolve(p.value))==null?void 0:m.href)??null:n(ei(a.app.baseURL,p.value),i.resolve)});return{to:p,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:h,isActive:(g==null?void 0:g.isActive)??Z(()=>p.value===i.currentRoute.value.path),isExactActive:(g==null?void 0:g.isExactActive)??Z(()=>p.value===i.currentRoute.value.path),route:(g==null?void 0:g.route)??Z(()=>i.resolve(p.value)),async navigate(m){await Oo(h.value,{replace:s.replace,external:d.value||l.value})}}}return It({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:o,setup(s,{slots:i}){const a=Wt(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=o(s),g=ue(!1),h=ue(null),m=_=>{var v;h.value=s.custom?(v=_==null?void 0:_.$el)==null?void 0:v.nextElementSibling:_==null?void 0:_.$el};function y(_){var v,E;return!g.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===_:((v=s.prefetchOn)==null?void 0:v[_])??((E=e.prefetchOn)==null?void 0:E[_]))&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!kN()}async function b(_=Ce()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:f.value?jh(l.value):a.resolve(l.value).fullPath,E=f.value?new URL(v,window.location.href).href:v;await Promise.all([_.hooks.callHook("link:prefetch",E).catch(()=>{}),!f.value&&!d.value&&QE(l.value,a).catch(()=>{})])}if(y("visibility")){const _=Ce();let v,E=null;Rr(()=>{const S=EN();km(()=>{v=Yh(()=>{var x;(x=h==null?void 0:h.value)!=null&&x.tagName&&(E=S.observe(h.value,async()=>{E==null||E(),E=null,await b(_)}))})})}),da(()=>{v&&XP(v),E==null||E(),E=null})}return()=>{var E;if(!f.value&&!d.value&&!r(l.value)){const S={ref:m,to:l.value,activeClass:s.activeClass||e.activeClass,exactActiveClass:s.exactActiveClass||e.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};return s.custom||(y("interaction")&&(S.onPointerenter=b.bind(null,void 0),S.onFocus=b.bind(null,void 0)),g.value&&(S.class=s.prefetchedClass||e.prefetchedClass),S.rel=s.rel||void 0),At(p_("RouterLink"),S,i.default)}const _=s.target||null,v=bN(s.noRel?"":s.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return s.custom?i.default?i.default({href:c.value,navigate:u,prefetch:b,get route(){if(!c.value)return;const S=new URL(c.value,window.location.href);return{path:S.pathname,fullPath:S.pathname,get query(){return sd(S.search)},hash:S.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:v,target:_,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:At("a",{ref:h,href:c.value||null,rel:v,target:_},(E=i.default)==null?void 0:E.call(i))}}})}const SN=wN(p1);function Tv(e,t){const r=t==="append"?Ll:id;return _n(e)&&!e.startsWith("http")?e:r(e,!0)}function EN(){const e=Ce();if(e._observer)return e._observer;let t=null;const r=new Map,n=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),r.set(s,i),t.observe(s),()=>{r.delete(s),t==null||t.unobserve(s),r.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:n}}const xN=/2g/;function kN(){const e=navigator.connection;return!!(e&&(e.saveData||xN.test(e.effectiveType)))}const ut={AR_35:{widgetId:"AR_35"},AR_36:{widgetId:"AR_36"},AR_39:{widgetId:"AR_39"},AR_37:{widgetId:"AR_37"},AR_45:{widgetId:"AR_45"},AR_38:{widgetId:"AR_38"},AR_27:{widgetId:"AR_27"},AR_31:{widgetId:"AR_31"}},CN={sectiontab_r1_c1:"AR_39",sectiontab_r1_c3:"AR_39",sectiontab_r1_c4:"AR_39",sectiontab_r1_c5:"AR_39",sectiontab_r2_c2:"AR_39",sectiontab_r2_c4:"AR_39",sectiontab_r3_c1:"AR_39",sectiontab_r3_c3:"AR_39",sectiontab_r3_c4:"AR_39",sectiontab_r3_c5:"AR_39",sectiontab_slider_1:"AR_27",sectiontab_slider_2:"AR_27",sectiontab_slider_3:"AR_27",newtab_r1_c2:"AR_35",newtab_r1_topright:"AR_36",newtab_r2_c1:"AR_37",newtab_r3_right:"AR_45",newtab_r4_c1:"AR_44",newtab_endless_right:"AR_38",newtab_slider_1:"AR_27",newtab_slider_2:"AR_27",article_siderail:"SB_2"},Be={304300:{adHeight:"304px",adWidth:"300px"},304612:{adHeight:"304px",adWidth:"612px"},auto:{adHeight:"auto",adWidth:"auto"},72890:{adHeight:"400px",adWidth:"auto"},300250:{adHeight:"310px",adWidth:"250px"},30050:{adHeight:"100px",adWidth:"300px"},97090:{adHeight:"300px",adWidth:"100%"},340300:{adHeight:"290px",adWidth:"340px"}};function $t(e){return{containerName:`taboola-homepage-${e}`,mode:"thumbnails-r-267x178-v2"}}const TN={article_content_below_button:{mode:"alternating-thumbnails-a",containerName:"taboola-below-article-feed"}},AN={sectiontab_r1_c1:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r1-c1"),assertive:{},props:{}},sectiontab_r1_c3:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r1-c3"),assertive:{},props:{}},sectiontab_r1_c4:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r1-c4"),assertive:{},props:{}},sectiontab_r1_c5:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r1-c5"),assertive:{},props:{}},sectiontab_r2_c2:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r2-c2"),assertive:{},props:{}},sectiontab_r2_c4:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r2-c4"),assertive:{},props:{}},sectiontab_r3_c1:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r3-c1"),assertive:{},props:{}},sectiontab_r3_c3:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r3-c3"),assertive:{},props:{}},sectiontab_r3_c4:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r3-c4"),assertive:{},props:{}},sectiontab_r3_c5:{outbrain:{...ut.AR_39},style:{...Be[304300]},taboola:$t("sectiontab-r3-c5"),assertive:{},props:{}},sectiontab_slider_1:{outbrain:{...ut.AR_27},style:{...Be[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},sectiontab_slider_2:{outbrain:{...ut.AR_27},style:{...Be[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},sectiontab_slider_3:{outbrain:{...ut.AR_27},style:{...Be[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_r1_c2:{outbrain:{...ut.AR_35},style:{...Be[304300]},taboola:$t("r1-c2"),assertive:{},props:{}},newtab_r1_topright:{outbrain:{...ut.AR_36},style:{...Be[304300]},taboola:$t("r1-topright"),assertive:{},props:{}},newtab_r2_c1:{outbrain:{...ut.AR_37},style:{...Be[304300]},taboola:$t("r2-c1"),assertive:{},props:{}},newtab_r3_right:{outbrain:{...ut.AR_45},style:{...Be[304300]},taboola:$t("r3-right"),assertive:{},props:{lazyRender:!0}},newtab_r4_c1:{outbrain:{...ut.AR_38},style:{...Be[304300]},taboola:$t("r4-c1"),assertive:{},props:{lazyRender:!0}},newtab_r4_right:{outbrain:{...ut.AR_38},style:{...Be[304300]},taboola:$t("r4-right"),assertive:{},props:{lazyRender:!0}},newtab_r3_c1:{outbrain:{...ut.AR_38},style:{...Be[304300]},taboola:$t("r3-c1"),assertive:{},props:{lazyRender:!0}},newtab_r2_c4:{outbrain:{...ut.AR_38},style:{...Be[304300]},taboola:$t("r2-c4"),assertive:{},props:{lazyRender:!0}},newtab_endless_right:{outbrain:{...ut.AR_38},style:{...Be[304300]},taboola:$t("endless"),assertive:{},props:{lazyRender:!0}},newtab_slider_1:{outbrain:{...ut.AR_27},style:{...Be[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_slider_2:{outbrain:{...ut.AR_27},style:{...Be[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_leaderboard:{outbrain:{},taboola:{},assertive:{},style:{...Be[72890]},props:{lazyRender:!0}},newtab_leaderboard_mb:{outbrain:{},taboola:{},assertive:{},style:{...Be[30050]},props:{lazyRender:!0}},article_hero:{outbrain:{},taboola:{},assertive:{},style:{...Be[97090]},props:{sticky:!0}},article_hero_mb:{outbrain:{},taboola:{},assertive:{},style:{...Be[30050]},props:{sticky:!0}},article_content_below_button:{outbrain:{...ut.AR_31},taboola:{...TN.article_content_below_button},assertive:{},style:{...Be.auto},props:{}},article_content_middle:{outbrain:{},taboola:{},assertive:{},style:{...Be[72890]},props:{}},article_content_middle_mb:{outbrain:{},taboola:{},assertive:{},style:{...Be[300250]},props:{lazyRender:!0}},article_siderail_top:{outbrain:{},taboola:{},assertive:{},style:{...Be[340300]},props:{}},article_siderail_middle:{outbrain:{},taboola:{},assertive:{},style:{...Be[340300]},props:{}},article_siderail_bottom:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_top:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_below_image:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_above_button:{outbrain:{},taboola:{},assertive:{},style:{},props:{}}},IN={nuxtIcon:{},siteName:"OneNews",defaultCpm:2,urls:{home:"/",article:"/article",video:"/video"},directAdsHostedConfigUrl:"http://localhost:2772/applications/WebTier/environments/OneNews/configurations/OneNews-DirectAds",redesignedNtpPaths:["/v8","/v8/article","/","/article"],googleTagManagerId:"GTM-WNFNMPW",outbrain:{installationKey:"ONELA2JBJF199O5BKEIEEDG98",mapPlacementToWidget:CN},adops:{placements:AN},taboola:{publisherName:"rebasetechinc-network"}},ON={},RN={},LN={nuxtIcon:{},openfeature:{multiProvider:!0,localProvider:!1,queryProvider:!0},directAdsHostedConfigUrl:"",redesignedNtpPaths:[""],googleTagManagerId:"",urls:{home:"/",article:"/article",video:"/video"},outbrain:{installationKey:"",mapPlacementToWidget:ON},adops:{placements:RN},taboola:{publisherName:""}},PN={nuxt:{},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/icons",fallbackToApi:!1,cssSelectorPrefix:"i-",cssWherePseudo:!0,mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:500},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},qr=S1(IN,LN,PN);function Lr(){const e=Ce();return e._appConfig||(e._appConfig=lr(qr)),e._appConfig}const NN=et({name:"pinia",setup(e){const t=nN();return e.vueApp.use(t),yc(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),MN=Zf(()=>Jt(()=>Promise.resolve().then(()=>uz),void 0,import.meta.url).then(e=>e.default||e.default||e)),DN=Zf(()=>Jt(()=>import("./C1bQH659.js"),__vite__mapDeps([56,57]),import.meta.url).then(e=>e.default||e.default||e)),$N=Zf(()=>Jt(()=>import("./D4RQhePJ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),FN=[["Icon",MN],["IconCSS",DN],["NuxtIcon",$N]],UN=et({name:"nuxt:global-components",setup(e){for(const[t,r]of FN)e.vueApp.component(t,r),e.vueApp.component("Lazy"+t,r)}}),qc={custom:Zf(()=>Jt(()=>import("./CxQypAmk.js"),__vite__mapDeps([58,49,59]),import.meta.url).then(e=>e.default||e))},jN=et({name:"nuxt:prefetch",setup(e){const t=Wt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{var o;const n=(o=r==null?void 0:r.meta)==null?void 0:o.layout;n&&typeof qc[n]=="function"&&await qc[n]()})}),e.hooks.hook("link:prefetch",r=>{if(_n(r))return;const n=t.resolve(r);if(!n)return;const o=n.meta.layout;let s=xm(n.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof fl[i]=="function"&&fl[i]();o&&typeof qc[o]=="function"&&qc[o]()})}});function Su(...e){var t;(t=window.dataLayer)==null||t.push(arguments)}function ex({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const r of t.initCommands??[])Su(...r);Su("js",new Date);for(const t of e)Su("config",t.id,t.config??{})}function tx(e){const t=Me(e),r=t.tags.filter(Boolean).map(n=>typeof n=="string"?{id:n}:n);if(t.id){const{id:n,config:o,initCommands:s}=t;r.unshift({id:n,config:o,initCommands:s})}return r}const BN=et({parallel:!0,setup(){const e=lt().public.gtag,t=tx(e);if(!t.length||(ex({tags:t}),e.initMode==="manual"))return;const r=e.loadingStrategy==="async"?"async":"defer";$s({link:[{rel:"preload",as:"script",href:Pl(e.url,{id:t[0].id})}],script:[{src:Pl(e.url,{id:t[0].id}),[r]:!0,"data-gtag":""}]})}}),pl=/^[a-z0-9]+(-[a-z0-9]+)*$/,ud=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:a};return t&&!Eu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!Eu(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!Eu(a,r)?null:a}return null},Eu=(e,t)=>e?!!((e.provider===""||e.provider.match(pl))&&(t&&e.prefix===""||e.prefix.match(pl))&&e.name.match(pl)):!1,rx=Object.freeze({left:0,top:0,width:16,height:16}),nf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_c=Object.freeze({...rx,...nf}),Jh=Object.freeze({..._c,body:"",hidden:!1});function HN(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Av(e,t){const r=HN(e,t);for(const n in Jh)n in nf?n in e&&!(n in r)&&(r[n]=nf[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function VN(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function WN(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Av(n[a]||o[a],s)}return i(t),r.forEach(i),Av(e,s)}function nx(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=VN(e);for(const o in n){const s=n[o];s&&(t(o,WN(e,o,s)),r.push(o))}return r}const zN={provider:"",aliases:{},not_found:{},...rx};function pp(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function ox(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!pp(e,zN))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o.match(pl)||typeof s.body!="string"||!pp(s,Jh))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o.match(pl)||typeof i!="string"||!r[i]&&!n[i]||!pp(s,Jh))return null}return t}const Iv=Object.create(null);function GN(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Fs(e,t){const r=Iv[e]||(Iv[e]=Object.create(null));return r[t]||(r[t]=GN(e,t))}function Cm(e,t){return ox(t)?nx(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function qN(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let $l=!1;function sx(e){return typeof e=="boolean"&&($l=e),$l}function ix(e){const t=typeof e=="string"?ud(e,!0,$l):e;if(t){const r=Fs(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function KN(e,t){const r=ud(e,!0,$l);if(!r)return!1;const n=Fs(r.provider,r.prefix);return qN(n,r.name,t)}function YN(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),$l&&!t&&!e.prefix){let o=!1;return ox(e)&&(e.prefix="",nx(e,(s,i)=>{i&&KN(s,i)&&(o=!0)})),o}const r=e.prefix;if(!Eu({provider:t,prefix:r,name:"a"}))return!1;const n=Fs(t,r);return!!Cm(n,e)}function Iq(e){const t=ix(e);return t?{..._c,...t}:null}const ax=Object.freeze({width:null,height:null}),lx=Object.freeze({...ax,...nf}),ZN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,XN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ov(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(ZN);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=XN.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function JN(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function QN(e,t){return e?""+e+""+t:t}function eM(e,t,r){const n=JN(e);return QN(n.defs,t+n.content+r)}const tM=e=>e==="unset"||e==="undefined"||e==="none";function rM(e,t){const r={..._c,...e},n={...lx,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(h=>{const m=[],y=h.hFlip,b=h.vFlip;let _=h.rotate;y?b?_+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):b&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}_%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(s=eM(s,'',""))});const i=n.width,a=n.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=Ov(f,l/c)):(u=i==="auto"?l:i,f=a===null?Ov(u,c/l):a==="auto"?c:a);const d={},p=(h,m)=>{tM(m)||(d[h]=m.toString())};p("width",u),p("height",f);const g=[o.left,o.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const nM=/\sid="(\S+)"/g,oM="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let sM=0;function iM(e,t=oM){const r=[];let n;for(;n=nM.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(sM++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const Qh=Object.create(null);function cx(e,t){Qh[e]=t}function eg(e){return Qh[e]||Qh[""]}function Tm(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const fd=Object.create(null),Oa=["https://api.simplesvg.com","https://api.unisvg.com"],xu=[];for(;Oa.length>0;)Oa.length===1||Math.random()>.5?xu.push(Oa.shift()):xu.push(Oa.pop());fd[""]=Tm({resources:["https://api.iconify.design"].concat(xu)});function ux(e,t){const r=Tm(t);return r===null?!1:(fd[e]=r,!0)}function dd(e){return fd[e]}function aM(){return Object.keys(fd)}const lM=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let of=lM();function cM(e){of=e}function uM(){return of}function fM(e,t){const r=dd(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function dM(e){return e===404}const pM=(e,t,r)=>{const n=[],o=fM(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),n.push(i),n};function hM(e){if(typeof e=="string"){const t=dd(e);if(t)return t.path}return"/"}const gM=(e,t,r)=>{if(!of){r("abort",424);return}let n=hM(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;of(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(dM(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},mM={prepare:pM,send:gM};function yM(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,l=r[s]||(r[s]=Object.create(null)),c=l[i]||(l[i]=Fs(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function fx(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function _M(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:n,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||fx([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let vM=0;function bM(e,t,r){const n=vM++,o=fx.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function wM(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?ud(o,t,r):o;s&&n.push(s)}),n}var SM={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function EM(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let S=e.resources.slice(0);for(i=[];S.length>1;){const x=Math.floor(Math.random()*S.length);i.push(S[x]),S=S.slice(0,x).concat(S.slice(x+1))}i=i.concat(S)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof n=="function"&&p.push(n);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function m(S,x){x&&(p=[]),typeof S=="function"&&p.push(S)}function y(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:m,abort:h}}function b(){l="failed",p.forEach(S=>{S(void 0,u)})}function _(){d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function v(S,x,D){const I=x!=="success";switch(d=d.filter(P=>P!==S),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=D,b();return}if(I){u=D,d.length||(i.length?E():b());return}if(g(),_(),!e.random){const P=e.resources.indexOf(S.resource);P!==-1&&P!==e.index&&(e.index=P)}l="completed",p.forEach(P=>{P(D)})}function E(){if(l!=="pending")return;g();const S=i.shift();if(S===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:S,callback:(D,I)=>{v(x,D,I)}};d.push(x),c++,f=setTimeout(E,e.rotate),r(S,t,x.callback)}return setTimeout(E),y}function dx(e){const t={...SM,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,l,c){const u=EM(t,a,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function s(a){return r.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Rv(){}const hp=Object.create(null);function xM(e){if(!hp[e]){const t=dd(e);if(!t)return;const r=dx(t),n={config:t,redundancy:r};hp[e]=n}return hp[e]}function px(e,t,r){let n,o;if(typeof e=="string"){const s=eg(e);if(!s)return r(void 0,424),Rv;o=s.send;const i=xM(e);i&&(n=i.redundancy)}else{const s=Tm(e);if(s){n=dx(s);const i=e.resources?e.resources[0]:"",a=eg(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Rv):n.query(t,o,r)().abort}const Lv="iconify2",Fl="iconify",hx=Fl+"-count",Pv=Fl+"-version",gx=36e5,kM=168,CM=50;function tg(e,t){try{return e.getItem(t)}catch{}}function Am(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Nv(e,t){try{e.removeItem(t)}catch{}}function rg(e,t){return Am(e,hx,t.toString())}function ng(e){return parseInt(tg(e,hx))||0}const Is={local:!0,session:!0},mx={local:new Set,session:new Set};let Im=!1;function TM(e){Im=e}let Kc=typeof window>"u"?{}:window;function yx(e){const t=e+"Storage";try{if(Kc&&Kc[t]&&typeof Kc[t].length=="number")return Kc[t]}catch{}Is[e]=!1}function _x(e,t){const r=yx(e);if(!r)return;const n=tg(r,Pv);if(n!==Lv){if(n){const a=ng(r);for(let l=0;l{const l=Fl+a.toString(),c=tg(r,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Nv(r,l)}};let i=ng(r);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,rg(r,i)):mx[e].add(a))}function vx(){if(!Im){TM(!0);for(const e in Is)_x(e,t=>{const r=t.data,n=t.provider,o=r.prefix,s=Fs(n,o);if(!Cm(s,r).length)return!1;const i=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function AM(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Is)_x(n,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function IM(e,t){Im||vx();function r(n){let o;if(!Is[n]||!(o=yx(n)))return;const s=mx[n];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ng(o),i>=CM||!rg(o,i+1))return;const a={cached:Math.floor(Date.now()/gx),provider:e.provider,data:t};return Am(o,Fl+i.toString(),JSON.stringify(a))}t.lastModified&&!AM(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Mv(){}function OM(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,_M(e)}))}function RM(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=eg(r)))return;s.prepare(r,n,o).forEach(a=>{px(r,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=Cm(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),IM(e,l)}catch(c){console.error(c)}OM(e)})})}))}const LM=(e,t)=>{const r=wM(e,!0,sx()),n=yM(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,Mv)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(Fs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=Fs(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&RM(l,o[c][u])}),t?bM(t,n,s):Mv};function PM(e,t){switch(e){case"local":case"session":Is[e]=t;break;case"all":for(const r in Is)Is[r]=t;break}}function NM(e,t){const r={...e};for(const n in t){const o=t[n],s=typeof o;n in ax?(o===null||o&&(s==="string"||s==="number"))&&(r[n]=o):s===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const MM=/[\s,]+/;function DM(e,t){t.split(MM).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function $M(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}function FM(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}function UM(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function jM(e){return"data:image/svg+xml,"+UM(e)}function BM(e){return'url("'+jM(e)+'")'}const Dv={...lx,inline:!1},HM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},VM={display:"inline-block"},og={backgroundColor:"currentColor"},bx={backgroundColor:"transparent"},$v={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Fv={webkitMask:og,mask:og,background:bx};for(const e in Fv){const t=Fv[e];for(const r in $v)t[e+r]=$v[r]}const ku={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ku[e+"-flip"]=t,ku[e.slice(0,1)+"-flip"]=t,ku[e+"Flip"]=t});function Uv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const jv=(e,t)=>{const r=NM(Dv,t),n={...HM},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const m=t[h];if(m!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[h]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&DM(r,m);break;case"color":s.color=m;break;case"rotate":typeof m=="string"?r[h]=$M(m):typeof m=="number"&&(r[h]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete n["aria-hidden"];break;default:{const y=ku[h];y?(m===!0||m==="true"||m===1)&&(r[y]=!0):Dv[h]===void 0&&(n[h]=m)}}}const l=rM(e,r),c=l.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,c);let h=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),n.innerHTML=iM(l.body,m?()=>m+"ID"+h++:"iconifyVue"),At("svg",n)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=FM(u,{...c,width:f+"",height:d+""});return n.style={...s,"--svg":BM(g),width:Uv(c.width),height:Uv(c.height),...VM,...p?og:bx,...a},At("span",n)};function WM(e){PM(e,!1)}sx(!0);cx("",mM);if(typeof document<"u"&&typeof window<"u"){vx();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!YN(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;ux(r,o)||console.error(n)}catch{console.error(n)}}}}const zM={..._c,body:""},Oq=It({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,r){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=ud(e,!1,!0))===null)return this.abortLoading(),null;let o=ix(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:LM([n],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),r){o=Object.assign({},o);const i=r(o.body,n.name,n.prefix,n.provider);typeof i=="string"&&(o.body=i)}const s=["iconify"];return n.prefix!==""&&s.push("iconify--"+n.prefix),n.provider!==""&&s.push("iconify--"+n.provider),{data:o,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return jv(zM,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),jv({..._c,...t.data},r)}}),GM={getAPIConfig:dd,setAPIModule:cx,sendAPIQuery:px,setFetch:cM,getFetch:uM,listAPIProviders:aM},qM=et({name:"@nuxt/icon",setup(){var n,o;const e=lt(),t=Lr().icon;GM.setFetch($fetch.native),WM("all");const r=[];if(t.provider==="server"){const s=((o=(n=e.app)==null?void 0:n.baseURL)==null?void 0:o.replace(/\/$/,""))??"";r.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),t.fallbackToApi&&r.push(t.iconifyApiEndpoint)}else r.push(t.iconifyApiEndpoint);ux("",{resources:r})}});function Wo(e){return ua()?(El(e),!0):!1}function vc(e){let t=0,r,n;const o=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return(...s)=>(t+=1,r||(n=ca(!0),r=n.run(()=>e(...s))),Wo(o),r)}function ar(e){return typeof e=="function"?e():Ve(e)}const sf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const KM=e=>e!=null,YM=Object.prototype.toString,ZM=e=>YM.call(e)==="[object Object]",af=()=>+Date.now(),cn=()=>{};function pd(e,t){function r(...n){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(s)})}return r}const wx=e=>e();function Sx(e,t={}){let r,n,o=cn;const s=a=>{clearTimeout(a),o(),o=cn};return a=>{const l=ar(e),c=ar(t.maxWait);return r&&s(r),l<=0||c!==void 0&&c<=0?(n&&(s(n),n=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!n&&(n=setTimeout(()=>{r&&s(r),n=null,u(a())},c)),r=setTimeout(()=>{n&&s(n),n=null,u(a())},l)})}}function Ex(...e){let t=0,r,n=!0,o=cn,s,i,a,l,c;!qe(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[i,a=!0,l=!0,c=!1]=e;const u=()=>{r&&(clearTimeout(r),r=void 0,o(),o=cn)};return d=>{const p=ar(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!n)?(t=Date.now(),h()):a&&(s=new Promise((m,y)=>{o=c?y:m,r=setTimeout(()=>{t=Date.now(),n=!0,m(h()),u()},Math.max(0,p-g))})),!l&&!r&&(r=setTimeout(()=>n=!0,p)),n=!1,s)}}function XM(e=wx){const t=ue(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Yf(t),pause:r,resume:n,eventFilter:o}}function JM(e){return ur()}function QM(e,t=200,r={}){return pd(Sx(t,r),e)}function eD(e,t=200,r=!1,n=!0,o=!1){return pd(Ex(t,r,n,o),e)}function xx(e,t,r={}){const{eventFilter:n=wx,...o}=r;return Oe(e,pd(n,t),o)}function kx(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:s,pause:i,resume:a,isActive:l}=XM(n);return{stop:xx(e,t,{...o,eventFilter:s}),pause:i,resume:a,isActive:l}}function hd(e,t=!0,r){JM()?Rr(e,r):t?e():yn(e)}function tD(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r;let s=null;const i=ue(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=ar(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(n&&sf&&c(),qe(t)||typeof t=="function"){const u=Oe(t,()=>{i.value&&sf&&c()});Wo(u)}return Wo(l),{isActive:i,pause:l,resume:c}}function Rq(e,t,r={}){const{debounce:n=0,maxWait:o=void 0,...s}=r;return xx(e,t,{...s,eventFilter:Sx(n,{maxWait:o})})}function rD(e,t,r){const n=Oe(e,(...o)=>(yn(()=>n()),t(...o)),r);return n}function Lq(e,t,r){let n;qe(r)?n={evaluating:r}:n=r||{};const{lazy:o=!1,evaluating:s=void 0,shallow:i=!0,onError:a=cn}=n,l=ue(!o),c=i?fn(t):ue(t);let u=0;return Qf(async f=>{if(!l.value)return;u++;const d=u;let p=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await e(h=>{f(()=>{s&&(s.value=!1),p||h()})});d===u&&(c.value=g)}catch(g){a(g)}finally{s&&d===u&&(s.value=!1),p=!0}}),o?Z(()=>(l.value=!0,c.value)):c}function nn(e){var t;const r=ar(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Or=sf?window:void 0,nD=sf?window.document:void 0;function $n(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=Or):[t,r,n,o]=e,!t)return cn;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),l=Oe(()=>[nn(t),ar(o)],([u,f])=>{if(i(),!u)return;const d=ZM(f)?{...f}:f;s.push(...r.flatMap(p=>n.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Wo(c),c}function oD(){const e=ue(!1),t=ur();return t&&Rr(()=>{e.value=!0},t),e}function Om(e){const t=oD();return Z(()=>(t.value,!!e()))}function sD(e,t={}){const{immediate:r=!0,fpsLimit:n=void 0,window:o=Or}=t,s=ue(!1),i=n?1e3/n:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pr&&"matchMedia"in r&&typeof r.matchMedia=="function");let o;const s=ue(!1),i=c=>{s.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},l=Qf(()=>{n.value&&(a(),o=r.matchMedia(ar(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return Wo(()=>{l(),a(),o=void 0}),s}const Yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zc="__vueuse_ssr_handlers__",iD=aD();function aD(){return Zc in Yc||(Yc[Zc]=Yc[Zc]||{}),Yc[Zc]}function lD(e,t){return iD[e]||t}function cD(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const uD={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Bv="vueuse-storage";function fD(e,t,r,n={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=Or,eventFilter:d,onError:p=P=>{console.error(P)},initOnMounted:g}=n,h=(u?fn:ue)(typeof t=="function"?t():t);if(!r)try{r=lD("getDefaultStorage",()=>{var P;return(P=Or)==null?void 0:P.localStorage})()}catch(P){p(P)}if(!r)return h;const m=ar(t),y=cD(m),b=(o=n.serializer)!=null?o:uD[y],{pause:_,resume:v}=kx(h,()=>S(h.value),{flush:s,deep:i,eventFilter:d});f&&a&&hd(()=>{$n(f,"storage",D),$n(f,Bv,I),g&&D()}),g||D();function E(P,j){f&&f.dispatchEvent(new CustomEvent(Bv,{detail:{key:e,oldValue:P,newValue:j,storageArea:r}}))}function S(P){try{const j=r.getItem(e);if(P==null)E(j,null),r.removeItem(e);else{const L=b.write(P);j!==L&&(r.setItem(e,L),E(j,L))}}catch(j){p(j)}}function x(P){const j=P?P.newValue:r.getItem(e);if(j==null)return l&&m!=null&&r.setItem(e,b.write(m)),m;if(!P&&c){const L=b.read(j);return typeof c=="function"?c(L,m):y==="object"&&!Array.isArray(L)?{...m,...L}:L}else return typeof j!="string"?j:b.read(j)}function D(P){if(!(P&&P.storageArea!==r)){if(P&&P.key==null){h.value=m;return}if(!(P&&P.key!==e)){_();try{(P==null?void 0:P.newValue)!==b.write(h.value)&&(h.value=x(P))}catch(j){p(j)}finally{P?yn(v):v()}}}}function I(P){D(P.detail)}return h}function Tx(e){return Cx("(prefers-color-scheme: dark)",e)}function dD(e={}){const{document:t=nD}=e;if(!t)return ue("visible");const r=ue(t.visibilityState);return $n(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}function pD(e,t,r={}){const{window:n=Or,...o}=r;let s;const i=Om(()=>n&&"ResizeObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},l=Z(()=>Array.isArray(e)?e.map(f=>nn(f)):[nn(e)]),c=Oe(l,f=>{if(a(),i.value&&n){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Wo(u),{isSupported:i,stop:u}}function Pq(e,t={width:0,height:0},r={}){const{window:n=Or,box:o="content-box"}=r,s=Z(()=>{var f,d;return(d=(f=nn(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=ue(t.width),a=ue(t.height),{stop:l}=pD(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&s.value){const p=nn(e);if(p){const g=p.getBoundingClientRect();i.value=g.width,a.value=g.height}}else if(d){const p=Array.isArray(d)?d:[d];i.value=p.reduce((g,{inlineSize:h})=>g+h,0),a.value=p.reduce((g,{blockSize:h})=>g+h,0)}else i.value=f.contentRect.width,a.value=f.contentRect.height},r);hd(()=>{const f=nn(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=Oe(()=>nn(e),f=>{i.value=f?t.width:0,a.value=f?t.height:0});function u(){l(),c()}return{width:i,height:a,stop:u}}function hD(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:s=.1,window:i=Or,immediate:a=!0}=r,l=Om(()=>i&&"IntersectionObserver"in i),c=Z(()=>{const g=ar(e);return(Array.isArray(g)?g:[g]).map(nn).filter(KM)});let u=cn;const f=ue(a),d=l.value?Oe(()=>[c.value,nn(n),f.value],([g,h])=>{if(u(),!f.value||!g.length)return;const m=new IntersectionObserver(t,{root:nn(h),rootMargin:o,threshold:s});g.forEach(y=>y&&m.observe(y)),u=()=>{m.disconnect(),u=cn}},{immediate:a,flush:"post"}):cn,p=()=>{u(),d(),f.value=!1};return Wo(p),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}function Ax(e,t={}){const{window:r=Or,scrollTarget:n,threshold:o=0}=t,s=ue(!1);return hD(e,i=>{let a=s.value,l=0;for(const c of i)c.time>=l&&(l=c.time,a=c.isIntersecting);s.value=a},{root:n,window:r,threshold:o}),s}const gD=["mousemove","mousedown","resize","keydown","touchstart","wheel"],mD=6e4;function yD(e=mD,t={}){const{initialState:r=!1,listenForVisibilityChange:n=!0,events:o=gD,window:s=Or,eventFilter:i=Ex(50)}=t,a=ue(r),l=ue(af());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},f=pd(i,()=>{l.value=af(),u()});if(s){const d=s.document;for(const p of o)$n(s,p,f,{passive:!0});n&&$n(d,"visibilitychange",()=>{d.hidden||f()}),u()}return{idle:a,lastActive:l,reset:u}}const Hv=1;function _D(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=cn,onScroll:s=cn,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=Or,onError:u=x=>{console.error(x)}}=t,f=ue(0),d=ue(0),p=Z({get(){return f.value},set(x){h(x,void 0)}}),g=Z({get(){return d.value},set(x){h(void 0,x)}});function h(x,D){var I,P,j,L;if(!c)return;const G=ar(e);if(!G)return;(j=G instanceof Document?c.document.body:G)==null||j.scrollTo({top:(I=ar(D))!=null?I:g.value,left:(P=ar(x))!=null?P:p.value,behavior:ar(l)});const re=((L=G==null?void 0:G.document)==null?void 0:L.documentElement)||(G==null?void 0:G.documentElement)||G;p!=null&&(f.value=re.scrollLeft),g!=null&&(d.value=re.scrollTop)}const m=ue(!1),y=lr({left:!0,right:!1,top:!0,bottom:!1}),b=lr({left:!1,right:!1,top:!1,bottom:!1}),_=x=>{m.value&&(m.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,o(x))},v=QM(_,r+n),E=x=>{var D;if(!c)return;const I=((D=x==null?void 0:x.document)==null?void 0:D.documentElement)||(x==null?void 0:x.documentElement)||nn(x),{display:P,flexDirection:j}=getComputedStyle(I),L=I.scrollLeft;b.left=Lf.value;const G=Math.abs(L)<=(i.left||0),re=Math.abs(L)+I.clientWidth>=I.scrollWidth-(i.right||0)-Hv;P==="flex"&&j==="row-reverse"?(y.left=re,y.right=G):(y.left=G,y.right=re),f.value=L;let de=I.scrollTop;x===c.document&&!de&&(de=c.document.body.scrollTop),b.top=ded.value;const q=Math.abs(de)<=(i.top||0),ne=Math.abs(de)+I.clientHeight>=I.scrollHeight-(i.bottom||0)-Hv;P==="flex"&&j==="column-reverse"?(y.top=ne,y.bottom=q):(y.top=q,y.bottom=ne),d.value=de},S=x=>{var D;if(!c)return;const I=(D=x.target.documentElement)!=null?D:x.target;E(I),m.value=!0,v(x),s(x)};return $n(e,"scroll",r?eD(S,r,!0,!1):S,a),hd(()=>{try{const x=ar(e);if(!x)return;E(x)}catch(x){u(x)}}),$n(e,"scrollend",_,a),{x:p,y:g,isScrolling:m,arrivedState:y,directions:b,measure(){const x=ar(e);c&&x&&E(x)}}}function vD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Nq(e,t,r={}){var n;const{direction:o="bottom",interval:s=100,canLoadMore:i=()=>!0}=r,a=lr(_D(e,{...r,offset:{[o]:(n=r.distance)!=null?n:0,...r.offset}})),l=ue(),c=Z(()=>!!l.value),u=Z(()=>vD(ar(e))),f=Ax(u);function d(){if(a.measure(),!u.value||!f.value||!i(u.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:h,clientWidth:m}=u.value,y=o==="bottom"||o==="top"?p<=g:h<=m;(a.arrivedState[o]||y)&&(l.value||(l.value=Promise.all([t(a),new Promise(b=>setTimeout(b,s))]).finally(()=>{l.value=null,yn(()=>d())})))}return Oe(()=>[a.arrivedState[o],f.value],d,{immediate:!0}),{isLoading:c}}function Ix(e,t,r={}){const{window:n=Or}=r;return fD(e,t,n==null?void 0:n.localStorage,r)}function bD(e={}){const{controls:t=!1,offset:r=0,immediate:n=!0,interval:o="requestAnimationFrame",callback:s}=e,i=ue(af()+r),a=()=>i.value=af()+r,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?sD(l,{immediate:n}):tD(l,o,{immediate:n});return t?{timestamp:i,...c}:i}function wD(e="history",t={}){const{initialValue:r={},removeNullishValues:n=!0,removeFalsyValues:o=!1,write:s=!0,window:i=Or}=t;if(!i)return lr(r);const a=lr({});function l(){if(e==="history")return i.location.search||"";if(e==="hash"){const y=i.location.hash||"",b=y.indexOf("?");return b>0?y.slice(b):""}else return(i.location.hash||"").replace(/^#/,"")}function c(y){const b=y.toString();if(e==="history")return`${b?`?${b}`:""}${i.location.hash||""}`;if(e==="hash-params")return`${i.location.search||""}${b?`#${b}`:""}`;const _=i.location.hash||"#",v=_.indexOf("?");return v>0?`${_.slice(0,v)}${b?`?${b}`:""}`:`${_}${b?`?${b}`:""}`}function u(){return new URLSearchParams(l())}function f(y){const b=new Set(Object.keys(a));for(const _ of y.keys()){const v=y.getAll(_);a[_]=v.length>1?v:y.get(_)||"",b.delete(_)}Array.from(b).forEach(_=>delete a[_])}const{pause:d,resume:p}=kx(a,()=>{const y=new URLSearchParams("");Object.keys(a).forEach(b=>{const _=a[b];Array.isArray(_)?_.forEach(v=>y.append(b,v)):n&&_==null||o&&!_?y.delete(b):y.set(b,_)}),g(y)},{deep:!0});function g(y,b){d(),b&&f(y),i.history.replaceState(i.history.state,i.document.title,i.location.pathname+c(y)),p()}function h(){s&&g(u(),!0)}$n(i,"popstate",h,!1),e!=="history"&&$n(i,"hashchange",h,!1);const m=u();return m.keys().next().value?f(m):Object.assign(a,r),a}function Ox(e={}){const{window:t=Or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=ue(r),a=ue(n),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};if(l(),hd(l),$n("resize",l,{passive:!0}),o){const c=Cx("(orientation: portrait)");Oe(c,()=>l())}return{width:i,height:a}}const SD=Symbol("nuxt-ui.slideover"),ED=et(e=>{const t=fn({component:"div",props:{}});e.vueApp.provide(SD,t)}),xD=Symbol("nuxt-ui.modal"),kD=et(e=>{const t=fn({component:"div",props:{}});e.vueApp.provide(xD,t)}),Rm="-";function CD(e){const t=AD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(i){const a=i.split(Rm);return a[0]===""&&a.length!==1&&a.shift(),Rx(a,t)||TD(i)}function s(i,a){const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Rx(e,t){var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Rx(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Rm);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Vv=/^\[(.+)\]$/;function TD(e){if(Vv.test(e)){const t=Vv.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function AD(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return OD(Object.entries(e.classGroups),r).forEach(([s,i])=>{sg(i,n,s,t)}),n}function sg(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Wv(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(ID(o)){sg(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{sg(i,Wv(t,s),r,n)})})}function Wv(e,t){let r=e;return t.split(Rm).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function ID(e){return e.isThemeGetter}function OD(e,t){return t?e.map(([r,n])=>{const o=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[r,o]}):e}function RD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(s,i){r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}}const Lx="!";function LD(e){const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],s=t.length;function i(a){const l=[];let c=0,u=0,f;for(let m=0;mu?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}}return r?function(l){return r({className:l,parseClassName:i})}:i}function PD(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function ND(e){return{cache:RD(e.cacheSize),parseClassName:LD(e),...CD(e)}}const MD=/\s+/;function DD(e,t){const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(MD).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=r(i);let f=!!u,d=n(f?c.substring(0,u):c);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=n(c),!d)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=PD(a).join(":");return{isTailwindClass:!0,modifierId:l?p+Lx:p,classGroupId:d,originalClassName:i,hasPostfixModifier:f}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=i,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function zr(){let e=0,t,r,n="";for(;ef(u),e());return r=ND(c),n=r.cache.get,o=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=DD(l,r);return o(l,u),u}return function(){return s(zr.apply(null,arguments))}}function ft(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const Nx=/^\[(?:([a-z-]+):)?(.+)\]$/i,$D=/^\d+\/\d+$/,FD=new Set(["px","full","screen"]),UD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Gn(e){return Ss(e)||FD.has(e)||$D.test(e)}function Eo(e){return ga(e,"length",XD)}function Ss(e){return!!e&&!Number.isNaN(Number(e))}function Xc(e){return ga(e,"number",Ss)}function Ra(e){return!!e&&Number.isInteger(Number(e))}function WD(e){return e.endsWith("%")&&Ss(e.slice(0,-1))}function Ae(e){return Nx.test(e)}function xo(e){return UD.test(e)}const zD=new Set(["length","size","percentage"]);function GD(e){return ga(e,zD,Mx)}function qD(e){return ga(e,"position",Mx)}const KD=new Set(["image","url"]);function YD(e){return ga(e,KD,QD)}function ZD(e){return ga(e,"",JD)}function La(){return!0}function ga(e,t,r){const n=Nx.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function XD(e){return jD.test(e)&&!BD.test(e)}function Mx(){return!1}function JD(e){return HD.test(e)}function QD(e){return VD.test(e)}function ag(){const e=ft("colors"),t=ft("spacing"),r=ft("blur"),n=ft("brightness"),o=ft("borderColor"),s=ft("borderRadius"),i=ft("borderSpacing"),a=ft("borderWidth"),l=ft("contrast"),c=ft("grayscale"),u=ft("hueRotate"),f=ft("invert"),d=ft("gap"),p=ft("gradientColorStops"),g=ft("gradientColorStopPositions"),h=ft("inset"),m=ft("margin"),y=ft("opacity"),b=ft("padding"),_=ft("saturate"),v=ft("scale"),E=ft("sepia"),S=ft("skew"),x=ft("space"),D=ft("translate"),I=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",Ae,t],L=()=>[Ae,t],G=()=>["",Gn,Eo],re=()=>["auto",Ss,Ae],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],Te=()=>["","0",Ae],kt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[Ss,Xc],Xe=()=>[Ss,Ae];return{cacheSize:500,separator:":",theme:{colors:[La],spacing:[Gn,Eo],blur:["none","",xo,Ae],brightness:we(),borderColor:[e],borderRadius:["none","","full",xo,Ae],borderSpacing:L(),borderWidth:G(),contrast:we(),grayscale:Te(),hueRotate:Xe(),invert:Te(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[WD,Eo],inset:j(),margin:j(),opacity:we(),padding:L(),saturate:we(),scale:we(),sepia:Te(),skew:Xe(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Ae]}],container:["container"],columns:[{columns:[xo]}],"break-after":[{"break-after":kt()}],"break-before":[{"break-before":kt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),Ae]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ra,Ae]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ae]}],grow:[{grow:Te()}],shrink:[{shrink:Te()}],order:[{order:["first","last","none",Ra,Ae]}],"grid-cols":[{"grid-cols":[La]}],"col-start-end":[{col:["auto",{span:["full",Ra,Ae]},Ae]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[La]}],"row-start-end":[{row:["auto",{span:[Ra,Ae]},Ae]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ae]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ae,t]}],"min-w":[{"min-w":[Ae,t,"min","max","fit"]}],"max-w":[{"max-w":[Ae,t,"none","full","min","max","fit","prose",{screen:[xo]},xo]}],h:[{h:[Ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xo,Eo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xc]}],"font-family":[{font:[La]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ae]}],"line-clamp":[{"line-clamp":["none",Ss,Xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gn,Ae]}],"list-image":[{"list-image":["none",Ae]}],"list-style-type":[{list:["none","disc","decimal",Ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Gn,Eo]}],"underline-offset":[{"underline-offset":["auto",Gn,Ae]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...de(),qD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},YD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:q()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[Gn,Ae]}],"outline-w":[{outline:[Gn,Eo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Gn,Eo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xo,ZD]}],"shadow-color":[{shadow:[La]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xo,Ae]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ae]}],duration:[{duration:Xe()}],ease:[{ease:["linear","in","out","in-out",Ae]}],delay:[{delay:Xe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Ra,Ae]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ae]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Gn,Eo,Xc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function e$(e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:o,extend:s={},override:i={}}){Ja(e,"cacheSize",t),Ja(e,"prefix",r),Ja(e,"separator",n),Ja(e,"experimentalParseClassName",o);for(const a in i)t$(e[a],i[a]);for(const a in s)r$(e[a],s[a]);return e}function Ja(e,t,r){r!==void 0&&(e[t]=r)}function t$(e,t){if(t)for(const r in t)Ja(e,r,t[r])}function r$(e,t){if(t)for(const r in t){const n=t[r];n!==void 0&&(e[r]=(e[r]||[]).concat(n))}}function n$(e,...t){return typeof e=="function"?ig(ag,e,...t):ig(()=>e$(ag(),e),...t)}const zi=ig(ag);function o$(e,t){const r={...e};for(const n of t)delete r[n];return r}function s$(e,t,r){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let n=e;for(const o of t){if(n==null)return r;n=n[o]}return n!==void 0?n:r}const Lm={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},i$=e=>Object.keys(Lm).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{}),a$=n$({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),l$=ym((e,t,r,n)=>{if(n==="default"||n.startsWith("default.")||n==="popper"||n.startsWith("popper.")||n.endsWith("avatar")&&t==="size"||n.endsWith("chip")&&t==="size"||n.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof r=="string"&&e[t]&&r)return e[t]=a$(e[t],r),!0});function bc(e,...t){return e==="override"?_E({},...t):l$({},...t)}function zv(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,o,s,i){return o+o+s+s+i+i});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?`${parseInt(r[1],16)} ${parseInt(r[2],16)} ${parseInt(r[3],16)}`:null}const c$="inherit",u$="currentColor",f$="transparent",d$="#000",p$="#fff",h$={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},g$={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},m$={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},y$={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},_$={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},v$={50:"color-mix(in srgb, var(--colors-red-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-red-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-red-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-red-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-red-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-red-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-red-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-red-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-red-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-red-900) calc(100% * ), transparent)",950:"#450a0a"},b$={50:"color-mix(in srgb, var(--colors-orange-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-orange-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-orange-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-orange-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-orange-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-orange-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-orange-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-orange-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-orange-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-orange-900) calc(100% * ), transparent)",950:"#431407"},w$={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},S$={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},E$={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},x$={50:"color-mix(in srgb, var(--colors-green-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-green-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-green-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-green-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-green-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-green-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-green-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-green-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-green-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-green-900) calc(100% * ), transparent)",950:"#052e16"},k$={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},C$={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},T$={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},A$={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},I$={50:"color-mix(in srgb, var(--colors-blue-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-blue-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-blue-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-blue-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-blue-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-blue-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-blue-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-blue-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-blue-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-blue-900) calc(100% * ), transparent)",950:"#172554"},O$={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},R$={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},L$={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},P$={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},N$={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},M$={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},D$={white:"color-mix(in srgb, var(--colors-basic-white) calc(100% * ), transparent)",black:"color-mix(in srgb, var(--colors-basic-black) calc(100% * ), transparent)"},$$={50:"color-mix(in srgb, var(--colors-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-grey-900) calc(100% * ), transparent)"},F$={50:"color-mix(in srgb, var(--colors-true-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-true-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-true-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-true-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-true-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-true-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-true-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-true-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-true-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-true-grey-900) calc(100% * ), transparent)"},U$={50:"color-mix(in srgb, var(--colors-light-blue-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-light-blue-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-light-blue-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-light-blue-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-light-blue-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-light-blue-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-light-blue-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-light-blue-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-light-blue-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-light-blue-900) calc(100% * ), transparent)"},j$={50:"color-mix(in srgb, var(--colors-warm-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-warm-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-warm-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-warm-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-warm-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-warm-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-warm-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-warm-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-warm-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-warm-grey-900) calc(100% * ), transparent)"},B$={50:"color-mix(in srgb, var(--colors-light-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-light-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-light-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-light-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-light-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-light-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-light-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-light-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-light-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-light-900) calc(100% * ), transparent)"},H$={50:"color-mix(in srgb, var(--colors-dark-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-dark-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-dark-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-dark-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-dark-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-dark-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-dark-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-dark-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-dark-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-dark-900) calc(100% * ), transparent)"},V$={50:"color-mix(in srgb, var(--colors-informative-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-informative-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-informative-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-informative-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-informative-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-informative-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-informative-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-informative-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-informative-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-informative-900) calc(100% * ), transparent)"},W$={50:"color-mix(in srgb, var(--colors-positive-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-positive-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-positive-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-positive-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-positive-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-positive-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-positive-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-positive-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-positive-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-positive-900) calc(100% * ), transparent)"},z$={50:"color-mix(in srgb, var(--colors-warning-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-warning-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-warning-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-warning-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-warning-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-warning-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-warning-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-warning-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-warning-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-warning-900) calc(100% * ), transparent)"},G$={50:"color-mix(in srgb, var(--colors-negative-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-negative-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-negative-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-negative-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-negative-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-negative-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-negative-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-negative-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-negative-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-negative-900) calc(100% * ), transparent)"},q$={50:"color-mix(in srgb, var(--colors-brand-light-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-brand-light-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-brand-light-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-brand-light-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-brand-light-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-brand-light-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-brand-light-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-brand-light-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-brand-light-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-brand-light-900) calc(100% * ), transparent)"},K$={50:"color-mix(in srgb, var(--colors-brand-dark-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-brand-dark-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-brand-dark-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-brand-dark-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-brand-dark-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-brand-dark-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-brand-dark-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-brand-dark-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-brand-dark-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-brand-dark-900) calc(100% * ), transparent)"},Y$={default:"color-mix(in srgb, var(--colors-background) calc(100% * ), transparent)","default-strong":"color-mix(in srgb, var(--colors-background-default-strong) calc(100% * ), transparent)",neutral:{strong:"color-mix(in srgb, var(--colors-background-neutral-strong) calc(100% * ), transparent)",muted:"color-mix(in srgb, var(--colors-background-neutral-muted) calc(100% * ), transparent)",onSubtle:"color-mix(in srgb, var(--colors-background-neutral-on-subtle) calc(100% * ), transparent)",subtle:"color-mix(in srgb, var(--colors-background-neutral-subtle) calc(100% * ), transparent)",surface:"color-mix(in srgb, var(--colors-background-neutral-surface) calc(100% * ), transparent)"}},Z$={primary:"color-mix(in srgb, var(--colors-content-primary) calc(100% * ), transparent)",secondary:"color-mix(in srgb, var(--colors-content-secondary) calc(100% * ), transparent)",tertiary:"color-mix(in srgb, var(--colors-content-tertiary) calc(100% * ), transparent)","inverted-primary":"color-mix(in srgb, var(--colors-content-inverted-primary) calc(100% * ), transparent)","inverted-secondary":"color-mix(in srgb, var(--colors-content-inverted-secondary) calc(100% * ), transparent)",dark:"color-mix(in srgb, var(--colors-content-dark) calc(100% * ), transparent)",positive:"color-mix(in srgb, var(--colors-content-positive) calc(100% * ), transparent)",warning:"color-mix(in srgb, var(--colors-content-warning) calc(100% * ), transparent)",negative:"color-mix(in srgb, var(--colors-content-negative) calc(100% * ), transparent)"},X$={interaction:{normal:"color-mix(in srgb, var(--colors-border-interaction-normal) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-border-interaction-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-border-interaction-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-border-interaction-selected) calc(100% * ), transparent)",neutral:{normal:"color-mix(in srgb, var(--colors-border-interaction-neutral-normal) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-border-interaction-neutral-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-border-interaction-neutral-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-border-interaction-neutral-selected) calc(100% * ), transparent)"},alert:"color-mix(in srgb, var(--colors-border-interaction-alert) calc(100% * ), transparent)"},neutral:{subtle:"color-mix(in srgb, var(--colors-border-neutral-subtle) calc(100% * ), transparent)",strong:"color-mix(in srgb, var(--colors-border-neutral-strong) calc(100% * ), transparent)",onSubtle:{subtle:"color-mix(in srgb, var(--colors-border-neutral-on-subtle-subtle) calc(100% * ), transparent)",strong:"color-mix(in srgb, var(--colors-border-neutral-on-subtle-strong) calc(100% * ), transparent)"}}},J$={primary:{default:"color-mix(in srgb, var(--colors-action-primary) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-primary-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-primary-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-primary-selected) calc(100% * ), transparent)",subtle:{default:"color-mix(in srgb, var(--colors-action-primary-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-primary-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-primary-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-primary-subtle-selected) calc(100% * ), transparent)"}},neutral:{default:"color-mix(in srgb, var(--colors-action-neutral) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-selected) calc(100% * ), transparent)",subtle:{default:"color-mix(in srgb, var(--colors-action-neutral-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-subtle-selected) calc(100% * ), transparent)"},onSubtle:{default:"color-mix(in srgb, var(--colors-action-neutral-on-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-selected) calc(100% * ), transparent)"},onSubtleSecondary:{default:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-selected) calc(100% * ), transparent)"},onDefault:{default:"color-mix(in srgb, var(--colors-action-neutral-on-default) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-default-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-default-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-default-selected) calc(100% * ), transparent)",inverted:{default:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-selected) calc(100% * ), transparent)"}}},onBlack:{default:"color-mix(in srgb, var(--colors-action-on-black) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-on-black-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-on-black-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-on-black-selected) calc(100% * ), transparent)"},"white-transparent":{subtle:{default:"color-mix(in srgb, var(--colors-action-white-transparent-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-selected) calc(100% * ), transparent)"},default:"color-mix(in srgb, var(--colors-action-white-transparent) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-white-transparent-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-white-transparent-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-white-transparent-selected) calc(100% * ), transparent)"},"black-transparent":{subtle:{default:"color-mix(in srgb, var(--colors-action-black-transparent-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-selected) calc(100% * ), transparent)"},default:"color-mix(in srgb, var(--colors-action-black-transparent) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-black-transparent-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-black-transparent-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-black-transparent-selected) calc(100% * ), transparent)"}},Q$={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},eF={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Jc={inherit:c$,current:u$,transparent:f$,black:d$,white:p$,slate:h$,gray:g$,zinc:m$,neutral:y$,stone:_$,red:v$,orange:b$,amber:w$,yellow:S$,lime:E$,green:x$,emerald:k$,teal:C$,cyan:T$,sky:A$,blue:I$,indigo:O$,violet:R$,purple:L$,fuchsia:P$,pink:N$,rose:M$,basic:D$,grey:$$,trueGrey:F$,lightBlue:U$,warmGrey:j$,light:B$,dark:H$,informative:V$,positive:W$,warning:z$,negative:G$,brandLight:q$,brandDark:K$,background:Y$,content:Z$,border:X$,action:J$,primary:Q$,cool:eF,dark_mode_grey:"#9d9ea1",footer_color:"#666666",settings_box_border:"#75797d40",radio_group_bg_color:"#0d0e10",radio_group_text_color:"#2f3438",radio_group_text_color_dark:"#9d9ea1",radio_group_text_hover_dark:"#f0f0f1",radio_group_text_selected_dark:"#26272e",accuweather_orange:"#FF8700",settings_title_dark:"#F5F5F6",border_header_summary:"#9D9EA11A",news_tile_color:"#212121",weather_label:"#616161",weather_label_dark:"#727377",yahoo_logo:"#6101D1",magnifying_glass:"#5F6368",radio_group_text_selected_hover_dark:"#F0F0F1",three_dots_menu:"#333333",vertical_tab_shadow:"#dddddd",searchbox_results_bg:"#f0f0f0",searchbox_results_bg_dark:"#ffffff33",video_row_background:"#E6E9EF",onelaunch_green:"#13B115",onelaunch_grey:"#F7F8FB",onelaunch_dark:"#2B2B2B",onelaunch_border_grey:"#E2E5EB",onelaunch_grey_text:"#4B4E5C",onelaunch_grey_highlight:"#404040",onelaunch_color_red:"#FFC8C4",onelaunch_color_red_dark:"#911D14",onelaunch_color_green:"#C5EDD0",onelaunch_color_green_dark:"#8CC29A",onelaunch_color_text:"#191919",onelaunch_color_header:"#171717",onelaunch_white_text:"#FFFFFF",onelaunch_background_dark:"#191919",onelaunch_header_background_dark:"#171717",onelaunch_background_grey:"#2F2F2F",onelaunch_button_blue:"#096bfb",onelaunch_button_red:"#FF3C3C",onelaunch_ui_shades_50_blur:"#FFFFFFE6",onelaunch_ui_shades_50:"#FFFFFF",onelaunch_ui_shades_100:"#F8FAFC",onelaunch_ui_shades_200:"#f2f4f6",onelaunch_ui_shades_300:"#EAECEE",onelaunch_ui_shades_400:"#e3e6e9",onelaunch_ui_shades_500:"#dcdfe2",onelaunch_ui_shades_600:"#d2d6da",onelaunch_ui_shades_700:"#c7cbd0",onelaunch_ui_shades_800:"#a1a5a9",onelaunch_ui_shades_900:"#75797d",onelaunch_dark_shades_100:"#2F3438",onelaunch_dark_shades_200:"#222629",onelaunch_dark_shades_300:"#0F1213",onelaunch_dark_shades_300_08:"#0F121314",onelaunch_dark_shades_400:"#000000",onelaunch_primary_default:"#005EB7",onelaunch_primary_active:"#337FC6",onelaunch_primary_hover:"#1A6FC0",onelaunch_primary_shades_100:"#98ecfe",onelaunch_primary_shades_200:"#60ccfe",onelaunch_primary_shades_400:"#0078D4",onelaunch_primary_shades_600:"#003D92",onelaunch_secondary_default:"#03d4bf",onelaunch_secondary_hover:"#08e0cb",onelaunch_secondary_active:"#1bead5",onelaunch_green_active:"#0aa477",onelaunch_validation_default:"#de3905"},tF=et(()=>{const e=Lr(),t=Ce(),r=Z(()=>{const o=Jc[e.ui.primary],s=Jc[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||Jc.green).map(([i,a])=>`--color-primary-${i}: ${zv(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); ${Object.entries(s||Jc.cool).map(([i,a])=>`--color-gray-${i}: ${zv(a)};`).join(` `)} } .dark { --color-primary-DEFAULT: var(--color-primary-400); } `}),n={style:[{innerHTML:()=>r.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=r.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),n.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}$s(n)}),rF="__NUXT_COLOR_MODE__",nF="nuxt-color-mode",qn=window[rF]||{},oF=et(e=>{const t=ri("color-mode",()=>lr({preference:qn.preference,value:qn.value,unknown:!1,forced:!1})).value;Wt().afterEach(o=>{const s=o.meta.colorMode;s&&s!=="system"?(t.value=s,t.forced=!0):(s==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?qn.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=qn.getColorScheme())}))}Oe(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=qn.getColorScheme(),n()):t.value=o,(s=window.localStorage)==null||s.setItem(nF,o))},{immediate:!0}),Oe(()=>t.value,(o,s)=>{qn.removeColorScheme(s),qn.addColorScheme(o)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=qn.preference,t.value=qn.value,t.unknown=!1)}),e.provide("colorMode",t)});/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const lf=typeof window<"u",ts=(e,t=!1)=>t?Symbol.for(e):Symbol(e),sF=(e,t,r)=>iF({l:e,k:t,s:r}),iF=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Mt=e=>typeof e=="number"&&isFinite(e),aF=e=>Nm(e)==="[object Date]",cf=e=>Nm(e)==="[object RegExp]",gd=e=>Fe(e)&&Object.keys(e).length===0,Kt=Object.assign,lF=Object.create,nt=(e=null)=>lF(e);let Gv;const Pm=()=>Gv||(Gv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:nt());function qv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const cF=Object.prototype.hasOwnProperty;function on(e,t){return cF.call(e,t)}const Dt=Array.isArray,rt=e=>typeof e=="function",le=e=>typeof e=="string",bt=e=>typeof e=="boolean",We=e=>e!==null&&typeof e=="object",uF=e=>We(e)&&rt(e.then)&&rt(e.catch),Dx=Object.prototype.toString,Nm=e=>Dx.call(e),Fe=e=>Nm(e)==="[object Object]",fF=e=>e==null?"":Dt(e)||Fe(e)&&e.toString===Dx?JSON.stringify(e,null,2):String(e);function Mm(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}function dF(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Qc=e=>!We(e)||Dt(e);function $i(e,t){if(Qc(e)||Qc(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:o}=r.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(We(n[s])&&!We(o[s])&&(o[s]=Array.isArray(n[s])?[]:nt()),Qc(o[s])||Qc(n[s])?o[s]=n[s]:r.push({src:n[s],des:o[s]}))})}}const lo=[],lg={},pF=[()=>Jt(()=>import("./DB7imAev.js"),[],import.meta.url)],md=[],$x="@nuxtjs/i18n",hF=!1,gF="i18n_redirected",mF="nuxtI18nInternal",Kv="nuxt-i18n-slp";function yF(e){return e.map(t=>typeof t=="string"?{code:t}:t)}function yd(e){return typeof e=="string"?e:e!=null?e.toString():"(null)"}function Yv(e,t,{defaultLocale:r,strategy:n,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s,differentDomains:i}){const a=n!=="no_prefix"||i;let l=yd(e)+(a?o+t:"");return t===r&&n==="prefix_and_default"&&(l+=o+s),l}function _F(e,t){return rt(e)?e(t):e}function vF(e,t){const r=[];for(const[n,o]of t.entries()){const s=e.find(i=>i.language.toLowerCase()===o.toLowerCase());if(s){r.push({code:s.code,score:1-n/t.length});break}}for(const[n,o]of t.entries()){const s=o.split("-")[0].toLowerCase(),i=e.find(a=>a.language.split("-")[0].toLowerCase()===s);if(i){r.push({code:i.code,score:.999-n/t.length});break}}return r}function bF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function wF(e,t,{matcher:r=vF,comparer:n=bF}={}){const o=[];for(const i of e){const{code:a}=i,l=i.language||a;o.push({code:a,language:l})}const s=r(o,t);return s.length===0?"":(s.length>1&&s.sort(n),s[0].code)}function Dm(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const SF=`(${lo.join("|")})`,Zv=Dm(lo);function $m(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=lt().public.i18n,r=`(?:${e}${t})?`,n=new RegExp(`${e}${SF}${r}$`,"i");return s=>{let i=null;return typeof s=="string"?(i=s.match(Zv),(i==null?void 0:i[1])??""):(s.name?i=yd(s.name).match(n):s.path&&(i=s.path.match(Zv)),(i==null?void 0:i[1])??"")}}const hl=new Map;async function EF(e,t){const r={messages:{}};for(const n of e){const{default:o}=await n(),s=rt(o)?await t.runWithContext(()=>o()):o;$i(s,r)}return r}function Fx(e,t){if(e===!1)return[];if(Array.isArray(e))return e;let r=[];if(typeof e=="string")return t.every(o=>o!==e)&&r.push(e),r;const n=[...t,"default"];for(const o of n)o in e&&(r=[...r,...e[o].filter(Boolean)]);return r}async function xF(e,{key:t,load:r},n){let o=null;try{const s=await r().then(i=>"default"in i?i.default:i);rt(s)?o=await n.runWithContext(()=>s(e)):(o=s,o!=null&&hl&&hl.set(t,o))}catch(s){console.error("Failed locale loading: "+s.message)}return o}async function cg(e,t,r,n){const o=t[e];if(o==null)return;const s={};for(const i of o){let a=null;hl&&hl.has(i.key)&&i.cache?a=hl.get(i.key):a=await n.runWithContext(()=>xF(e,i,n)),a!=null&&$i(a,s)}r(e,s)}function kF(e){return e!=null&&"global"in e&&"mode"in e}function CF(e){return e!=null&&!("__composer"in e)&&"locale"in e&&qe(e.locale)}function Ux(e){return e!=null&&"__composer"in e}function uf(e){return kF(e)?e.global:e}function Qa(e){const t=uf(e);return CF(t)?t:Ux(t)?t.__composer:t}function Gi(e,t){const r=Ve(t);return r==null||!r.name?void 0:yd(r.name).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function Fm(e,t,r){var o;if(typeof t=="string"&&_n(t,{acceptRelative:!0}))return t;const n=Um(e,t,r);return n==null?"":((o=n.redirectedFrom)==null?void 0:o.fullPath)||n.fullPath}function _d(e,t,r){return Um(e,t,r)??void 0}function TF(e){if(typeof e!="string")return Object.assign({},e);if(e[0]==="/"){const{pathname:t,search:r,hash:n}=Ph(e);return{path:t,query:sd(r),hash:n}}return{name:e}}const AF=e=>!!e.path&&!e.name;function IF(e,t,r){const n=e.runtimeConfig.public.i18n;if(AF(t)){const s=RF(e,t,r),i=Gi(e,s);return i?(s.name=Yv(i,r,n),s):(MF(e.runtimeConfig)({...n,currentLocale:r})&&(t.path="/"+r+t.path),t.path=(n.trailingSlash?Ll:id)(t.path,!0),t)}t.name||(t.name=Gi(e,e.router.currentRoute.value));const o=Yv(t.name,r,n);return e.router.hasRoute(o)&&(t.name=o),t}function Um(e,t,r){try{const n=r||Ve(uf(e.i18n).locale),o=TF(t),s=e.router.resolve(IF(e,o,n));return s.name?s:e.router.resolve(t)}catch(n){if(Cn(n,1))return null}}function OF(e,t){var n;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return Ve(e.metaState.value);const r=t.meta||{};return((n=Ve(r))==null?void 0:n[mF])||{}}function ff(e,t,r){const n=r??e.router.currentRoute.value,o=Gi(e,n);if(!o)return"";const s=OF(e,n)[t],i={name:o,params:Object.assign({},n.params,s),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},a=Fm(e,i,t);return DF(e.runtimeConfig)(a,t)}function RF(e,t,r){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const n=t.path.slice(1),o=t.path[0]+r+(n&&"/"+n),s=e.router.options.routes.find(i=>i.path===o);return s==null?t:e.router.resolve(Object.assign({},t,s,{path:o}))}function jx(e){return{i18n:e??Ce().$i18n,router:Wt(),runtimeConfig:lt(),metaState:ri("nuxt-i18n-meta",()=>({}))}}async function Bx(e,t=!1){const r=Ce(),{differentDomains:n,skipSettingLocaleOnNavigate:o}=r.$config.public.i18n,s=wc(),i=Ve(r.$i18n.locale),a=Ve(r.$i18n.localeCodes);function l(d=i){s===!1||!s.useCookie||o||r.$i18n.setLocaleCookie(d)}const c=await r.$i18n.onBeforeLanguageSwitch(i,e,t,r);if(c&&a.includes(c)){if(i===c)return l(),!1;e=c}if(!e||!t&&n||i===e)return l(),!1;const u=Ve(r.$i18n.fallbackLocale),f=r.$i18n.mergeLocaleMessage.bind(r.$i18n);if(u){const d=Fx(u,[e]);await Promise.all(d.map(p=>cg(p,lg,f,r)))}return await cg(e,lg,f,r),o?!1:(l(e),r._vueI18n.__setLocale(e),await r.$i18n.onLanguageSwitched(i,e),!0)}function LF(e,t,r,n){const o=Ce(),{strategy:s,defaultLocale:i,differentDomains:a,multiDomainLocales:l}=o.$config.public.i18n,c=wc(),u=WF(e,n,r);if(u.locale&&u.from!=null&&lo.includes(u.locale))return u.locale;let f="";a||l?f||(f=zF(md,s,e)):s!=="no_prefix"&&(f||(f=t));const d=(lo.includes(u.locale)||n&&lo.includes(n))&&c&&c.useCookie&&n;return f||(f=d||r||i||""),f}function Hx({to:e,from:t,locale:r,routeLocale:n},o=!1){if(n===r||Ce().$i18n.strategy==="no_prefix")return"";const s=jx();let i=ff(s,r,e);return o&&!i&&(i=Fm(s,e.fullPath,r)),Lh(i,e.fullPath)||t&&Lh(i,t.fullPath)?"":i}const PF=()=>ri($x+":redirect",()=>"");async function Vx({nuxtApp:e,locale:t,route:r,redirectPath:n},o=!1){const{rootRedirect:s,differentDomains:i,multiDomainLocales:a,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(r.path==="/"&&s)return typeof s=="string"?n="/"+s:(n="/"+s.path,s.statusCode),n=e.$localePath(n,t),Oo(n,{});if(!(l&&(e._vueI18n.__pendingLocale=t,e._vueI18n.__pendingLocalePromise=new Promise(f=>{e._vueI18n.__resolvePendingLocalePromise=()=>f()}),!o))){if(a&&u==="prefix_except_default"){const f=vd(),d=c.find(g=>{var h;if(typeof g!="string")return(h=g.defaultForDomains)==null?void 0:h.find(m=>m===f)}),p=typeof d!="string"?d==null?void 0:d.code:void 0;if(r.path.startsWith(`/${p}`))return Oo(r.path.replace(`/${p}`,""));if(!r.path.startsWith(`/${t}`)&&t!==p){const h=$m()(r.path);return Oo(h!==""?`/${t+r.path.replace(`/${h}`,"")}`:`/${t+(r.path==="/"?"":r.path)}`)}return n&&r.path!==n?Oo(n):void 0}if(i){const f=PF();f.value&&f.value!==n&&(f.value="",window.location.assign(n))}else if(n)return Oo(n)}}function NF({currentLocale:e,defaultLocale:t,strategy:r}){return r!=="no_prefix"&&!(e===t&&(r==="prefix_and_default"||r==="prefix_except_default"))}function MF(e=lt()){return t=>NF(t)&&!e.public.i18n.differentDomains}function DF(e=lt()){return(t,r)=>{if(!e.public.i18n.differentDomains)return t;const n=zx(r);return n&&ei(n,t)||t}}function $F(){return()=>{const e=Ce(),{baseUrl:t,defaultLocale:r,differentDomains:n}=e.$config.public.i18n;if(rt(t))return t(e);const o=rt(r)?r():r;if(n&&o){const s=zx(o);if(s)return s}return t}}function Wx(e){return $x+" "+e}function FF(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function Us(e,t=jx()){return(...r)=>e(t,...r)}function UF(){let e;return navigator.languages&&(e=wF(md,navigator.languages)),e}function jF(){const e=wc(),t=e&&e.cookieKey||gF,r=new Date,n={expires:new Date(r.setDate(r.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(n.domain=e.cookieDomain),wu(t,n)}function BF(e,t,r){if(t===!1||!t.useCookie)return;const n=e.value??void 0;if(n!=null){if(lo.includes(n))return n;if(r)return e.value=r,r;e.value=void 0}}function HF(e,t,r){r===!1||!r.useCookie||(e.value=t)}const VF={locale:"",reason:"disabled"};function WF(e,t,r=""){const n=wc();if(!n)return VF;const o=Ce(),s=o.$i18n.strategy;if(!o._vueI18n.__firstAccess)return{locale:s==="no_prefix"?r:"",reason:"first_access_only"};const{redirectOn:a,alwaysRedirect:l,useCookie:c,fallbackLocale:u}=n,f=le(e)?e:e.path;if(s!=="no_prefix"){if(a==="root"&&f!=="/")return{locale:"",reason:"not_redirect_on_root"};if(a==="no prefix"&&!l&&f.match(Dm(lo)))return{locale:"",reason:"not_redirect_on_no_prefix"}}let d;const p=c&&t||void 0;c&&(d="cookie");const g=o.$i18n.getBrowserLocale();p||(d="navigator_or_header");const h=p||g,m=h||u||"";return!h&&u&&(d="fallback"),{locale:m,from:d}}function vd(){let e;return e=window.location.host,e}function zF(e,t,r){let n=vd()||"";const o=We(r)?r.path:le(r)?r:"";if(n){let s;const i=e.filter(a=>{if(a&&a.domain){let l=a.domain;return _n(a.domain)&&(l=a.domain.replace(/(http|https):\/\//,"")),l===n}else if(Array.isArray(a==null?void 0:a.domains))return a.domains.includes(n);return!1});if(i.length===1)s=i[0];else if(i.length>1)if(t==="no_prefix")console.warn(Wx("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s=i[0];else{if(r&&o&&o!==""){const a=o.match(Dm(i.map(l=>l.code)));a&&a.length>1&&(s=i.find(l=>l.code===a[1]))}s||(s=i.find(a=>Array.isArray(a.defaultForDomains)?a.defaultForDomains.includes(n):a.domainDefault))}if(s)return s.code;n=""}return n}function zx(e){var i,a,l;const t=lt();Ce();const r=vd(),n=t.public.i18n,o=md.find(c=>c.code===e),s=((a=(i=n==null?void 0:n.domainLocales)==null?void 0:i[e])==null?void 0:a.domain)||(o==null?void 0:o.domain)||((l=o==null?void 0:o.domains)==null?void 0:l.find(c=>c===r));if(s){if(_n(s,{strict:!0}))return s;let c;return c=new URL(window.location.origin).protocol,c+"//"+s}console.warn(Wx("Could not find domain name for locale "+e))}const wc=(e=lt().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;function GF(e,t){const{multiDomainLocales:r,strategy:n,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s}=e.$config.public.i18n;if(!r||!(n==="prefix_except_default"||n==="prefix_and_default"))return;const i=Wt(),a=[o,s].join("");for(const l of i.getRoutes()){const c=yd(l.name);if(c.endsWith(a)){i.removeRoute(c);continue}const u=c.split(o)[1];u===t&&i.addRoute({...l,path:l.path===`/${u}`?"/":l.path.replace(`/${u}`,"")})}}function qF(e){const{locales:t,defaultLocale:r,multiDomainLocales:n}=e.$config.public.i18n;let o=r||"";if(!n)return o;const s=vd();if(t.some(a=>typeof a!="string"&&Array.isArray(a.defaultForDomains))){const a=t.find(l=>typeof l=="string"||!Array.isArray(l.defaultForDomains)?!1:l.defaultForDomains.includes(s??""));o=(a==null?void 0:a.code)??""}return o}function KF({key:e,seo:t}){const r=Ce(),{defaultDirection:n}=lt().public.i18n,o=Ve(r.$i18n.locale),s=yF(Ve(r.$i18n.locales)),i=s.find(a=>a.code===o)||{code:o};return{key:e,seo:t,locale:o,locales:s,currentDir:i.dir||n,currentLocale:i,currentLanguage:i.language,baseUrl:ZF()}}function YF(e,{dir:t=!0,lang:r=!0,seo:n=!0,key:o="hid"}){const s={htmlAttrs:{},link:[],meta:[]},i=KF({seo:n,key:o});return i.baseUrl||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),i.locales==null||i.baseUrl==null||(t&&(s.htmlAttrs.dir=i.currentDir),r&&i.currentLanguage&&(s.htmlAttrs.lang=i.currentLanguage),n&&i.locale&&i.locales&&(s.link.push(...XF(e,i),...JF(e,i)),s.meta.push(...QF(e,i),...eU(i),...tU(i)))),s}function ZF(){const e=Ce(),t=Qa(e.$i18n);return ei(Ve(t.baseUrl),e.$config.app.baseURL)}function XF(e,t){const{defaultLocale:r,strategy:n}=lt().public.i18n,o=[];if(n==="no_prefix")return o;const s=new Map;for(const l of t.locales){if(!l.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[c,u]=l.language.split("-");c&&u&&(l.isCatchallLocale||!s.has(c))&&s.set(c,l),s.set(l.language,l)}const i=e.runtimeConfig.public.i18n.experimental.alternateLinkCanonicalQueries===!0,a=i?e.router.resolve({query:{}}):void 0;!e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR&&i&&(a.meta=e.router.currentRoute.value.meta);for(const[l,c]of s.entries()){const u=ff(e,c.code,a),f=ug(e,t);let d=fg(u,t.baseUrl);f&&i&&(d=`${d}?${f}`),u&&o.push({[t.key]:`i18n-alt-${l}`,rel:"alternate",href:d,hreflang:l})}if(r){const l=ff(e,r,a),c=ug(e,t);let u=fg(l,t.baseUrl);c&&i&&(u=`${u}?${c}`),l&&o.push({[t.key]:"i18n-xd",rel:"alternate",href:u,hreflang:"x-default"})}return o}function Gx(e,t){const r=e.router.currentRoute.value,n=_d(e,{...r,path:void 0,name:Gi(e,r)});if(!n)return"";let o=fg(n.path,t.baseUrl);const s=ug(e,t);return s&&(o=`${o}?${s}`),o}function JF(e,t){const r=Gx(e,t);return r?[{[t.key]:"i18n-can",rel:"canonical",href:r}]:[]}function ug(e,t){const r=e.router.currentRoute.value,n=_d(e,{...r,path:void 0,name:Gi(e,r)}),o=We(t.seo)&&t.seo.canonicalQueries||[],s=(n==null?void 0:n.query)||{},i=new URLSearchParams;for(const a of o)if(a in s){const l=s[a];Dt(l)?l.forEach(c=>i.append(a,c||"")):i.append(a,l||"")}return i.toString()||void 0}function QF(e,t){const r=Gx(e,t);return r?[{[t.key]:"i18n-og-url",property:"og:url",content:r}]:[]}function eU(e){return!e.currentLocale||!e.currentLanguage?[]:[{[e.key]:"i18n-og",property:"og:locale",content:qx(e.currentLanguage)}]}function tU(e){return e.locales.filter(r=>r.language&&r.language!==e.currentLanguage).map(r=>({[e.key]:`i18n-og-alt-${r.language}`,property:"og:locale:alternate",content:qx(r.language)}))}function qx(e){return(e||"").replace(/-/g,"_")}function fg(e,t){return e.match(/^https?:\/\//)?e:ei(t,e)}/*! * message-compiler v11.1.2 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function rU(e,t,r){return{line:e,column:t,offset:r}}function dg(e,t,r){return{start:e,end:t}}const Je={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},nU=17;function bd(e,t,r={}){const{domain:n,messages:o,args:s}=r,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=n,a}function oU(e){throw e}const Kn=" ",sU="\r",yr=` `,iU="\u2028",aU="\u2029";function lU(e){const t=e;let r=0,n=1,o=1,s=0;const i=x=>t[x]===sU&&t[x+1]===yr,a=x=>t[x]===yr,l=x=>t[x]===aU,c=x=>t[x]===iU,u=x=>i(x)||a(x)||l(x)||c(x),f=()=>r,d=()=>n,p=()=>o,g=()=>s,h=x=>i(x)||l(x)||c(x)?yr:t[x],m=()=>h(r),y=()=>h(r+s);function b(){return s=0,u(r)&&(n++,o=0),i(r)&&r++,r++,o++,t[r]}function _(){return i(r+s)&&s++,s++,t[r+s]}function v(){r=0,n=1,o=1,s=0}function E(x=0){s=x}function S(){const x=r+s;for(;x!==r;)b();s=0}return{index:f,line:d,column:p,peekOffset:g,charAt:h,currentChar:m,currentPeek:y,next:b,peek:_,reset:v,resetPeek:E,skipToPeek:S}}const ko=void 0,cU=".",Xv="'",uU="tokenizer";function fU(e,t={}){const r=t.location!==!1,n=lU(e),o=()=>n.index(),s=()=>rU(n.line(),n.column(),n.index()),i=s(),a=o(),l={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(k,T,M,...U){const z=c();if(T.column+=M,T.offset+=M,u){const K=r?dg(z.startLoc,T):null,R=bd(k,K,{domain:uU,args:U});u(R)}}function d(k,T,M){k.endLoc=s(),k.currentType=T;const U={type:T};return r&&(U.loc=dg(k.startLoc,k.endLoc)),M!=null&&(U.value=M),U}const p=k=>d(k,13);function g(k,T){return k.currentChar()===T?(k.next(),T):(f(Je.EXPECTED_TOKEN,s(),0,T),"")}function h(k){let T="";for(;k.currentPeek()===Kn||k.currentPeek()===yr;)T+=k.currentPeek(),k.peek();return T}function m(k){const T=h(k);return k.skipToPeek(),T}function y(k){if(k===ko)return!1;const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function b(k){if(k===ko)return!1;const T=k.charCodeAt(0);return T>=48&&T<=57}function _(k,T){const{currentType:M}=T;if(M!==2)return!1;h(k);const U=y(k.currentPeek());return k.resetPeek(),U}function v(k,T){const{currentType:M}=T;if(M!==2)return!1;h(k);const U=k.currentPeek()==="-"?k.peek():k.currentPeek(),z=b(U);return k.resetPeek(),z}function E(k,T){const{currentType:M}=T;if(M!==2)return!1;h(k);const U=k.currentPeek()===Xv;return k.resetPeek(),U}function S(k,T){const{currentType:M}=T;if(M!==7)return!1;h(k);const U=k.currentPeek()===".";return k.resetPeek(),U}function x(k,T){const{currentType:M}=T;if(M!==8)return!1;h(k);const U=y(k.currentPeek());return k.resetPeek(),U}function D(k,T){const{currentType:M}=T;if(!(M===7||M===11))return!1;h(k);const U=k.currentPeek()===":";return k.resetPeek(),U}function I(k,T){const{currentType:M}=T;if(M!==9)return!1;const U=()=>{const K=k.currentPeek();return K==="{"?y(k.peek()):K==="@"||K==="|"||K===":"||K==="."||K===Kn||!K?!1:K===yr?(k.peek(),U()):j(k,!1)},z=U();return k.resetPeek(),z}function P(k){h(k);const T=k.currentPeek()==="|";return k.resetPeek(),T}function j(k,T=!0){const M=(z=!1,K="")=>{const R=k.currentPeek();return R==="{"||R==="@"||!R?z:R==="|"?!(K===Kn||K===yr):R===Kn?(k.peek(),M(!0,Kn)):R===yr?(k.peek(),M(!0,yr)):!0},U=M();return T&&k.resetPeek(),U}function L(k,T){const M=k.currentChar();return M===ko?ko:T(M)?(k.next(),M):null}function G(k){const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function re(k){return L(k,G)}function de(k){const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function q(k){return L(k,de)}function ne(k){const T=k.charCodeAt(0);return T>=48&&T<=57}function oe(k){return L(k,ne)}function Te(k){const T=k.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function kt(k){return L(k,Te)}function we(k){let T="",M="";for(;T=oe(k);)M+=T;return M}function Xe(k){let T="";for(;;){const M=k.currentChar();if(M==="{"||M==="}"||M==="@"||M==="|"||!M)break;if(M===Kn||M===yr)if(j(k))T+=M,k.next();else{if(P(k))break;T+=M,k.next()}else T+=M,k.next()}return T}function je(k){m(k);let T="",M="";for(;T=q(k);)M+=T;return k.currentChar()===ko&&f(Je.UNTERMINATED_CLOSING_BRACE,s(),0),M}function tr(k){m(k);let T="";return k.currentChar()==="-"?(k.next(),T+=`-${we(k)}`):T+=we(k),k.currentChar()===ko&&f(Je.UNTERMINATED_CLOSING_BRACE,s(),0),T}function ze(k){return k!==Xv&&k!==yr}function gt(k){m(k),g(k,"'");let T="",M="";for(;T=L(k,ze);)T==="\\"?M+=W(k):M+=T;const U=k.currentChar();return U===yr||U===ko?(f(Je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),U===yr&&(k.next(),g(k,"'")),M):(g(k,"'"),M)}function W(k){const T=k.currentChar();switch(T){case"\\":case"'":return k.next(),`\\${T}`;case"u":return Q(k,T,4);case"U":return Q(k,T,6);default:return f(Je.UNKNOWN_ESCAPE_SEQUENCE,s(),0,T),""}}function Q(k,T,M){g(k,T);let U="";for(let z=0;z{const U=k.currentChar();return U==="{"||U==="@"||U==="|"||U==="("||U===")"||!U||U===Kn?M:(M+=U,k.next(),T(M))};return T("")}function C(k){m(k);const T=g(k,"|");return m(k),T}function A(k,T){let M=null;switch(k.currentChar()){case"{":return T.braceNest>=1&&f(Je.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),M=d(T,2,"{"),m(k),T.braceNest++,M;case"}":return T.braceNest>0&&T.currentType===2&&f(Je.EMPTY_PLACEHOLDER,s(),0),k.next(),M=d(T,3,"}"),T.braceNest--,T.braceNest>0&&m(k),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),M;case"@":return T.braceNest>0&&f(Je.UNTERMINATED_CLOSING_BRACE,s(),0),M=$(k,T)||p(T),T.braceNest=0,M;default:{let z=!0,K=!0,R=!0;if(P(k))return T.braceNest>0&&f(Je.UNTERMINATED_CLOSING_BRACE,s(),0),M=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,M;if(T.braceNest>0&&(T.currentType===4||T.currentType===5||T.currentType===6))return f(Je.UNTERMINATED_CLOSING_BRACE,s(),0),T.braceNest=0,B(k,T);if(z=_(k,T))return M=d(T,4,je(k)),m(k),M;if(K=v(k,T))return M=d(T,5,tr(k)),m(k),M;if(R=E(k,T))return M=d(T,6,gt(k)),m(k),M;if(!z&&!K&&!R)return M=d(T,12,ie(k)),f(Je.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,M.value),m(k),M;break}}return M}function $(k,T){const{currentType:M}=T;let U=null;const z=k.currentChar();switch((M===7||M===8||M===11||M===9)&&(z===yr||z===Kn)&&f(Je.INVALID_LINKED_FORMAT,s(),0),z){case"@":return k.next(),U=d(T,7,"@"),T.inLinked=!0,U;case".":return m(k),k.next(),d(T,8,".");case":":return m(k),k.next(),d(T,9,":");default:return P(k)?(U=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,U):S(k,T)||D(k,T)?(m(k),$(k,T)):x(k,T)?(m(k),d(T,11,te(k))):I(k,T)?(m(k),z==="{"?A(k,T)||U:d(T,10,be(k))):(M===7&&f(Je.INVALID_LINKED_FORMAT,s(),0),T.braceNest=0,T.inLinked=!1,B(k,T))}}function B(k,T){let M={type:13};if(T.braceNest>0)return A(k,T)||p(T);if(T.inLinked)return $(k,T)||p(T);switch(k.currentChar()){case"{":return A(k,T)||p(T);case"}":return f(Je.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),d(T,3,"}");case"@":return $(k,T)||p(T);default:{if(P(k))return M=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,M;if(j(k))return d(T,0,Xe(k));break}}return M}function H(){const{currentType:k,offset:T,startLoc:M,endLoc:U}=l;return l.lastType=k,l.lastOffset=T,l.lastStartLoc=M,l.lastEndLoc=U,l.offset=o(),l.startLoc=s(),n.currentChar()===ko?d(l,13):B(n,l)}return{nextToken:H,currentOffset:o,currentPosition:s,context:c}}const dU="parser",pU=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function hU(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function gU(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,b,_,v,...E){const S=y.currentPosition();if(S.offset+=v,S.column+=v,r){const x=t?dg(_,S):null,D=bd(b,x,{domain:dU,args:E});r(D)}}function o(y,b,_){const v={type:y};return t&&(v.start=b,v.end=b,v.loc={start:_,end:_}),v}function s(y,b,_,v){t&&(y.end=b,y.loc&&(y.loc.end=_))}function i(y,b){const _=y.context(),v=o(3,_.offset,_.startLoc);return v.value=b,s(v,y.currentOffset(),y.currentPosition()),v}function a(y,b){const _=y.context(),{lastOffset:v,lastStartLoc:E}=_,S=o(5,v,E);return S.index=parseInt(b,10),y.nextToken(),s(S,y.currentOffset(),y.currentPosition()),S}function l(y,b){const _=y.context(),{lastOffset:v,lastStartLoc:E}=_,S=o(4,v,E);return S.key=b,y.nextToken(),s(S,y.currentOffset(),y.currentPosition()),S}function c(y,b){const _=y.context(),{lastOffset:v,lastStartLoc:E}=_,S=o(9,v,E);return S.value=b.replace(pU,hU),y.nextToken(),s(S,y.currentOffset(),y.currentPosition()),S}function u(y){const b=y.nextToken(),_=y.context(),{lastOffset:v,lastStartLoc:E}=_,S=o(8,v,E);return b.type!==11?(n(y,Je.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),S.value="",s(S,v,E),{nextConsumeToken:b,node:S}):(b.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,xn(b)),S.value=b.value||"",s(S,y.currentOffset(),y.currentPosition()),{node:S})}function f(y,b){const _=y.context(),v=o(7,_.offset,_.startLoc);return v.value=b,s(v,y.currentOffset(),y.currentPosition()),v}function d(y){const b=y.context(),_=o(6,b.offset,b.startLoc);let v=y.nextToken();if(v.type===8){const E=u(y);_.modifier=E.node,v=E.nextConsumeToken||y.nextToken()}switch(v.type!==9&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),v=y.nextToken(),v.type===2&&(v=y.nextToken()),v.type){case 10:v.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=f(y,v.value||"");break;case 4:v.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=l(y,v.value||"");break;case 5:v.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=a(y,v.value||"");break;case 6:v.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=c(y,v.value||"");break;default:{n(y,Je.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const E=y.context(),S=o(7,E.offset,E.startLoc);return S.value="",s(S,E.offset,E.startLoc),_.key=S,s(_,E.offset,E.startLoc),{nextConsumeToken:v,node:_}}}return s(_,y.currentOffset(),y.currentPosition()),{node:_}}function p(y){const b=y.context(),_=b.currentType===1?y.currentOffset():b.offset,v=b.currentType===1?b.endLoc:b.startLoc,E=o(2,_,v);E.items=[];let S=null;do{const I=S||y.nextToken();switch(S=null,I.type){case 0:I.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),E.items.push(i(y,I.value||""));break;case 5:I.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),E.items.push(a(y,I.value||""));break;case 4:I.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),E.items.push(l(y,I.value||""));break;case 6:I.value==null&&n(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),E.items.push(c(y,I.value||""));break;case 7:{const P=d(y);E.items.push(P.node),S=P.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const x=b.currentType===1?b.lastOffset:y.currentOffset(),D=b.currentType===1?b.lastEndLoc:y.currentPosition();return s(E,x,D),E}function g(y,b,_,v){const E=y.context();let S=v.items.length===0;const x=o(1,b,_);x.cases=[],x.cases.push(v);do{const D=p(y);S||(S=D.items.length===0),x.cases.push(D)}while(E.currentType!==13);return S&&n(y,Je.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),s(x,y.currentOffset(),y.currentPosition()),x}function h(y){const b=y.context(),{offset:_,startLoc:v}=b,E=p(y);return b.currentType===13?E:g(y,_,v,E)}function m(y){const b=fU(y,Kt({},e)),_=b.context(),v=o(0,_.offset,_.startLoc);return t&&v.loc&&(v.loc.source=y),v.body=h(b),e.onCacheKey&&(v.cacheKey=e.onCacheKey(y)),_.currentType!==13&&n(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,y[_.offset]||""),s(v,b.currentOffset(),b.currentPosition()),v}return{parse:m}}function xn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function mU(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:s=>(r.helpers.add(s),s)}}function Jv(e,t){for(let r=0;rQv(r)),e}function Qv(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;ri;function l(h,m){i.code+=h}function c(h,m=!0){const y=m?n:"";l(o?y+" ".repeat(h):y)}function u(h=!0){const m=++i.indentLevel;h&&c(m)}function f(h=!0){const m=--i.indentLevel;h&&c(m)}function d(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:d,helper:h=>`_${h}`,needIndent:()=>i.needIndent}}function bU(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),qi(e,t.key),t.modifier?(e.push(", "),qi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function wU(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const o=t.items.length;for(let s=0;s1){e.push(`${r("plural")}([`),e.indent(n());const o=t.cases.length;for(let s=0;s{const r=le(t.mode)?t.mode:"normal",n=le(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":` `,s=t.needIndent?t.needIndent:r!=="arrow",i=e.helpers||[],a=vU(e,{filename:n,breakLineCode:o,needIndent:s});a.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),i.length>0&&(a.push(`const { ${Mm(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),qi(a,e),a.deindent(s),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function kU(e,t={}){const r=Kt({},t),n=!!r.jit,o=!!r.minify,s=r.optimize==null?!0:r.optimize,a=gU(r).parse(e);return n?(s&&_U(a),o&&yi(a),{ast:a,code:""}):(yU(a,r),xU(a,r))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function CU(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Pm().__INTLIFY_PROD_DEVTOOLS__=!1)}function gp(e){return r=>TU(r,e)}function TU(e,t){const r=IU(t);if(r==null)throw Ul(0);if(Bm(r)===1){const s=RU(r);return e.plural(s.reduce((i,a)=>[...i,eb(e,a)],[]))}else return eb(e,r)}const AU=["b","body"];function IU(e){return rs(e,AU)}const OU=["c","cases"];function RU(e){return rs(e,OU,[])}function eb(e,t){const r=PU(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=MU(t).reduce((o,s)=>[...o,pg(e,s)],[]);return e.normalize(n)}}const LU=["s","static"];function PU(e){return rs(e,LU)}const NU=["i","items"];function MU(e){return rs(e,NU,[])}function pg(e,t){const r=Bm(t);switch(r){case 3:return eu(t,r);case 9:return eu(t,r);case 4:{const n=t;if(on(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(on(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw Ul(r)}case 5:{const n=t;if(on(n,"i")&&Mt(n.i))return e.interpolate(e.list(n.i));if(on(n,"index")&&Mt(n.index))return e.interpolate(e.list(n.index));throw Ul(r)}case 6:{const n=t,o=UU(n),s=BU(n);return e.linked(pg(e,s),o?pg(e,o):void 0,e.type)}case 7:return eu(t,r);case 8:return eu(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const DU=["t","type"];function Bm(e){return rs(e,DU)}const $U=["v","value"];function eu(e,t){const r=rs(e,$U);if(r)return r;throw Ul(t)}const FU=["m","modifier"];function UU(e){return rs(e,FU)}const jU=["k","key"];function BU(e){const t=rs(e,jU);if(t)return t;throw Ul(6)}function rs(e,t,r){for(let n=0;ne;let tu=nt();function Ki(e){return We(e)&&Bm(e)===0&&(on(e,"b")||on(e,"body"))}function VU(e,t={}){let r=!1;const n=t.onError||oU;return t.onError=o=>{r=!0,n(o)},{...kU(e,t),detectError:r}}function WU(e,t){if(le(e)){bt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||HU)(e),o=tu[n];if(o)return o;const{ast:s,detectError:i}=VU(e,{...t,location:!1,jit:!0}),a=gp(s);return i?a:tu[n]=a}else{const r=e.cacheKey;if(r){const n=tu[r];return n||(tu[r]=gp(e))}else return gp(e)}}let jl=null;function zU(e){jl=e}function GU(e,t,r){jl&&jl.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const qU=KU("function:translate");function KU(e){return t=>jl&&jl.emit(e,t)}const io={INVALID_ARGUMENT:nU,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},YU=24;function ao(e){return bd(e,null,void 0)}function Hm(e,t){return t.locale!=null?tb(t.locale):tb(e.locale)}let mp;function tb(e){if(le(e))return e;if(rt(e)){if(e.resolvedOnce&&mp!=null)return mp;if(e.constructor.name==="Function"){const t=e();if(uF(t))throw ao(io.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return mp=t}else throw ao(io.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ao(io.NOT_SUPPORT_LOCALE_TYPE)}function ZU(e,t,r){return[...new Set([r,...Dt(t)?t:We(t)?Object.keys(t):le(t)?[t]:[r]])]}function Kx(e,t,r){const n=le(r)?r:df,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(n);if(!s){s=[];let i=[r];for(;Dt(i);)i=rb(s,i,t);const a=Dt(t)||!Fe(t)?t:t.default?t.default:null;i=le(a)?[a]:a,Dt(i)&&rb(s,i,!1),o.__localeChainCache.set(n,s)}return s}function rb(e,t,r){let n=!0;for(let o=0;o{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,n=4,d[0]();else{if(o=0,i===void 0||(i=nj(i),i===!1))return!1;d[1]()}};function p(){const g=e[r+1];if(n===5&&g==="'"||n===6&&g==='"')return r++,a="\\"+g,d[0](),!0}for(;n!==null;)if(r++,s=e[r],!(s==="\\"&&p())){if(l=rj(s),f=ns[n],c=f[l]||f.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=s,u()===!1))))return;if(n===7)return t}}const nb=new Map;function sj(e,t){return We(e)?e[t]:null}function ij(e,t){if(!We(e))return null;let r=nb.get(t);if(r||(r=oj(t),r&&nb.set(t,r)),!r)return null;const n=r.length;let o=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function lj(){return{upper:(e,t)=>t==="text"&&le(e)?e.toUpperCase():t==="vnode"&&We(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&le(e)?e.toLowerCase():t==="vnode"&&We(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&le(e)?sb(e):t==="vnode"&&We(e)&&"__v_isVNode"in e?sb(e.children):e}}let Yx;function cj(e){Yx=e}let Zx;function uj(e){Zx=e}let Xx;function fj(e){Xx=e}let Jx=null;const dj=e=>{Jx=e},pj=()=>Jx;let Qx=null;const ib=e=>{Qx=e},hj=()=>Qx;let ab=0;function gj(e={}){const t=rt(e.onWarn)?e.onWarn:dF,r=le(e.version)?e.version:aj,n=le(e.locale)||rt(e.locale)?e.locale:df,o=rt(n)?df:n,s=Dt(e.fallbackLocale)||Fe(e.fallbackLocale)||le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Fe(e.messages)?e.messages:yp(o),a=Fe(e.datetimeFormats)?e.datetimeFormats:yp(o),l=Fe(e.numberFormats)?e.numberFormats:yp(o),c=Kt(nt(),e.modifiers,lj()),u=e.pluralRules||nt(),f=rt(e.missing)?e.missing:null,d=bt(e.missingWarn)||cf(e.missingWarn)?e.missingWarn:!0,p=bt(e.fallbackWarn)||cf(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,h=!!e.unresolving,m=rt(e.postTranslation)?e.postTranslation:null,y=Fe(e.processor)?e.processor:null,b=bt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,v=rt(e.messageCompiler)?e.messageCompiler:Yx,E=rt(e.messageResolver)?e.messageResolver:Zx||sj,S=rt(e.localeFallbacker)?e.localeFallbacker:Xx||ZU,x=We(e.fallbackContext)?e.fallbackContext:void 0,D=e,I=We(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=We(D.__numberFormatters)?D.__numberFormatters:new Map,j=We(D.__meta)?D.__meta:{};ab++;const L={version:r,cid:ab,locale:n,fallbackLocale:s,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:h,postTranslation:m,processor:y,warnHtmlMessage:b,escapeParameter:_,messageCompiler:v,messageResolver:E,localeFallbacker:S,fallbackContext:x,onWarn:t,__meta:j};return L.datetimeFormats=a,L.numberFormats=l,L.__datetimeFormatters=I,L.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&GU(L,r,j),L}const yp=e=>({[e]:nt()});function Vm(e,t,r,n,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,r,t,o);return le(a)?a:t}else return t}function Pa(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function mj(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function yj(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{ek.includes(l)?i[l]=r[l]:s[l]=r[l]}),le(n)?s.locale=n:Fe(n)&&(i=n),Fe(o)&&(i=o),[s.key||"",a,s,i]}function cb(e,t,r){const n=e;for(const o in r){const s=`${t}__${o}`;n.__datetimeFormatters.has(s)&&n.__datetimeFormatters.delete(s)}}function ub(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=gg(...t),d=bt(u.missingWarn)?u.missingWarn:e.missingWarn;bt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=Hm(e,u),h=i(e,o,g);if(!le(l)||l==="")return new Intl.NumberFormat(g,f).format(c);let m={},y,b=null;const _="number format";for(let S=0;S{tk.includes(l)?i[l]=r[l]:s[l]=r[l]}),le(n)?s.locale=n:Fe(n)&&(i=n),Fe(o)&&(i=o),[s.key||"",a,s,i]}function fb(e,t,r){const n=e;for(const o in r){const s=`${t}__${o}`;n.__numberFormatters.has(s)&&n.__numberFormatters.delete(s)}}const _j=e=>e,vj=e=>"",bj="text",wj=e=>e.length===0?"":Mm(e),Sj=fF;function db(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ej(e){const t=Mt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Mt(e.named.count)||Mt(e.named.n))?Mt(e.named.count)?e.named.count:Mt(e.named.n)?e.named.n:t:t}function xj(e,t){t.count||(t.count=e),t.n||(t.n=e)}function kj(e={}){const t=e.locale,r=Ej(e),n=We(e.pluralRules)&&le(t)&&rt(e.pluralRules[t])?e.pluralRules[t]:db,o=We(e.pluralRules)&&le(t)&&rt(e.pluralRules[t])?db:void 0,s=y=>y[n(r,y.length,o)],i=e.list||[],a=y=>i[y],l=e.named||nt();Mt(e.pluralIndex)&&xj(r,l);const c=y=>l[y];function u(y,b){const _=rt(e.messages)?e.messages(y,!!b):We(e.messages)?e.messages[y]:!1;return _||(e.parent?e.parent.message(y):vj)}const f=y=>e.modifiers?e.modifiers[y]:_j,d=Fe(e.processor)&&rt(e.processor.normalize)?e.processor.normalize:wj,p=Fe(e.processor)&&rt(e.processor.interpolate)?e.processor.interpolate:Sj,g=Fe(e.processor)&&le(e.processor.type)?e.processor.type:bj,m={list:a,named:c,plural:s,linked:(y,...b)=>{const[_,v]=b;let E="text",S="";b.length===1?We(_)?(S=_.modifier||S,E=_.type||E):le(_)&&(S=_||S):b.length===2&&(le(_)&&(S=_||S),le(v)&&(E=v||E));const x=u(y,!0)(m),D=E==="vnode"&&Dt(x)&&S?x[0]:x;return S?f(S)(D,E):D},message:u,type:g,interpolate:p,normalize:d,values:Kt(nt(),i,l)};return m}const pb=()=>"",Vr=e=>rt(e);function hb(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=mg(...t),u=bt(c.missingWarn)?c.missingWarn:e.missingWarn,f=bt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=bt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=le(c.default)||bt(c.default)?bt(c.default)?s?l:()=>l:c.default:r?s?l:()=>l:null,h=r||g!=null&&(le(g)||rt(g)),m=Hm(e,c);d&&Cj(c);let[y,b,_]=p?[l,m,a[m]||nt()]:rk(e,l,m,i,f,u),v=y,E=l;if(!p&&!(le(v)||Ki(v)||Vr(v))&&h&&(v=g,E=v),!p&&(!(le(v)||Ki(v)||Vr(v))||!le(b)))return o?wd:l;let S=!1;const x=()=>{S=!0},D=Vr(v)?v:nk(e,l,b,v,E,x);if(S)return v;const I=Ij(e,b,_,c),P=kj(I),j=Tj(e,D,P),L=n?n(j,l):j;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:le(l)?l:Vr(v)?v.key:"",locale:b||(Vr(v)?v.locale:""),format:le(v)?v:Vr(v)?v.source:"",message:L};G.meta=Kt({},e.__meta,pj()||{}),qU(G)}return L}function Cj(e){Dt(e.list)?e.list=e.list.map(t=>le(t)?qv(t):t):We(e.named)&&Object.keys(e.named).forEach(t=>{le(e.named[t])&&(e.named[t]=qv(e.named[t]))})}function rk(e,t,r,n,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,n,r);let f=nt(),d,p=null;const g="translate";for(let h=0;hn;return c.locale=r,c.key=t,c}const l=i(n,Aj(e,r,o,n,a,s));return l.locale=r,l.key=t,l.source=n,l}function Tj(e,t,r){return t(r)}function mg(...e){const[t,r,n]=e,o=nt();if(!le(t)&&!Mt(t)&&!Vr(t)&&!Ki(t))throw ao(io.INVALID_ARGUMENT);const s=Mt(t)?String(t):(Vr(t),t);return Mt(r)?o.plural=r:le(r)?o.default=r:Fe(r)&&!gd(r)?o.named=r:Dt(r)&&(o.list=r),Mt(n)?o.plural=n:le(n)?o.default=n:Fe(n)&&Kt(o,n),[s,o]}function Aj(e,t,r,n,o,s){return{locale:t,key:r,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>sF(t,r,i)}}function Ij(e,t,r,n){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:o,pluralRules:s,messages:(p,g)=>{let h=i(r,p);if(h==null&&(u||g)){const[,,m]=rk(u||e,p,t,a,l,c);h=i(m,p)}if(le(h)||Ki(h)){let m=!1;const b=nk(e,p,t,h,p,()=>{m=!0});return m?pb:b}else return Vr(h)?h:pb}};return e.processor&&(d.processor=e.processor),n.list&&(d.list=n.list),n.named&&(d.named=n.named),Mt(n.plural)&&(d.pluralIndex=n.plural),d}CU();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const Oj="10.0.5";function Rj(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Pm().__INTLIFY_PROD_DEVTOOLS__=!1)}const Kr={UNEXPECTED_RETURN_TYPE:YU,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function hn(e,...t){return bd(e,null,void 0)}const yg=ts("__translateVNode"),_g=ts("__datetimeParts"),vg=ts("__numberParts"),Lj=ts("__setPluralRules"),Pj=ts("__injectWithOption"),bg=ts("__dispose");function Bl(e){if(!We(e))return e;for(const t in e)if(on(e,t))if(!t.includes("."))We(e[t])&&Bl(e[t]);else{const r=t.split("."),n=r.length-1;let o=e,s=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||nt(),$i(c,i[l])):$i(c,i)}else le(a)&&$i(JSON.parse(a),i)}),o==null&&s)for(const a in i)on(i,a)&&Bl(i[a]);return i}function sk(e){return e.type}function Nj(e,t,r){let n=We(t.messages)?t.messages:nt();"__i18nGlobal"in r&&(n=ok(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,n[s])});{if(We(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(We(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function gb(e){return at(Bo,null,e,0)}const mb="__INTLIFY_META__",yb=()=>[],Mj=()=>!1;let _b=0;function vb(e){return(t,r,n,o)=>e(r,n,ur()||void 0,o)}const Dj=()=>{const e=ur();let t=null;return e&&(t=sk(e)[mb])?{[mb]:t}:null};function ik(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,o=e.flatJson,s=lf?ue:fn;let i=bt(e.inheritLocale)?e.inheritLocale:!0;const a=s(t&&i?t.locale.value:le(e.locale)?e.locale:df),l=s(t&&i?t.fallbackLocale.value:le(e.fallbackLocale)||Dt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=s(ok(a.value,e)),u=s(Fe(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=s(Fe(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:bt(e.missingWarn)||cf(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:bt(e.fallbackWarn)||cf(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:bt(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,m=rt(e.missing)?e.missing:null,y=rt(e.missing)?vb(e.missing):null,b=rt(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:bt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const E=t?t.modifiers:Fe(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,x;x=(()=>{n&&ib(null);const R={version:Oj,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:E,pluralRules:S,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=u.value,R.numberFormats=f.value,R.__datetimeFormatters=Fe(x)?x.__datetimeFormatters:void 0,R.__numberFormatters=Fe(x)?x.__numberFormatters:void 0;const F=gj(R);return n&&ib(F),F})(),Pa(x,a.value,l.value);function I(){return[a.value,l.value,c.value,u.value,f.value]}const P=Z({get:()=>a.value,set:R=>{a.value=R,x.locale=a.value}}),j=Z({get:()=>l.value,set:R=>{l.value=R,x.fallbackLocale=l.value,Pa(x,a.value,R)}}),L=Z(()=>c.value),G=Z(()=>u.value),re=Z(()=>f.value);function de(){return rt(b)?b:null}function q(R){b=R,x.postTranslation=R}function ne(){return m}function oe(R){R!==null&&(y=vb(R)),m=R,x.missing=y}const Te=(R,F,ee,fe,Le,Pe)=>{I();let mt;try{__INTLIFY_PROD_DEVTOOLS__,n||(x.fallbackContext=t?hj():void 0),mt=R(x)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(x.fallbackContext=void 0)}if(ee!=="translate exists"&&Mt(mt)&&mt===wd||ee==="translate exists"&&!mt){const[Tt,Yt]=F();return t&&g?fe(t):Le(Tt)}else{if(Pe(mt))return mt;throw hn(Kr.UNEXPECTED_RETURN_TYPE)}};function kt(...R){return Te(F=>Reflect.apply(hb,null,[F,...R]),()=>mg(...R),"translate",F=>Reflect.apply(F.t,F,[...R]),F=>F,F=>le(F))}function we(...R){const[F,ee,fe]=R;if(fe&&!We(fe))throw hn(Kr.INVALID_ARGUMENT);return kt(F,ee,Kt({resolvedMessage:!0},fe||{}))}function Xe(...R){return Te(F=>Reflect.apply(lb,null,[F,...R]),()=>hg(...R),"datetime format",F=>Reflect.apply(F.d,F,[...R]),()=>ob,F=>le(F))}function je(...R){return Te(F=>Reflect.apply(ub,null,[F,...R]),()=>gg(...R),"number format",F=>Reflect.apply(F.n,F,[...R]),()=>ob,F=>le(F))}function tr(R){return R.map(F=>le(F)||Mt(F)||bt(F)?gb(String(F)):F)}const gt={normalize:tr,interpolate:R=>R,type:"vnode"};function W(...R){return Te(F=>{let ee;const fe=F;try{fe.processor=gt,ee=Reflect.apply(hb,null,[fe,...R])}finally{fe.processor=null}return ee},()=>mg(...R),"translate",F=>F[yg](...R),F=>[gb(F)],F=>Dt(F))}function Q(...R){return Te(F=>Reflect.apply(ub,null,[F,...R]),()=>gg(...R),"number format",F=>F[vg](...R),yb,F=>le(F)||Dt(F))}function J(...R){return Te(F=>Reflect.apply(lb,null,[F,...R]),()=>hg(...R),"datetime format",F=>F[_g](...R),yb,F=>le(F)||Dt(F))}function ie(R){S=R,x.pluralRules=S}function te(R,F){return Te(()=>{if(!R)return!1;const ee=le(F)?F:a.value,fe=A(ee),Le=x.messageResolver(fe,R);return Ki(Le)||Vr(Le)||le(Le)},()=>[R],"translate exists",ee=>Reflect.apply(ee.te,ee,[R,F]),Mj,ee=>bt(ee))}function be(R){let F=null;const ee=Kx(x,l.value,a.value);for(let fe=0;fe{i&&(a.value=R,x.locale=R,Pa(x,a.value,l.value))}),Oe(t.fallbackLocale,R=>{i&&(l.value=R,x.fallbackLocale=R,Pa(x,a.value,l.value))}));const K={id:_b,locale:P,fallbackLocale:j,get inheritLocale(){return i},set inheritLocale(R){i=R,R&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Pa(x,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return E},get pluralRules(){return S||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(R){d=R,x.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(R){p=R,x.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(R){g=R},get fallbackFormat(){return h},set fallbackFormat(R){h=R,x.fallbackFormat=h},get warnHtmlMessage(){return _},set warnHtmlMessage(R){_=R,x.warnHtmlMessage=R},get escapeParameter(){return v},set escapeParameter(R){v=R,x.escapeParameter=R},t:kt,getLocaleMessage:A,setLocaleMessage:$,mergeLocaleMessage:B,getPostTranslationHandler:de,setPostTranslationHandler:q,getMissingHandler:ne,setMissingHandler:oe,[Lj]:ie};return K.datetimeFormats=G,K.numberFormats=re,K.rt=we,K.te=te,K.tm=C,K.d=Xe,K.n=je,K.getDateTimeFormat=H,K.setDateTimeFormat=k,K.mergeDateTimeFormat=T,K.getNumberFormat=M,K.setNumberFormat=U,K.mergeNumberFormat=z,K[Pj]=r,K[yg]=W,K[_g]=J,K[vg]=Q,K}const Wm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function $j({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>[...n,...o.type===wt?o.children:[o]],[]):t.reduce((r,n)=>{const o=e[n];return o&&(r[n]=o()),r},nt())}function ak(){return wt}const Fj=It({name:"i18n-t",props:Kt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Mt(e)||!isNaN(e)}},Wm),setup(e,t){const{slots:r,attrs:n}=t,o=e.i18n||Sd({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter(f=>f!=="_"),i=nt();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=le(e.plural)?+e.plural:e.plural);const a=$j(t,s),l=o[yg](e.keypath,a,i),c=Kt(nt(),n),u=le(e.tag)||We(e.tag)?e.tag:ak();return At(u,c,l)}}}),bb=Fj;function Uj(e){return Dt(e)&&!le(e[0])}function lk(e,t,r,n){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a=nt();e.locale&&(i.locale=e.locale),le(e.format)?i.key=e.format:We(e.format)&&(le(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>r.includes(p)?Kt(nt(),d,{[p]:e.format[p]}):d,nt()));const l=n(e.value,i,a);let c=[i.key];Dt(l)?c=l.map((d,p)=>{const g=o[d.type],h=g?g({[d.type]:d.value,index:p,parts:l}):[d.value];return Uj(h)&&(h[0].key=`${d.type}-${p}`),h}):le(l)&&(c=[l]);const u=Kt(nt(),s),f=le(e.tag)||We(e.tag)?e.tag:ak();return At(f,u,c)}}const jj=It({name:"i18n-n",props:Kt({value:{type:Number,required:!0},format:{type:[String,Object]}},Wm),setup(e,t){const r=e.i18n||Sd({useScope:e.scope,__useComponent:!0});return lk(e,t,tk,(...n)=>r[vg](...n))}}),wb=jj,Bj=It({name:"i18n-d",props:Kt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Wm),setup(e,t){const r=e.i18n||Sd({useScope:e.scope,__useComponent:!0});return lk(e,t,ek,(...n)=>r[_g](...n))}}),Sb=Bj;function Hj(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function Vj(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw hn(Kr.UNEXPECTED_ERROR);const c=Hj(e,a.$),u=Eb(l);return[Reflect.apply(c.t,c,[...xb(u)]),c]};return{created:(i,a)=>{const[l,c]=t(a);lf&&e.global===c&&(i.__i18nWatcher=Oe(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{lf&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=Eb(a);i.textContent=Reflect.apply(l.t,l,[...xb(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Eb(e){if(le(e))return{path:e};if(Fe(e)){if(!("path"in e))throw hn(Kr.REQUIRED_VALUE,"path");return e}else throw hn(Kr.INVALID_VALUE)}function xb(e){const{path:t,locale:r,args:n,choice:o,plural:s}=e,i={},a=n||{};return le(r)&&(i.locale=r),Mt(o)&&(i.plural=o),Mt(s)&&(i.plural=s),[t,a,i]}function Wj(e,t,...r){const n=Fe(r[0])?r[0]:{};(bt(n.globalInstall)?n.globalInstall:!0)&&([bb.name,"I18nT"].forEach(s=>e.component(s,bb)),[wb.name,"I18nN"].forEach(s=>e.component(s,wb)),[Sb.name,"I18nD"].forEach(s=>e.component(s,Sb))),e.directive("t",Vj(t))}const zj=ts("global-vue-i18n");function Gj(e={},t){const r=bt(e.globalInjection)?e.globalInjection:!0,n=new Map,[o,s]=qj(e),i=ts("");function a(f){return n.get(f)||null}function l(f,d){n.set(f,d)}function c(f){n.delete(f)}const u={get mode(){return"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,u),Fe(d[0])){const h=d[0];u.__composerExtend=h.__composerExtend,u.__vueI18nExtend=h.__vueI18nExtend}let p=null;r&&(p=tB(f,u.global)),Wj(f,u,...d);const g=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),g()}},get global(){return s},dispose(){o.stop()},__instances:n,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function Sd(e={}){const t=ur();if(t==null)throw hn(Kr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hn(Kr.NOT_INSTALLED);const r=Kj(t),n=Zj(r),o=sk(t),s=Yj(e,o);if(s==="global")return Nj(n,e,o),n;if(s==="parent"){let l=Xj(r,t,e.__useComponent);return l==null&&(l=n),l}const i=r;let a=i.__getInstance(t);if(a==null){const l=Kt({},e);"__i18n"in o&&(l.__i18n=o.__i18n),n&&(l.__root=n),a=ik(l),i.__composerExtend&&(a[bg]=i.__composerExtend(a)),Qj(i,t,a),i.__setInstance(t,a)}return a}function qj(e,t,r){const n=ca(),o=n.run(()=>ik(e));if(o==null)throw hn(Kr.UNEXPECTED_ERROR);return[n,o]}function Kj(e){const t=Ht(e.isCE?zj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hn(e.isCE?Kr.NOT_INSTALLED_WITH_PROVIDE:Kr.UNEXPECTED_ERROR);return t}function Yj(e,t){return gd(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Zj(e){return e.mode==="composition"?e.global:e.global.__composer}function Xj(e,t,r=!1){let n=null;const o=t.root;let s=Jj(t,r);for(;s!=null;){const i=e;if(e.mode==="composition"&&(n=i.__getInstance(s)),n!=null||o===s)break;s=s.parent}return n}function Jj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Qj(e,t,r){Rr(()=>{},t),Qs(()=>{const n=r;e.__deleteInstance(t);const o=n[bg];o&&(o(),delete n[bg])},t)}const eB=["locale","fallbackLocale","availableLocales"],kb=["t","rt","d","n","tm","te"];function tB(e,t){const r=Object.create(null);return eB.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw hn(Kr.UNEXPECTED_ERROR);const i=qe(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(r,o,i)}),e.config.globalProperties.$i18n=r,kb.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw hn(Kr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,kb.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Rj();cj(WU);uj(ij);fj(Kx);if(__INTLIFY_PROD_DEVTOOLS__){const e=Pm();e.__INTLIFY__=!0,zU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function rB(){return Us(Gi)}function nB(){return Us(Fm)}function oB(){return Us(_d)}function sB(){return Us(_d)}function ck(){return Us(ff)}const iB=et({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=ck(),r=new RegExp([``,".+?",``].join(""),"g");e.hook("app:rendered",n=>{var o;((o=n.renderResult)==null?void 0:o.html)!=null&&(n.renderResult.html=n.renderResult.html.replaceAll(r,(s,i)=>s.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}}),aB=et({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,r;const n=e,o=n.$router.currentRoute,s=$m();async function i(l){let c=LF(l,s(l),Ve(n.$i18n.locale),n.$i18n.getLocaleCookie());if(n._vueI18n.__firstAccess){n._vueI18n.__setLocale(c);const f=Fx(Ve(n._vueI18n.global.fallbackLocale),[c]);await Promise.all(f.map(d=>n.$i18n.loadLocaleMessages(d))),await n.$i18n.loadLocaleMessages(c)}return await n.runWithContext(()=>Bx(c,n._vueI18n.__firstAccess))&&(c=Ve(n.$i18n.locale)),c}[t,r]=Nt(()=>i(o.value)),await t,r(),T1("locale-changing",async(l,c)=>{let u,f;const d=([u,f]=Nt(()=>n.runWithContext(()=>i(l))),u=await u,f(),u),p=([u,f]=Nt(()=>n.runWithContext(()=>Hx({to:l,from:c,locale:d,routeLocale:s(l)},!0))),u=await u,f(),u);return n._vueI18n.__firstAccess=!1,[u,f]=Nt(()=>n.runWithContext(()=>Vx({nuxtApp:n,redirectPath:p,locale:d,route:l}))),u=await u,f(),u},{global:!0})}});function lB(e,{extendComposer:t,extendComposerInstance:r}){const n=ca(),o=e.install.bind(e);return e.install=(s,...i)=>{const a=Object.assign({},i[0]);a.__composerExtend=c=>(r(c,Qa(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(r(c,Qa(c)),()=>{})),Reflect.apply(o,e,[s,a]);const l=Qa(e);if(n.run(()=>{t(l),e.mode==="legacy"&&Ux(e.global)&&r(e.global,Qa(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&r(s.config.globalProperties.$i18n,l),s.unmount){const c=s.unmount.bind(s);s.unmount=()=>{n.stop(),c()}}},n}const cB=et({name:"i18n:plugin",parallel:hF,async setup(e){var d;let t,r;const n=e,o=n.$router.currentRoute,s=qF(n);GF(n,s);const i={...n.$config.public.i18n,defaultLocale:s};n.$config.public.i18n.defaultLocale=s,i.baseUrl=$F();const a=wc(),l=([t,r]=Nt(()=>EF(pF,Ce())),t=await t,r(),t);l.messages=l.messages||{};for(const p of lo)(d=l.messages)[p]??(d[p]={});l.fallbackLocale=l.fallbackLocale??!1,s&&(l.locale=s);const c=$m(),u=jF(),f=Gj(l);return f.__firstAccess=!0,f.__setLocale=p=>{const g=uf(f);qe(g.locale)?g.locale.value=p:g.locale=p},n._vueI18n=f,lB(f,{extendComposer(p){const g=ue(i.locales),h=ue(lo),m=ue("");p.locales=Z(()=>g.value),p.localeCodes=Z(()=>h.value),p.baseUrl=Z(()=>m.value),Oe(p.locale,()=>{m.value=_F(i.baseUrl,n)},{immediate:!0}),p.strategy=i.strategy,p.localeProperties=Z(()=>md.find(y=>y.code===p.locale.value)||{code:p.locale.value}),p.setLocale=async y=>{if(await Bx(y,f.__firstAccess),p.strategy==="no_prefix"){await p.loadLocaleMessages(y),f.__setLocale(y);return}const b=o.value,_=await n.runWithContext(()=>Hx({to:b,locale:y,routeLocale:c(b)}));await n.runWithContext(()=>Vx({nuxtApp:n,redirectPath:_,locale:y,route:b},!0))},p.loadLocaleMessages=async y=>await cg(y,lg,p.mergeLocaleMessage.bind(p),n),p.differentDomains=i.differentDomains,p.defaultLocale=i.defaultLocale,p.getBrowserLocale=()=>UF(),p.getLocaleCookie=()=>BF(u,a,p.defaultLocale),p.setLocaleCookie=y=>HF(u,y,a),p.onBeforeLanguageSwitch=(y,b,_,v)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:y,newLocale:b,initialSetup:_,context:v}),p.onLanguageSwitched=(y,b)=>e.callHook("i18n:localeSwitched",{oldLocale:y,newLocale:b}),p.finalizePendingLocaleChange=async()=>{var y;f.__pendingLocale&&(f.__setLocale(f.__pendingLocale),(y=f.__resolvePendingLocalePromise)==null||y.call(f),f.__pendingLocale=void 0)},p.waitForPendingLocaleChange=async()=>{f.__pendingLocale&&f.__pendingLocalePromise&&await f.__pendingLocalePromise}},extendComposerInstance(p,g){const h=[["locales",()=>g.locales],["localeCodes",()=>g.localeCodes],["baseUrl",()=>g.baseUrl],["strategy",()=>g.strategy],["localeProperties",()=>g.localeProperties],["setLocale",()=>async m=>Reflect.apply(g.setLocale,g,[m])],["loadLocaleMessages",()=>async m=>Reflect.apply(g.loadLocaleMessages,g,[m])],["differentDomains",()=>g.differentDomains],["defaultLocale",()=>g.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(g.getBrowserLocale,g,[])],["getLocaleCookie",()=>()=>Reflect.apply(g.getLocaleCookie,g,[])],["setLocaleCookie",()=>m=>Reflect.apply(g.setLocaleCookie,g,[m])],["onBeforeLanguageSwitch",()=>(m,y,b,_)=>Reflect.apply(g.onBeforeLanguageSwitch,g,[m,y,b,_])],["onLanguageSwitched",()=>(m,y)=>Reflect.apply(g.onLanguageSwitched,g,[m,y])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(g.finalizePendingLocaleChange,g,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(g.waitForPendingLocaleChange,g,[])]];for(const[m,y]of h)Object.defineProperty(p,m,{get:y})}}),e.vueApp.use(f),FF(n,"$i18n",uf(f)),{provide:{localeHead:Us(YF),localePath:nB(),localeRoute:oB(),getRouteBaseName:rB(),switchLocalePath:ck(),resolveRoute:Us(Um),localeLocation:sB()}}}});function uB(e){return typeof e.setItem=="function"&&typeof e.getItem=="function"&&typeof e.removeItem=="function"&&typeof e.clear=="function"&&typeof e.key=="function"&&typeof e.length=="number"}function Ed(e){try{const t="__test__";return e.setItem(t,"test"),e.removeItem(t),!0}catch{return!1}}const Nr={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Cb={silent:{level:-1},fatal:{level:Nr.fatal},error:{level:Nr.error},warn:{level:Nr.warn},log:{level:Nr.log},info:{level:Nr.info},success:{level:Nr.success},fail:{level:Nr.fail},ready:{level:Nr.info},start:{level:Nr.info},box:{level:Nr.info},debug:{level:Nr.debug},trace:{level:Nr.trace},verbose:{level:Nr.verbose}};function _p(e){return e!==null&&typeof e=="object"}function wg(e,t,r=".",n){if(!_p(t))return wg(e,{},r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:_p(i)&&_p(o[s])?o[s]=wg(i,o[s],(r?`${r}.`:"")+s.toString()):o[s]=i)}return o}function fB(e){return(...t)=>t.reduce((r,n)=>wg(r,n,""),{})}const dB=fB();function pB(e){return Object.prototype.toString.call(e)==="[object Object]"}function hB(e){return!(!pB(e)||!e.message&&!e.args||e.stack)}let vp=!1;const Tb=[];class er{constructor(t={}){const r=t.types||Cb;this.options=dB({...t,defaults:{...t.defaults},level:bp(t.level,r),reporters:[...t.reporters||[]]},{types:Cb,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in r){const o={type:n,...this.options.defaults,...r[n]};this[n]=this._wrapLogFn(o),this[n].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=bp(t,this.options.types,this.options.level)}prompt(t,r){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,r)}create(t){const r=new er({...this.options,...t});return this._mockFn&&r.mockTypes(this._mockFn),r}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const r=this.options.reporters.indexOf(t);if(r>=0)return this.options.reporters.splice(r,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,r){t&&(t.__write||(t.__write=t.write),t.write=n=>{this[r].raw(String(n).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){vp=!0}resumeLogs(){vp=!1;const t=Tb.splice(0);for(const r of t)r[0]._logFn(r[1],r[2])}mockTypes(t){const r=t||this.options.mockFn;if(this._mockFn=r,typeof r=="function")for(const n in this.options.types)this[n]=r(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(t,r){return(...n)=>{if(vp){Tb.push([this,t,n,r]);return}return this._logFn(t,n,r)}}_logFn(t,r,n){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:bp(t.level,this.options.types)};!n&&r.length===1&&hB(r[0])?Object.assign(o,r[0]):o.args=[...r],o.message&&(o.args.unshift(o.message),delete o.message),o.additional&&(Array.isArray(o.additional)||(o.additional=o.additional.split(` `)),o.args.push(` `+o.additional.join(` `)),delete o.additional),o.type=typeof o.type=="string"?o.type.toLowerCase():"log",o.tag=typeof o.tag=="string"?o.tag:"";const s=(a=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const c=[...this._lastLog.object.args];l>1&&c.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}a&&(this._lastLog.object=o,this._log(o))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&o.date?o.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=o.date,ithis.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(t){for(const r of this.options.reporters)r.log(t,{options:this.options})}}function bp(e,t={},r=3){return e===void 0?r:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:r}er.prototype.add=er.prototype.addReporter;er.prototype.remove=er.prototype.removeReporter;er.prototype.clear=er.prototype.removeReporter;er.prototype.withScope=er.prototype.withTag;er.prototype.mock=er.prototype.mockTypes;er.prototype.pause=er.prototype.pauseLogs;er.prototype.resume=er.prototype.resumeLogs;function gB(e={}){return new er(e)}class mB{constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const r=this._getLogFn(t.level),n=t.type==="log"?"":t.type,o=t.tag||"",i=` background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor}; border-radius: 0.5em; color: white; font-weight: bold; padding: 2px 0.5em; `,a=`%c${[o,n].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?r(`${a}%c ${t.args[0]}`,i,"",...t.args.slice(1)):r(a,i,...t.args)}}function yB(e={}){return gB({reporters:e.reporters||[new mB({})],prompt(r,n={}){return n.type==="confirm"?Promise.resolve(confirm(r)):Promise.resolve(prompt(r))},...e})}const _B=yB(),Qe=_B.withTag("app"),Ab=["getItem","setItem","removeItem","clear","length"],wp=Qe.withTag("StorageEmulator");class vB{constructor(t){Pr(this,"storage",{});this.customStorage=t,t&&uB(t)&&Ed(t)?this.storage=t:this.storage={}}setItem(t,r){if(Ab.includes(t)){wp.warn(`Key "${t}" is not allowed in storage.`);return}this.storage[t]=r}getItem(t){return this.storage[t]||null}removeItem(t){if(Ab.includes(t)){wp.warn(`Key "${t}" is not allowed in storage.`);return}if(!this.storage[t]){wp.warn(`Key "${t}" not found in storage.`);return}delete this.storage[t]}clear(){this.storage={}}get length(){return Object.keys(this.storage).length}key(t){return Object.keys(this.storage)[t]||null}}class uk{constructor(t){Pr(this,"storage");this.storage=new vB(t)}setItem(t,r){this.storage.setItem(t,r)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}get length(){return this.storage.length}key(t){return this.storage.key(t)}}class bB{constructor(t,r,n){Pr(this,"prefix");Pr(this,"expirationMs");Pr(this,"storage");this.prefix=r,this.expirationMs=n,this.storage=t}storageKey(t){return`${this.prefix}:${t}`}load(t,r){const n=r??this.expirationMs,o=this.storage.getItem(this.storageKey(t))??"";try{const{value:s,timestamp:i}=JSON.parse(o);return Date.now()-i>n?(this.storage.removeItem(this.storageKey(t)),null):s}catch{return this.storage.removeItem(this.storageKey(t)),null}}save(t,r){const n={value:r,timestamp:Date.now()};this.storage.setItem(this.storageKey(t),JSON.stringify(n))}remove(t){this.storage.removeItem(this.storageKey(t))}clear(){const t=Object.keys(this.storage).filter(r=>r.startsWith(this.prefix));for(const r of t)this.storage.removeItem(r)}get length(){return Object.keys(this.storage).filter(t=>t.startsWith(this.prefix)).length}key(t){return Object.keys(this.storage).filter(n=>n.startsWith(this.prefix))[t]||null}getItem(t){return this.load(t)}setItem(t,r){this.save(t,r)}removeItem(t){this.remove(t)}clearAll(){this.clear()}}const Rn=new uk(typeof window<"u"?window.localStorage:void 0),wB=new uk(typeof window<"u"?window.sessionStorage:void 0),pf=Rn;Ed(Rn);Ed(wB);Ed(pf);const Bn=()=>{var e,t;return{chrome:window==null?void 0:window.chrome,shift:(e=window==null?void 0:window.chrome)==null?void 0:e.shift,onelaunch:(t=window==null?void 0:window.chrome)==null?void 0:t.onelaunch}},SB=Qe.withTag("utils:getSearchUrl");async function EB(e,t){var o;const{fallbackUrl:r="",queryPlaceholder:n="{searchTerms}"}={...t};try{const s=f=>f.replace(n,encodeURIComponent(e)),{shift:i,onelaunch:a}=Bn(),l=(o=i==null?void 0:i.search)==null?void 0:o.getDefault;if(l){const f=await l(),d=f.monetized;return{url:s(f.url),isMonetized:d}}const c=i==null?void 0:i.getServerConfig;if(c){const f=await c();return{url:s(f.search_url)}}const u=a==null?void 0:a.getMergedData;if(u){const f=await u();return{url:s(f.search_url)}}return{url:s(r)}}catch(s){return SB.error(s),{url:r}}}function xB(){const{shift:e,onelaunch:t}=Bn(),r=e==null?void 0:e.getServerConfig;if(r)return r();const n=t==null?void 0:t.getMergedData;return n?n():new Promise(o=>o(void 0))}const kB=Qe.withTag("utils:host-browser-apis:openInDefaultBrowser");async function CB(e){var n;const{shift:t,onelaunch:r}=Bn();try{const o=(n=t==null?void 0:t.ntp)==null?void 0:n.openInDefaultBrowser;if(o){await o(e);return}const s=r==null?void 0:r.openInDefaultBrowser;if(s){await s(e);return}}catch(o){kB.error("Failed to open in default browser",o)}window.open(e,"_blank")}const TB=Qe.withTag("utils:isCurrentlyAtHomeTab");function fk(){try{const e=window.location.href,t=new URL(e),r=new URLSearchParams(t.search);return r.has("pinned")&&r.get("pinned")==="true"}catch(e){return TB.error(e),!1}}function dk(){var t;const{onelaunch:e}=Bn();return(t=e==null?void 0:e.getInstallInfo)==null?void 0:t.call(e)}function AB(){var t,r;const{shift:e}=Bn();return(r=(t=e==null?void 0:e.search)==null?void 0:t.getDefault)==null?void 0:r.call(t)}async function pk(){const e=await dk();return(e==null?void 0:e.version)||"unknown"}var IB=typeof global=="object"&&global&&global.Object===Object&&global,OB=typeof self=="object"&&self&&self.Object===Object&&self,RB=IB||OB||Function("return this")(),hf=RB.Symbol,hk=Object.prototype,LB=hk.hasOwnProperty,PB=hk.toString,Na=hf?hf.toStringTag:void 0;function NB(e){var t=LB.call(e,Na),r=e[Na];try{e[Na]=void 0;var n=!0}catch{}var o=PB.call(e);return n&&(t?e[Na]=r:delete e[Na]),o}var MB=Object.prototype,DB=MB.toString;function $B(e){return DB.call(e)}var FB="[object Null]",UB="[object Undefined]",Ib=hf?hf.toStringTag:void 0;function jB(e){return e==null?e===void 0?UB:FB:Ib&&Ib in Object(e)?NB(e):$B(e)}function BB(e){return e!=null&&typeof e=="object"}var HB="[object Symbol]";function VB(e){return typeof e=="symbol"||BB(e)&&jB(e)==HB}var WB=/\s/;function zB(e){for(var t=e.length;t--&&WB.test(e.charAt(t)););return t}var GB=/^\s+/;function qB(e){return e&&e.slice(0,zB(e)+1).replace(GB,"")}function Ob(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rb=NaN,KB=/^[-+]0x[0-9a-f]+$/i,YB=/^0b[01]+$/i,ZB=/^0o[0-7]+$/i,XB=parseInt;function JB(e){if(typeof e=="number")return e;if(VB(e))return Rb;if(Ob(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ob(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qB(e);var r=YB.test(e);return r||ZB.test(e)?XB(e.slice(2),r?2:8):KB.test(e)?Rb:+e}var QB=1/0,eH=17976931348623157e292;function tH(e){if(!e)return e===0?e:0;if(e=JB(e),e===QB||e===-1/0){var t=e<0?-1:1;return t*eH}return e===e?e:0}function rH(e){var t=tH(e),r=t%1;return t===t?r?t-r:t:0}var nH="Expected a function";function oH(e,t){var r;if(typeof t!="function")throw new TypeError(nH);return e=rH(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function gk(e){return oH(2,e)}var sH=Object.defineProperty,iH=Object.defineProperties,aH=Object.getOwnPropertyDescriptors,Lb=Object.getOwnPropertySymbols,lH=Object.prototype.hasOwnProperty,cH=Object.prototype.propertyIsEnumerable,Pb=(e,t,r)=>t in e?sH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sp=(e,t)=>{for(var r in t||(t={}))lH.call(t,r)&&Pb(e,r,t[r]);if(Lb)for(var r of Lb(t))cH.call(t,r)&&Pb(e,r,t[r]);return e},Ep=(e,t)=>iH(e,aH(t)),_i=(e,t,r)=>new Promise((n,o)=>{var s=l=>{try{a(r.next(l))}catch(c){o(c)}},i=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,i);a((r=r.apply(e,t)).next())}),uH={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",ERROR:"ERROR"},mk=(e=>(e.PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e))(mk||{}),os=class yk extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,yk.prototype),this.name="OpenFeatureError",this.cause=r==null?void 0:r.cause}},fH=class _k extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,_k.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},vk=class bk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,bk.prototype),this.name="GeneralError",this.code="GENERAL"}},dH=class wk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,wk.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},pH=class Sk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Sk.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},Ek=class xk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,xk.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},kk=class Ck extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Ck.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},hH=class Tk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Tk.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},gH=class Ak extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Ak.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},mH=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new fH(t);case"PARSE_ERROR":return new pH(t);case"TYPE_MISMATCH":return new gH(t);case"TARGETING_KEY_MISSING":return new hH(t);case"INVALID_CONTEXT":return new dH(t);case"PROVIDER_NOT_READY":return new kk(t);case"PROVIDER_FATAL":return new Ek(t);default:return new vk(t)}},Hl=(e=>(e.NOT_READY="NOT_READY",e.READY="READY",e.ERROR="ERROR",e.STALE="STALE",e.FATAL="FATAL",e.RECONCILING="RECONCILING",e))(Hl||{}),eo=(e=>(e.Ready="PROVIDER_READY",e.Error="PROVIDER_ERROR",e.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",e.ContextChanged="PROVIDER_CONTEXT_CHANGED",e.Reconciling="PROVIDER_RECONCILING",e.Stale="PROVIDER_STALE",e))(eo||{}),yH={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},Ik=(e,t)=>!t&&e==="PROVIDER_READY"||yH[t]===e,Ok=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},_H=["error","warn","info","debug"],zm=class{constructor(e){this.fallbackLogger=new Ok;try{for(const t of _H)if(!e[t]||typeof e[t]!="function")throw new Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(t){console.error(t),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch{this.fallbackLogger[e](...t)}}},vH=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){const r=o=>_i(this,null,function*(){var s;try{yield t(o)}catch(i){(s=this._logger)==null||s.error("Error running event handler:",i)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){const r=this._handlers[e].get(t);if(r){const n=r.pop();n&&this.eventEmitter.removeListener(e,n)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new zm(e),this}get _logger(){var e,t;return(t=this._eventLogger)!=null?t:(e=this.globalLogger)==null?void 0:e.call(this)}};function bH(e){return typeof e=="string"}function vi(e){return bH(e)?e:void 0}function wH(e){return typeof e=="object"}function Hr(e){return wH(e)?e:void 0}function Nb(e){return typeof e<"u"&&e!==null}var Sg=class{constructor(e,t,r){this._provider=e,this._status=t,this._pendingContextChanges=0;var n,o,s;(n=e.events)==null||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),(o=e.events)==null||o.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),(s=e.events)==null||s.addHandler("PROVIDER_ERROR",i=>{(i==null?void 0:i.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return this._pendingContextChanges===0}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},SH=class{constructor(e){this._hooks=[],this._context={},this._logger=new Ok,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new zm(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(n=>{var o;const s=n[0],i=n[1].provider,a=n[1].status;if(Ik(e,a))try{t({domain:s,providerName:i.metadata.name})}catch(c){(o=this._logger)==null||o.error("Error running event handler:",c)}}),this._apiEmitter.addHandler(e,t),r!=null&&r.signal&&typeof r.signal.addEventListener=="function"&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,o,s,i,a,l,c;const u=vi(e),f=(r=Hr(e))!=null?r:Hr(t);if(!f){this._logger.debug("No provider defined, ignoring setProvider call");return}const d=this.getProviderForClient(u),p=f.metadata.name;if(d===f){this._logger.debug("Provider is already set, ignoring setProvider call");return}if(!f.runsOn)this._logger.debug(`Provider '${f.metadata.name}' has not defined its intended use.`);else if(f.runsOn!==this._runsOn)throw new vk(`Provider '${f.metadata.name}' is intended for use on the ${f.runsOn}.`);const g=this.getAssociatedEventEmitters(u);let h;const m=new Sg(f,this._statusEnumType.NOT_READY,this._statusEnumType);return typeof f.initialize=="function"&&!this.allProviders.includes(f)?h=(i=(s=(o=f.initialize)==null?void 0:o.call(f,u?(n=this._domainScopedContext.get(u))!=null?n:this._context:this._context))==null?void 0:s.then(()=>{var y;m.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(u).forEach(b=>{b==null||b.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(y=this._apiEmitter)==null||y.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}))==null?void 0:i.catch(y=>{var b;throw(y==null?void 0:y.code)==="PROVIDER_FATAL"?m.status=this._statusEnumType.FATAL:m.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(u).forEach(_=>{_==null||_.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:y==null?void 0:y.message})}),(b=this._apiEmitter)==null||b.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:y==null?void 0:y.message}),y}):(m.status=this._statusEnumType.READY,g.forEach(y=>{y==null||y.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(a=this._apiEmitter)==null||a.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})),u?this._domainScopedProviders.set(u,m):this._defaultProvider=m,this.transferListeners(d,f,u,g),this.allProviders.includes(d)||(c=(l=d==null?void 0:d.onClose)==null?void 0:l.call(d))==null||c.catch(y=>{this._logger.error(`error closing provider: ${y==null?void 0:y.message}, ${y==null?void 0:y.stack}`)}),h}getProviderForClient(e){var t,r;return e?(r=(t=this._domainScopedProviders.get(e))==null?void 0:t.provider)!=null?r:this._defaultProvider.provider:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){const t=this._clientEvents.get(e);if(t)return t;const r=this._createEventEmitter();this._clientEvents.set(e,r);const n=this.getProviderForClient(e);return Object.values(eo).forEach(o=>{var s;return(s=n.events)==null?void 0:s.addHandler(o,i=>_i(this,null,function*(){r.emit(o,Ep(Sp({},i),{clientName:e,domain:e,providerName:n.metadata.name}))}))}),r}getUnboundEmitters(){const e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(Nb).filter(n=>!e.includes(n)).map(n=>this._clientEvents.get(n)),this._clientEvents.get(void 0)].filter(Nb)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var o;(o=this._clientEventHandlers.get(r))==null||o.forEach(i=>{var a;return(a=e.events)==null?void 0:a.removeHandler(...i)});const s=Object.values(eo).map(i=>[i,l=>_i(this,null,function*(){n.forEach(c=>{c==null||c.emit(i,Ep(Sp({},l),{clientName:r,domain:r,providerName:t.metadata.name}))}),this._apiEmitter.emit(i,Ep(Sp({},l),{clientName:r,domain:r,providerName:t.metadata.name}))})]);this._clientEventHandlers.set(r,s),s.forEach(i=>{var a;return(a=t.events)==null?void 0:a.addHandler(...i)})}close(){return _i(this,null,function*(){var e,t;try{yield(t=(e=this==null?void 0:this._defaultProvider.provider)==null?void 0:e.onClose)==null?void 0:t.call(e)}catch(n){this.handleShutdownError(this._defaultProvider.provider,n)}const r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(n=>_i(this,[n],function*([,o]){var s,i;try{yield(i=o==null?void 0:(s=o.provider).onClose)==null?void 0:i.call(s)}catch(a){this.handleShutdownError(o==null?void 0:o.provider,a)}})))})}clearProvidersAndSetDefault(e){return _i(this,null,function*(){try{yield this.close()}catch{this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new Sg(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(t==null?void 0:t.stack)}},EH=Object.create,Gm=Object.defineProperty,xH=Object.defineProperties,kH=Object.getOwnPropertyDescriptor,CH=Object.getOwnPropertyDescriptors,Rk=Object.getOwnPropertyNames,Mb=Object.getOwnPropertySymbols,Lk=Object.getPrototypeOf,Pk=Object.prototype.hasOwnProperty,TH=Object.prototype.propertyIsEnumerable,AH=Reflect.get,Db=(e,t,r)=>t in e?Gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xp=(e,t)=>{for(var r in t||(t={}))Pk.call(t,r)&&Db(e,r,t[r]);if(Mb)for(var r of Mb(t))TH.call(t,r)&&Db(e,r,t[r]);return e},IH=(e,t)=>xH(e,CH(t)),OH=(e,t)=>function(){return t||(0,e[Rk(e)[0]])((t={exports:{}}).exports,t),t.exports},RH=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rk(t))!Pk.call(e,o)&&o!==r&&Gm(e,o,{get:()=>t[o],enumerable:!(n=kH(t,o))||n.enumerable});return e},LH=(e,t,r)=>(r=e!=null?EH(Lk(e)):{},RH(Gm(r,"default",{value:e,enumerable:!0}),e)),PH=(e,t,r)=>AH(Lk(e),r,t),ui=(e,t,r)=>new Promise((n,o)=>{var s=l=>{try{a(r.next(l))}catch(c){o(c)}},i=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,i);a((r=r.apply(e,t)).next())}),NH=OH({"../../node_modules/eventemitter3/index.js"(e,t){var r=Object.prototype.hasOwnProperty,n="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(n=!1));function s(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new s(f,d||c,p),h=n?n+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],g]:c._events[h].push(g):(c._events[h]=g,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new o:delete c._events[u]}function l(){this._events=new o,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)r.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,h=new Array(g);pnew Fb}static getInstance(){const t=jb[Ub];if(t)return t;const r=new Eg;return jb[Ub]=r,r}getProviderStatus(t){var r,n;return t?(n=(r=this._domainScopedProviders.get(t))==null?void 0:r.status)!=null?n:this._defaultProvider.status:this._defaultProvider.status}setProviderAndWait(t,r,n){return ui(this,null,function*(){const o=vi(t),s=Hr(o?r:t),i=Hr(o?n:r);i&&(o?this._domainScopedContext.set(o,i):this._context=i),yield this.setAwaitableProvider(o,s)})}setProvider(t,r,n){const o=vi(t),s=Hr(o?r:t),i=Hr(o?n:r);i&&(o?this._domainScopedContext.set(o,i):this._context=i);const a=this.setAwaitableProvider(o,s);return Promise.resolve(a).catch(l=>{this._logger.error("Error during provider initialization:",l)}),this}setContext(t,r){return ui(this,null,function*(){var n,o;const s=vi(t),i=(o=(n=Hr(t))!=null?n:Hr(r))!=null?o:{};if(s){const a=this._domainScopedProviders.get(s);if(a){const l=this.getContext(s);this._domainScopedContext.set(s,i),yield this.runProviderContextChangeHandler(s,a,l,i)}else this._domainScopedContext.set(s,i)}else{const a=this._context;this._context=i;const l=Array.from(this._domainScopedProviders.entries()).filter(([u])=>!this._domainScopedContext.has(u)).reduce((u,[f,d])=>(u.push({domain:f,wrapper:d}),u),[]),c=[{domain:void 0,wrapper:this._defaultProvider},...l];yield Promise.all(c.map(u=>this.runProviderContextChangeHandler(u.domain,u.wrapper,a,i)))}})}getContext(t){const r=vi(t);if(r){const n=this._domainScopedContext.get(r);if(n)return n;this._logger.debug(`Unable to find context for '${r}'.`)}return this._context}clearContext(t){return ui(this,null,function*(){const r=vi(t);if(r){const n=this._domainScopedProviders.get(r);if(n){const o=this.getContext(r);this._domainScopedContext.delete(r);const s=this.getContext();yield this.runProviderContextChangeHandler(r,n,o,s)}else this._domainScopedContext.delete(r)}else return this.setContext({})})}clearContexts(){return ui(this,null,function*(){yield this.clearContext(),yield Promise.allSettled(Array.from(this._domainScopedProviders.keys()).map(t=>this.clearContext(t)))})}getClient(t,r){return new FH(()=>this.getProviderForClient(t),()=>this.getProviderStatus(t),()=>this.buildAndCacheEventEmitterForClient(t),n=>this.getContext(n),()=>this.getHooks(),()=>this._logger,{domain:t,version:r})}clearProviders(){return ui(this,null,function*(){yield PH(Eg.prototype,this,"clearProvidersAndSetDefault").call(this,$b),this._domainScopedContext.clear()})}runProviderContextChangeHandler(t,r,n,o){return ui(this,null,function*(){var s,i,a,l,c,u;const f=((i=(s=r.provider)==null?void 0:s.metadata)==null?void 0:i.name)||"unnamed-provider";try{if(typeof r.provider.onContextChange=="function"){const d=r.provider.onContextChange(n,o);typeof(d==null?void 0:d.then)=="function"&&(r.incrementPendingContextChanges(),r.status=this._statusEnumType.RECONCILING,this.getAssociatedEventEmitters(t).forEach(p=>{p==null||p.emit(eo.Reconciling,{domain:t,providerName:f})}),(a=this._apiEmitter)==null||a.emit(eo.Reconciling,{domain:t,providerName:f}),yield d,r.decrementPendingContextChanges())}r.status=this._statusEnumType.READY,r.allContextChangesSettled&&(this.getAssociatedEventEmitters(t).forEach(d=>{d==null||d.emit(eo.ContextChanged,{clientName:t,domain:t,providerName:f})}),(l=this._apiEmitter)==null||l.emit(eo.ContextChanged,{clientName:t,domain:t,providerName:f}))}catch(d){if(r.decrementPendingContextChanges(),r.status=this._statusEnumType.ERROR,r.allContextChangesSettled){const p=d,g=`Error running ${f}'s context change handler: ${p==null?void 0:p.message}`;(c=this._logger)==null||c.error(`${g}`,d),this.getAssociatedEventEmitters(t).forEach(h=>{h==null||h.emit(eo.Error,{clientName:t,domain:t,providerName:f,message:g})}),(u=this._apiEmitter)==null||u.emit(eo.Error,{clientName:t,domain:t,providerName:f,message:g})}}})}},no=UH.getInstance();const jH="_targetingKey",BH="_splittestname",HH="_cohort";var Ue;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(Ue||(Ue={}));var xg;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(xg||(xg={}));const ae=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mo=e=>{switch(typeof e){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(e)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(e)?ae.array:e===null?ae.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ae.promise:typeof Map<"u"&&e instanceof Map?ae.map:typeof Set<"u"&&e instanceof Set?ae.set:typeof Date<"u"&&e instanceof Date?ae.date:ae.object;default:return ae.unknown}},Y=Ue.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),VH=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Dr extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let a=n,l=0;for(;lr.message){const r={},n=[];for(const o of this.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Dr.create=e=>new Dr(e);const Yi=(e,t)=>{let r;switch(e.code){case Y.invalid_type:e.received===ae.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ue.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ue.joinValues(e.keys,", ")}`;break;case Y.invalid_union:r="Invalid input";break;case Y.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ue.joinValues(e.options)}`;break;case Y.invalid_enum_value:r=`Invalid enum value. Expected ${Ue.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:r="Invalid function arguments";break;case Y.invalid_return_type:r="Invalid function return type";break;case Y.invalid_date:r="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ue.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Y.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Y.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Y.custom:r="Invalid input";break;case Y.invalid_intersection_types:r="Intersection results could not be merged";break;case Y.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ue.assertNever(e)}return{message:r}};let Nk=Yi;function WH(e){Nk=e}function gf(){return Nk}const mf=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},zH=[];function se(e,t){const r=gf(),n=mf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Yi?void 0:Yi].filter(o=>!!o)});e.common.issues.push(n)}class cr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const o of r){if(o.status==="aborted")return ve;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const o of r){const s=await o.key,i=await o.value;n.push({key:s,value:i})}return cr.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const o of r){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ve;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(n[s.value]=i.value)}return{status:t.value,value:n}}}const ve=Object.freeze({status:"aborted"}),Ei=e=>({status:"dirty",value:e}),Sr=e=>({status:"valid",value:e}),kg=e=>e.status==="aborted",Cg=e=>e.status==="dirty",Vl=e=>e.status==="valid",Wl=e=>typeof Promise<"u"&&e instanceof Promise;function yf(e,t,r,n){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Mk(e,t,r,n,o){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(pe||(pe={}));var el,tl;class Fn{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Bb=(e,t)=>{if(Vl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Dr(e.common.issues);return this._error=r,this._error}}};function ke(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,c;const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}},description:o}}class Ie{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Mo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new cr,ctx:{common:t.parent.common,data:t.data,parsedType:Mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Wl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const o={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mo(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Bb(o,s)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mo(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(Wl(o)?o:Promise.resolve(o));return Bb(n,s)}refine(t,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:Y.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new gn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Mn.create(this,this._def)}nullable(){return Ko.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return un.create(this,this._def)}promise(){return Xi.create(this,this._def)}or(t){return Kl.create([this,t],this._def)}and(t){return Yl.create(this,t,this._def)}transform(t){return new gn({...ke(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ec({...ke(this._def),innerType:this,defaultValue:r,typeName:_e.ZodDefault})}brand(){return new qm({typeName:_e.ZodBranded,type:this,...ke(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new tc({...ke(this._def),innerType:this,catchValue:r,typeName:_e.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Sc.create(this,t)}readonly(){return rc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const GH=/^c[^\s-]{8,}$/i,qH=/^[0-9a-z]+$/,KH=/^[0-9A-HJKMNP-TV-Z]{26}$/,YH=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ZH=/^[a-z0-9_-]{21}$/i,XH=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,JH=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,QH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let kp;const e3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t3=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,r3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Dk="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",n3=new RegExp(`^${Dk}$`);function $k(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function o3(e){return new RegExp(`^${$k(e)}$`)}function Fk(e){let t=`${Dk}T${$k(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function s3(e,t){return!!((t==="v4"||!t)&&e3.test(e)||(t==="v6"||!t)&&t3.test(e))}class sn extends Ie{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ae.string){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.string,received:s.parsedType}),ve}const n=new cr;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),se(o,{code:Y.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:r,code:Y.invalid_string,...pe.errToObj(n)})}_addCheck(t){return new sn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...pe.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...pe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...pe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...pe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...pe.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...pe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...pe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...pe.errToObj(r)})}nonempty(t){return this.min(1,pe.errToObj(t))}trim(){return new sn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new sn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new sn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new sn({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ke(e)})};function i3(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class zo extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ae.number){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.number,received:s.parsedType}),ve}let n;const o=new cr;for(const s of this._def.checks)s.kind==="int"?Ue.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Y.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?i3(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_finite,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,n,o){return new zo({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:pe.toString(o)}]})}_addCheck(t){return new zo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&Ue.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew zo({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class Go extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ae.bigint){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.bigint,received:s.parsedType}),ve}let n;const o=new cr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,n,o){return new Go({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:pe.toString(o)}]})}_addCheck(t){return new Go({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new Go({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ke(e)})};class zl extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.boolean,received:n.parsedType}),ve}return Sr(t.data)}}zl.create=e=>new zl({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class js extends Ie{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ae.date){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.date,received:s.parsedType}),ve}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_date}),ve}const n=new cr;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),se(o,{code:Y.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Ue.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new js({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:pe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:pe.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew js({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...ke(e)});class _f extends Ie{_parse(t){if(this._getType(t)!==ae.symbol){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.symbol,received:n.parsedType}),ve}return Sr(t.data)}}_f.create=e=>new _f({typeName:_e.ZodSymbol,...ke(e)});class Gl extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.undefined,received:n.parsedType}),ve}return Sr(t.data)}}Gl.create=e=>new Gl({typeName:_e.ZodUndefined,...ke(e)});class ql extends Ie{_parse(t){if(this._getType(t)!==ae.null){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.null,received:n.parsedType}),ve}return Sr(t.data)}}ql.create=e=>new ql({typeName:_e.ZodNull,...ke(e)});class Zi extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return Sr(t.data)}}Zi.create=e=>new Zi({typeName:_e.ZodAny,...ke(e)});class Os extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Sr(t.data)}}Os.create=e=>new Os({typeName:_e.ZodUnknown,...ke(e)});class po extends Ie{_parse(t){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.never,received:r.parsedType}),ve}}po.create=e=>new po({typeName:_e.ZodNever,...ke(e)});class vf extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.void,received:n.parsedType}),ve}return Sr(t.data)}}vf.create=e=>new vf({typeName:_e.ZodVoid,...ke(e)});class un extends Ie{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==ae.array)return se(r,{code:Y.invalid_type,expected:ae.array,received:r.parsedType}),ve;if(o.exactLength!==null){const i=r.data.length>o.exactLength.value,a=r.data.lengtho.maxLength.value&&(se(r,{code:Y.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>o.type._parseAsync(new Fn(r,i,r.path,a)))).then(i=>cr.mergeArray(n,i));const s=[...r.data].map((i,a)=>o.type._parseSync(new Fn(r,i,r.path,a)));return cr.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new un({...this._def,minLength:{value:t,message:pe.toString(r)}})}max(t,r){return new un({...this._def,maxLength:{value:t,message:pe.toString(r)}})}length(t,r){return new un({...this._def,exactLength:{value:t,message:pe.toString(r)}})}nonempty(t){return this.min(1,t)}}un.create=(e,t)=>new un({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...ke(t)});function bi(e){if(e instanceof _t){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Mn.create(bi(n))}return new _t({...e._def,shape:()=>t})}else return e instanceof un?new un({...e._def,type:bi(e.element)}):e instanceof Mn?Mn.create(bi(e.unwrap())):e instanceof Ko?Ko.create(bi(e.unwrap())):e instanceof Un?Un.create(e.items.map(t=>bi(t))):e}class _t extends Ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Ue.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==ae.object){const c=this._getOrReturnCtx(t);return se(c,{code:Y.invalid_type,expected:ae.object,received:c.parsedType}),ve}const{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof po&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Fn(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof po){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(se(o,{code:Y.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Fn(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,d=await u.value;c.push({key:f,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>cr.mergeObjectSync(n,c)):cr.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return pe.errToObj,new _t({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,r,n).message)!==null&&i!==void 0?i:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=pe.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new _t({...this._def,unknownKeys:"strip"})}passthrough(){return new _t({...this._def,unknownKeys:"passthrough"})}extend(t){return new _t({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new _t({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new _t({...this._def,catchall:t})}pick(t){const r={};return Ue.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new _t({...this._def,shape:()=>r})}omit(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new _t({...this._def,shape:()=>r})}deepPartial(){return bi(this)}partial(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{const o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}),new _t({...this._def,shape:()=>r})}required(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Mn;)s=s._def.innerType;r[n]=s}}),new _t({...this._def,shape:()=>r})}keyof(){return Uk(Ue.objectKeys(this.shape))}}_t.create=(e,t)=>new _t({shape:()=>e,unknownKeys:"strip",catchall:po.create(),typeName:_e.ZodObject,...ke(t)});_t.strictCreate=(e,t)=>new _t({shape:()=>e,unknownKeys:"strict",catchall:po.create(),typeName:_e.ZodObject,...ke(t)});_t.lazycreate=(e,t)=>new _t({shape:e,unknownKeys:"strip",catchall:po.create(),typeName:_e.ZodObject,...ke(t)});class Kl extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Dr(a.ctx.common.issues));return se(r,{code:Y.invalid_union,unionErrors:i}),ve}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Dr(l));return se(r,{code:Y.invalid_union,unionErrors:a}),ve}}get options(){return this._def.options}}Kl.create=(e,t)=>new Kl({options:e,typeName:_e.ZodUnion,...ke(t)});const Zn=e=>e instanceof Xl?Zn(e.schema):e instanceof gn?Zn(e.innerType()):e instanceof Jl?[e.value]:e instanceof qo?e.options:e instanceof Ql?Ue.objectValues(e.enum):e instanceof ec?Zn(e._def.innerType):e instanceof Gl?[void 0]:e instanceof ql?[null]:e instanceof Mn?[void 0,...Zn(e.unwrap())]:e instanceof Ko?[null,...Zn(e.unwrap())]:e instanceof qm||e instanceof rc?Zn(e.unwrap()):e instanceof tc?Zn(e._def.innerType):[];class xd extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.object)return se(r,{code:Y.invalid_type,expected:ae.object,received:r.parsedType}),ve;const n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(se(r,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const o=new Map;for(const s of r){const i=Zn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new xd({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...ke(n)})}}function Tg(e,t){const r=Mo(e),n=Mo(t);if(e===t)return{valid:!0,data:e};if(r===ae.object&&n===ae.object){const o=Ue.objectKeys(t),s=Ue.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Tg(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(r===ae.array&&n===ae.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(kg(s)||kg(i))return ve;const a=Tg(s.value,i.value);return a.valid?((Cg(s)||Cg(i))&&r.dirty(),{status:r.value,value:a.data}):(se(n,{code:Y.invalid_intersection_types}),ve)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Yl.create=(e,t,r)=>new Yl({left:e,right:t,typeName:_e.ZodIntersection,...ke(r)});class Un extends Ie{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.array)return se(n,{code:Y.invalid_type,expected:ae.array,received:n.parsedType}),ve;if(n.data.lengththis._def.items.length&&(se(n,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Fn(n,i,n.path,a)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>cr.mergeArray(r,i)):cr.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new Un({...this._def,rest:t})}}Un.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Un({items:e,typeName:_e.ZodTuple,rest:null,...ke(t)})};class Zl extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.object)return se(n,{code:Y.invalid_type,expected:ae.object,received:n.parsedType}),ve;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in n.data)o.push({key:s._parse(new Fn(n,a,n.path,a)),value:i._parse(new Fn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?cr.mergeObjectAsync(r,o):cr.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ie?new Zl({keyType:t,valueType:r,typeName:_e.ZodRecord,...ke(n)}):new Zl({keyType:sn.create(),valueType:t,typeName:_e.ZodRecord,...ke(r)})}}class bf extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.map)return se(n,{code:Y.invalid_type,expected:ae.map,received:n.parsedType}),ve;const o=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([a,l],c)=>({key:o._parse(new Fn(n,a,n.path,[c,"key"])),value:s._parse(new Fn(n,l,n.path,[c,"value"]))}));if(n.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ve;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ve;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}bf.create=(e,t,r)=>new bf({valueType:t,keyType:e,typeName:_e.ZodMap,...ke(r)});class Bs extends Ie{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.set)return se(n,{code:Y.invalid_type,expected:ae.set,received:n.parsedType}),ve;const o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(se(n,{code:Y.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return ve;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...n.data.values()].map((l,c)=>s._parse(new Fn(n,l,n.path,c)));return n.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,r){return new Bs({...this._def,minSize:{value:t,message:pe.toString(r)}})}max(t,r){return new Bs({...this._def,maxSize:{value:t,message:pe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Bs.create=(e,t)=>new Bs({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...ke(t)});class Fi extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.function)return se(r,{code:Y.invalid_type,expected:ae.function,received:r.parsedType}),ve;function n(a,l){return mf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,gf(),Yi].filter(c=>!!c),issueData:{code:Y.invalid_arguments,argumentsError:l}})}function o(a,l){return mf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,gf(),Yi].filter(c=>!!c),issueData:{code:Y.invalid_return_type,returnTypeError:l}})}const s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Xi){const a=this;return Sr(async function(...l){const c=new Dr([]),u=await a._def.args.parseAsync(l,s).catch(p=>{throw c.addIssue(n(l,p)),c}),f=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(f,s).catch(p=>{throw c.addIssue(o(f,p)),c})})}else{const a=this;return Sr(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Dr([n(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new Dr([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Fi({...this._def,args:Un.create(t).rest(Os.create())})}returns(t){return new Fi({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new Fi({args:t||Un.create([]).rest(Os.create()),returns:r||Os.create(),typeName:_e.ZodFunction,...ke(n)})}}class Xl extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Xl.create=(e,t)=>new Xl({getter:e,typeName:_e.ZodLazy,...ke(t)});class Jl extends Ie{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return se(r,{received:r.data,code:Y.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}Jl.create=(e,t)=>new Jl({value:e,typeName:_e.ZodLiteral,...ke(t)});function Uk(e,t){return new qo({values:e,typeName:_e.ZodEnum,...ke(t)})}class qo extends Ie{constructor(){super(...arguments),el.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{expected:Ue.joinValues(n),received:r.parsedType,code:Y.invalid_type}),ve}if(yf(this,el)||Mk(this,el,new Set(this._def.values)),!yf(this,el).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{received:r.data,code:Y.invalid_enum_value,options:n}),ve}return Sr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return qo.create(t,{...this._def,...r})}exclude(t,r=this._def){return qo.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}el=new WeakMap;qo.create=Uk;class Ql extends Ie{constructor(){super(...arguments),tl.set(this,void 0)}_parse(t){const r=Ue.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ae.string&&n.parsedType!==ae.number){const o=Ue.objectValues(r);return se(n,{expected:Ue.joinValues(o),received:n.parsedType,code:Y.invalid_type}),ve}if(yf(this,tl)||Mk(this,tl,new Set(Ue.getValidEnumValues(this._def.values))),!yf(this,tl).has(t.data)){const o=Ue.objectValues(r);return se(n,{received:n.data,code:Y.invalid_enum_value,options:o}),ve}return Sr(t.data)}get enum(){return this._def.values}}tl=new WeakMap;Ql.create=(e,t)=>new Ql({values:e,typeName:_e.ZodNativeEnum,...ke(t)});class Xi extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.promise&&r.common.async===!1)return se(r,{code:Y.invalid_type,expected:ae.promise,received:r.parsedType}),ve;const n=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return Sr(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Xi.create=(e,t)=>new Xi({type:e,typeName:_e.ZodPromise,...ke(t)});class gn extends Ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{se(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return ve;const l=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return l.status==="aborted"?ve:l.status==="dirty"||r.value==="dirty"?Ei(l.value):l});{if(r.value==="aborted")return ve;const a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?ve:a.status==="dirty"||r.value==="dirty"?Ei(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ve:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ve:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Vl(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Vl(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:r.value,value:a})):i);Ue.assertNever(o)}}gn.create=(e,t,r)=>new gn({schema:e,typeName:_e.ZodEffects,effect:t,...ke(r)});gn.createWithPreprocess=(e,t,r)=>new gn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...ke(r)});class Mn extends Ie{_parse(t){return this._getType(t)===ae.undefined?Sr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mn.create=(e,t)=>new Mn({innerType:e,typeName:_e.ZodOptional,...ke(t)});class Ko extends Ie{_parse(t){return this._getType(t)===ae.null?Sr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ko.create=(e,t)=>new Ko({innerType:e,typeName:_e.ZodNullable,...ke(t)});class ec extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ke(t)});class tc extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Wl(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Dr(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Dr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}tc.create=(e,t)=>new tc({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ke(t)});class wf extends Ie{_parse(t){if(this._getType(t)!==ae.nan){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.nan,received:n.parsedType}),ve}return{status:"valid",value:t.data}}}wf.create=e=>new wf({typeName:_e.ZodNaN,...ke(e)});const a3=Symbol("zod_brand");class qm extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Sc extends Ie{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ve:s.status==="dirty"?(r.dirty(),Ei(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ve:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new Sc({in:t,out:r,typeName:_e.ZodPipeline})}}class rc extends Ie{_parse(t){const r=this._def.innerType._parse(t),n=o=>(Vl(o)&&(o.value=Object.freeze(o.value)),o);return Wl(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}rc.create=(e,t)=>new rc({innerType:e,typeName:_e.ZodReadonly,...ke(t)});function jk(e,t={},r){return e?Zi.create().superRefine((n,o)=>{var s,i;if(!e(n)){const a=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Zi.create()}const l3={object:_t.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const c3=(e,t={message:`Input not instance of ${e.name}`})=>jk(r=>r instanceof e,t),Bk=sn.create,Hk=zo.create,u3=wf.create,f3=Go.create,Vk=zl.create,d3=js.create,p3=_f.create,h3=Gl.create,g3=ql.create,m3=Zi.create,y3=Os.create,_3=po.create,v3=vf.create,b3=un.create,w3=_t.create,S3=_t.strictCreate,E3=Kl.create,x3=xd.create,k3=Yl.create,C3=Un.create,T3=Zl.create,A3=bf.create,I3=Bs.create,O3=Fi.create,R3=Xl.create,L3=Jl.create,P3=qo.create,N3=Ql.create,M3=Xi.create,Hb=gn.create,D3=Mn.create,$3=Ko.create,F3=gn.createWithPreprocess,U3=Sc.create,j3=()=>Bk().optional(),B3=()=>Hk().optional(),H3=()=>Vk().optional(),V3={string:e=>sn.create({...e,coerce:!0}),number:e=>zo.create({...e,coerce:!0}),boolean:e=>zl.create({...e,coerce:!0}),bigint:e=>Go.create({...e,coerce:!0}),date:e=>js.create({...e,coerce:!0})},W3=ve;var O=Object.freeze({__proto__:null,defaultErrorMap:Yi,setErrorMap:WH,getErrorMap:gf,makeIssue:mf,EMPTY_PATH:zH,addIssueToContext:se,ParseStatus:cr,INVALID:ve,DIRTY:Ei,OK:Sr,isAborted:kg,isDirty:Cg,isValid:Vl,isAsync:Wl,get util(){return Ue},get objectUtil(){return xg},ZodParsedType:ae,getParsedType:Mo,ZodType:Ie,datetimeRegex:Fk,ZodString:sn,ZodNumber:zo,ZodBigInt:Go,ZodBoolean:zl,ZodDate:js,ZodSymbol:_f,ZodUndefined:Gl,ZodNull:ql,ZodAny:Zi,ZodUnknown:Os,ZodNever:po,ZodVoid:vf,ZodArray:un,ZodObject:_t,ZodUnion:Kl,ZodDiscriminatedUnion:xd,ZodIntersection:Yl,ZodTuple:Un,ZodRecord:Zl,ZodMap:bf,ZodSet:Bs,ZodFunction:Fi,ZodLazy:Xl,ZodLiteral:Jl,ZodEnum:qo,ZodNativeEnum:Ql,ZodPromise:Xi,ZodEffects:gn,ZodTransformer:gn,ZodOptional:Mn,ZodNullable:Ko,ZodDefault:ec,ZodCatch:tc,ZodNaN:wf,BRAND:a3,ZodBranded:qm,ZodPipeline:Sc,ZodReadonly:rc,custom:jk,Schema:Ie,ZodSchema:Ie,late:l3,get ZodFirstPartyTypeKind(){return _e},coerce:V3,any:m3,array:b3,bigint:f3,boolean:Vk,date:d3,discriminatedUnion:x3,effect:Hb,enum:P3,function:O3,instanceof:c3,intersection:k3,lazy:R3,literal:L3,map:A3,nan:u3,nativeEnum:N3,never:_3,null:g3,nullable:$3,number:Hk,object:w3,oboolean:H3,onumber:B3,optional:D3,ostring:j3,pipeline:U3,preprocess:F3,promise:M3,record:T3,set:I3,strictObject:S3,string:Bk,symbol:p3,transformer:Hb,tuple:C3,undefined:h3,union:E3,unknown:y3,void:v3,NEVER:W3,ZodIssueCode:Y,quotelessJson:VH,ZodError:Dr});const z3=Qe.withTag("updateUserEngagementState"),G3=e=>{const t=e.isEngaged?"isEngaged":"notEngaged",r=no.getContext();z3.info(`User engagement state updated: ${t}`),no.setContext({...r,...e}),window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var n,o;(o=(n=window.assertive)==null?void 0:n.analytics)!=null&&o.custom&&(window.assertive.analytics.custom.userState=t)}),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push(()=>{window.googletag.setConfig({targeting:{user_engagement:t}})})},Vb=Qe.withTag("store:UserEngagementStore"),Ag=O.object({isEngaged:O.boolean(),lastEngagementDate:O.date().nullable()}),Cp="app:userEngagement",ru=Ag.parse({isEngaged:!1,lastEngagementDate:null}),q3=pa(Cp,{state:()=>({...ru}),getters:{isEnabled(){return!!lt().public.enableUserTracking},localStorageEngagement(){const e=pf.getItem(Cp);if(!e)return ru;const t=JSON.parse(e),r=Ag.safeParse({...t,lastEngagementDate:new Date(t.lastEngagementDate)});return r.success?r.data:(Vb.error("Invalid user engagement data:",r.error.errors),ru)}},actions:{loadUserEngagement(){if(!this.isEnabled)return;this.setupLocalStorageSync();const e=this.localStorageEngagement;this.$patch({...e}),this.shouldResetEngagement()&&this.resetUserEngagement()},setupLocalStorageSync(){this.isEnabled&&this.$subscribe((e,t)=>{pf.setItem(Cp,JSON.stringify(t)),G3(t)},{flush:"sync"})},setUserEngagement(e,t){if(!this.isEnabled)return;const r={...this.$state,[e]:t,lastEngagementDate:new Date},n=Ag.safeParse(r);if(!n.success){Vb.error("Invalid user engagement entry",n.error.errors);return}this.$patch(n.data)},resetUserEngagement(){this.isEnabled&&this.$patch({...ru})},shouldResetEngagement(){return!this.$state.isEngaged||this.$state.isEngaged&&!this.isEngagementRecent()},isEngagementRecent(){const e=this.$state.lastEngagementDate?new Date(this.$state.lastEngagementDate):null;if(!e)return!1;const t=1e3*60*60*24*7;return new Date().getTime()-e.getTime()<=t},getUserEngagementProperty(e){return this.$state[e]}}});function Sf(e,t){var l,c;const{shift:r,chrome:n,onelaunch:o}=Bn(),s=(l=r==null?void 0:r.analytics)==null?void 0:l.setProfileProperties;if(s)return s({[e]:t});const i=o==null?void 0:o.setProfileProperty;if(i){i(e,JSON.stringify(t));return}const a=(c=n==null?void 0:n.runtime)==null?void 0:c.setProfileProperty;a&&a(e,JSON.stringify(t))}const Wk=()=>{if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=()=>Math.floor(Math.random()*16).toString(16);return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=e();return(t==="x"?r:parseInt(r,16)&3|8).toString(16)}).toUpperCase()},K3=()=>`${Date.now()}-${Wk().slice(0,8)}`,Tp=["alfa","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliett"],Ma=Qe.withTag("openfeature"),Ap=new Map;let fi=null;async function Y3(){if(fi&&await fi,Ap.has("client")&&Ap.get("client")!==void 0){const v=Ap.get("client");if(v)return{client:v,loaded:Promise.resolve(v)}}const e=1e3*60*60*24*365*10,t=wu(jH,{maxAge:e});t.value=t.value||Wk();const r=wu(HH,{maxAge:e});if(!r.value||!Tp.includes(r.value)){const v=String(t.value),E=Array.from(v).reduce((S,x)=>S+x.charCodeAt(0),0)%Tp.length;r.value=Tp[E]}const n=Ce().$filters||{userAgent:null,isMobile:null},o=ti().query,s=wu(BH,{maxAge:e}),i=q3();i.loadUserEngagement(),no.setContext({...n,...o,targetingKey:t.value,...s.value?{splittestname:s.value}:{},...i.$state,cohort:r.value}),Ma.log({filters:n});const{registerMultipleFeatureFlagProviders:a,registerFeatureFlagProvider:l,teardown:c}=await Jt(async()=>{const{registerMultipleFeatureFlagProviders:v,registerFeatureFlagProvider:E,teardown:S}=await import("./D9Hnwi_S.js").then(x=>x.f);return{registerMultipleFeatureFlagProviders:v,registerFeatureFlagProvider:E,teardown:S}},__vite__mapDeps([60,18,9]),import.meta.url);fi&&await fi;const{configCatSdkKey:u}=lt().public,{openfeature:f={multiProvider:!1,localProvider:!1,queryProvider:!1}}=Lr(),{multiProvider:d=!1,localProvider:p=!1,queryProvider:g=!1}=f,h={configCatKey:u??void 0,localProvider:p,queryProvider:g},m=d?a(h):l(h);fi=m;const y=await m;Ma.log({client:y,OpenFeature:no,context:no.getContext()});let b=!1;const _=y.getStringValue("splittestname","");if(_&&(s.value=_),no.setContext({...no.getContext(),splittestname:s.value??"",cohort:r.value??""}),typeof window<"u"){b||(window.addEventListener("beforeunload",()=>{Ma.log("Teardown OpenFeature client on beforeunload"),c().catch(v=>Ma.error("Teardown failed:",v))}),b=!0);try{Sf("ntp_cohort",String(r.value||""))}catch(v){Ma.warn("Failed to set NTP cohort property for analytics",v)}}return{client:y,loaded:fi}}const ss=gk(Y3);async function Z3(e){const{client:t}=await ss(),r=t.getStringValue(e,"control"),n=`/api/v2/configs/${e}`;return[`${n}/${r}.json`,`${n}/control.json`]}const Da=Qe.withTag("store:ConfigStore");function kd(e){const t=r=>{if(!e.transform)return r;try{return e.transform(r)}catch(n){return Da.error(`[${e.configStoreKey}] Failed to apply transform function:`,n),r}};return pa(e.configStoreKey,()=>{const r=new bB(pf,"app:config",6e4),n=ue(e.defaults),o=ue(!1),s=async()=>{const u=[],f=await Z3(e.configStoreKey);for(const d of Array.isArray(f)?f:[f])try{const p=await fetch(d);if(!p.ok)throw new Error(`Failed to fetch ${d}: ${p.statusText}`);const g=await p.json();return e.schema(g)}catch(p){u.push(`Failed to fetch ${d}: ${p}`)}throw new Error(`Failed to fetch config: ${u.join(", ")}`)};let i=null;const a=async()=>{var f,d;if(i)return i;o.value=!0;const u=r.load(e.configStoreKey);if(u)try{const p=JSON.parse(u),g=e.schema(p),h=t(g);n.value=h,(f=e.onLoad)==null||f.call(e,h)}catch(p){Da.warn(`[${e.configStoreKey}] Failed to parse or validate stored data:`,p)}else{try{const p=await s(),g=t(p);n.value=g,r.save(e.configStoreKey,JSON.stringify(g)),(d=e.onLoad)==null||d.call(e,g)}catch(p){Da.error(`[${e.configStoreKey}] Failed to fetch or validate config:`,p)}n.value||Da.warn(`[${e.configStoreKey}] No valid data found in local storage or API`)}return o.value=!1,await Promise.resolve(n.value)};return i=a(),{data:n,isLoading:o,load:a,update:u=>{var d;Da.log("updating config store",u);const f={...n.value,...u};n.value=t(f),r.save(e.configStoreKey,JSON.stringify(n.value)),(d=e.onUpdate)==null||d.call(e,n.value)},reset:()=>{var f;const u=structuredClone(e.defaults);n.value=t(u),r.save(e.configStoreKey,JSON.stringify(n.value)),(f=e.onReset)==null||f.call(e),i=null},storage:r,initialized:i}})}const X3=O.object({position:O.union([O.literal("off"),O.literal("footer"),O.literal("navbar")]).default("off").transform(e=>e==="navbar"?"footer":e),defaultSettings:O.object({theme:O.union([O.literal("light"),O.literal("dark"),O.literal("auto")]),articleSummary:O.boolean().default(!0)}),enabledSettings:O.object({articleSummary:O.boolean().default(!1)}).default({articleSummary:!1})}),Wb=O.object({userSettings:O.optional(X3),enableLocalNewsSearch:O.optional(O.boolean()).default(!0),sortNewsBy:O.optional(O.union([O.literal("publishedDate"),O.literal("clusterSize")])).default("publishedDate"),enableArticleReordering:O.optional(O.boolean()),videoEnabled:O.optional(O.boolean()),gamesEnabled:O.optional(O.boolean())}),Cd=kd({defaults:Wb.parse({userSettings:{position:"off",defaultSettings:{theme:"light",articleSummary:!0},enabledSettings:{articleSummary:!1}},enableLocalNewsSearch:!0,sortNewsBy:"clusterSize",enableArticleReordering:!1,videoEnabled:!1,gamesEnabled:!1}),configStoreKey:"siteSettings",schema:e=>Wb.parse(e)}),zb=[];function J3(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(zb.includes(t.ntp_placement_name))return!1;zb.push(t.ntp_placement_name)}return!0}function Q3(e,t){const r=Cd(),{data:n}=ha(r);J3(e,t)&&e4(e,t,n?Me(n):void 0)}async function e4(e,t,r){var f,d;const o={...await UC(r,e),...t||{}};window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:o});const{shift:s,chrome:i,onelaunch:a}=Bn(),l=(f=s==null?void 0:s.analytics)==null?void 0:f.track;if(l)return l(e,o);const c=a==null?void 0:a.sendEvent;if(c){c(e,o);return}const u=(d=i==null?void 0:i.runtime)==null?void 0:d.sendEvent;u&&u(e,o)}function t4(e,t){var l,c;const{shift:r,chrome:n,onelaunch:o}=Bn(),s=(l=r==null?void 0:r.analytics)==null?void 0:l.updateNumericProfileProperties;if(s)return s({[e]:t});const i=o==null?void 0:o.addProfileProperty;if(i){i(e,t.toString());return}const a=(c=n==null?void 0:n.runtime)==null?void 0:c.addProfileProperty;a&&a(e,t.toString())}const zk={getSearchUrl:EB,getConfig:xB,getHostApis:Bn,openInDefaultBrowser:CB,getHostBrowserAppVersion:pk,setProfileProperty:Sf,isCurrentlyAtHomeTab:fk,getInstallInfo:dk,getSearchEngineConfig:AB,analytics:{incrementProfileProperty:t4,sendMixpanelEvent:Q3,setProfileProperty:Sf}},r4="2.174.0",Ip={version:r4},n4=300,o4=12,s4=24,$a=e=>e*n4+(e-1)*o4,Fa={1:$a(1),2:$a(2),3:$a(3),4:$a(4),5:$a(5)};function i4(e){const t=e-s4*2;return t>=Fa[5]?5:t>=Fa[4]?4:t>=Fa[3]?3:t>=Fa[2]?2:t>=Fa[1]?1:0}const a4=()=>{const{width:e,height:t}=Ox(),r=`${e.value}x${t.value}`,n=e.value,o=t.value,s=i4(e.value);return{browser_window_size:r,browser_window_width:n,browser_window_height:o,column_count:s}},Km=O.object({design:O.enum(["google","msn"]).default("google").optional(),pages:O.number().min(2).default(6).optional()}).passthrough(),Gk=O.object({type:O.optional(O.union([O.literal("slider"),O.literal("carousel"),O.literal("title"),O.literal("title-l"),O.literal("video"),O.literal("video-s"),O.literal("video-l"),O.literal("title-msn"),O.literal("article-group"),O.literal("yolo-xxl"),O.literal("yolo-xl"),O.literal("yolo-l"),O.literal("yolo-full")])),y:O.number(),x:O.optional(O.number()),repeat:O.optional(O.boolean()),size:O.optional(O.number()),classes:O.optional(O.string()),props:O.optional(Km),onlyWhenGridIsGreaterThan:O.optional(O.number())}),qk=O.object({y:O.number(),x:O.optional(O.number()),classes:O.optional(O.string()),props:O.optional(Km),onlyWhenGridIsGreaterThan:O.optional(O.number())}),l4=Gk.extend({type:O.literal("slider"),props:O.optional(Km.extend({autoplayInterval:O.optional(O.number()),ads:O.optional(O.array(qk.pick({classes:!0,props:!0}).extend({position:O.number()}))),contentType:O.enum(["video","title"]).optional()}))}),Gb=O.union([Gk,l4,qk]),c4=O.object({name:O.string(),title:O.optional(O.string()),titleIcon:O.optional(O.string()),background:O.optional(O.string()),padded:O.optional(O.literal(!1)),classes:O.optional(O.string()),repeat:O.optional(O.literal(!0)),titles:O.optional(O.array(Gb)),ads:O.optional(O.array(Gb))}),u4=O.object({name:O.string(),section:O.array(c4)}),f4=e=>{if(!e)throw new Error("Layout data is undefined or null");const t=structuredClone(e),{$filters:r}=Ce();if(!r)throw new Error('Invalid or missing $filters in Nuxt app. Expected $filters to be an object with an "isMobile" property.');return!(r!=null&&r.isMobile)||!t.section||t==null||t.section.map((n,o)=>{var i,a;if(o===0||!((i=n.ads)!=null&&i.length)){n.ads=[];return}const s=(a=n.ads)==null?void 0:a.filter(l=>l.x===-1).slice(-1);n.ads=s||n.ads.slice(-1)}),t},d4=kd({configStoreKey:"layoutSkeleton",defaults:void 0,schema:e=>u4.parse(e),transform:f4}),p4=Qe.withTag("visibleContent"),Hs=new Map;let Kk=0;function Mq(e,t){if(!e)return-1;const r=Hs.get(e);if(r)return t&&(r.metadata=t),r.sortOrder;const n=Kk++;return Hs.set(e,{id:e,sortOrder:n,isVisible:!1,metadata:t}),n}function Dq(e,t){const r=Hs.get(e);r&&(r.isVisible=t)}function $q(e){Hs.delete(e)}function h4(e=!0){const t=Array.from(Hs.values()).filter(n=>!e||n.isVisible).sort((n,o)=>n.sortOrder-o.sortOrder),r=t.slice(0,100);return t.length>100&&p4.warn(`Content exceeds 100 items (${t.length}), capping to 100`),r.map(({id:n,sortOrder:o,metadata:s})=>({id:n,sortOrder:o,headline:s==null?void 0:s.headline,publisher:s==null?void 0:s.publisher,url:s==null?void 0:s.url,summary_url:s==null?void 0:s.summary_url,category:s==null?void 0:s.category,type:s==null?void 0:s.type,story_age:s!=null&&s.publishedDate?g4(s.publishedDate):void 0}))}function g4(e){const t=new Date(e),n=new Date().getTime()-t.getTime();return Math.floor(n/(1e3*60*60))}function m4(e,t){return!t||t<=0?e.map(r=>({...r,position_row:0,position_col:0})):e.map(r=>({...r,position_row:Math.floor(r.sortOrder/t),position_col:r.sortOrder%t}))}function Fq(){return Hs.size>0}function y4(){Hs.clear(),Kk=0}const _4=pa("newsToggle",{state:()=>({newsToggle:!0}),actions:{updateNewsToggle(){this.newsToggle=!this.newsToggle}}}),Yk=()=>ri("color-mode").value;var Pt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Pt||(Pt={}));function v4(e){return e.nodeType===e.ELEMENT_NODE}function gl(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function ml(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function b4(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function w4(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Ef(e){try{const t=e.rules||e.cssRules;return t?b4(Array.from(t,Zk).join("")):null}catch{return null}}function Zk(e){let t;if(E4(e))try{t=Ef(e.styleSheet)||w4(e)}catch{}else if(x4(e)&&e.selectorText.includes(":"))return S4(e.cssText);return t||e.cssText}function S4(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function E4(e){return"styleSheet"in e}function x4(e){return"selectorText"in e}class Xk{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function k4(){return new Xk}function Ym({element:e,maskInputOptions:t,tagName:r,type:n,value:o,maskInputFn:s}){let i=o||"";const a=n&&Vs(n);return(t[r.toLowerCase()]||a&&t[a])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function Vs(e){return e.toLowerCase()}const qb="__rrweb_original__";function C4(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let n=0;nl!==0))return!1}return!0}function Zm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Vs(t):null}function Jk(e,t){var r;let n;try{n=new URL(e,t??window.location.href)}catch{return null}const o=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(o);return(r=s==null?void 0:s[1])!==null&&r!==void 0?r:null}let T4=1;const A4=new RegExp("[^a-z0-9-_:]"),nc=-2;function Qk(){return T4++}function I4(e){if(e instanceof HTMLFormElement)return"form";const t=Vs(e.tagName);return A4.test(t)?"div":t}function O4(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let di,Kb;const R4=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,L4=/^(?:[a-z+]+:)?\/\//i,P4=/^www\..*/i,N4=/^(data:)([^,]*),(.*)/i;function xf(e,t){return(e||"").replace(R4,(r,n,o,s,i,a)=>{const l=o||i||a,c=n||s||"";if(!l)return r;if(L4.test(l)||P4.test(l))return`url(${c}${l}${c})`;if(N4.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${O4(t)+l}${c})`;const u=t.split("/"),f=l.split("/");u.pop();for(const d of f)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${c}${u.join("/")}${c})`})}const M4=/^[^ \t\n\r\u000c]+/,D4=/^[, \t\n\r\u000c]+/;function $4(e,t){if(t.trim()==="")return t;let r=0;function n(s){let i;const a=s.exec(t.substring(r));return a?(i=a[0],r+=i.length,i):""}const o=[];for(;n(D4),!(r>=t.length);){let s=n(M4);if(s.slice(-1)===",")s=xi(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=xi(e,s);let a=!1;for(;;){const l=t.charAt(r);if(l===""){o.push((s+i).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){r+=1,o.push((s+i).trim());break}else l==="("&&(a=!0);i+=l,r+=1}}}return o.join(", ")}function xi(e,t){if(!t||t.trim()==="")return t;const r=e.createElement("a");return r.href=t,r.href}function F4(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Xm(){const e=document.createElement("a");return e.href="",e.href}function eC(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?xi(e,n):r==="srcset"?$4(e,n):r==="style"?xf(n,Xm()):t==="object"&&r==="data"?xi(e,n):n)}function tC(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function U4(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}if(r)return e.matches(r)}catch{}return!1}function kf(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?kf(e.parentNode,t,r):!1;for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}return r?kf(e.parentNode,t,r):!1}function rC(e,t,r,n){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(typeof t=="string"){if(n){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(kf(o,t,n))return!0;if(r){if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}}catch{}return!1}function j4(e,t,r){const n=e.contentWindow;if(!n)return;let o=!1,s;try{s=n.document.readyState}catch{return}if(s!=="complete"){const a=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()});return}const i="about:blank";if(n.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function B4(e,t,r){let n=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()})}function H4(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:f={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h=!1}=t,m=V4(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Pt.Document,childNodes:[],compatMode:e.compatMode}:{type:Pt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Pt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return z4(e,{doc:r,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:f,inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h,rootId:m});case e.TEXT_NODE:return W4(e,{needsMask:i,maskTextFn:c,rootId:m});case e.CDATA_SECTION_NODE:return{type:Pt.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:Pt.Comment,textContent:e.textContent||"",rootId:m};default:return!1}}function V4(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function W4(e,t){var r;const{needsMask:n,maskTextFn:o,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const l=i==="STYLE"?!0:void 0,c=i==="SCRIPT"?!0:void 0;if(l&&a){try{e.nextSibling||e.previousSibling||!((r=e.parentNode.sheet)===null||r===void 0)&&r.cssRules&&(a=Ef(e.parentNode.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}a=xf(a,Xm())}return c&&(a="SCRIPT_PLACEHOLDER"),!l&&!c&&a&&n&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:Pt.Text,textContent:a||"",isStyle:l,rootId:s}}function z4(e,t){const{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=t,g=U4(e,n,o),h=I4(e);let m={};const y=e.attributes.length;for(let _=0;_E.href===e.href);let v=null;_&&(v=Ef(_)),v&&(delete m.rel,delete m.href,m._cssText=xf(v,_.href))}if(h==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const _=Ef(e.sheet);_&&(m._cssText=xf(_,Xm()))}if(h==="input"||h==="textarea"||h==="select"){const _=e.value,v=e.checked;m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&_?m.value=Ym({element:e,type:Zm(e),tagName:h,value:_,maskInputOptions:i,maskInputFn:a}):v&&(m.checked=v)}if(h==="option"&&(e.selected&&!i.select?m.selected=!0:delete m.selected),h==="canvas"&&u){if(e.__context==="2d")C4(e)||(m.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const _=e.toDataURL(l.type,l.quality),v=document.createElement("canvas");v.width=e.width,v.height=e.height;const E=v.toDataURL(l.type,l.quality);_!==E&&(m.rr_dataURL=_)}}if(h==="img"&&c){di||(di=r.createElement("canvas"),Kb=di.getContext("2d"));const _=e,v=_.crossOrigin;_.crossOrigin="anonymous";const E=()=>{_.removeEventListener("load",E);try{di.width=_.naturalWidth,di.height=_.naturalHeight,Kb.drawImage(_,0,0),m.rr_dataURL=di.toDataURL(l.type,l.quality)}catch(S){console.warn(`Cannot inline img src=${_.currentSrc}! Error: ${S}`)}v?m.crossOrigin=v:_.removeAttribute("crossorigin")};_.complete&&_.naturalWidth!==0?E():_.addEventListener("load",E)}if(h==="audio"||h==="video"){const _=m;_.rr_mediaState=e.paused?"paused":"played",_.rr_mediaCurrentTime=e.currentTime,_.rr_mediaPlaybackRate=e.playbackRate,_.rr_mediaMuted=e.muted,_.rr_mediaLoop=e.loop,_.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(m.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(m.rr_scrollTop=e.scrollTop)),g){const{width:_,height:v}=e.getBoundingClientRect();m={class:m.class,rr_width:`${_}px`,rr_height:`${v}px`}}h==="iframe"&&!f(m.src)&&(e.contentDocument||(m.rr_src=m.src),delete m.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:Pt.Element,tagName:h,attributes:m,childNodes:[],isSVG:F4(e)||void 0,needBlock:g,rootId:p,isCustom:b}}function st(e){return e==null?"":e.toLowerCase()}function G4(e,t){if(t.comment&&e.type===Pt.Comment)return!0;if(e.type===Pt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Jk(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(st(e.attributes.name).match(/^msapplication-tile(image|color)$/)||st(e.attributes.name)==="application-name"||st(e.attributes.rel)==="icon"||st(e.attributes.rel)==="apple-touch-icon"||st(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&st(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(st(e.attributes.property).match(/^(og|twitter|fb):/)||st(e.attributes.name).match(/^(og|twitter):/)||st(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(st(e.attributes.name)==="robots"||st(e.attributes.name)==="googlebot"||st(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(st(e.attributes.name)==="author"||st(e.attributes.name)==="generator"||st(e.attributes.name)==="framework"||st(e.attributes.name)==="publisher"||st(e.attributes.name)==="progid"||st(e.attributes.property).match(/^article:/)||st(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(st(e.attributes.name)==="google-site-verification"||st(e.attributes.name)==="yandex-verification"||st(e.attributes.name)==="csrf-token"||st(e.attributes.name)==="p:domain_verify"||st(e.attributes.name)==="verify-v1"||st(e.attributes.name)==="verification"||st(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ki(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g={},inlineImages:h=!1,recordCanvas:m=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:x=!1}=t;let{needsMask:D}=t,{preserveWhiteSpace:I=!0}=t;!D&&e.childNodes&&(D=rC(e,i,a,D===void 0));const P=H4(e,{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:D,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,dataURLOptions:g,inlineImages:h,recordCanvas:m,keepIframeSrcFn:S,newlyAddedElement:x});if(!P)return console.warn(e,"not serialized"),null;let j;n.hasNode(e)?j=n.getId(e):G4(P,p)||!I&&P.type===Pt.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?j=nc:j=Qk();const L=Object.assign(P,{id:j});if(n.add(e,L),j===nc)return null;y&&y(e);let G=!l;if(L.type===Pt.Element){G=G&&!L.needBlock,delete L.needBlock;const re=e.shadowRoot;re&&ml(re)&&(L.isShadowHost=!0)}if((L.type===Pt.Document||L.type===Pt.Element)&&G){p.headWhitespace&&L.type===Pt.Element&&L.tagName==="head"&&(I=!1);const re={doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:D,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:m,preserveWhiteSpace:I,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:S};if(!(L.type===Pt.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0))for(const de of Array.from(e.childNodes)){const q=ki(de,re);q&&L.childNodes.push(q)}if(v4(e)&&e.shadowRoot)for(const de of Array.from(e.shadowRoot.childNodes)){const q=ki(de,re);q&&(ml(e.shadowRoot)&&(q.isShadow=!0),L.childNodes.push(q))}}return e.parentNode&&gl(e.parentNode)&&ml(e.parentNode)&&(L.isShadow=!0),L.type===Pt.Element&&L.tagName==="iframe"&&j4(e,()=>{const re=e.contentDocument;if(re&&b){const de=ki(re,{doc:re,mirror:n,blockClass:o,blockSelector:s,needsMask:D,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:m,preserveWhiteSpace:I,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:S});de&&b(e,de)}},_),L.type===Pt.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&Jk(L.attributes.href)==="css")&&B4(e,()=>{if(v){const re=ki(e,{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:D,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:m,preserveWhiteSpace:I,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:S});re&&v(e,re)}},E),L}function q4(e,t){const{mirror:r=new Xk,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:f,maskInputFn:d,slimDOM:p=!1,dataURLOptions:g,preserveWhiteSpace:h,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:E=()=>!1}=t||{};return ki(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:l,recordCanvas:c,preserveWhiteSpace:h,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:E,newlyAddedElement:!1})}function br(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const wi=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let Yb={map:{},getId(){return console.error(wi),-1},getNode(){return console.error(wi),null},removeNodeFromMap(){console.error(wi)},has(){return console.error(wi),!1},reset(){console.error(wi)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Yb=new Proxy(Yb,{get(e,t,r){return t==="map"&&console.error(wi),Reflect.get(e,t,r)}}));function oc(e,t,r={}){let n=null,o=0;return function(...s){const i=Date.now();!o&&r.leading===!1&&(o=i);const a=t-(i-o),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),o=i,e.apply(l,s)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(l,s)},a))}}function Td(e,t,r,n,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(i){setTimeout(()=>{r.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Td(e,t,s||{},!0)}function ma(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}let Cf=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Cf=()=>new Date().getTime());function nC(e){var t,r,n,o,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(a==null?void 0:a.documentElement.scrollLeft)||((r=(t=a==null?void 0:a.body)===null||t===void 0?void 0:t.parentElement)===null||r===void 0?void 0:r.scrollLeft)||((n=a==null?void 0:a.body)===null||n===void 0?void 0:n.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||((s=(o=a==null?void 0:a.body)===null||o===void 0?void 0:o.parentElement)===null||s===void 0?void 0:s.scrollTop)||((i=a==null?void 0:a.body)===null||i===void 0?void 0:i.scrollTop)||0}}function oC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sC(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iC(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function wr(e,t,r,n){if(!e)return!1;const o=iC(e);if(!o)return!1;try{if(typeof t=="string"){if(o.classList.contains(t)||n&&o.closest("."+t)!==null)return!0}else if(kf(o,t,n))return!0}catch{}return!!(r&&(o.matches(r)||n&&o.closest(r)!==null))}function K4(e,t){return t.getId(e)!==-1}function Op(e,t){return t.getId(e)===nc}function aC(e,t){if(gl(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?aC(e.parentNode,t):!0:!0}function Ig(e){return!!e.changedTouches}function Y4(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function lC(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function cC(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Og(e){return!!(e!=null&&e.shadowRoot)}class Z4{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var r;return(r=this.styleIDMap.get(t))!==null&&r!==void 0?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function uC(e){var t,r;let n=null;return((r=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||r===void 0?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function X4(e){let t=e,r;for(;r=uC(t);)t=r;return t}function J4(e){const t=e.ownerDocument;if(!t)return!1;const r=X4(e);return t.contains(r)}function fC(e){const t=e.ownerDocument;return t?t.contains(e)||J4(e):!1}var He=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(He||{}),De=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(De||{}),Cr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Cr||{}),Xn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Xn||{}),Ji=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ji||{});function Zb(e){return"__ln"in e}class Q4{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n`${e}@${t}`;class e5{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,n=new Q4,o=l=>{let c=l,u=nc;for(;u===nc;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=l=>{if(!l.parentNode||!fC(l)||l.parentNode.tagName==="TEXTAREA")return;const c=gl(l.parentNode)?this.mirror.getId(uC(l)):this.mirror.getId(l.parentNode),u=o(l);if(c===-1||u===-1)return n.addNode(l);const f=ki(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{lC(d,this.mirror)&&this.iframeManager.addIframe(d),cC(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Og(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(d,p)=>{this.iframeManager.attachIframe(d,p),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,p)=>{this.stylesheetManager.attachLinkElement(d,p)}});f&&(t.push({parentId:c,nextId:u,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)Jb(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(const l of this.addedSet)!Qb(this.droppedSet,l)&&!Jb(this.removes,l,this.mirror)||Qb(this.movedSet,l)?s(l):this.droppedSet.add(l);let i=null;for(;n.length;){let l=null;if(i){const c=this.mirror.getId(i.value.parentNode),u=o(i.value);c!==-1&&u!==-1&&(l=i)}if(!l){let c=n.tail;for(;c;){const u=c;if(c=c.previous,u){const f=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(f!==-1){l=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=p.parentNode.host;if(this.mirror.getId(g)!==-1){l=u;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}i=l.previous,n.removeNode(l.value),s(l.value)}const a={texts:this.texts.map(l=>{const c=l.node;return c.parentNode&&c.parentNode.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c.parentNode),{id:this.mirror.getId(c),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:c}=l;if(typeof c.style=="string"){const u=JSON.stringify(l.styleDiff),f=JSON.stringify(l._unchangedStyles);u.length!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r)),r.attributes.value=Array.from(t.childNodes,n=>n.textContent||"").join("")},this.processMutation=t=>{if(!Op(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!wr(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:rC(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,iC(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.attributeName,o=t.target.getAttribute(n);if(n==="value"){const i=Zm(r);o=Ym({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:i,value:o,maskInputFn:this.maskInputFn})}if(wr(t.target,this.blockClass,this.blockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(o))if(!r.contentDocument)n="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!tC(r.tagName,n)&&(s.attributes[n]=eC(this.doc,Vs(r.tagName),Vs(n),o),n==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(r.style)){const l=r.style.getPropertyValue(a),c=r.style.getPropertyPriority(a);l!==i.style.getPropertyValue(a)||c!==i.style.getPropertyPriority(a)?c===""?s.styleDiff[a]=l:s.styleDiff[a]=[l,c]:s._unchangedStyles[a]=[l,c]}for(const a of Array.from(i.style))r.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(wr(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),o=gl(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);wr(t.target,this.blockClass,this.blockSelector,!1)||Op(r,this.mirror)||!K4(r,this.mirror)||(this.addedSet.has(r)?(Rg(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||aC(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Xb(n,o)]?Rg(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:gl(t.target)&&ml(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Op(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[Xb(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);wr(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(n=>this.genAdds(n)),Og(t)&&t.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Rg(e,t){e.delete(t),t.childNodes.forEach(r=>Rg(e,r))}function Jb(e,t,r){return e.length===0?!1:dC(e,t,r)}function dC(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return e.some(s=>s.id===o)?!0:dC(e,n,r)}function Qb(e,t){return e.size===0?!1:pC(e,t)}function pC(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:pC(e,r):!1}let yl;function t5(e){yl=e}function r5(){yl=void 0}const $e=e=>yl?(...r)=>{try{return e(...r)}catch(n){if(yl&&yl(n)===!0)return;throw n}}:e,Es=[];function Ec(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function hC(e,t){var r,n;const o=new e5;Es.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=(n=(r=window==null?void 0:window.Zone)===null||r===void 0?void 0:r.__symbol__)===null||n===void 0?void 0:n.call(r,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s($e(o.processMutations.bind(o)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function n5({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const l=oc($e(f=>{const d=Date.now()-a;e(i.map(p=>(p.timeOffset-=d,p)),f),i=[],a=null}),s),c=$e(oc($e(f=>{const d=Ec(f),{clientX:p,clientY:g}=Ig(f)?f.changedTouches[0]:f;a||(a=Cf()),i.push({x:p,y:g,id:n.getId(d),timeOffset:Cf()-a}),l(typeof DragEvent<"u"&&f instanceof DragEvent?De.Drag:f instanceof MouseEvent?De.MouseMove:De.TouchMove)}),o,{trailing:!1})),u=[br("mousemove",c,r),br("touchmove",c,r),br("drag",c,r)];return $e(()=>{u.forEach(f=>f())})}function o5({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,a=[];let l=null;const c=u=>f=>{const d=Ec(f);if(wr(d,n,o,!0))return;let p=null,g=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Xn.Mouse;break;case"touch":p=Xn.Touch;break;case"pen":p=Xn.Pen;break}p===Xn.Touch?Cr[u]===Cr.MouseDown?g="TouchStart":Cr[u]===Cr.MouseUp&&(g="TouchEnd"):Xn.Pen}else Ig(f)&&(p=Xn.Touch);p!==null?(l=p,(g.startsWith("Touch")&&p===Xn.Touch||g.startsWith("Mouse")&&p===Xn.Mouse)&&(p=null)):Cr[u]===Cr.Click&&(p=l,l=null);const h=Ig(f)?f.changedTouches[0]:f;if(!h)return;const m=r.getId(d),{clientX:y,clientY:b}=h;$e(e)(Object.assign({type:Cr[g],id:m,x:y,y:b},p!==null&&{pointerType:p}))};return Object.keys(Cr).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Vs(u);const d=c(u);if(window.PointerEvent)switch(Cr[u]){case Cr.MouseDown:case Cr.MouseUp:f=f.replace("mouse","pointer");break;case Cr.TouchStart:case Cr.TouchEnd:return}a.push(br(f,d,t))}),$e(()=>{a.forEach(u=>u())})}function gC({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:s}){const i=$e(oc($e(a=>{const l=Ec(a);if(!l||wr(l,n,o,!0))return;const c=r.getId(l);if(l===t&&t.defaultView){const u=nC(t.defaultView);e({id:c,x:u.left,y:u.top})}else e({id:c,x:l.scrollLeft,y:l.scrollTop})}),s.scroll||100));return br("scroll",i,t)}function s5({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const o=$e(oc($e(()=>{const s=oC(),i=sC();(r!==s||n!==i)&&(e({width:Number(i),height:Number(s)}),r=s,n=i)}),200));return br("resize",o,t)}const i5=["INPUT","TEXTAREA","SELECT"],e0=new WeakMap;function a5({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function f(b){let _=Ec(b);const v=b.isTrusted,E=_&&_.tagName;if(_&&E==="OPTION"&&(_=_.parentElement),!_||!E||i5.indexOf(E)<0||wr(_,n,o,!0)||_.classList.contains(s)||i&&_.matches(i))return;let S=_.value,x=!1;const D=Zm(_)||"";D==="radio"||D==="checkbox"?x=_.checked:(a[E.toLowerCase()]||a[D])&&(S=Ym({element:_,maskInputOptions:a,tagName:E,type:D,value:S,maskInputFn:l})),d(_,u?{text:S,isChecked:x,userTriggered:v}:{text:S,isChecked:x});const I=_.name;D==="radio"&&I&&x&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(P=>{if(P!==_){const j=P.value;d(P,u?{text:j,isChecked:!x,userTriggered:!1}:{text:j,isChecked:!x})}})}function d(b,_){const v=e0.get(b);if(!v||v.text!==_.text||v.isChecked!==_.isChecked){e0.set(b,_);const E=r.getId(b);$e(e)(Object.assign(Object.assign({},_),{id:E}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>br(b,$e(f),t)),h=t.defaultView;if(!h)return()=>{g.forEach(b=>b())};const m=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),y=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&g.push(...y.map(b=>Td(b[0],b[1],{set(){$e(f)({target:this,isTrusted:!1})}},!1,h))),$e(()=>{g.forEach(b=>b())})}function Tf(e){const t=[];function r(n,o){if(nu("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||nu("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||nu("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||nu("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else if(n.parentStyleSheet){const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(e,t)}function No(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function l5({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:$e((u,f,d)=>{const[p,g]=d,{id:h,styleId:m}=No(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,adds:[{rule:p,index:g}]}),u.apply(f,d)})});const s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,removes:[{index:p}]}),u.apply(f,d)})});let i;n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replace:p}),u.apply(f,d)})}));let a;n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replaceSync:p}),u.apply(f,d)})}));const l={};ou("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(ou("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),ou("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),ou("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([u,f])=>{c[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(c[u].insertRule,{apply:$e((d,p,g)=>{const[h,m]=g,{id:y,styleId:b}=No(p.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,adds:[{rule:h,index:[...Tf(p),m||0]}]}),d.apply(p,g)})}),f.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:$e((d,p,g)=>{const[h]=g,{id:m,styleId:y}=No(p.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,removes:[{index:[...Tf(p),h]}]}),d.apply(p,g)})})}),$e(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=c[u].insertRule,f.prototype.deleteRule=c[u].deleteRule})})}function mC({mirror:e,stylesheetManager:t},r){var n,o,s;let i=null;r.nodeName==="#document"?i=e.getId(r):i=e.getId(r.host);const a=r.nodeName==="#document"?(n=r.defaultView)===null||n===void 0?void 0:n.Document:(s=(o=r.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||s===void 0?void 0:s.ShadowRoot,l=a!=null&&a.prototype?Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!a||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var c;return(c=l.get)===null||c===void 0?void 0:c.call(this)},set(c){var u;const f=(u=l.set)===null||u===void 0?void 0:u.call(this,c);if(i!==null&&i!==-1)try{t.adoptStyleSheets(c,i)}catch{}return f}}),$e(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function c5({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:$e((a,l,c)=>{var u;const[f,d,p]=c;if(r.has(f))return s.apply(l,[f,d,p]);const{id:g,styleId:h}=No((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,set:{property:f,value:d,priority:p},index:Tf(l.parentRule)}),a.apply(l,c)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:$e((a,l,c)=>{var u;const[f]=c;if(r.has(f))return i.apply(l,[f]);const{id:d,styleId:p}=No((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,n.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:f},index:Tf(l.parentRule)}),a.apply(l,c)})}),$e(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function u5({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:o,doc:s}){const i=$e(l=>oc($e(c=>{const u=Ec(c);if(!u||wr(u,t,r,!0))return;const{currentTime:f,volume:d,muted:p,playbackRate:g,loop:h}=u;e({type:l,id:n.getId(u),currentTime:f,volume:d,muted:p,playbackRate:g,loop:h})}),o.media||500)),a=[br("play",i(0),s),br("pause",i(1),s),br("seeked",i(2),s),br("volumechange",i(3),s),br("ratechange",i(4),s)];return $e(()=>{a.forEach(l=>l())})}function f5({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,s=r.FontFace;r.FontFace=function(l,c,u){const f=new s(l,c,u);return o.set(f,{family:l,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),f};const i=ma(t.fonts,"add",function(a){return function(l){return setTimeout($e(()=>{const c=o.get(l);c&&(e(c),o.delete(l))}),0),a.apply(this,[l])}});return n.push(()=>{r.FontFace=s}),n.push(i),$e(()=>{n.forEach(a=>a())})}function d5(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,selectionCb:s}=e;let i=!0;const a=$e(()=>{const l=t.getSelection();if(!l||i&&(l!=null&&l.isCollapsed))return;i=l.isCollapsed||!1;const c=[],u=l.rangeCount||0;for(let f=0;f{}:ma(r.customElements,"define",function(o){return function(s,i,a){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return o.apply(this,[s,i,a])}})}function h5(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:f,fontCb:d,selectionCb:p,customElementCb:g}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),n(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),o(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),s(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),i(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),a(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),c(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),u(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),f(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),d(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),p(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),g(...h)}}function g5(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};h5(e,t);let n;e.recordDOM&&(n=hC(e,e.doc));const o=n5(e),s=o5(e),i=gC(e),a=s5(e,{win:r}),l=a5(e),c=u5(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=l5(e,{win:r}),f=mC(e,e.doc),d=c5(e,{win:r}),e.collectFonts&&(p=f5(e)));const g=d5(e),h=p5(e),m=[];for(const y of e.plugins)m.push(y.observer(y.callback,r,y.options));return $e(()=>{Es.forEach(y=>y.reset()),n==null||n.disconnect(),o(),s(),i(),a(),l(),c(),u(),f(),d(),p(),g(),h(),m.forEach(y=>y())})}function nu(e){return typeof window[e]<"u"}function ou(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class t0{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,n,o){const s=n||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let a=s.get(r);return a||(a=this.generateIdFn(),s.set(r,a),i.set(a,r)),a}getIds(t,r){const n=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return r.map(s=>this.getId(t,s,n,o))}getRemoteId(t,r,n){const o=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const s=o.get(r);return s||-1}getRemoteIds(t,r){const n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getRemoteId(t,o,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class m5{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new t0(Qk),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new t0(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(n=this.loadListener)===null||n===void 0||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case He.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const o=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(r.data.node,o),{timestamp:r.timestamp,type:He.IncrementalSnapshot,data:{source:De.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case He.Meta:case He.Load:case He.DomContentLoaded:return!1;case He.Plugin:return r;case He.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case He.IncrementalSnapshot:switch(r.data.source){case De.Mutation:return r.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(o.node,s)}),r.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),r.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),r.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),r;case De.Drag:case De.TouchMove:case De.MouseMove:return r.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),r;case De.ViewportResize:return!1;case De.MediaInteraction:case De.MouseInteraction:case De.Scroll:case De.CanvasMutation:case De.Input:return this.replaceIds(r.data,t,["id"]),r;case De.StyleSheetRule:case De.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case De.Font:return r;case De.Selection:return r.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),r;case De.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)===null||n===void 0||n.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),r}}return!1}replace(t,r,n,o){for(const s of o)!Array.isArray(r[s])&&typeof r[s]!="number"||(Array.isArray(r[s])?r[s]=t.getIds(n,r[s]):r[s]=t.getId(n,r[s]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Pt.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class y5{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ml(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=hC(Object.assign(Object.assign({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(gC(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(mC({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const n=this;this.restoreHandlers.push(ma(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&fC(this)&&n.addShadowRoot(this.shadowRoot,r),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function _5(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o"u"?[]:new Uint8Array(256);for(var su=0;su>2],o+=Ci[(t[r]&3)<<4|t[r+1]>>4],o+=Ci[(t[r+1]&15)<<2|t[r+2]>>6],o+=Ci[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const r0=new Map;function S5(e,t){let r=r0.get(e);return r||(r=new Map,r0.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const yC=(e,t,r)=>{if(!e||!(vC(e,t)||typeof e=="object"))return;const n=e.constructor.name,o=S5(r,n);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Cu(e,t,r){if(e instanceof Array)return e.map(n=>Cu(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,o=w5(e);return{rr_type:n,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Cu(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:o}=e;return{rr_type:n,src:o}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",o=e.toDataURL();return{rr_type:n,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Cu(e.data,t,r),e.width,e.height]};if(vC(e,t)||typeof e=="object"){const n=e.constructor.name,o=yC(e,t,r);return{rr_type:n,index:o}}}}return e}const _C=(e,t,r)=>e.map(n=>Cu(n,t,r)),vC=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function E5(e,t,r,n){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const a=ma(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...c){return wr(this.canvas,r,n,!0)||setTimeout(()=>{const u=_C(c,t,this);e(this.canvas,{type:Ji["2D"],property:i,args:u})},0),l.apply(this,c)}});o.push(a)}catch{const l=Td(t.CanvasRenderingContext2D.prototype,i,{set(c){e(this.canvas,{type:Ji["2D"],property:i,args:[c],setter:!0})}});o.push(l)}return()=>{o.forEach(i=>i())}}function x5(e){return e==="experimental-webgl"?"webgl":e}function n0(e,t,r,n){const o=[];try{const s=ma(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(a,...l){if(!wr(this,t,r,!0)){const c=x5(a);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(l[0]&&typeof l[0]=="object"){const u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[a,...l])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function o0(e,t,r,n,o,s,i){const a=[],l=Object.getOwnPropertyNames(e);for(const c of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;const u=ma(e,c,function(f){return function(...d){const p=f.apply(this,d);if(yC(p,i,this),"tagName"in this.canvas&&!wr(this.canvas,n,o,!0)){const g=_C(d,i,this),h={type:t,property:c,args:g};r(this.canvas,h)}return p}});a.push(u)}catch{const f=Td(e,c,{set(d){r(this.canvas,{type:t,property:c,args:[d],setter:!0})}});a.push(f)}return a}function k5(e,t,r,n,o){const s=[];return s.push(...o0(t.WebGLRenderingContext.prototype,Ji.WebGL,e,r,n,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...o0(t.WebGL2RenderingContext.prototype,Ji.WebGL2,e,r,n,o,t)),()=>{s.forEach(i=>i())}}function C5(e,t){var r=e.toString(),n=r.split(` `);n.pop(),n.shift();for(var o=n[0].search(/\S/),s=/(['"])__worker_loader_strict__(['"])/g,i=0,a=n.length;i"u"?[]:new Uint8Array(256),n=0;n>2],p+=t[(u[f]&3)<<4|u[f+1]>>4],p+=t[(u[f+1]&15)<<2|u[f+2]>>6],p+=t[u[f+2]&63];return d%3===2?p=p.substring(0,p.length-1)+"=":d%3===1&&(p=p.substring(0,p.length-2)+"=="),p};const s=new Map,i=new Map;function a(c,u,f){return e(this,void 0,void 0,function*(){const d=`${c}-${u}`;if("OffscreenCanvas"in globalThis){if(i.has(d))return i.get(d);const p=new OffscreenCanvas(c,u);p.getContext("2d");const h=yield(yield p.convertToBlob(f)).arrayBuffer(),m=o(h);return i.set(d,m),m}else return""})}const l=self;l.onmessage=function(c){return e(this,void 0,void 0,function*(){if("OffscreenCanvas"in globalThis){const{id:u,bitmap:f,width:d,height:p,dataURLOptions:g}=c.data,h=a(d,p,g),m=new OffscreenCanvas(d,p);m.getContext("2d").drawImage(f,0,0),f.close();const b=yield m.convertToBlob(g),_=b.type,v=yield b.arrayBuffer(),E=o(v);if(!s.has(u)&&(yield h)===E)return s.set(u,E),l.postMessage({id:u});if(s.get(u)===E)return l.postMessage({id:u});l.postMessage({id:u,type:_,base64:E,width:d,height:p}),s.set(u,E)}else return l.postMessage({id:c.data.id})})}})()});class O5{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(l,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,blockSelector:s,recordCanvas:i,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o,s),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o,s,{dataURLOptions:a})}initCanvasFPSObserver(t,r,n,o,s){const i=n0(r,n,o,!0),a=new Map,l=new I5;l.onmessage=g=>{const{id:h}=g.data;if(a.set(h,!1),!("base64"in g.data))return;const{base64:m,type:y,width:b,height:_}=g.data;this.mutationCb({id:h,type:Ji["2D"],commands:[{property:"clearRect",args:[0,0,b,_]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:y}]},0,0]}]})};const c=1e3/t;let u=0,f;const d=()=>{const g=[];return r.document.querySelectorAll("canvas").forEach(h=>{wr(h,n,o,!0)||g.push(h)}),g},p=g=>{if(u&&g-uv5(this,void 0,void 0,function*(){var m;const y=this.mirror.getId(h);if(a.get(y)||h.width===0||h.height===0)return;if(a.set(y,!0),["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);((m=_==null?void 0:_.getContextAttributes())===null||m===void 0?void 0:m.preserveDrawingBuffer)===!1&&_.clear(_.COLOR_BUFFER_BIT)}const b=yield createImageBitmap(h);l.postMessage({id:y,bitmap:b,width:h.width,height:h.height,dataURLOptions:s.dataURLOptions},[b])})),f=requestAnimationFrame(p)};f=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=n0(t,r,n,!1),s=E5(this.processMutation.bind(this),t,r,n),i=k5(this.processMutation.bind(this),t,r,n,this.mirror);this.resetObservers=()=>{o(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(i=>_5(i,["type"])),{type:s}=n[0];this.mutationCb({id:r,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}class R5{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Z4,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const n={id:r,styleIds:[]},o=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),o.push({styleId:i,rules:Array.from(s.rules||CSSRule,(a,l)=>({rule:Zk(a),index:l}))})),n.styleIds.push(i)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class L5{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,r){const n=this.nodeMap.get(t);return n&&Array.from(n).some(o=>o!==r)}add(t,r){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Rt(e){return Object.assign(Object.assign({},e),{timestamp:Cf()})}let Ct,Tu,Rp,Af=!1;const Xr=k4();function xc(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:p,maskInputFn:g,maskTextFn:h,hooks:m,packFn:y,sampling:b={},dataURLOptions:_={},mousemoveWait:v,recordDOM:E=!0,recordCanvas:S=!1,recordCrossOriginIframes:x=!1,recordAfter:D=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:P=!1,inlineImages:j=!1,plugins:L,keepIframeSrcFn:G=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:de}=e;t5(de);const q=x?window.parent===window:!0;let ne=!1;if(!q)try{window.parent.document&&(ne=!1)}catch{ne=!0}if(q&&!t)throw new Error("emit function is required");v!==void 0&&b.mousemove===void 0&&(b.mousemove=v),Xr.reset();const oe=f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Te=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all"}:p||{};Y4();let kt,we=0;const Xe=te=>{for(const be of L||[])be.eventProcessor&&(te=be.eventProcessor(te));return y&&!ne&&(te=y(te)),te};Ct=(te,be)=>{var C;if(!((C=Es[0])===null||C===void 0)&&C.isFrozen()&&te.type!==He.FullSnapshot&&!(te.type===He.IncrementalSnapshot&&te.data.source===De.Mutation)&&Es.forEach(A=>A.unfreeze()),q)t==null||t(Xe(te),be);else if(ne){const A={type:"rrweb",event:Xe(te),origin:window.location.origin,isCheckout:be};window.parent.postMessage(A,"*")}if(te.type===He.FullSnapshot)kt=te,we=0;else if(te.type===He.IncrementalSnapshot){if(te.data.source===De.Mutation&&te.data.isAttachIframe)return;we++;const A=n&&we>=n,$=r&&te.timestamp-kt.timestamp>r;(A||$)&&Tu(!0)}};const je=te=>{Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.Mutation},te)}))},tr=te=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.Scroll},te)})),ze=te=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.CanvasMutation},te)})),gt=te=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.AdoptedStyleSheet},te)})),W=new R5({mutationCb:je,adoptedStyleSheetCb:gt}),Q=new m5({mirror:Xr,mutationCb:je,stylesheetManager:W,recordCrossOriginIframes:x,wrappedEmit:Ct});for(const te of L||[])te.getMirror&&te.getMirror({nodeMirror:Xr,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const J=new L5;Rp=new O5({recordCanvas:S,mutationCb:ze,win:window,blockClass:o,blockSelector:s,mirror:Xr,sampling:b.canvas,dataURLOptions:_});const ie=new y5({mutationCb:je,scrollCb:tr,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:oe,dataURLOptions:_,maskTextFn:h,maskInputFn:g,recordCanvas:S,inlineImages:j,sampling:b,slimDOMOptions:Te,iframeManager:Q,stylesheetManager:W,canvasManager:Rp,keepIframeSrcFn:G,processedNodeManager:J},mirror:Xr});Tu=(te=!1)=>{if(!E)return;Ct(Rt({type:He.Meta,data:{href:window.location.href,width:sC(),height:oC()}}),te),W.reset(),ie.init(),Es.forEach(C=>C.lock());const be=q4(document,{mirror:Xr,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:oe,maskTextFn:h,slimDOM:Te,dataURLOptions:_,recordCanvas:S,inlineImages:j,onSerialize:C=>{lC(C,Xr)&&Q.addIframe(C),cC(C,Xr)&&W.trackLinkElement(C),Og(C)&&ie.addShadowRoot(C.shadowRoot,document)},onIframeLoad:(C,A)=>{Q.attachIframe(C,A),ie.observeAttachShadow(C)},onStylesheetLoad:(C,A)=>{W.attachLinkElement(C,A)},keepIframeSrcFn:G});if(!be)return console.warn("Failed to snapshot the document");Ct(Rt({type:He.FullSnapshot,data:{node:be,initialOffset:nC(window)}}),te),Es.forEach(C=>C.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Xr.getId(document))};try{const te=[],be=A=>{var $;return $e(g5)({mutationCb:je,mousemoveCb:(B,H)=>Ct(Rt({type:He.IncrementalSnapshot,data:{source:H,positions:B}})),mouseInteractionCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.MouseInteraction},B)})),scrollCb:tr,viewportResizeCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.ViewportResize},B)})),inputCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.Input},B)})),mediaInteractionCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.MediaInteraction},B)})),styleSheetRuleCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.StyleSheetRule},B)})),styleDeclarationCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.StyleDeclaration},B)})),canvasMutationCb:ze,fontCb:B=>Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.Font},B)})),selectionCb:B=>{Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.Selection},B)}))},customElementCb:B=>{Ct(Rt({type:He.IncrementalSnapshot,data:Object.assign({source:De.CustomElement},B)}))},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:oe,inlineStylesheet:u,sampling:b,recordDOM:E,recordCanvas:S,inlineImages:j,userTriggeredOnInput:I,collectFonts:P,doc:A,maskInputFn:g,maskTextFn:h,keepIframeSrcFn:G,blockSelector:s,slimDOMOptions:Te,dataURLOptions:_,mirror:Xr,iframeManager:Q,stylesheetManager:W,shadowDomManager:ie,processedNodeManager:J,canvasManager:Rp,ignoreCSSAttributes:re,plugins:(($=L==null?void 0:L.filter(B=>B.observer))===null||$===void 0?void 0:$.map(B=>({observer:B.observer,options:B.options,callback:H=>Ct(Rt({type:He.Plugin,data:{plugin:B.name,payload:H}}))})))||[]},m)};Q.addLoadListener(A=>{try{te.push(be(A.contentDocument))}catch($){console.warn($)}});const C=()=>{Tu(),te.push(be(document)),Af=!0};return document.readyState==="interactive"||document.readyState==="complete"?C():(te.push(br("DOMContentLoaded",()=>{Ct(Rt({type:He.DomContentLoaded,data:{}})),D==="DOMContentLoaded"&&C()})),te.push(br("load",()=>{Ct(Rt({type:He.Load,data:{}})),D==="load"&&C()},window))),()=>{te.forEach(A=>A()),J.destroy(),Af=!1,r5()}}catch(te){console.warn(te)}}xc.addCustomEvent=(e,t)=>{if(!Af)throw new Error("please add custom event after start recording");Ct(Rt({type:He.Custom,data:{tag:e,payload:t}}))};xc.freezePage=()=>{Es.forEach(e=>e.freeze())};xc.takeFullSnapshot=e=>{if(!Af)throw new Error("please take full snapshot after start recording");Tu(e)};xc.mirror=Xr;var bC=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(bC||{}),Tn=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Tn||{}),co={DEBUG:!1,LIB_VERSION:"2.55.1"},Se;if(typeof window>"u"){var s0={hostname:""};Se={navigator:{userAgent:"",onLine:!0},document:{location:s0,referrer:""},screen:{width:0,height:0},location:s0}}else Se=window;var _l=24*60*60*1e3,Lp=8*1e3,Ad=Array.prototype,P5=Function.prototype,wC=Object.prototype,$o=Ad.slice,kc=wC.toString,Id=wC.hasOwnProperty,Ot=Se.console,Fo=Se.navigator,ot=Se.document,iu=Se.opera,If=Se.screen,On=Fo.userAgent,Pp=P5.bind,i0=Ad.forEach,a0=Ad.indexOf,l0=Ad.map,N5=Array.isArray,Lg={},w={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ke={log:function(){if(co.DEBUG&&!w.isUndefined(Ot)&&Ot)try{Ot.log.apply(Ot,arguments)}catch{w.each(arguments,function(t){Ot.log(t)})}},warn:function(){if(co.DEBUG&&!w.isUndefined(Ot)&&Ot){var e=["Mixpanel warning:"].concat(w.toArray(arguments));try{Ot.warn.apply(Ot,e)}catch{w.each(e,function(r){Ot.warn(r)})}}},error:function(){if(co.DEBUG&&!w.isUndefined(Ot)&&Ot){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{Ot.error.apply(Ot,e)}catch{w.each(e,function(r){Ot.error(r)})}}},critical:function(){if(!w.isUndefined(Ot)&&Ot){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{Ot.error.apply(Ot,e)}catch{w.each(e,function(r){Ot.error(r)})}}}},Np=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ke,arguments)}},Od=function(e){return{log:Np(Ke.log,e),error:Np(Ke.error,e),critical:Np(Ke.critical,e)}};w.bind=function(e,t){var r,n;if(Pp&&e.bind===Pp)return Pp.apply(e,$o.call(arguments,1));if(!w.isFunction(e))throw new TypeError;return r=$o.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat($o.call(arguments)));var o={};o.prototype=e.prototype;var s=new o;o.prototype=null;var i=e.apply(s,r.concat($o.call(arguments)));return Object(i)===i?i:s},n};w.each=function(e,t,r){if(e!=null){if(i0&&e.forEach===i0)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n0&&(t[n]=r)}),t};w.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):w.isArray(e)?(r=[],w.each(e,function(n){r.push(w.truncate(n,t))})):w.isObject(e)?(r={},w.each(e,function(n,o){r[o]=w.truncate(n,t)})):r=e,r};w.JSONEncode=function(){return function(e){var t=e,r=function(o){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(o)?'"'+o.replace(s,function(a){var l=i[a];return typeof l=="string"?l:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+o+'"'},n=function(o,s){var i="",a=" ",l=0,c="",u="",f=0,d=i,p=[],g=s[o];switch(g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(o)),typeof g){case"string":return r(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":return String(g);case"object":if(!g)return"null";if(i+=a,p=[],kc.apply(g)==="[object Array]"){for(f=g.length,l=0;l="0"&&t<="9";)g+=t,s();if(t===".")for(g+=".";s()&&t>="0"&&t<="9";)g+=t;if(t==="e"||t==="E")for(g+=t,s(),(t==="-"||t==="+")&&(g+=t,s());t>="0"&&t<="9";)g+=t,s();if(p=+g,!isFinite(p))o("Bad number");else return p},a=function(){var p,g,h="",m;if(t==='"')for(;s();){if(t==='"')return s(),h;if(t==="\\")if(s(),t==="u"){for(m=0,g=0;g<4&&(p=parseInt(s(),16),!!isFinite(p));g+=1)m=m*16+p;h+=String.fromCharCode(m)}else if(typeof r[t]=="string")h+=r[t];else break;else h+=t}o("Bad string")},l=function(){for(;t&&t<=" ";)s()},c=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},u,f=function(){var p=[];if(t==="["){if(s("["),l(),t==="]")return s("]"),p;for(;t;){if(p.push(u()),l(),t==="]")return s("]"),p;s(","),l()}}o("Bad array")},d=function(){var p,g={};if(t==="{"){if(s("{"),l(),t==="}")return s("}"),g;for(;t;){if(p=a(),l(),s(":"),Object.hasOwnProperty.call(g,p)&&o('Duplicate key "'+p+'"'),g[p]=u(),l(),t==="}")return s("}"),g;s(","),l()}}o("Bad object")};return u=function(){switch(l(),t){case"{":return d();case"[":return f();case'"':return a();case"-":return i();default:return t>="0"&&t<="9"?i():c()}},function(p){var g;return n=p,e=0,t=" ",g=u(),l(),t&&o("Syntax error"),g}}();w.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,o,s,i,a,l,c,u=0,f=0,d="",p=[];if(!e)return e;e=w.utf8Encode(e);do r=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),c=r<<16|n<<8|o,s=c>>18&63,i=c>>12&63,a=c>>6&63,l=c&63,p[f++]=t.charAt(s)+t.charAt(i)+t.charAt(a)+t.charAt(l);while(u127&&i<2048?a=String.fromCharCode(i>>6|192,i&63|128):a=String.fromCharCode(i>>12|224,i>>6&63|128,i&63|128),a!==null&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=s+1)}return n>r&&(t+=e.substring(r,e.length)),t};w.UUID=function(){var e=function(){var n=1*new Date,o;if(Se.performance&&Se.performance.now)o=Se.performance.now();else for(o=0;n==1*new Date;)o++;return n.toString(16)+Math.floor(o).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var n=On,o,s,i=[],a=0;function l(c,u){var f,d=0;for(f=0;f=4&&(a=l(a,i),i=[]);return i.length>0&&(a=l(a,i)),a.toString(16)};return function(){var n=(If.height*If.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+n+"-"+e()}}();var c0=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];w.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(o){if(!ot.getElementsByTagName)return[];var s=o.split(" "),i,a,l,c,u,f,d,p,g,h,m=[ot];for(f=0;f-1){a=i.split("#"),l=a[0];var y=a[1],b=ot.getElementById(y);if(!b||l&&b.nodeName.toLowerCase()!=l)return[];m=[b];continue}if(i.indexOf(".")>-1){a=i.split("."),l=a[0];var _=a[1];for(l||(l="*"),c=[],u=0,d=0;d-1};break;default:D=function(I){return I.getAttribute(E)}}for(m=[],h=0,d=0;d=3?t[2]:""},currentUrl:function(){return Se.location.href},properties:function(e){return typeof e!="object"&&(e={}),w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(On,Fo.vendor,iu),$referrer:ot.referrer,$referring_domain:w.info.referringDomain(ot.referrer),$device:w.info.device(On)}),{$current_url:w.info.currentUrl(),$browser_version:w.info.browserVersion(On,Fo.vendor,iu),$screen_height:If.height,$screen_width:If.width,mp_lib:"web",$lib_version:co.LIB_VERSION,$insert_id:Jm(),time:w.timestamp()/1e3},w.strip_empty_properties(e))},people_properties:function(){return w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(On,Fo.vendor,iu)}),{$browser_version:w.info.browserVersion(On,Fo.vendor,iu)})},mpPageViewProperties:function(){return w.strip_empty_properties({current_page_title:ot.title,current_domain:Se.location.hostname,current_url_path:Se.location.pathname,current_url_protocol:Se.location.protocol,current_url_search:Se.location.search})}};var Jm=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},F5=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,U5=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,u0=function(e){var t=U5,r=e.split("."),n=r[r.length-1];(n.length>4||n==="com"||n==="org")&&(t=F5);var o=e.match(t);return o?o[0]:""},j5=function(){var e=Se.navigator.onLine;return w.isUndefined(e)||e},Rf=null,Lf=null;typeof JSON<"u"&&(Rf=JSON.stringify,Lf=JSON.parse);Rf=Rf||w.JSONEncode;Lf=Lf||w.JSONDecode;w.toArray=w.toArray;w.isObject=w.isObject;w.JSONEncode=w.JSONEncode;w.JSONDecode=w.JSONDecode;w.isBlockedUA=w.isBlockedUA;w.isEmptyObject=w.isEmptyObject;w.info=w.info;w.info.device=w.info.device;w.info.browser=w.info.browser;w.info.browserVersion=w.info.browserVersion;w.info.properties=w.info.properties;var B5="__mp_opt_in_out_";function H5(e,t){xC(!0,e,t)}function V5(e,t){xC(!1,e,t)}function W5(e,t){return EC(e,t)==="1"}function SC(e,t){if(G5(t))return Ke.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r=EC(e,t)==="0";return r&&Ke.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function is(e){return ty(e,function(t){return this.get_config(t)})}function as(e){return ty(e,function(t){return this._get_config(t)})}function ya(e){return ty(e,function(t){return this._get_config(t)})}function z5(e,t){t=t||{},Qm(t).remove(ey(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Qm(e){return e=e||{},e.persistenceType==="localStorage"?w.localStorage:w.cookie}function ey(e,t){return t=t||{},(t.persistencePrefix||B5)+e}function EC(e,t){return Qm(t).get(ey(e,t))}function G5(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Se,r=t.navigator||{},n=!1;return w.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(o){w.includes([!0,1,"1","yes"],o)&&(n=!0)}),n}function xC(e,t,r){if(!w.isString(t)||!t.length){Ke.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},Qm(r).set(ey(t,r),e?1:0,w.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function ty(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),i=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=SC(n,{ignoreDnt:o,persistenceType:s,persistencePrefix:i,window:a}))}catch(c){Ke.error("Unexpected error when checking tracking opt-out status: "+c)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var q5=Od("lock"),kC=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};kC.prototype.withLock=function(e,t,r){!r&&typeof t!="function"&&(r=t,t=null);var n=r||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,i=this.pollIntervalMS,a=this.timeoutMS,l=this.storage,c=s+":X",u=s+":Y",f=s+":Z",d=function(b){t&&t(b)},p=function(b){if(new Date().getTime()-o>a){q5.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+n+"]"),l.removeItem(f),l.removeItem(u),m();return}setTimeout(function(){try{b()}catch(_){d(_)}},i*(Math.random()+.1))},g=function(b,_){b()?_():p(function(){g(b,_)})},h=function(){var b=l.getItem(u);if(b&&b!==n)return!1;if(l.setItem(u,n),l.getItem(u)===n)return!0;if(!Of(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},m=function(){l.setItem(c,n),g(h,function(){if(l.getItem(c)===n){y();return}p(function(){if(l.getItem(u)!==n){m();return}g(function(){return!l.getItem(f)},y)})})},y=function(){l.setItem(f,"1");try{e()}finally{l.removeItem(f),l.getItem(u)===n&&l.removeItem(u),l.getItem(c)===n&&l.removeItem(c)}};try{if(Of(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){d(b)}};var f0=Od("batch"),ls=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||w.bind(f0.error,f0),this.lock=new kC(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};ls.prototype.enqueue=function(e,t,r){var n={id:Jm(),flushAfter:new Date().getTime()+t*2,payload:e};this.usePersistence?this.lock.withLock(w.bind(function(){var s;try{var i=this.readFromStorage();i.push(n),s=this.saveToStorage(i),s&&this.memQueue.push(n)}catch{this.reportError("Error enqueueing item",e),s=!1}r&&r(s)},this),w.bind(function(s){this.reportError("Error acquiring storage lock",s),r&&r(!1)},this),this.pid):(this.memQueue.push(n),r&&r(!0))};ls.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.lengths.flushAfter&&!n[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}}return t};var d0=function(e,t){var r=[];return w.each(e,function(n){n.id&&!t[n.id]&&r.push(n)}),r};ls.prototype.removeItemsByID=function(e,t){var r={};if(w.each(e,function(o){r[o]=!0}),this.memQueue=d0(this.memQueue,r),!this.usePersistence)t&&t(!0);else{var n=w.bind(function(){var o;try{var s=this.readFromStorage();if(s=d0(s,r),o=this.saveToStorage(s),o){s=this.readFromStorage();for(var i=0;i5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[p]}),d=!1):this.reportError("[dupe] found item with no ID",{item:u}),d&&i.push(f)}a[u.id]=f},this),i.length<1){this.resetFlush();return}this.requestInProgress=!0;var l=w.bind(function(u){this.requestInProgress=!1;try{var f=!1;if(e.unloading)this.queue.updatePayloads(a);else if(w.isObject(u)&&u.error==="timeout"&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(w.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&!j5()||u.error==="timeout")){var d=this.flushInterval*2;u.retryAfter&&(d=parseInt(u.retryAfter,10)*1e3||d),d=Math.min(K5,d),this.reportError("Error; retry in "+d+" ms"),this.scheduleFlush(d)}else if(w.isObject(u)&&u.httpStatusCode===413)if(o.length>1){var p=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,p,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),f=!0;else f=!0;f&&(this.queue.removeItemsByID(w.map(o,function(g){return g.id}),w.bind(function(g){g?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),w.each(o,w.bind(function(g){var h=g.id;h?(this.itemIdsSentSuccessfully[h]=this.itemIdsSentSuccessfully[h]||0,this.itemIdsSentSuccessfully[h]++,this.itemIdsSentSuccessfully[h]>5&&this.reportError("[dupe] item ID sent too many times",{item:g,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[h]})):this.reportError("[dupe] found item with no ID while removing",{item:g})},this)))}catch(g){this.reportError("Error handling API response",g),this.resetFlush()}},this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),vl.log("MIXPANEL REQUEST:",i),this.sendRequest(i,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};vn.prototype.reportError=function(e,t){if(vl.error.apply(vl.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){vl.error(r)}};var xs=Od("recorder"),h0=Se.CompressionStream,Y5={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Z5=new Set([Tn.MouseMove,Tn.MouseInteraction,Tn.Scroll,Tn.ViewportResize,Tn.Input,Tn.TouchMove,Tn.MediaInteraction,Tn.Drag,Tn.Selection]);function X5(e){return e.type===bC.IncrementalSnapshot&&Z5.has(e.data.source)}var bn=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=_l,this.recordMinMs=0,this._initBatcher()};bn.prototype._initBatcher=function(){this.batcher=new vn("__mprec",{libConfig:Y5,sendRequestFunc:w.bind(this.flushEventsWithOptOut,this),errorReporter:w.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})};bn.prototype.get_config=function(e){return this._mixpanel.get_config(e)};bn.prototype.startRecording=function(e){if(this._stopRecording!==null){xs.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>_l&&(this.recordMaxMs=_l,xs.critical("record_max_ms cannot be greater than "+_l+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>Lp&&(this.recordMinMs=Lp,xs.critical("record_min_ms cannot be greater than "+Lp+"ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=new Date().getTime(),this.replayId=w.UUID(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=w.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(w.bind(function(){xs.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),r=this.get_config("record_block_selector");(r===""||r===null)&&(r=void 0),this._stopRecording=xc({emit:w.bind(function(n){this.batcher.enqueue(n),X5(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:r,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(w.bind(this.resetRecording,this),this.recordMaxMs)};bn.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};bn.prototype.stopRecording=function(){this._stopRecording!==null&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)};bn.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,w.bind(this._onOptOut,this))};bn.prototype._onOptOut=function(e){e===0&&(this.recEvents=[],this.stopRecording())};bn.prototype._sendRequest=function(e,t,r,n){var o=w.bind(function(s,i){s.status===200&&this.replayId===e&&this.seqNo++,n({status:0,httpStatusCode:s.status,responseBody:i,retryAfter:s.headers.get("Retry-After")})},this);Se.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(s){s.json().then(function(i){o(s,i)}).catch(function(i){n({error:i})})}).catch(function(s){n({error:s,httpStatusCode:0})})};bn.prototype._flushEvents=is(function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,s=e[0].timestamp;(this.seqNo===0||!this.replayStartTime)&&(this.seqNo!==0&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var i=e[n-1].timestamp-this.replayStartTime,a={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:s/1e3,replay_id:o,replay_length_ms:i,replay_start_time:this.replayStartTime/1e3},l=w.JSONEncode(e),c=this._mixpanel.get_property("$device_id");c&&(a.$device_id=c);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),h0){var f=new Blob([l],{type:"application/json"}).stream(),d=f.pipeThrough(new h0("gzip"));new Response(d).blob().then(w.bind(function(p){a.format="gzip",this._sendRequest(o,a,p,r)},this))}else a.format="body",this._sendRequest(o,a,l,r)}});bn.prototype.reportError=function(e,t){xs.error.apply(xs.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){xs.error(r)}};Se.__mp_recorder=bn;var vo=function(){};vo.prototype.create_properties=function(){};vo.prototype.event_handler=function(){};vo.prototype.after_track_handler=function(){};vo.prototype.init=function(e){return this.mp=e,this};vo.prototype.track=function(e,t,r,n){var o=this,s=w.dom_query(e);if(s.length===0){Ke.error("The DOM query ("+e+") returned 0 elements");return}return w.each(s,function(i){w.register_event(i,this.override_event,function(a){var l={},c=o.create_properties(r,this),u=o.mp.get_config("track_links_timeout");o.event_handler(a,this,l),window.setTimeout(o.track_callback(n,c,l,!0),u),o.mp.track(t,c,o.track_callback(n,c,l))})},this),!0};vo.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(n,t)===!1)&&o.after_track_handler(t,r,n))}};vo.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=w.extend({},e),r};var Qi=function(){this.override_event="click"};w.inherit(Qi,vo);Qi.prototype.create_properties=function(e,t){var r=Qi.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};Qi.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};Qi.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Rd=function(){this.override_event="submit"};w.inherit(Rd,vo);Rd.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};Rd.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Yo="$set",ea="$set_once",tn="$unset",Ws="$add",Dn="$append",zs="$union",uo="$remove",J5="$delete",CC={set_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Yo]=n,r},unset_action:function(e){var t={},r=[];return w.isArray(e)||(e=[e]),w.each(e,function(n){this._is_reserved_property(n)||r.push(n)},this),t[tn]=r,t},set_once_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[ea]=n,r},union_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=w.isArray(o)?o:[o])},this):n[e]=w.isArray(t)?t:[t],r[zs]=n,r},append_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Dn]=n,r},remove_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[uo]=n,r},delete_action:function(){var e={};return e[J5]="",e}},ht=function(){};w.extend(ht.prototype,CC);ht.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};ht.prototype.set=ya(function(e,t,r){var n=this.set_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});ht.prototype.set_once=ya(function(e,t,r){var n=this.set_once_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});ht.prototype.unset=ya(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});ht.prototype.union=ya(function(e,t,r){w.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});ht.prototype.delete=ya(function(e){var t=this.delete_action();return this._send_request(t,e)});ht.prototype.remove=ya(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)});ht.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=w.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};ht.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};ht.prototype._get_config=function(e){return this._mixpanel.get_config(e)};ht.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};ht.prototype.remove=ht.prototype.remove;ht.prototype.set=ht.prototype.set;ht.prototype.set_once=ht.prototype.set_once;ht.prototype.union=ht.prototype.union;ht.prototype.unset=ht.prototype.unset;ht.prototype.toString=ht.prototype.toString;var Ee=function(){};w.extend(Ee.prototype,CC);Ee.prototype._init=function(e){this._mixpanel=e};Ee.prototype.set=as(function(e,t,r){var n=this.set_action(e,t);return w.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Yo]=w.extend({},w.info.people_properties(),n[Yo]),this._send_request(n,r)});Ee.prototype.set_once=as(function(e,t,r){var n=this.set_once_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});Ee.prototype.unset=as(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});Ee.prototype.increment=as(function(e,t,r){var n={},o={};return w.isObject(e)?(w.each(e,function(s,i){if(!this._is_reserved_property(i))if(isNaN(parseFloat(s))){Ke.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else o[i]=s},this),r=t):(w.isUndefined(t)&&(t=1),o[e]=t),n[Ws]=o,this._send_request(n,r)});Ee.prototype.append=as(function(e,t,r){w.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)});Ee.prototype.remove=as(function(e,t,r){w.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)});Ee.prototype.union=as(function(e,t,r){w.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});Ee.prototype.track_charge=as(function(e,t,r){if(!w.isNumber(e)&&(e=parseFloat(e),isNaN(e))){Ke.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",w.extend({$amount:e},t),r)});Ee.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};Ee.prototype.delete_user=function(){if(!this._identify_called()){Ke.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};Ee.prototype.toString=function(){return this._mixpanel.toString()+".people"};Ee.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var s=w.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),w.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),w.truncate(s,255))};Ee.prototype._get_config=function(e){return this._mixpanel.get_config(e)};Ee.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};Ee.prototype._enqueue=function(e){Yo in e?this._mixpanel.persistence._add_to_people_queue(Yo,e):ea in e?this._mixpanel.persistence._add_to_people_queue(ea,e):tn in e?this._mixpanel.persistence._add_to_people_queue(tn,e):Ws in e?this._mixpanel.persistence._add_to_people_queue(Ws,e):Dn in e?this._mixpanel.persistence._add_to_people_queue(Dn,e):uo in e?this._mixpanel.persistence._add_to_people_queue(uo,e):zs in e?this._mixpanel.persistence._add_to_people_queue(zs,e):Ke.error("Invalid call to _enqueue():",e)};Ee.prototype._flush_one_queue=function(e,t,r,n){var o=this,s=w.extend({},this._mixpanel.persistence.load_queue(e)),i=s;!w.isUndefined(s)&&w.isObject(s)&&!w.isEmptyObject(s)&&(o._mixpanel.persistence._pop_from_people_queue(e,s),o._mixpanel.persistence.save(),n&&(i=n(s)),t.call(o,i,function(a,l){a===0&&o._mixpanel.persistence._add_to_people_queue(e,s),w.isUndefined(r)||r(a,l)}))};Ee.prototype._flush=function(e,t,r,n,o,s,i){var a=this;this._flush_one_queue(Yo,this.set,e),this._flush_one_queue(ea,this.set_once,n),this._flush_one_queue(tn,this.unset,s,function(m){return w.keys(m)}),this._flush_one_queue(Ws,this.increment,t),this._flush_one_queue(zs,this.union,o);var l=this._mixpanel.persistence.load_queue(Dn);if(!w.isUndefined(l)&&w.isArray(l)&&l.length)for(var c,u=function(m,y){m===0&&a._mixpanel.persistence._add_to_people_queue(Dn,c),w.isUndefined(r)||r(m,y)},f=l.length-1;f>=0;f--)l=this._mixpanel.persistence.load_queue(Dn),c=l.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(c)||a.append(c,u);var d=this._mixpanel.persistence.load_queue(uo);if(!w.isUndefined(d)&&w.isArray(d)&&d.length)for(var p,g=function(m,y){m===0&&a._mixpanel.persistence._add_to_people_queue(uo,p),w.isUndefined(i)||i(m,y)},h=d.length-1;h>=0;h--)d=this._mixpanel.persistence.load_queue(uo),p=d.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(p)||a.remove(p,g)};Ee.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};Ee.prototype.set=Ee.prototype.set;Ee.prototype.set_once=Ee.prototype.set_once;Ee.prototype.unset=Ee.prototype.unset;Ee.prototype.increment=Ee.prototype.increment;Ee.prototype.append=Ee.prototype.append;Ee.prototype.remove=Ee.prototype.remove;Ee.prototype.union=Ee.prototype.union;Ee.prototype.track_charge=Ee.prototype.track_charge;Ee.prototype.clear_charges=Ee.prototype.clear_charges;Ee.prototype.delete_user=Ee.prototype.delete_user;Ee.prototype.toString=Ee.prototype.toString;var ry="__mps",ny="__mpso",oy="__mpus",sy="__mpa",iy="__mpap",ay="__mpr",ly="__mpu",TC="$people_distinct_id",Pf="__alias",sc="__timers",Q5=[ry,ny,oy,sy,iy,ay,ly,TC,Pf,sc],Re=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(Ke.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&w.localStorage.is_supported()?this.storage=w.localStorage:this.storage=w.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Re.prototype.properties=function(){var e={};return this.load(),w.each(this.props,function(t,r){w.include(Q5,r)||(e[r]=t)}),e};Re.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=w.extend({},e))}};Re.prototype.upgrade=function(){var e,t;this.storage===w.localStorage?(e=w.cookie.parse(this.name),w.cookie.remove(this.name),w.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===w.cookie&&(t=w.localStorage.parse(this.name),w.localStorage.remove(this.name),t&&this.register_once(t))};Re.prototype.save=function(){this.disabled||this.storage.set(this.name,w.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Re.prototype.load_prop=function(e){return this.load(),this.props[e]};Re.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Re.prototype.clear=function(){this.remove(),this.props={}};Re.prototype.register_once=function(e,t,r){return w.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,this.load(),w.each(e,function(n,o){(!this.props.hasOwnProperty(o)||this.props[o]===t)&&(this.props[o]=n)},this),this.save(),!0):!1};Re.prototype.register=function(e,t){return w.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),w.extend(this.props,e),this.save(),!0):!1};Re.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};Re.prototype.update_search_keyword=function(e){this.register(w.info.searchInfo(e))};Re.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:w.info.referringDomain(e)||"$direct"},"")};Re.prototype.get_referrer_info=function(){return w.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Re.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};Re.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};Re.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};Re.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};Re.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};Re.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Re.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};Re.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(Yo),s=this._get_or_create_queue(ea),i=this._get_or_create_queue(tn),a=this._get_or_create_queue(Ws),l=this._get_or_create_queue(zs),c=this._get_or_create_queue(uo,[]),u=this._get_or_create_queue(Dn,[]);r===ry?(w.extend(o,n),this._pop_from_people_queue(Ws,n),this._pop_from_people_queue(zs,n),this._pop_from_people_queue(tn,n)):r===ny?(w.each(n,function(f,d){d in s||(s[d]=f)}),this._pop_from_people_queue(tn,n)):r===oy?w.each(n,function(f){w.each([o,s,a,l],function(d){f in d&&delete d[f]}),w.each(u,function(d){f in d&&delete d[f]}),i[f]=!0}):r===sy?(w.each(n,function(f,d){d in o?o[d]+=f:(d in a||(a[d]=0),a[d]+=f)},this),this._pop_from_people_queue(tn,n)):r===ly?(w.each(n,function(f,d){w.isArray(f)&&(d in l||(l[d]=[]),l[d]=l[d].concat(f))}),this._pop_from_people_queue(tn,n)):r===ay?(c.push(n),this._pop_from_people_queue(Dn,n)):r===iy&&(u.push(n),this._pop_from_people_queue(tn,n)),Ke.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ke.log(t),this.save()};Re.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];w.isUndefined(r)||w.each(t,function(n,o){e===Dn||e===uo?w.each(r,function(s){s[o]===n&&delete s[o]}):delete r[o]},this)};Re.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};Re.prototype._get_queue_key=function(e){if(e===Yo)return ry;if(e===ea)return ny;if(e===tn)return oy;if(e===Ws)return sy;if(e===Dn)return iy;if(e===uo)return ay;if(e===zs)return ly;Ke.error("Invalid queue:",e)};Re.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=w.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};Re.prototype.set_event_timer=function(e,t){var r=this.load_prop(sc)||{};r[e]=t,this.props[sc]=r,this.save()};Re.prototype.remove_event_timer=function(e){var t=this.load_prop(sc)||{},r=t[e];return w.isUndefined(r)||(delete this.props[sc][e],this.save()),r};var cy,AC=function(e,t){throw new Error(e+" not available in this build.")},nr,IC=0,eV=1,tV=function(e){return e},ic=function(){},Wr="mixpanel",OC="base64",rV="json",uy="$device:",Ui=Se.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,RC=!Ui&&On.indexOf("MSIE")===-1&&On.indexOf("Mozilla")===-1,Nf=null;Fo.sendBeacon&&(Nf=function(){return Fo.sendBeacon.apply(Fo,arguments)});var LC={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},g0={api_host:"https://api-js.mixpanel.com",api_routes:LC,api_method:"POST",api_transport:"XHR",api_payload_format:OC,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ic,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ic,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:30*60*1e3,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:_l,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},PC=!1,V=function(){},Pg=function(e,t,r){var n,o=r===Wr?nr:nr[r];if(o&&cy===IC)n=o;else{if(o&&!w.isArray(o)){Ke.error("You have already initialized "+r);return}n=new V}if(n._cached_groups={},n._init(e,t,r),n.people=new Ee,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var s=w.info.campaignParams(null),i={},a=!1;w.each(s,function(l,c){i["initial_"+c]=l,l&&(a=!0)}),a&&n.people.set_once(i)}return co.DEBUG=co.DEBUG||n.get_config("debug"),!w.isUndefined(o)&&w.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};V.prototype.init=function(e,t,r){if(w.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===Wr){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=Pg(e,t,r);return nr[r]=n,n._loaded(),n};V.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)){var o=t.api_host||g0.api_host;o.match(/\.mixpanel\.com/)&&(n.api_payload_format=rV)}if(this.set_config(w.extend({},g0,n,t,{name:r,token:e,callback_fn:(r===Wr?r:Wr+"."+r)+"._jsc"})),this._jsc=ic,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!w.localStorage.is_supported(!0)||!Ui)this._batch_requests=!1,Ke.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),w.each(this.get_batcher_configs(),function(l){Ke.log("Clearing batch queue "+l.queue_key),w.localStorage.remove(l.queue_key)});else if(this.init_batchers(),Nf&&Se.addEventListener){var s=w.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Se.addEventListener("pagehide",function(l){l.persisted&&s()}),Se.addEventListener("visibilitychange",function(){ot.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new Re(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=w.UUID();this.get_distinct_id()||this.register_once({distinct_id:uy+i,$device_id:i},"");var a=this.get_config("track_pageview");a&&this._init_url_change_tracking(a),this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent")&&this.start_session_recording()};V.prototype.start_session_recording=is(function(){if(!Se.MutationObserver){Ke.critical("Browser does not support MutationObserver; skipping session recording");return}var e=w.bind(function(){this._recorder=this._recorder||new Se.__mp_recorder(this),this._recorder.startRecording()},this);w.isUndefined(Se.__mp_recorder)?AC(this.get_config("recorder_src"),e):e()});V.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():Ke.critical("Session recorder module not loaded")};V.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e};V.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=w.info.campaignParams(null);w.each(e,(function(t,r){this.unregister(r)}).bind(this))}};V.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(ot.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(w.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(ot.referrer)};V.prototype._dom_loaded=function(){w.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||w.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};V.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!PC)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};V.prototype._init_url_change_tracking=function(e){var t="",r=this.track_pageview();if(r&&(t=w.info.currentUrl()),w.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){Se.addEventListener("popstate",function(){Se.dispatchEvent(new Event("mp_locationchange"))}),Se.addEventListener("hashchange",function(){Se.dispatchEvent(new Event("mp_locationchange"))});var n=Se.history.pushState;typeof n=="function"&&(Se.history.pushState=function(s,i,a){n.call(Se.history,s,i,a),Se.dispatchEvent(new Event("mp_locationchange"))});var o=Se.history.replaceState;typeof o=="function"&&(Se.history.replaceState=function(s,i,a){o.call(Se.history,s,i,a),Se.dispatchEvent(new Event("mp_locationchange"))}),Se.addEventListener("mp_locationchange",(function(){var s=w.info.currentUrl(),i=!1;if(e==="full-url"?i=s!==t:e==="url-with-path-and-query-string"?i=s.split("#")[0]!==t.split("#")[0]:e==="url-with-path"&&(i=s.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),i){var a=this.track_pageview();a&&(t=s)}}).bind(this))}};V.prototype._prepare_callback=function(e,t){if(w.isUndefined(e))return null;if(Ui){var r=function(i){e(i,t)};return r}else{var n=this._jsc,o=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+o+"]";return n[o]=function(i){delete n[o],e(i,t)},s}};V.prototype._send_request=function(e,t,r,n){var o=!0;if(RC)return this.__request_queue.push(arguments),o;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},i=null;!n&&(w.isFunction(r)||typeof r=="string")&&(n=r,r=null),r=w.extend(s,r||{}),Ui||(r.method="GET");var a=r.method==="POST",l=Nf&&a&&r.transport.toLowerCase()==="sendbeacon",c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Ui||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(i="data="+encodeURIComponent(t.data),delete t.data),e+="?"+w.HTTPBuildQuery(t);var u=this;if("img"in t){var f=ot.createElement("img");f.src=e,ot.body.appendChild(f)}else if(l){try{o=Nf(e,i)}catch(y){u.report_error(y),o=!1}try{n&&n(o?1:0)}catch(y){u.report_error(y)}}else if(Ui)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),w.each(p,function(y,b){d.setRequestHeader(b,y)}),r.timeout_ms&&typeof d.timeout<"u"){d.timeout=r.timeout_ms;var g=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200){if(n)if(c){var y;try{y=w.JSONDecode(d.responseText)}catch(v){if(u.report_error(v),r.ignore_json_errors)y=d.responseText;else return}n(y)}else n(Number(d.responseText))}else{var b;if(d.timeout&&!d.status&&new Date().getTime()-g>=d.timeout?b="timeout":b="Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(b),n)if(c){var _=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:b,retryAfter:_["Retry-After"]})}else n(0)}},d.send(i)}catch(y){u.report_error(y),o=!1}else{var h=ot.createElement("script");h.type="text/javascript",h.async=!0,h.defer=!0,h.src=e;var m=ot.getElementsByTagName("script")[0];m.parentNode.insertBefore(h,m)}return o};V.prototype._execute_array=function(e){var t,r=[],n=[],o=[];w.each(e,function(i){i&&(t=i[0],w.isArray(t)?o.push(i):typeof i=="function"?i.call(this):w.isArray(i)&&t==="alias"?r.push(i):w.isArray(i)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?o.push(i):n.push(i))},this);var s=function(i,a){w.each(i,function(l){if(w.isArray(l[0])){var c=a;w.each(l,function(u){c=c[u[0]].apply(c,u.slice(1))})}else this[l[0]].apply(this,l.slice(1))},a)};s(r,this),s(n,this),s(o,this)};V.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};V.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs};V.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=w.bind(function(r){return new vn(r.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:w.bind(function(n,o,s){this._send_request(this.get_config("api_host")+r.endpoint,this._encode_data_for_request(n),o,this._prepare_callback(s,n))},this),beforeSendHook:w.bind(function(n){return this._run_hook("before_send_"+r.type,n)},this),stopAllBatchingFunc:w.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};V.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,w.each(this.request_batchers,function(e){e.start()}))};V.prototype.stop_batch_senders=function(){this._batch_requests=!1,w.each(this.request_batchers,function(e){e.stop(),e.clear()})};V.prototype.push=function(e){this._execute_array([e])};V.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};V.prototype._encode_data_for_request=function(e){var t=w.JSONEncode(e);return this.get_config("api_payload_format")===OC&&(t=w.base64Encode(t)),{data:t}};V.prototype._track_or_batch=function(e,t){var r=w.truncate(e.data,255),n=e.endpoint,o=e.batcher,s=e.should_send_immediately,i=e.send_request_options||{};t=t||ic;var a=!0,l=w.bind(function(){return i.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Ke.log("MIXPANEL REQUEST:"),Ke.log(r),this._send_request(n,this._encode_data_for_request(r),i,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!s?o.enqueue(r,function(c){c?t(1,r):l()}):a=l(),a&&r};V.prototype.track=is(function(e,t,r,n){!n&&typeof r=="function"&&(n=r,r=null),r=r||{};var o=r.transport;o&&(r.transport=o);var s=r.send_immediately;if(typeof n!="function"&&(n=ic),w.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}t=w.extend({},t),t.token=this.get_config("token");var i=this.persistence.remove_event_timer(e);if(!w.isUndefined(i)){var a=new Date().getTime()-i;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?w.info.marketingParams():{};t=w.extend({},w.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");w.isArray(c)?w.each(c,function(d){delete t[d]}):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t},f=this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n);return f});V.prototype.set_group=is(function(e,t,r){w.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)});V.prototype.add_group=is(function(e,t,r){var n=this.get_property(e),o={};return n===void 0?(o[e]=[t],this.register(o)):n.indexOf(t)===-1&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)});V.prototype.remove_group=is(function(e,t,r){var n=this.get_property(e);if(n!==void 0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),n.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});V.prototype.track_with_groups=is(function(e,t,r,n){var o=w.extend({},t||{});return w.each(r,function(s,i){s!=null&&(o[i]=s)}),this.track(e,o,n)});V.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};V.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};V.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(n===void 0||n._group_key!==e||n._group_id!==t)&&(n=new ht,n._init(this,e,t),this._cached_groups[r]=n),n};V.prototype.track_pageview=is(function(e,t){typeof e!="object"&&(e={}),t=t||{};var r=t.event_name||"$mp_web_page_view",n=w.extend(w.info.mpPageViewProperties(),w.info.campaignParams(),w.info.clickParams()),o=w.extend({},n,e);return this.track(r,o)});V.prototype.track_links=function(){return this._track_dom.call(this,Qi,arguments)};V.prototype.track_forms=function(){return this._track_dom.call(this,Rd,arguments)};V.prototype.time_event=function(e){if(w.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var nV={persistent:!0},fy=function(e){var t;return w.isObject(e)?t=e:w.isUndefined(e)?t={}:t={days:e},w.extend({},nV,t)};V.prototype.register=function(e,t){var r=fy(t);r.persistent?this.persistence.register(e,r.days):w.extend(this.unpersisted_superprops,e)};V.prototype.register_once=function(e,t,r){var n=fy(r);n.persistent?this.persistence.register_once(e,t,n.days):(typeof t>"u"&&(t="None"),w.each(e,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===t)&&(this.unpersisted_superprops[s]=o)},this))};V.prototype.unregister=function(e,t){t=fy(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};V.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};V.prototype.identify=function(e,t,r,n,o,s,i,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(uy)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property(Pf)&&(this.unregister(Pf),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,s,i,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})};V.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=w.UUID();this.register_once({distinct_id:uy+e,$device_id:e},"")};V.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};V.prototype.alias=function(e,t){if(e===this.get_property(TC))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return w.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Pf,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};V.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};V.prototype.set_config=function(e){if(w.isObject(e)){w.extend(this.config,e);var t=e.batch_size;t&&w.each(this.request_batchers,function(r){r.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),co.DEBUG=co.DEBUG||this.get_config("debug")}};V.prototype.get_config=function(e){return this.config[e]};V.prototype._run_hook=function(e){var t=(this.config.hooks[e]||tV).apply(this,$o.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};V.prototype.get_property=function(e){return this.persistence.load_prop([e])};V.prototype.toString=function(){var e=this.get_config("name");return e!==Wr&&(e=Wr+"."+e),e};V.prototype._event_is_disabled=function(e){return w.isBlockedUA(On)||this._flags.disable_all_events||w.include(this.__disabled_events,e)};V.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&w.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||w.cookie.get("mp_optout"))&&(w.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};V.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()};V.prototype._gdpr_call_func=function(e,t){return t=w.extend({track:w.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),w.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};V.prototype.opt_in_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(H5,e),this._gdpr_update_persistence(e)};V.prototype.opt_out_tracking=function(e){e=w.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(V5,e),this._gdpr_update_persistence(e)};V.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(W5,e)};V.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(SC,e)};V.prototype.clear_opt_in_out_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(z5,e),this._gdpr_update_persistence(e)};V.prototype.report_error=function(e,t){Ke.error.apply(Ke.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){Ke.error(r)}};V.prototype.init=V.prototype.init;V.prototype.reset=V.prototype.reset;V.prototype.disable=V.prototype.disable;V.prototype.time_event=V.prototype.time_event;V.prototype.track=V.prototype.track;V.prototype.track_links=V.prototype.track_links;V.prototype.track_forms=V.prototype.track_forms;V.prototype.track_pageview=V.prototype.track_pageview;V.prototype.register=V.prototype.register;V.prototype.register_once=V.prototype.register_once;V.prototype.unregister=V.prototype.unregister;V.prototype.identify=V.prototype.identify;V.prototype.alias=V.prototype.alias;V.prototype.name_tag=V.prototype.name_tag;V.prototype.set_config=V.prototype.set_config;V.prototype.get_config=V.prototype.get_config;V.prototype.get_property=V.prototype.get_property;V.prototype.get_distinct_id=V.prototype.get_distinct_id;V.prototype.toString=V.prototype.toString;V.prototype.opt_out_tracking=V.prototype.opt_out_tracking;V.prototype.opt_in_tracking=V.prototype.opt_in_tracking;V.prototype.has_opted_out_tracking=V.prototype.has_opted_out_tracking;V.prototype.has_opted_in_tracking=V.prototype.has_opted_in_tracking;V.prototype.clear_opt_in_out_tracking=V.prototype.clear_opt_in_out_tracking;V.prototype.get_group=V.prototype.get_group;V.prototype.set_group=V.prototype.set_group;V.prototype.add_group=V.prototype.add_group;V.prototype.remove_group=V.prototype.remove_group;V.prototype.track_with_groups=V.prototype.track_with_groups;V.prototype.start_batch_senders=V.prototype.start_batch_senders;V.prototype.stop_batch_senders=V.prototype.stop_batch_senders;V.prototype.start_session_recording=V.prototype.start_session_recording;V.prototype.stop_session_recording=V.prototype.stop_session_recording;V.prototype.get_session_recording_properties=V.prototype.get_session_recording_properties;V.prototype.DEFAULT_API_ROUTES=LC;Re.prototype.properties=Re.prototype.properties;Re.prototype.update_search_keyword=Re.prototype.update_search_keyword;Re.prototype.update_referrer_info=Re.prototype.update_referrer_info;Re.prototype.get_cross_subdomain=Re.prototype.get_cross_subdomain;Re.prototype.clear=Re.prototype.clear;var Ti={},oV=function(){w.each(Ti,function(e,t){t!==Wr&&(nr[t]=e)}),nr._=w},sV=function(){nr.init=function(e,t,r){if(r)return nr[r]||(nr[r]=Ti[r]=Pg(e,t,r),nr[r]._loaded()),nr[r];var n=nr;Ti[Wr]?n=Ti[Wr]:e&&(n=Pg(e,t,Wr),n._loaded(),Ti[Wr]=n),nr=n,cy===eV&&(Se[Wr]=nr),oV()}},iV=function(){function e(){e.done||(e.done=!0,PC=!0,RC=!1,w.each(Ti,function(n){n._dom_loaded()}))}function t(){try{ot.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(ot.addEventListener)ot.readyState==="complete"?e():ot.addEventListener("DOMContentLoaded",e,!1);else if(ot.attachEvent){ot.attachEvent("onreadystatechange",e);var r=!1;try{r=Se.frameElement===null}catch{}ot.documentElement.doScroll&&r&&t()}w.register_event(Se,"load",e,!0)};function aV(e){return AC=e,cy=IC,nr=new V,sV(),nr.init(),iV(),nr}function lV(e,t){t()}var Jn=aV(lV);const NC={layoutSkeleton:{type:"string",defaultValue:"control",description:"The layout skeleton to use",weightedSplit:!0,values:[{value:"control",weight:80},{value:"test",weight:20}]},siteSettings:{type:"string",defaultValue:"control",description:"Which version of site settings to use",values:["control","test"]},layoutSettings:{type:"string",defaultValue:"control",description:"Which version of layout settings to use",values:["control","test"]},adSettings:{type:"string",defaultValue:"control",description:"Which version of layout settings to use",values:["control","test"]},summaryPageSettings:{type:"string",defaultValue:"control",description:"Which version of summary page settings to use",values:["control","test"]},contentSource:{type:"string",defaultValue:"dynamodb",description:"Which content source to use",values:["content-api","dynamodb","discover-feed"]},showArticleImage:{type:"boolean",defaultValue:!1,description:"Whether to show the article image",values:[!0,!1]}};let m0=!1;const cV=Object.keys(NC);function uV(e,t={}){window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:t})}const ac=Qe.withTag("mixpanel"),y0=[];let _0=!1;function fV(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(y0.includes(t.ntp_placement_name))return!1;y0.push(t.ntp_placement_name)}if(e==="NtpPage_Viewed"){if(_0)return!1;_0=!0}return!0}const Dp=new Map;async function MC(){var s;if(Dp.has("metadata"))return Dp.get("metadata");const{client:e}=await ss(),t=(i,a)=>{if(typeof a=="string")return e.getStringValue(i,a);if(typeof a=="boolean")return e.getBooleanValue(i,a);if(typeof a=="number")return e.getNumberValue(i,a);throw new Error(`Unsupported default value type for key: ${i}`)},o={...(await Promise.all(cV.map(async i=>{try{const a=NC[i];return{[i]:await t(i,a.defaultValue)}}catch(a){return ac.warn(`Failed retrieving feature flag '${i}':`,a),{}}}))).reduce((i,a)=>Object.assign(i,a),{}),...no.getContext(),...((s=e.apiContextAccessor)==null?void 0:s.call(e))??{},splitTestName:e.getStringValue("splittestname","control")};return Dp.set("metadata",o),o}async function dV(){var o;if(m0)return Jn;const e=lt();if(!e.public.mixpanelToken)throw new Error("Mixpanel token is not defined in the runtime config.");Jn.init(e.public.mixpanelToken,{api_host:e.public.mixpanelApiHost}),ac.info("Mixpanel SDK initialized");const t=await MC();ac.info("Mixpanel metadata:",t),Jn.register(t);const r=t!=null&&t.cohort?String(t.cohort):"",n=t!=null&&t.targetingKey?String(t.targetingKey):"";return r&&n&&(Jn.identify(t.targetingKey),Jn.people.set_once?Jn.people.set_once({cohort:r}):(o=Jn.people)==null||o.set({cohort:r})),m0=!0,Jn}function pV(e,t){return dV().then(()=>{Jn.track(e,t)}).catch(()=>{ac.error("Failed to send event to Mixpanel. The Mixpanel SDK is not initialized.")})}async function DC(e,t){var u,f;if(ac.info(`Sending Mixpanel event: ${e}`,t),!fV(e,t))return;const r=await MC(),n={...t,split_test_data:r};uV(e,n);const{shift:o,chrome:s,onelaunch:i}=zk.getHostApis(),a=(u=o==null?void 0:o.analytics)==null?void 0:u.track;if(a){a(e,n);return}const l=i==null?void 0:i.sendEvent;if(l){l(e,n);return}const c=(f=s==null?void 0:s.runtime)==null?void 0:f.sendEvent;if(c){c(e,n);return}try{await pV(e,t)}catch{}}async function $C(e,t={}){const r=Cd(),{data:n}=ha(r);return{...await UC(n,e),...t}}function hV(e=300){const t=ue({article:0,video:0});let r=null;function n(o){r&&clearTimeout(r),t.value[o]+=1,r=setTimeout(async()=>{const s=await $C("NtpNewsTile_Rendered",{article_tiles_rendered_count:t.value.article,video_tiles_rendered_count:t.value.video});DC("NtpNewsTile_Rendered",s),t.value={article:0,video:0},r=null},e)}return n}const gV=hV(),Zo=()=>{async function e(t,r){if(!IV(t,r))return;const{client:n}=await ss();if(n.track(t,r),t==="NtpNewsTile_Rendered"&&r&&OV(r))gV(r.ntp_content_type);else{const o=await $C(t,r);try{await DC(t,o)}catch{}}}return{track:e,sendMixpanelEvent:e}},mV=vc(()=>{var i,a;const e=Cd(),{data:t}=ha(e),r=Yk(),n=Ix("app:userSelectedTheme",!1);n.value||(r.preference=((i=t.value.userSettings)==null?void 0:i.defaultSettings.theme)??"system");const o=Z(()=>r.preference==="system"&&r.value==="light"?"auto-light":r.preference==="system"&&r.value==="dark"?"auto-dark":r.preference),s=l=>{const{track:c}=Zo();n.value=!0,r.preference=l,document.documentElement.className=`${r.value} bg-background-default dark:bg-background-neutral-subtle`,c("NtpSetting_Changed",{setting_name:"ntp_theme",setting_value:o.value}),Sf("ntp_theme",o.value)};return r.preference=(n?r.preference:(a=t.value.userSettings)==null?void 0:a.defaultSettings.theme)??"system",{theme:r,updateTheme:s,mixpanelPropertyName:o}}),yV=vc(e=>{const t=Ix("app:userSettings",{articleSummary:{isEnabled:!0,showSettingsToggle:!1,isUserSelected:!1}}),r=Z(()=>e==null?void 0:e.value.userSettings);Oe(()=>r.value,o=>{o&&(t.value.articleSummary.isUserSelected||(t.value.articleSummary.isEnabled=o.defaultSettings.articleSummary),t.value.articleSummary.showSettingsToggle=o.enabledSettings.articleSummary)},{immediate:!0});const n=o=>{const{track:s}=Zo();t.value.articleSummary.isUserSelected=!0,t.value.articleSummary.isEnabled=o,s("NtpSetting_Changed",{setting_name:"ntp_article_summary",setting_value:o?"on":"off"})};return{articleSummary:t.value.articleSummary,updateArticleSummary:n}}),_V=Qe.withTag("composables:useAssertiveYield");function vV(e){var s,i,a,l,c,u;const{$ayLoaded:t}=Ce();if(!t)return{assertive:null,ayManagerEnv:null,ayData:null,initAY:()=>Promise.resolve(),unMountSlotTargeting:()=>Promise.resolve()};const r=ue(null);window.addEventListener("assertive_logImpression",async f=>{var d;try{const p=(d=f==null?void 0:f.data)==null?void 0:d.payload,{unfilled:g,auctionId:h}=p,m=r.value!==h;e!=null&&e.onAdFulfilled}catch(p){_V.error(p)}});const n=dD();Oe(n,f=>{const d=f==="visible";window.isPageVisible=d,d&&window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()})});const o={version:(i=(s=window.ayManagerEnv)==null?void 0:s.versionInfo)==null?void 0:i.versionId,deployment:(l=(a=window.ayManagerEnv)==null?void 0:a.versionInfo)==null?void 0:l.deployId,deploymentPercentage:((u=(c=window.ayManagerEnv)==null?void 0:c.versionInfo)==null?void 0:u.percentage)||0};return{assertive:window.assertive,ayManagerEnv:window.ayManagerEnv,ayData:o}}const bV=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomImpression=="function"&&window.assertive.logCustomImpression(e)}))},wV=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomClick=="function"&&window.assertive.logCustomClick(e)}))},Au=Qe.withTag("analytics:helper");function SV(e){if(e==null)return null;const r=e.match("([0-9]{1}_[0-9]{4}_[0-9]{3}_[0-9]{4}_[0-9]{3}(_[0-9]{3})?_[0-9]{6})");return r!=null?r[0]:null}async function FC(){const e="0_1000_100_1000_100_691231";try{const t=await zk.getConfig();if(t!=null&&t.type_tag)return t.type_tag;const r=(t==null?void 0:t.search_url)||null,n=SV(r);if(n)return n;const s=new URL(location.href).searchParams.get("type")||"0_1000_100_1000_100_691231";return s||e}catch(t){return Au.error(`Error getting type tag: ${t}`),e}}function EV(){const e=ti();return e.path.includes("/v8/article/")?"/v8/article":e.path.includes("/article/")?"/article":e.path.includes("/video/")?"/video":e.path}function xV({fullUrl:e=!1}={}){return e?window.location.href:"https://"+window.location.hostname+window.location.pathname}function kV(){const e=_4(),{newsToggle:t}=ha(e);return t.value?"on":"off"}function CV(){return mV().mixpanelPropertyName.value}function Ld(){return Ip==null?void 0:Ip.version}function TV(){const t=Ld().split(".").map(s=>parseInt(s,10));if(t.length!==3||t.some(isNaN))return;const[r,n,o]=t;return r*1e6+n*1e3+o}function dy(){const e=window.location.pathname;return e.includes("article")?"article":e.includes("summary")?"summary":e.includes("video")?"video":"homepage"}const AV=async e=>{e.value&&await new Promise(t=>{const r=Oe(e,n=>{n||(r(),t(!0))})})},UC=async(e,t)=>{const{articleSummary:r}=yV(e),n=ti(),o=d4(),{data:s,isLoading:i}=ha(o),{ayData:a}=await vV();await AV(i);const l={ntp_type_tag:await FC(),ntp_window_active:window.isPageVisible||document.visibilityState==="visible",ntp_url:xV(),ntp_app_version:Ld(),ntp_app_version_number:TV(),ntp_layout:EV(),ntp_page_type:dy(),ntp_assertive_data:a??void 0,ntp_news_content_toggle:kV(),ntp_is_user_idle:window.isUserIdle??!1,ntp_user_settings:{theme:CV(),ai_news_summary:{...r}}};if(t==="NtpPage_Viewed"||t==="NtpAd_Rendered"||t==="NtpMoreNews_Loaded"){const{browser_window_size:u,browser_window_height:f,browser_window_width:d,column_count:p}=a4();l.browser_window_size=u,l.browser_window_height=f,l.browser_window_width=d,["/","/v8","/v8/"].includes(n.path)&&(l.column_count=p)}if(["/","/v8","/v8/"].includes(n.path)&&(l.ntp_layout_skeleton=Me(s.value)),["/","/v8","/v8/"].includes(n.path)&&(t==="NtpPage_Viewed"||t==="NtpMoreNews_Loaded"))try{const{client:u}=await ss();if(!u)throw new Error("OpenFeature client is not available");if(!u.getBooleanValue("ntp_visible_content_enabled",!1))return l;const p=h4(!0);if(p.length===0)return Au.warn(`[visibleContent] No content found in registry for ${t}; sending event without visibleContent`),l;const g=l.column_count;if(!g||g<=0)return Au.warn(`[visibleContent] column_count missing/invalid (${g}) for ${t}; sending event without visibleContent`),l;l.visibleContent=m4(p,g),t==="NtpMoreNews_Loaded"&&y4()}catch(u){Au.warn("Failed to check visible content feature flag",u)}return l},v0=[];function IV(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(v0.includes(t.ntp_placement_name))return!1;v0.push(t.ntp_placement_name)}return!0}function OV(e){return e.ntp_content_type==="article"||e.ntp_content_type==="video"}const RV=et(e=>{const t=lt(),r=Ld(),n=t.public.buildVersion||r;try{"nocache"in e._route.query&&(Qe.log("Clearing all storage due to no-cache query param"),Rn.clear());const o=Rn.getItem("app:buildVersion");n!==o&&(["app:config:adSettings","app:config:layoutSettings","app:config:layoutSkeleton","app:config:siteSettings","app:buildVersion"].forEach(i=>{Rn.removeItem(i)}),Rn.setItem("app:buildVersion",`${n}`))}catch{}e.provide("buildVersion",n),e.provide("storage",Rn)}),b0=Qe.withTag("plugins:filters"),jC=O.object({userAgent:O.string().nullable(),country:O.string(),isMobile:O.boolean().default(!1)}),w0=jC.parse({country:"US",userAgent:null,isMobile:!1}),LV=et(async e=>{var n;let t,r;try{const o="/api/v2/filters",s=([t,r]=Nt(()=>$fetch(o)),t=await t,r(),t),i={...s,isMobile:((n=s.userAgent)==null?void 0:n.includes("Mobile"))||!1},a=jC.safeParse(i);if(!a.success){b0.warn("Invalid user filtering data:",a.error),e.provide("filters",w0);return}e.provide("filters",a.data)}catch(o){b0.warn("Error fetching user filtering data:",o),e.provide("filters",w0)}}),PV=et({name:"openfeature",setup:async e=>{let t,r;const{loaded:n,client:o}=([t,r]=Nt(()=>ss()),t=await t,r(),t);e.provide("openfeatureLoaded",n),e.provide("openfeature",o)}});function BC(){return window.location.pathname.includes("/v8/article/")?`https://${window.location.hostname}/v8/article/`:window.location.pathname.includes("/article/")?`https://${window.location.hostname}/article/`:window.location.pathname.includes("/video/")?`https://${window.location.hostname}/video/`:`https://${window.location.hostname}${window.location.pathname}`}const Ua={SM:480,MD:600,LG:767,XL:1024},NV=Qe.withTag("utils:loadScriptAsync"),au=new Map;function bl(e,t,r={}){const n=t.src||t.key;if(!n)throw new Error("Script key or src is required");const o=t.src,s=t.textContent;return au.has(n)||au.set(n,new Promise((i,a)=>{if(typeof document>"u")return typeof $s=="function"&&e==="head"?$s({script:[{...o?{src:o}:{},...s?{textContent:s}:{},type:"text/javascript",async:!0,onload:()=>{i()},onerror:()=>{a(new Error(`Failed to load script: ${n}`))},...r,...t.key?{key:t.key}:{}}]}):(NV.warn("loadScriptAsync is called outside of the browser environment"),a(new Error("Document is not defined")));if(o){const c=document.querySelector(`script[src="${o}"]`);if(c)if(c.hasAttribute("data-loaded")){i();return}else c.remove()}const l=document.createElement("script");l.type="text/javascript",l.async=!0,o?(l.src=o,l.referrerPolicy="no-referrer-when-downgrade"):s&&(l.textContent=s,i()),l.onload=()=>{l.setAttribute("data-loaded","true"),i()},l.onerror=()=>{l.removeAttribute("data-loaded"),a(new Error(`Failed to load script: ${n}`))},e==="head"?document.head.appendChild(l):document.body.appendChild(l)})),au.get(n)}const pi=Qe.withTag("useTaboolaAds"),MV=vc(()=>{var l,c;const e=Lr().taboola.publisherName,{$assertive:t}=Ce(),r=((c=(l=t==null?void 0:t.analytics)==null?void 0:l.custom)==null?void 0:c.custom_1)||"",n=dy()==="homepage"?bl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ external_page_view: ((window.performance.timing.navigationStart + window.performance.now()) * Math.random() * 1000000).toFixed() + "|" + window.location.host, homepage:'auto', custom_tracking:'sub_id=${r}' }); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } } (document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/${e}/loader.js', 'tb_loader_script'); if(window.performance && typeof(window.performance.mark) == 'function') {window.performance.mark('tbl_ic');}`,key:"taboola-homepage-header-script"},{id:"taboola-homepage-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,onload:()=>pi.debug("Taboola script loaded."),onerror:()=>pi.error("Taboola script failed to load.")}):bl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ external_page_view: ((window.performance.timing.navigationStart + window.performance.now()) * Math.random() * 1000000).toFixed() + "|" + window.location.host, article:'auto', custom_tracking:'sub_id=${r}' }); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } } (document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/${e}/loader.js', 'tb_loader_script'); if(window.performance && typeof(window.performance.mark) == 'function') {window.performance.mark('tbl_ic');}`,key:"taboola-article-header-script"},{id:"taboola-article-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,onload:()=>pi.debug("Taboola script loaded."),onerror:()=>pi.error("Taboola script failed to load.")}),o=bl("body",{textContent:`window._taboola = window._taboola || []; _taboola.push({flush: true});`,key:"taboola-homepage-body-script"},{id:"taboola-homepage-body-script",type:"text/javascript",async:!0,onload:()=>pi.debug("Taboola body script loaded."),onerror:()=>pi.error("Taboola body script failed to load.")});return{triggerTaboolaRenderedEvent:async(u,f,d,p)=>{await n,await o,p(),window._taboola=window._taboola||[],window._taboola.push({mode:u,container:f,placement:d,target_type:"mix"})},fireRenderCallback:(u,f,d)=>new Promise(p=>{window._taboola.push({listenTo:"render",handler:function(g){f.value=!0,g.detail.placement===u&&(d(),p())}})}),callRenderTaboolaWidgets:async()=>{await n,await o,window._taboola=window._taboola||[],window._taboola.push({notify:"newPageLoad"}),window._taboola.push({flush:!0})}}}),DV=Qe.withTag("useAdFunctions"),$V=()=>{const{track:e}=Zo(),{callRenderResearchWidgets:t}=py(),{callRenderTaboolaWidgets:r}=MV(),n=(f,d)=>{wV(d),e("NtpAd_Clicked",f)},o=(f,d)=>{bV(d),e("NtpAd_Rendered",f)},s=(f,d,p,g)=>{let h=0;try{if(!f)throw new Error("No element to render when visible");if(!d){p&&S0(f),g();return}const m=Ax(f,{threshold:1/100});rD(m,()=>{h&&clearTimeout(h),m.value&&(h=setTimeout(()=>{p&&S0(f),g()},1))})}catch(m){h&&clearTimeout(h),DV.error("Unable to render element when visible",m)}},i=()=>{window.ayManagerEnv.cmd=window.ayManagerEnv.cmd||[],window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()}),t(),r()},{width:a}=Ox(),l=ue("MD"),c=Z(()=>a.value<=Ua.LG),u=Z(()=>a.value>=Ua.XL);return Oe(a,f=>{let d=l.value;f>=Ua.LG?d="LG":f>=Ua.MD?d="MD":f>=Ua.SM?d="SM":d="XS",d!==l.value&&(l.value=d,i())}),{adClicked:n,adRendered:o,renderWhenCurrentElementIsVisible:s,triggerAdRenders:i,isMobile:c,isXLDesktop:u}},FV=It({__name:"Outbrain",props:{placement:{},widgetId:{},tilePosition:{default:-1},lazyRender:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1},adHeight:{default:"auto"},adWidth:{default:"auto"},adInstanceId:{default:""}},setup(e){const t=Qe.withTag("Outbrain:DXT-1780"),r=e;if(!r.placement||!r.widgetId)throw new Error(`Outbrain component requires placement and widgetId props- ${r.placement}`);const{outbrain:n}=Lr(),{adClicked:o,renderWhenCurrentElementIsVisible:s}=$V(),{track:i}=Zo(),{callRenderResearchWidgets:a,triggerOutbrainRenderedEvent:l}=py(),c=ue(r.placement),u=II("widgetWrapperEl"),f=ue(""),d=Z(()=>{const E={"data-ob-portalUrl":"","data-ob-language":"en","data-widget-id":r.widgetId,"data-external-id":"","data-ob-installation-key":(n==null?void 0:n.installationKey)||"","data-external-secondary-id":K3(),"data-render-registered":!1};return E["data-ob-portalUrl"]=BC(),E["data-external-id"]=window.location.host,E});function p(E){var S;f.value=((S=E==null?void 0:E.querySelector(".ob-rec-source"))==null?void 0:S.textContent)||""}function g(){return{ntp_tile_position:r.tilePosition,ntp_ad_provider:"outbrain",ntp_creative_id:r.widgetId,ntp_placement_name:r.placement,ntp_ad_brand:f.value}}function h(){o(g(),r.widgetId)}function m(E){const S=E.querySelector("a");S&&!S.getAttribute("data-click-registered")&&(S.setAttribute("data-click-registered","true"),S.addEventListener("click",h))}function y(E){E.querySelectorAll('a[data-click-registered="true"]').forEach(x=>{x.removeEventListener("click",h),x.removeAttribute("data-click-registered")})}function b(E){var j,L;const S=E.element,x=((L=(j=S==null?void 0:S.parentElement)==null?void 0:j.parentElement)==null?void 0:L.parentElement)||null,D=(x==null?void 0:x.getAttribute("data-render-registered"))==="true",I=x==null?void 0:x.classList.contains(r.placement),P={placement:r.placement,placementClassName:c.value,widgetId:r.widgetId,hasElement:!!S,hasParentElement:!!x,parentElementTag:x==null?void 0:x.tagName,parentElementClasses:x?Array.from(x.classList):[],expectedClass:r.placement,hasExpectedClass:I,isRendered:D,widgetWrapperRefExists:!!u.value,widgetWrapperRefClasses:u.value?Array.from(u.value.classList):[],timestamp:Date.now()};if(t.debug("[handleOutbrainRenderedEvent] Render event fired",P),!x){let G=0;if(S){let re=S;for(;re.parentElement&&G<3;)re=re.parentElement,G++}t.warn("[handleOutbrainRenderedEvent] No parent element - DOM not ready?",{placement:r.placement,hasElement:!!S,elementParentCount:G});return}if(D){t.debug("[handleOutbrainRenderedEvent] Already rendered - skipping",{placement:r.placement,parentElementClasses:Array.from(x.classList)});return}if(!I){t.warn("[handleOutbrainRenderedEvent] Class mismatch - event may be lost",{placement:r.placement,expectedClass:r.placement,placementClassName:c.value,parentElementClasses:Array.from(x.classList),widgetWrapperClasses:u.value?Array.from(u.value.classList):[]});return}if(t.debug("[handleOutbrainRenderedEvent] Processing render - tracking event",{placement:r.placement,widgetId:r.widgetId}),x&&!D&&I){p(S),m(E.element);const G=g();t.debug("[handleOutbrainRenderedEvent] Tracking NtpAd_Rendered",G),i("NtpAd_Rendered",G),x.setAttribute("data-render-registered","true"),t.debug("[handleOutbrainRenderedEvent] Marked as rendered",{placement:r.placement})}}const _=ue(!1);function v(){_.value=!0,yn(()=>{var S,x;if(!u.value||(S=u.value)!=null&&S.getAttribute("data-render-registered")){t.debug("[renderOutbrainAd] Early return",{placement:r.placement,hasWrapper:!!u.value,isAlreadyRegistered:(x=u.value)==null?void 0:x.getAttribute("data-render-registered")});return}const E=VV(r.placement,u.value);c.value=E>0?`${r.placement} ${r.placement}-${E}`:r.placement,t.debug("[renderOutbrainAd] Setting up Outbrain ad",{placement:r.placement,widgetId:r.widgetId,index:E,placementClassName:c.value,lazyRender:r.lazyRender,sticky:r.sticky,adInstanceId:r.adInstanceId}),a(),t.debug("[renderOutbrainAd] Triggering Outbrain rendered event",{widgetId:r.widgetId,placement:r.placement}),l(r.widgetId,b)})}return Rr(()=>{t.debug("[onMounted] Outbrain component mounted",{placement:r.placement,widgetId:r.widgetId,lazyRender:r.lazyRender,sticky:r.sticky,tilePosition:r.tilePosition,adInstanceId:r.adInstanceId}),s(u.value,r.lazyRender,r.sticky,v)}),Qs(()=>{u.value&&y(u.value)}),(E,S)=>(me(),vt("div",{ref_key:"widgetWrapperEl",ref:u,class:tt(c.value)},[_.value?(me(),vt("div",ir({key:0,class:["OUTBRAIN",c.value]},d.value),null,16)):Qt("",!0)],2))}}),ja=Qe.withTag("useOutbrainAds"),py=vc(()=>{const e=()=>bl("head",{src:"https://widgets.outbrain.com/outbrain.js",key:"outbrain-homepage-header-script"},{id:"outbrain-homepage-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,"data-disableLocalStorageGdpr":"true",onload:()=>ja.debug("Outbrain script loaded."),onerror:()=>ja.error("Outbrain script failed to load.")}),t=async()=>{try{if(await e(),!window.OBR||!window.OBR.extern||typeof window.OBR.extern.researchWidget!="function"){ja.warn("Outbrain research widget function not available after script load");return}window.OBR.extern.researchWidget()}catch(o){ja.error("Error when calling Outbrain research widget function.",o)}};return{callRenderResearchWidgets:t,triggerOutbrainRenderedEvent:async(o,s)=>{await e(),window.OBREvents||(window.OBREvents=[],ja.warn("Initialized empty OBREvents array after script load")),window.OBREvents.push({name:"rendered",widgetId:o,feedCards:1,callback:s})},renderFallbackOutbrainAd:(o,s)=>{const i=BV(o);if(!i.widgetId||!s)return;const a=`${i.placement}-fallback`;s.classList.remove(o),s.classList.add(a),s.innerHTML="";const{vueApp:l}=Ce(),c=At(FV,{...i,placement:a});c.appContext=l._context,sR(c,s),t()}}}),Gs=Qe.withTag("adFunctions");function hy(e){return e.replace(/__ayManagerEnv__.+$/,"")}function UV(e,t){const{track:r}=Zo();r("NtpAd_Rendered",{ntp_ad_brand:"programmatic",ntp_ad_provider:"programmatic",ntp_creative_id:t,ntp_placement_name:e,ntp_ad_refresh:!1})}function jV(e){var o;const t=e.slot.getSlotElementId(),r=(o=document.getElementById(t))==null?void 0:o.parentElement,n=hy(t);if(!r){Gs.error("Element not found for native ad fallback",n);return}if(e.isEmpty)try{const{renderFallbackOutbrainAd:s}=py();window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.destroy([t],{useInstanceCodes:!0})}),s(n,r);return}catch(s){Gs.error("Error on Gtag slotRenderEnded listener for native ad fallback",s)}UV(n,e.slot.getAdUnitPath())}function BV(e){var r,n;const t=(r=Lr().adops)==null?void 0:r.placements;if(!t){Gs.error("No outbrain widgets found");return}if(!t||!((n=t[e])!=null&&n.outbrain)){Qe.error("No outbrain widget found for: ",e);return}return{...t[e].outbrain,fallback:!0,placement:e}}function HV(e){var r;const t=(r=Lr().outbrain)==null?void 0:r.mapPlacementToWidget;if(!t){Gs.error("No mapping for placement to outbrain widgets found.");return}if(!t||!t[e]){Gs.error("No outbrain widget found for: ",e);return}return t[e]}function VV(e,t){if(!t||!e)return Gs.error("Element is null for placement:",e),0;const r=Array.from(document.querySelectorAll(`.${e}`)).filter(n=>n.hasAttribute("ad"));if(r.length>1&&t){const n=Array.from(r).findIndex(o=>o===t);if(n!==-1)return n}return 0}function S0(e,t=3e3){if(!e){Gs.error("No element to handle sticky ad");return}e.classList.add("sticky"),e.classList.add("top-0"),e.classList.add("z-[1000]");let r;window.addEventListener("scroll",()=>{e.classList.contains("sticky")||clearTimeout(r),r=setTimeout(()=>{e.classList.remove("sticky"),e.classList.remove("top-0"),e.classList.remove("z-[1000]")},t)})}const HC=[{min:0,max:2,increment:.05},{min:2,max:5,increment:.1},{min:5,max:10,increment:.25},{min:10,max:20,increment:.5}],WV=e=>{if(!e)return null;const t=HC.find(n=>e>=n.min&&e{const a=await r(i);return{placement:i,cpm:a}});(await Promise.allSettled(o)).forEach(i=>{i.status==="fulfilled"&&i.value.cpm?n.set(i.value.placement,i.value.cpm):i.status==="rejected"&&Qe.error("Failed to fetch CPM for placement:",i.reason)})}catch(o){Qe.error("Error fetching CPMs:",o)}return n}function GV(e,t,r,n){const o=hy(e);if(!n||!r.has(o)){t.updateTargetingFromMap({placement:o});return}const s=Number(Lr().defaultCpm);t.updateTargetingFromMap({ay_floor:WV(r.get(o)??s??0)??"",placement:o}),Qe.info(`Updated slot targeting for ${o} with ay_floor: ${r.get(o)}`)}const E0=Qe.withTag("utils:scriptLoadAY");async function qV(e,t,r,n,o,s){const{isDevMode:i,devDisableAds:a,devAYTestEntityId:l}=lt().public;if(i&&a)return E0.info("Ads are disabled in development mode"),{ayManagerEnv:null,assertive:null,loading:!1};if(window.assertive&&window.ayManagerEnv)return{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0};const c=i&&l?l:e,u={integrations:{webAnalytics:!0},logUnfilled:!0,custom:{layout:n,userState:null,custom_1:t.type_tag,custom_2:t.ntp_app_version,custom_3:t.host_browser_app_version,custom_4:BC(),custom_5:o,custom_6:s},useHistoryChangeTrigger:!0},f={ayEntityId:c,floor:r?{enabled:!0,currency:"USD",prebid:!0,priceBuckets:HC}:{},debug:!0,analytics:u};window.assertiveYieldAnalytics??(window.assertiveYieldAnalytics={...u}),window.assertive??(window.assertive={...f}),window.ayManagerEnv??(window.ayManagerEnv={cmd:[]});try{c&&await bl("head",{src:`https://${c}.ay.delivery/manager/${c}`})}catch(d){return E0.error("Failed to load Assertive Yield SDK:",d),{ayManagerEnv:null,assertive:null,loading:!1}}return window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var d,p;(p=(d=window.assertive)==null?void 0:d.analytics)!=null&&p.custom&&(window.assertive.analytics.custom.custom_5=o,window.assertive.analytics.custom.custom_6=s)}),{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0}}const gy=Qe.withTag("useCpms"),Ng="app:ad-cpms";function my(){return new Date().toISOString().split("T")[0]}function $p(){return new Date().getUTCHours().toString().padStart(2,"0")}function KV(){return Number(Lr().defaultCpm)}function YV(){try{const e=Rn.getItem(Ng);if(!e)return null;const t=JSON.parse(e);return t.date===my()?t:null}catch(e){return gy.error("Error reading stored data from localStorage:",e),Rn.removeItem(Ng),null}}function ZV(e){try{Rn.setItem(Ng,JSON.stringify(e))}catch(t){gy.error("Error saving data to localStorage:",t)}}async function XV(){const t=`/api/v2/ad-placement/cpm?date=${my()}`;return await $fetch(t)}function Fp(e,t,r){var o,s,i;if(!e)return;const n=(i=(s=(o=e.prices)==null?void 0:o[r])==null?void 0:s.cpms)==null?void 0:i[t];return n==null?void 0:Number(n)}function x0(e){var r,n;const{track:t}=Zo();return t("NtpDefaultCpm_Used",{placement:e,country:((n=(r=window.ayManagerEnv)==null?void 0:r.geoInfo)==null?void 0:n.country)??""}),KV()}function JV(){const e=ue(null);let t=null,r=null;function n(a){if(e.value){const l=Fp(e.value,a,$p());return Promise.resolve(l!==void 0?Number(l):void 0)}return Promise.resolve(void 0)}function o(a){const l=YV();if(l){e.value=l;const c=Fp(l,a,$p());return Promise.resolve(c!==void 0?Number(c):void 0)}return Promise.resolve(void 0)}async function s(a){const l=my();async function c(){const u=await XV(),f={date:l,prices:u};return e.value=f,ZV(f),u}(!t||r!==l)&&(r=l,t=c());try{if(await t,e.value){const u=Fp(e.value,a,$p());return u!==void 0?Number(u):void 0}}catch(u){gy.error("Error fetching placement data:",u);return}}async function i(a){const l=HV(a);if(!l)return x0(a);const c=[n,o,s];for(const u of c){const f=await u(l);if(f!==void 0)return f}return x0(a)}return{getHourlyCpmForPlacement:i}}function QV(){return{getHourlyCpmForPlacement:JV().getHourlyCpmForPlacement}}const e2=vc(QV),Up=Qe.withTag("revContentStore"),t2="/api/v2/revcontent",r2="https://trends.revcontent.com/view.php",n2=pa("revContent",{state:()=>({ads:[],currentIndex:0,offset:0}),actions:{async splitTestCheck(){const{client:e}=await ss();return e.getStringValue("splittestname","default")==="sp7_rev_content_native"},async init(){if(await this.splitTestCheck())try{await this.fetchAds(3)}catch(e){Up.error("Failed to initialize and populate RevContent store",e)}},async fetchAds(e){if(await this.splitTestCheck())try{const t=await fetch(`${t2}?offset=${this.offset}&count=${e||1}`,{method:"POST"});if(!t.ok)throw new Error(`Failed to fetch RevContent ads : ${t.statusText}`);const r=await t.json();return this.offset=this.offset+(e||1),this.ads=[...this.ads,...r.content],r.content[0]}catch(t){return Up.error("Failed to fetch RevContent ads",t),[]}},async getNextAd(){const e={...this.ads[this.currentIndex]};if(this.currentIndex===0?e.view_type="widget":e.view_type="fill",this.currentIndex=this.currentIndex+1,!e.headline){const t=await this.fetchAds(1);if(t)return t.view_type="fill",t}return e},async postView(e){var t;try{const r=new URLSearchParams([["view",decodeURIComponent(e.viewHash??"")],["p[]",((t=e.index)==null?void 0:t.toString())??"0"],["view_type",e.view_type??"fill"]]);await fetch(`${r2}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:r})}catch(r){Up.error("Failed to post view for RevContent ad",r)}}}}),jp=O.object({y:O.number(),x:O.number(),classes:O.string()}),o2=O.object({billboardAdClasses:O.object({widgetId:O.string().optional(),classes:O.string().optional()}),billboardAdSize:O.optional(O.union([O.literal("small"),O.literal("medium"),O.literal("large")])),grid3:O.array(jp),grid2:O.array(jp),grid1:O.array(jp)}),s2=O.object({provider:O.union([O.literal("affinity"),O.literal("admarketplace"),O.literal("off")]),tilesCount:O.number().default(5),design:O.union([O.literal("msn"),O.literal("google")]).optional(),variant:O.union([O.literal("default"),O.literal("circle"),O.literal("large-primary"),O.literal("large-secondary")]).optional()}),i2=O.object({provider:O.union([O.literal("affinity"),O.literal("admarketplace")]),tilesCount:O.number().default(5)}),a2=O.object({provider:O.literal("direct"),name:O.string(),image_url:O.string(),click_url:O.string(),impression_url:O.string()}),l2=O.object({tilesProvider:O.array(O.union([i2,a2])),design:O.union([O.literal("msn"),O.literal("google")]).optional(),variant:O.union([O.literal("default"),O.literal("circle"),O.literal("large-primary"),O.literal("large-secondary")]).optional()}),c2=O.object({isEnabled:O.boolean().default(!0),flooredPlacements:O.array(O.string()).optional().default([])}),k0=O.object({sponsoredTiles:O.optional(s2),dynamicSponsoredTiles:O.optional(l2),aboveFoldSectionAds:O.optional(o2),aboveFoldSectionLeaderboardAd:O.union([O.literal("testsection_leader"),O.literal("testsection_leader"),O.literal("testsection_leader"),O.literal("")]).default("").optional(),adsDynamicFloorPricing:O.optional(c2),enableSubtleGreyAdBackground:O.boolean().optional()}),VC=kd({defaults:k0.parse({sponsoredTiles:{provider:"off",tilesCount:5},dynamicSponsoredTiles:void 0,aboveFoldSectionAds:void 0,aboveFoldSectionLeaderboardAd:"",enableSubtleGreyAdBackground:!1,adsDynamicFloorPricing:{isEnabled:!1,flooredPlacements:[]}}),configStoreKey:"adSettings",schema:e=>k0.parse(e)}),C0=Qe.withTag("plugins/assertive.client"),u2=et({name:"assertive",dependsOn:["openfeature"],setup:async e=>{let t,r;const{client:n}=([t,r]=Nt(()=>ss()),t=await t,r(),t),{track:o}=Zo(),{ayEntityId:s}=lt().public,i=n.getStringValue("splittestname","control"),a=n.getStringValue("layoutSkeleton","default"),l=VC();[t,r]=Nt(()=>l.initialized),await t,r();const{data:c}=ha(l),u=n2();[t,r]=Nt(()=>u.init()),await t,r();const f=Z(()=>{var b;return(b=c.value.adsDynamicFloorPricing)==null?void 0:b.isEnabled}),d=Z(()=>{var b;return Array.from(((b=c.value.adsDynamicFloorPricing)==null?void 0:b.flooredPlacements)??[])}),p={ntp_app_version:Ld(),host_browser_app_version:([t,r]=Nt(()=>pk()),t=await t,r(),t),type_tag:([t,r]=Nt(()=>FC()),t=await t,r(),t)},g=no.getContext(),h=([t,r]=Nt(()=>qV(s,p,f.value,i,a,typeof g.cohort=="string"?g.cohort:null)),t=await t,r(),t);if(!h.loading){C0.error("Assertive Yield SDK failed to load");return}C0.info("Assertive Yield loaded");const{getHourlyCpmForPlacement:m}=e2(),y=([t,r]=Nt(()=>zV(f.value,d.value,m)),t=await t,r(),t);window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.onEvent("afterDefineSlot",(b,_)=>{GV(b,_,y,f.value)})}),window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.onEvent("afterRefresh",b=>{b.forEach(_=>{const v={ntp_tile_position:-1,ntp_ad_provider:"programmatic",ntp_creative_id:"",ntp_placement_name:hy(_),ntp_ad_brand:"",ntp_ad_clickurl:"",ntp_ad_refresh:!0};o("NtpAd_Rendered",v)})})}),window.analytics||(window.analytics=Zo()),e.provide("ayLoaded",h),e.provide("assertive",window.assertive)}}),f2=et(e=>{e.vueApp.directive("click-outside",{beforeMount:(t,{value:r})=>{t.clickOutsideEvent=n=>{t===n.target||t.contains(n.target)||r()},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted:t=>{document.body.removeEventListener("click",t.clickOutsideEvent)}})});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:WC,setPrototypeOf:T0,isFrozen:d2,getPrototypeOf:p2,getOwnPropertyDescriptor:h2}=Object;let{freeze:Er,seal:Yr,create:zC}=Object,{apply:Mg,construct:Dg}=typeof Reflect<"u"&&Reflect;Er||(Er=function(t){return t});Yr||(Yr=function(t){return t});Mg||(Mg=function(t,r,n){return t.apply(r,n)});Dg||(Dg=function(t,r){return new t(...r)});const lu=Fr(Array.prototype.forEach),A0=Fr(Array.prototype.pop),Ba=Fr(Array.prototype.push),Iu=Fr(String.prototype.toLowerCase),Bp=Fr(String.prototype.toString),I0=Fr(String.prototype.match),Ha=Fr(String.prototype.replace),g2=Fr(String.prototype.indexOf),m2=Fr(String.prototype.trim),Jr=Fr(Object.prototype.hasOwnProperty),pr=Fr(RegExp.prototype.test),Va=y2(TypeError);function Fr(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Iu;T0&&T0(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const s=r(o);s!==o&&(d2(t)||(t[n]=s),o=s)}e[o]=!0}return e}function _2(e){for(let t=0;t/gm),E2=Yr(/\${[\w\W]*}/gm),x2=Yr(/^data-[\-\w.\u00B7-\uFFFF]/),k2=Yr(/^aria-[\-\w]+$/),GC=Yr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C2=Yr(/^(?:\w+script|data):/i),T2=Yr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qC=Yr(/^html$/i),A2=Yr(/^[a-z][.\w]*(-[.\w]+)+$/i);var N0=Object.freeze({__proto__:null,ARIA_ATTR:k2,ATTR_WHITESPACE:T2,CUSTOM_ELEMENT:A2,DATA_ATTR:x2,DOCTYPE_NAME:qC,ERB_EXPR:S2,IS_ALLOWED_URI:GC,IS_SCRIPT_OR_DATA:C2,MUSTACHE_EXPR:w2,TMPLIT_EXPR:E2});const za={element:1,text:3,progressingInstruction:7,comment:8,document:9},I2=function(){return typeof window>"u"?null:window},O2=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const s="dompurify"+(n?"#"+n:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},M0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function KC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I2();const t=ge=>KC(ge);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==za.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=e,g=l.prototype,h=Wa(g,"cloneNode"),m=Wa(g,"remove"),y=Wa(g,"nextSibling"),b=Wa(g,"childNodes"),_=Wa(g,"parentNode");if(typeof i=="function"){const ge=r.createElement("template");ge.content&&ge.content.ownerDocument&&(r=ge.content.ownerDocument)}let v,E="";const{implementation:S,createNodeIterator:x,createDocumentFragment:D,getElementsByTagName:I}=r,{importNode:P}=n;let j=M0();t.isSupported=typeof WC=="function"&&typeof _=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:G,TMPLIT_EXPR:re,DATA_ATTR:de,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:Te}=N0;let{IS_ALLOWED_URI:kt}=N0,we=null;const Xe=Ne({},[...O0,...Hp,...Vp,...Wp,...R0]);let je=null;const tr=Ne({},[...L0,...zp,...P0,...cu]);let ze=Object.seal(zC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,W=null,Q=!0,J=!0,ie=!1,te=!0,be=!1,C=!0,A=!1,$=!1,B=!1,H=!1,k=!1,T=!1,M=!0,U=!1;const z="user-content-";let K=!0,R=!1,F={},ee=null;const fe=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Le=null;const Pe=Ne({},["audio","video","img","source","image","track"]);let mt=null;const Tt=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yt="http://www.w3.org/1998/Math/MathML",zt="http://www.w3.org/2000/svg",fr="http://www.w3.org/1999/xhtml";let Hn=fr,Zt=!1,xr=null;const Oc=Ne({},[Yt,zt,fr],Bp);let Rc=Ne({},["mi","mo","mn","ms","mtext"]),Lc=Ne({},["annotation-xml"]);const CA=Ne({},["title","style","font","a","script"]);let Sa=null;const TA=["application/xhtml+xml","text/html"],AA="text/html";let Gt=null,ii=null;const IA=r.createElement("form"),By=function(N){return N instanceof RegExp||N instanceof Function},Hd=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ii&&ii===N)){if((!N||typeof N!="object")&&(N={}),N=ms(N),Sa=TA.indexOf(N.PARSER_MEDIA_TYPE)===-1?AA:N.PARSER_MEDIA_TYPE,Gt=Sa==="application/xhtml+xml"?Bp:Iu,we=Jr(N,"ALLOWED_TAGS")?Ne({},N.ALLOWED_TAGS,Gt):Xe,je=Jr(N,"ALLOWED_ATTR")?Ne({},N.ALLOWED_ATTR,Gt):tr,xr=Jr(N,"ALLOWED_NAMESPACES")?Ne({},N.ALLOWED_NAMESPACES,Bp):Oc,mt=Jr(N,"ADD_URI_SAFE_ATTR")?Ne(ms(Tt),N.ADD_URI_SAFE_ATTR,Gt):Tt,Le=Jr(N,"ADD_DATA_URI_TAGS")?Ne(ms(Pe),N.ADD_DATA_URI_TAGS,Gt):Pe,ee=Jr(N,"FORBID_CONTENTS")?Ne({},N.FORBID_CONTENTS,Gt):fe,gt=Jr(N,"FORBID_TAGS")?Ne({},N.FORBID_TAGS,Gt):{},W=Jr(N,"FORBID_ATTR")?Ne({},N.FORBID_ATTR,Gt):{},F=Jr(N,"USE_PROFILES")?N.USE_PROFILES:!1,Q=N.ALLOW_ARIA_ATTR!==!1,J=N.ALLOW_DATA_ATTR!==!1,ie=N.ALLOW_UNKNOWN_PROTOCOLS||!1,te=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=N.SAFE_FOR_TEMPLATES||!1,C=N.SAFE_FOR_XML!==!1,A=N.WHOLE_DOCUMENT||!1,H=N.RETURN_DOM||!1,k=N.RETURN_DOM_FRAGMENT||!1,T=N.RETURN_TRUSTED_TYPE||!1,B=N.FORCE_BODY||!1,M=N.SANITIZE_DOM!==!1,U=N.SANITIZE_NAMED_PROPS||!1,K=N.KEEP_CONTENT!==!1,R=N.IN_PLACE||!1,kt=N.ALLOWED_URI_REGEXP||GC,Hn=N.NAMESPACE||fr,Rc=N.MATHML_TEXT_INTEGRATION_POINTS||Rc,Lc=N.HTML_INTEGRATION_POINTS||Lc,ze=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&By(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&By(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&(J=!1),k&&(H=!0),F&&(we=Ne({},R0),je=[],F.html===!0&&(Ne(we,O0),Ne(je,L0)),F.svg===!0&&(Ne(we,Hp),Ne(je,zp),Ne(je,cu)),F.svgFilters===!0&&(Ne(we,Vp),Ne(je,zp),Ne(je,cu)),F.mathMl===!0&&(Ne(we,Wp),Ne(je,P0),Ne(je,cu))),N.ADD_TAGS&&(we===Xe&&(we=ms(we)),Ne(we,N.ADD_TAGS,Gt)),N.ADD_ATTR&&(je===tr&&(je=ms(je)),Ne(je,N.ADD_ATTR,Gt)),N.ADD_URI_SAFE_ATTR&&Ne(mt,N.ADD_URI_SAFE_ATTR,Gt),N.FORBID_CONTENTS&&(ee===fe&&(ee=ms(ee)),Ne(ee,N.FORBID_CONTENTS,Gt)),K&&(we["#text"]=!0),A&&Ne(we,["html","head","body"]),we.table&&(Ne(we,["tbody"]),delete gt.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Va('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Va('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=N.TRUSTED_TYPES_POLICY,E=v.createHTML("")}else v===void 0&&(v=O2(p,o)),v!==null&&typeof E=="string"&&(E=v.createHTML(""));Er&&Er(N),ii=N}},Hy=Ne({},[...Hp,...Vp,...v2]),Vy=Ne({},[...Wp,...b2]),OA=function(N){let X=_(N);(!X||!X.tagName)&&(X={namespaceURI:Hn,tagName:"template"});const ce=Iu(N.tagName),yt=Iu(X.tagName);return xr[N.namespaceURI]?N.namespaceURI===zt?X.namespaceURI===fr?ce==="svg":X.namespaceURI===Yt?ce==="svg"&&(yt==="annotation-xml"||Rc[yt]):!!Hy[ce]:N.namespaceURI===Yt?X.namespaceURI===fr?ce==="math":X.namespaceURI===zt?ce==="math"&&Lc[yt]:!!Vy[ce]:N.namespaceURI===fr?X.namespaceURI===zt&&!Lc[yt]||X.namespaceURI===Yt&&!Rc[yt]?!1:!Vy[ce]&&(CA[ce]||!Hy[ce]):!!(Sa==="application/xhtml+xml"&&xr[N.namespaceURI]):!1},Sn=function(N){Ba(t.removed,{element:N});try{_(N).removeChild(N)}catch{m(N)}},Pc=function(N,X){try{Ba(t.removed,{attribute:X.getAttributeNode(N),from:X})}catch{Ba(t.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(H||k)try{Sn(X)}catch{}else try{X.setAttribute(N,"")}catch{}},Wy=function(N){let X=null,ce=null;if(B)N=""+N;else{const Xt=I0(N,/^[\r\n\t ]+/);ce=Xt&&Xt[0]}Sa==="application/xhtml+xml"&&Hn===fr&&(N=''+N+"");const yt=v?v.createHTML(N):N;if(Hn===fr)try{X=new d().parseFromString(yt,Sa)}catch{}if(!X||!X.documentElement){X=S.createDocument(Hn,"template",null);try{X.documentElement.innerHTML=Zt?E:yt}catch{}}const rr=X.body||X.documentElement;return N&&ce&&rr.insertBefore(r.createTextNode(ce),rr.childNodes[0]||null),Hn===fr?I.call(X,A?"html":"body")[0]:A?X.documentElement:rr},zy=function(N){return x.call(N.ownerDocument||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Gy=function(N){return N instanceof f&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof u)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},qy=function(N){return typeof a=="function"&&N instanceof a};function Vn(ge,N,X){lu(ge,ce=>{ce.call(t,N,X,ii)})}const Ky=function(N){let X=null;if(Vn(j.beforeSanitizeElements,N,null),Gy(N))return Sn(N),!0;const ce=Gt(N.nodeName);if(Vn(j.uponSanitizeElement,N,{tagName:ce,allowedTags:we}),N.hasChildNodes()&&!qy(N.firstElementChild)&&pr(/<[/\w]/g,N.innerHTML)&&pr(/<[/\w]/g,N.textContent)||N.nodeType===za.progressingInstruction||C&&N.nodeType===za.comment&&pr(/<[/\w]/g,N.data))return Sn(N),!0;if(!we[ce]||gt[ce]){if(!gt[ce]&&Zy(ce)&&(ze.tagNameCheck instanceof RegExp&&pr(ze.tagNameCheck,ce)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(ce)))return!1;if(K&&!ee[ce]){const yt=_(N)||N.parentNode,rr=b(N)||N.childNodes;if(rr&&yt){const Xt=rr.length;for(let kr=Xt-1;kr>=0;--kr){const En=h(rr[kr],!0);En.__removalCount=(N.__removalCount||0)+1,yt.insertBefore(En,y(N))}}}return Sn(N),!0}return N instanceof l&&!OA(N)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&pr(/<\/no(script|embed|frames)/i,N.innerHTML)?(Sn(N),!0):(be&&N.nodeType===za.text&&(X=N.textContent,lu([L,G,re],yt=>{X=Ha(X,yt," ")}),N.textContent!==X&&(Ba(t.removed,{element:N.cloneNode()}),N.textContent=X)),Vn(j.afterSanitizeElements,N,null),!1)},Yy=function(N,X,ce){if(M&&(X==="id"||X==="name")&&(ce in r||ce in IA))return!1;if(!(J&&!W[X]&&pr(de,X))){if(!(Q&&pr(q,X))){if(!je[X]||W[X]){if(!(Zy(N)&&(ze.tagNameCheck instanceof RegExp&&pr(ze.tagNameCheck,N)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(N))&&(ze.attributeNameCheck instanceof RegExp&&pr(ze.attributeNameCheck,X)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(X))||X==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&pr(ze.tagNameCheck,ce)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(ce))))return!1}else if(!mt[X]){if(!pr(kt,Ha(ce,oe,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&g2(ce,"data:")===0&&Le[N])){if(!(ie&&!pr(ne,Ha(ce,oe,"")))){if(ce)return!1}}}}}}return!0},Zy=function(N){return N!=="annotation-xml"&&I0(N,Te)},Xy=function(N){Vn(j.beforeSanitizeAttributes,N,null);const{attributes:X}=N;if(!X)return;const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let yt=X.length;for(;yt--;){const rr=X[yt],{name:Xt,namespaceURI:kr,value:En}=rr,Ea=Gt(Xt);let dr=Xt==="value"?En:m2(En);if(ce.attrName=Ea,ce.attrValue=dr,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Vn(j.uponSanitizeAttribute,N,ce),dr=ce.attrValue,U&&(Ea==="id"||Ea==="name")&&(Pc(Xt,N),dr=z+dr),C&&pr(/((--!?|])>)|<\/(style|title)/i,dr)){Pc(Xt,N);continue}if(ce.forceKeepAttr||(Pc(Xt,N),!ce.keepAttr))continue;if(!te&&pr(/\/>/i,dr)){Pc(Xt,N);continue}be&&lu([L,G,re],Qy=>{dr=Ha(dr,Qy," ")});const Jy=Gt(N.nodeName);if(Yy(Jy,Ea,dr)){if(v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!kr)switch(p.getAttributeType(Jy,Ea)){case"TrustedHTML":{dr=v.createHTML(dr);break}case"TrustedScriptURL":{dr=v.createScriptURL(dr);break}}try{kr?N.setAttributeNS(kr,Xt,dr):N.setAttribute(Xt,dr),Gy(N)?Sn(N):A0(t.removed)}catch{}}}Vn(j.afterSanitizeAttributes,N,null)},RA=function ge(N){let X=null;const ce=zy(N);for(Vn(j.beforeSanitizeShadowDOM,N,null);X=ce.nextNode();)Vn(j.uponSanitizeShadowNode,X,null),!Ky(X)&&(X.content instanceof s&&ge(X.content),Xy(X));Vn(j.afterSanitizeShadowDOM,N,null)};return t.sanitize=function(ge){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,ce=null,yt=null,rr=null;if(Zt=!ge,Zt&&(ge=""),typeof ge!="string"&&!qy(ge))if(typeof ge.toString=="function"){if(ge=ge.toString(),typeof ge!="string")throw Va("dirty is not a string, aborting")}else throw Va("toString is not a function");if(!t.isSupported)return ge;if($||Hd(N),t.removed=[],typeof ge=="string"&&(R=!1),R){if(ge.nodeName){const En=Gt(ge.nodeName);if(!we[En]||gt[En])throw Va("root node is forbidden and cannot be sanitized in-place")}}else if(ge instanceof a)X=Wy(""),ce=X.ownerDocument.importNode(ge,!0),ce.nodeType===za.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?X=ce:X.appendChild(ce);else{if(!H&&!be&&!A&&ge.indexOf("<")===-1)return v&&T?v.createHTML(ge):ge;if(X=Wy(ge),!X)return H?null:T?E:""}X&&B&&Sn(X.firstChild);const Xt=zy(R?ge:X);for(;yt=Xt.nextNode();)Ky(yt)||(yt.content instanceof s&&RA(yt.content),Xy(yt));if(R)return ge;if(H){if(k)for(rr=D.call(X.ownerDocument);X.firstChild;)rr.appendChild(X.firstChild);else rr=X;return(je.shadowroot||je.shadowrootmode)&&(rr=P.call(n,rr,!0)),rr}let kr=A?X.outerHTML:X.innerHTML;return A&&we["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&pr(qC,X.ownerDocument.doctype.name)&&(kr=" `+kr),be&&lu([L,G,re],En=>{kr=Ha(kr,En," ")}),v&&T?v.createHTML(kr):kr},t.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hd(ge),$=!0},t.clearConfig=function(){ii=null,$=!1},t.isValidAttribute=function(ge,N,X){ii||Hd({});const ce=Gt(ge),yt=Gt(N);return Yy(ce,yt,X)},t.addHook=function(ge,N){typeof N=="function"&&Ba(j[ge],N)},t.removeHook=function(ge){return A0(j[ge])},t.removeHooks=function(ge){j[ge]=[]},t.removeAllHooks=function(){j=M0()},t}var R2=KC();function L2(e,t){const r=e.hooks??{};let n;for(n in r){const o=r[n];o!==void 0&&t.addHook(n,o)}}function YC(){return R2()}function P2(e={},t=YC){const r=t();L2(e,r);const n=function(o,s){const i=s.value;if(s.oldValue===i)return;const a=`${i}`,l=s.arg,c=e.namedConfigurations,u=e.default??{};if(c&&l!==void 0){o.innerHTML=r.sanitize(a,c[l]??u);return}o.innerHTML=r.sanitize(a,u)};return{mounted:n,updated:n}}const N2={install(e,t={},r=YC){e.directive("dompurify-html",P2(t,r))}},M2=et(e=>{e.vueApp.use(N2)});function D2(e){window[`ga-disable-${e}`]=!0}function $2(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function F2(){const e=lt().public.gtag,t=tx(e);let r;r=Su;const n=a=>{const l=[...t];let c=l.find(u=>u.id===a);return c||(a?(c={id:a},l.unshift(c)):c=l[0]),c||console.error("[nuxt-gtag] Missing Google tag ID"),{tag:c,tags:l}},o=a=>{{const{tag:l,tags:c}=n(a);if(!l)return;window.dataLayer||ex({tags:c}),document.head.querySelector("script[data-gtag]")||$s({script:[{src:Pl(e.url,{id:l.id}),"data-gtag":""}]})}};function s(a){{const{tag:l}=n(a);l&&D2(l.id)}}function i(a){{const{tag:l}=n(a);l&&$2(l.id)}}return{gtag:r,initialize:o,disableAnalytics:s,enableAnalytics:i}}const Gp=Qe.withTag("plugins:google-tag-manager"),U2=et(async e=>{let t,r;const{googleTagManagerId:n,redesignedNtpPaths:o}=Lr(),{gtag:s,initialize:i}=F2(),a=ti(),{client:l}=([t,r]=Nt(()=>ss()),t=await t,r(),t);if(!n){Gp.warn("Google Tag Manager: Gtag ID not available in app config");return}i(n),o.includes(a.path)||(s("js",new Date),s("config","UA-62117061-22")),e.hook("app:mounted",()=>{try{window.googletag=window.googletag||{cmd:[]};const c="nofallback"in a.query;window.googletag.cmd.push(()=>{if(!window.googletag.pubads||c){Gp.error("addEventListener: Gtag pubads not found");return}window.googletag.pubads().addEventListener("slotRenderEnded",jV),window.googletag.setConfig({targeting:{page_type:dy(),split_test_name:l.getStringValue("splittestname","default")}})})}catch(c){Gp.error("Error mounting event listeners for native fallback",c)}})}),j2=e=>{e!==void 0&&setTimeout(e,100)},B2=et(e=>{const t=r=>{(document==null?void 0:document.visibilityState)==="visible"&&r.focus()};e.vueApp.directive("autofocus-on-document-visible",{mounted:(r,n)=>{r._visibilityChangeEvent=()=>t(r),document.addEventListener("visibilitychange",r._visibilityChangeEvent),j2(n==null?void 0:n.value),r.focus()},unmounted:r=>{document.removeEventListener("visibilitychange",r._visibilityChangeEvent),delete r._visibilityChangeEvent}})});function H2(e,t,r){return(e=(t.split?t.split("."):t).reduce(function(n,o){return n&&n[o]},e))===void 0?r:e}function D0(e,t,r,n){return(t=t.split?t.split("."):t.slice(0)).slice(0,-1).reduce(function(o,s){return/^(__proto__|constructor|prototype)$/.test(s)?{}:o[s]=o[s]||{}},e)[t.pop()]=r,e}function $0(e,t){return e??t}function kn(e,t,r,n){return $0($0(r[t],n[t]),e)}function V2(e){const t=e||{};function r(n){const o=function(){try{return n.options.persistedState||{}}catch{return{}}}();if(kn(!0,"persist",o,t)===!1)return;const s=kn(n.store.$id,"key",o,{}),i=kn(!1,"overwrite",o,t),a=kn(function(){try{return window.localStorage}catch{return{getItem:function(){},setItem:function(){},removeItem:function(){}}}}(),"storage",o,t),l=kn(function(){return!0},"filter",o,t),c=kn(JSON.stringify,"serialize",o,t),u=kn(JSON.parse,"deserialize",o,t),f=kn(function(v){return v},"migrate",o,{}),d=kn(function(v,E){return E},"merge",o,{}),p=kn(function(v){const E="@@",S=v.setItem(E,"1"),x=function(){v.removeItem(E)};S instanceof Promise?S.then(x):x()},"assertStorage",o,t);function g(v){(o.beforeHydrate||function(){})(n.store.$state);const E=d(n.store.$state,v);i?n.store.$patch(S=>{Object.keys(S).forEach(x=>{S[x]=E[x]})}):n.store.$patch(E),m()}function h(v){if(v!=null){const E=u(v),S=f(E);S instanceof Promise?S.then(g):g(S)}else m()}let m;const y=new Promise(function(v){m=v});let b=0;n.store.$persistedState={isReady:function(){return y},pending:!1};try{_()}catch{m()}function _(){const v=a.getItem(s);v instanceof Promise?v.then(h):h(v)}n.store.$subscribe(function(v,E){if(l(v,E)===!1)return;Array.isArray(o.includePaths)&&(E=o.includePaths.reduce(function(D,I){return D0(D,I,H2(E,I,void 0))},{})),Array.isArray(o.excludePaths)&&(E=u(c(E)),o.excludePaths.forEach(function(D){return D0(E,D,void 0)},{}));const S=c(E),x=a.setItem(s,S);x instanceof Promise&&(++b,n.store.$persistedState.pending=b!==0,x.catch(function(){}).finally(function(){--b,n.store.$persistedState.pending=b!==0}))})}return r}const W2=et(e=>{e.$pinia.use(V2({persist:!1}))}),z2=et({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),G2=[EL,AL,ZP,JP,QP,eN,rN,NN,UN,jN,BN,qM,ED,kD,tF,oF,iB,aB,cB,RV,LV,PV,u2,f2,M2,U2,B2,W2,z2],ZC=(e="RouteProvider")=>It({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,o={};for(const s in t.route)Object.defineProperty(o,s,{get:()=>r===t.renderKey?t.route[s]:n[s],enumerable:!0});return As(mc,oo(o)),()=>At(t.vnode,{ref:t.vnodeRef})}}),q2=ZC(),F0=new WeakMap,K2=It({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const o=Ce(),s=ue(),i=Ht(mc,null);let a;n({pageRef:s});const l=Ht(C1,null);let c;const u=o.deferHydration();if(o.isHydrating){const d=o.hooks.hookOnce("app:error",u);Wt().beforeEach(d)}e.pageKey&&Oe(()=>e.pageKey,(d,p)=>{d!==p&&o.callHook("page:loading:start")});let f=!1;{const d=Wt().beforeResolve(()=>{f=!1});da(()=>{d()})}return()=>At(GE,{name:e.name,route:e.route,...t},{default:d=>{const p=Z2(i,d.route,d.Component),g=i&&i.matched.length===d.route.matched.length;if(!d.Component){if(c&&!g)return c;u();return}if(c&&l&&!l.isCurrent(d.route))return c;if(p&&i&&(!l||l!=null&&l.isCurrent(i)))return g?c:null;const h=Kh(d,e.pageKey),m=X2(i,d.route,d.Component);!o.isHydrating&&a===h&&!m&&(o.callHook("page:loading:end"),f=!0),a=h;const y=!!(e.transition??d.route.meta.pageTransition??Dh),b=y&&Y2([e.transition,d.route.meta.pageTransition,Dh,{onAfterLeave:()=>{o.callHook("page:transition:finish",d.Component)}}]),_=e.keepalive??d.route.meta.keepalive??d1;return c=jP(y&&b,MP(_,At(FS,{suspensible:!0,onPending:()=>o.callHook("page:start",d.Component),onResolve:()=>{yn(()=>o.callHook("page:finish",d.Component).then(()=>{if(!f&&!m)return f=!0,o.callHook("page:loading:end")}).finally(u))}},{default:()=>{const v={key:h||void 0,vnode:r.default?J2(r.default,d):d.Component,route:d.route,renderKey:h||void 0,trackRootNodes:y,vnodeRef:s};if(!_)return At(q2,v);const E=d.Component.type,S=E;let x=F0.get(S);return x||(x=ZC(E.name||E.__name),F0.set(S,x)),At(x,v)}}))).default(),c}})}});function Y2(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?xm(r.onAfterLeave):void 0}));return _E(...t)}function Z2(e,t,r){if(!e)return!1;const n=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(r==null?void 0:r.type)});return!n||n===-1?!1:t.matched.slice(0,n).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||r&&Kh({route:t,Component:r})!==Kh({route:e,Component:r})}function X2(e,t,r){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(r==null?void 0:r.type)}){switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function rW(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}const nW=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oW=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function U0(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(nW);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=oW.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function sW(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function iW(e,t){return e?""+e+""+t:t}function aW(e,t,r){const n=sW(e);return iW(n.defs,t+n.content+r)}const lW=e=>e==="unset"||e==="undefined"||e==="none";function cW(e,t){const r={...yy,...e},n={...eT,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(h=>{const m=[],y=h.hFlip,b=h.vFlip;let _=h.rotate;y?b?_+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):b&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}_%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(s=aW(s,'',""))});const i=n.width,a=n.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=U0(f,l/c)):(u=i==="auto"?l:i,f=a===null?U0(u,c/l):a==="auto"?c:a);const d={},p=(h,m)=>{lW(m)||(d[h]=m.toString())};p("width",u),p("height",f);const g=[o.left,o.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const uW=/\sid="(\S+)"/g,fW="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let dW=0;function pW(e,t=fW){const r=[];let n;for(;n=uW.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(dW++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function hW(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}function gW(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function mW(e){return"data:image/svg+xml,"+gW(e)}function yW(e){return'url("'+mW(e)+'")'}const j0={...eT,inline:!1},_W={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},vW={display:"inline-block"},$g={backgroundColor:"currentColor"},tT={backgroundColor:"transparent"},B0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},H0={webkitMask:$g,mask:$g,background:tT};for(const e in H0){const t=H0[e];for(const r in B0)t[e+r]=B0[r]}const Ou={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ou[e+"-flip"]=t,Ou[e.slice(0,1)+"-flip"]=t,Ou[e+"Flip"]=t});function V0(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const bW=(e,t)=>{const r=Q2(j0,t),n={..._W},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const m=t[h];if(m!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[h]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&tW(r,m);break;case"color":s.color=m;break;case"rotate":typeof m=="string"?r[h]=rW(m):typeof m=="number"&&(r[h]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete n["aria-hidden"];break;default:{const y=Ou[h];y?(m===!0||m==="true"||m===1)&&(r[y]=!0):j0[h]===void 0&&(n[h]=m)}}}const l=cW(e,r),c=l.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,c);let h=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),n.innerHTML=pW(l.body,m?()=>m+"ID"+h++:"iconifyVue"),At("svg",n)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=hW(u,{...c,width:f+"",height:d+""});return n.style={...s,"--svg":yW(g),width:V0(c.width),height:V0(c.height),...vW,...p?$g:tT,...a},At("span",n)},wW=Object.create(null),SW=It({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,r=typeof t=="string"?wW[t]:typeof t=="object"?t:null;return r===null||typeof r!="object"||typeof r.body!="string"?this.$slots.default?this.$slots.default():null:bW({...yy,...r},e)}}),wl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pd=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:a};return t&&!Ru(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!Ru(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!Ru(a,r)?null:a}return null},Ru=(e,t)=>e?!!((e.provider===""||e.provider.match(wl))&&(t&&e.prefix===""||e.prefix.match(wl))&&e.name.match(wl)):!1,rT=Object.freeze({left:0,top:0,width:16,height:16}),Mf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_y=Object.freeze({...rT,...Mf}),Fg=Object.freeze({..._y,body:"",hidden:!1});function EW(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function W0(e,t){const r=EW(e,t);for(const n in Fg)n in Mf?n in e&&!(n in r)&&(r[n]=Mf[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function xW(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function kW(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=W0(n[a]||o[a],s)}return i(t),r.forEach(i),W0(e,s)}function nT(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=xW(e);for(const o in n){const s=n[o];s&&(t(o,kW(e,o,s)),r.push(o))}return r}const CW={provider:"",aliases:{},not_found:{},...rT};function qp(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function oT(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!qp(e,CW))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o.match(wl)||typeof s.body!="string"||!qp(s,Fg))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o.match(wl)||typeof i!="string"||!r[i]&&!n[i]||!qp(s,Fg))return null}return t}const z0=Object.create(null);function TW(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function qs(e,t){const r=z0[e]||(z0[e]=Object.create(null));return r[t]||(r[t]=TW(e,t))}function vy(e,t){return oT(t)?nT(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function AW(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let lc=!1;function sT(e){return typeof e=="boolean"&&(lc=e),lc}function IW(e){const t=typeof e=="string"?Pd(e,!0,lc):e;if(t){const r=qs(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function OW(e,t){const r=Pd(e,!0,lc);if(!r)return!1;const n=qs(r.provider,r.prefix);return AW(n,r.name,t)}function RW(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),lc&&!t&&!e.prefix){let o=!1;return oT(e)&&(e.prefix="",nT(e,(s,i)=>{i&&OW(s,i)&&(o=!0)})),o}const r=e.prefix;if(!Ru({provider:t,prefix:r,name:"a"}))return!1;const n=qs(t,r);return!!vy(n,e)}const LW=Object.freeze({width:null,height:null}),PW=Object.freeze({...LW,...Mf});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Ug=Object.create(null);function NW(e,t){Ug[e]=t}function jg(e){return Ug[e]||Ug[""]}function by(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const wy=Object.create(null),Ga=["https://api.simplesvg.com","https://api.unisvg.com"],Lu=[];for(;Ga.length>0;)Ga.length===1||Math.random()>.5?Lu.push(Ga.shift()):Lu.push(Ga.pop());wy[""]=by({resources:["https://api.iconify.design"].concat(Lu)});function Bg(e,t){const r=by(t);return r===null?!1:(wy[e]=r,!0)}function Sy(e){return wy[e]}const MW=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let G0=MW();function DW(e,t){const r=Sy(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function $W(e){return e===404}const FW=(e,t,r)=>{const n=[],o=DW(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),n.push(i),n};function UW(e){if(typeof e=="string"){const t=Sy(e);if(t)return t.path}return"/"}const jW=(e,t,r)=>{if(!G0){r("abort",424);return}let n=UW(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;G0(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r($W(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},BW={prepare:FW,send:jW};function HW(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,l=r[s]||(r[s]=Object.create(null)),c=l[i]||(l[i]=qs(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function iT(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function VW(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:n,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||iT([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let WW=0;function zW(e,t,r){const n=WW++,o=iT.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function GW(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?Pd(o,t,r):o;s&&n.push(s)}),n}var qW={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function KW(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let S=e.resources.slice(0);for(i=[];S.length>1;){const x=Math.floor(Math.random()*S.length);i.push(S[x]),S=S.slice(0,x).concat(S.slice(x+1))}i=i.concat(S)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof n=="function"&&p.push(n);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function m(S,x){x&&(p=[]),typeof S=="function"&&p.push(S)}function y(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:m,abort:h}}function b(){l="failed",p.forEach(S=>{S(void 0,u)})}function _(){d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function v(S,x,D){const I=x!=="success";switch(d=d.filter(P=>P!==S),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=D,b();return}if(I){u=D,d.length||(i.length?E():b());return}if(g(),_(),!e.random){const P=e.resources.indexOf(S.resource);P!==-1&&P!==e.index&&(e.index=P)}l="completed",p.forEach(P=>{P(D)})}function E(){if(l!=="pending")return;g();const S=i.shift();if(S===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:S,callback:(D,I)=>{v(x,D,I)}};d.push(x),c++,f=setTimeout(E,e.rotate),r(S,t,x.callback)}return setTimeout(E),y}function aT(e){const t={...qW,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,l,c){const u=KW(t,a,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function s(a){return r.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function q0(){}const Kp=Object.create(null);function YW(e){if(!Kp[e]){const t=Sy(e);if(!t)return;const r=aT(t),n={config:t,redundancy:r};Kp[e]=n}return Kp[e]}function ZW(e,t,r){let n,o;if(typeof e=="string"){const s=jg(e);if(!s)return r(void 0,424),q0;o=s.send;const i=YW(e);i&&(n=i.redundancy)}else{const s=by(e);if(s){n=aT(s);const i=e.resources?e.resources[0]:"",a=jg(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),q0):n.query(t,o,r)().abort}const K0="iconify2",cc="iconify",lT=cc+"-count",Y0=cc+"-version",cT=36e5,XW=168,JW=50;function Hg(e,t){try{return e.getItem(t)}catch{}}function Ey(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Z0(e,t){try{e.removeItem(t)}catch{}}function Vg(e,t){return Ey(e,lT,t.toString())}function Wg(e){return parseInt(Hg(e,lT))||0}const Nd={local:!0,session:!0},uT={local:new Set,session:new Set};let xy=!1;function QW(e){xy=e}let uu=typeof window>"u"?{}:window;function fT(e){const t=e+"Storage";try{if(uu&&uu[t]&&typeof uu[t].length=="number")return uu[t]}catch{}Nd[e]=!1}function dT(e,t){const r=fT(e);if(!r)return;const n=Hg(r,Y0);if(n!==K0){if(n){const a=Wg(r);for(let l=0;l{const l=cc+a.toString(),c=Hg(r,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Z0(r,l)}};let i=Wg(r);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,Vg(r,i)):uT[e].add(a))}function pT(){if(!xy){QW(!0);for(const e in Nd)dT(e,t=>{const r=t.data,n=t.provider,o=r.prefix,s=qs(n,o);if(!vy(s,r).length)return!1;const i=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ez(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Nd)dT(n,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function tz(e,t){xy||pT();function r(n){let o;if(!Nd[n]||!(o=fT(n)))return;const s=uT[n];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Wg(o),i>=JW||!Vg(o,i+1))return;const a={cached:Math.floor(Date.now()/cT),provider:e.provider,data:t};return Ey(o,cc+i.toString(),JSON.stringify(a))}t.lastModified&&!ez(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function X0(){}function rz(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,VW(e)}))}function nz(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=jg(r)))return;s.prepare(r,n,o).forEach(a=>{ZW(r,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=vy(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),tz(e,l)}catch(c){console.error(c)}rz(e)})})}))}const oz=(e,t)=>{const r=GW(e,!0,sT()),n=HW(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,X0)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(qs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=qs(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&nz(l,o[c][u])}),t?zW(t,n,s):X0},sz=e=>new Promise((t,r)=>{const n=typeof e=="string"?Pd(e,!0):e;if(!n){r(e);return}oz([n||e],o=>{if(o.length&&n){const s=IW(n);if(s){t({..._y,...s});return}}r(e)})});({...PW});const J0={backgroundColor:"currentColor"},iz={backgroundColor:"transparent"},Q0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ew={webkitMask:J0,mask:J0,background:iz};for(const e in ew){const t=ew[e];for(const r in Q0)t[e+r]=Q0[r]}const Yp={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Yp[e+"-flip"]=t,Yp[e.slice(0,1)+"-flip"]=t,Yp[e+"Flip"]=t});sT(!0);NW("",BW);if(typeof document<"u"&&typeof window<"u"){pT();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!RW(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;Bg(r,o)||console.error(n)}catch{console.error(n)}}}}({..._y});const az=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","bitcoin-icons","entypo-social","token-branded","devicon-plain","grommet-icons","fluent-color","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","vscode-icons","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","rivet-icons","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","lucide-lab","teenyicons","ant-design","gravity-ui","akar-icons","lets-icons","streamline","fa6-brands","file-icons","catppuccin","game-icons","foundation","fa-regular","mono-icons","hugeicons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","duo-icons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","flowbite","proicons","marketeq","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","codicon","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","lsicon","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","cuida","quill","logos","token","covid","maki","weui","gala","mage","ooui","noto","flag","unjs","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","oui","bxl","cib","cbi","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","f7","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function lz(e=""){let t,r="";if(e[0]==="@"&&e.includes(":")&&(r=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const n of az)if(e.startsWith(n)){t=n,e=e.slice(n.length+1);break}}else if(e.includes(":")){const[n,o]=e.split(":");t=n,e=o}return{provider:r,prefix:t||"",name:e||""}}const cz=It({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,r;const n=Ce(),o=Lr(),s=e;Oe(()=>{var m;return(m=o.nuxtIcon)==null?void 0:m.iconifyApiOptions},()=>{var m,y,b,_,v,E;if((y=(m=o.nuxtIcon)==null?void 0:m.iconifyApiOptions)!=null&&y.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((_=(b=o.nuxtIcon)==null?void 0:b.iconifyApiOptions)!=null&&_.publicApiFallback){Bg("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}Bg("",{resources:[(E=o.nuxtIcon)==null?void 0:E.iconifyApiOptions.url]})}},{immediate:!0});const i=ri("icons",()=>({})),a=ue(!1),l=Z(()=>{var m,y;return(y=(m=o.nuxtIcon)==null?void 0:m.aliases)!=null&&y[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),c=Z(()=>lz(l.value)),u=Z(()=>[c.value.provider,c.value.prefix,c.value.name].filter(Boolean).join(":")),f=Z(()=>{var m;return(m=i.value)==null?void 0:m[u.value]}),d=Z(()=>{var m;return(m=n.vueApp)==null?void 0:m.component(l.value)}),p=Z(()=>{var y,b,_;if(!s.size&&typeof((y=o.nuxtIcon)==null?void 0:y.size)=="boolean"&&!((b=o.nuxtIcon)!=null&&b.size))return;const m=s.size||((_=o.nuxtIcon)==null?void 0:_.size)||"1em";return String(Number(m))===m?`${m}px`:m}),g=Z(()=>{var m;return((m=o==null?void 0:o.nuxtIcon)==null?void 0:m.class)??"icon"});async function h(){var m;d.value||(m=i.value)!=null&&m[u.value]||(a.value=!0,i.value[u.value]=await sz(c.value).catch(()=>{}),a.value=!1)}return Oe(l,h),!d.value&&([t,r]=vS(()=>h()),t=await t,r()),(m,y)=>a.value?(me(),vt("span",{key:0,class:tt(g.value),style:Ps({width:p.value,height:p.value})},null,6)):f.value?(me(),dt(Ve(SW),{key:1,icon:f.value,class:tt(g.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):d.value?(me(),dt(Jf(d.value),{key:2,class:tt(g.value),width:p.value,height:p.value},null,8,["class","width","height"])):(me(),vt("span",{key:3,class:tt(g.value),style:Ps({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[Nn(m.$slots,"default",{},()=>[Il(Uo(e.name),1)],!0)],6))}}),ni=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},hT=ni(cz,[["__scopeId","data-v-5ad9b18b"]]),uz=Object.freeze(Object.defineProperty({__proto__:null,default:hT},Symbol.toStringTag,{value:"Module"})),fz=It({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=Lr();return{dynamic:Z(()=>{var n,o;return e.dynamic||((o=(n=t.ui)==null?void 0:n.icons)==null?void 0:o.dynamic)})}}});function dz(e,t,r,n,o,s){const i=hT;return e.dynamic?(me(),dt(i,{key:0,name:e.name},null,8,["name"])):(me(),vt("span",{key:1,class:tt(e.name)},null,2))}const _a=ni(fz,[["render",dz]]),Md=(e,t,r,n,o=!1)=>{const s=WI(),i=Lr(),a=Z(()=>{var d;const c=mu(t),u=mu(r),f=mu(n);return bc((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?s$(i.ui,e,{}):{},u||{})}),l=Z(()=>o$(s,["class"]));return{ui:a,attrs:l}},pz={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},hz={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},gT={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},tw={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...gT,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Uq={...tw,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...tw.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...gT,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},gz={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",inner:"w-0 flex-1",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",actions:"flex items-center gap-2 mt-3 flex-shrink-0",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",gap:"gap-3",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,timeout:5e3,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},mz={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},hs=bc(qr.ui.strategy,qr.ui.avatar,pz),yz=It({components:{UIcon:_a},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>hs.default.icon},size:{type:String,default:()=>hs.default.size,validator(e){return Object.keys(hs.size).includes(e)}},chipColor:{type:String,default:()=>hs.default.chipColor,validator(e){return["gray",...qr.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>hs.default.chipPosition,validator(e){return Object.keys(hs.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Md("avatar",Js(e,"ui"),hs),n=Z(()=>typeof e.src=="boolean"?null:e.src),o=Z(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=Z(()=>zi(zr(t.value.wrapper,(c.value||!n.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=Z(()=>zi(zr(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=Z(()=>zr(t.value.icon.base,t.value.icon.size[e.size])),l=Z(()=>zr(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=ue(!1);Oe(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:r,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:n,placeholder:o,error:c,onError:u}}});function _z(e,t,r,n,o,s){const i=_a;return me(),vt("span",{class:tt(e.wrapperClass)},[e.url&&!e.error?(me(),dt(Jf(e.as),ir({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(me(),vt("span",{key:1,class:tt(e.ui.text)},Uo(e.text),3)):e.icon?(me(),dt(i,{key:2,name:e.icon,class:tt(e.iconClass)},null,8,["name","class"])):e.placeholder?(me(),vt("span",{key:3,class:tt(e.ui.placeholder)},Uo(e.placeholder),3)):Qt("",!0),e.chipColor?(me(),vt("span",{key:4,class:tt(e.chipClass)},Uo(e.chipText),3)):Qt("",!0),Nn(e.$slots,"default")],2)}const mT=ni(yz,[["render",_z]]),rw=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function nw(e,t){t?t={...rw,...t}:t=rw;const r=yT(t);return r.dispatch(e),r.toString()}const vz=Object.freeze(["prototype","__proto__","constructor"]);function yT(e){let t="",r=new Map;const n=o=>{t+=o};return{toString(){return t},getContext(){return r},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const s=Object.prototype.toString.call(o);let i="";const a=s.length;a<10?i="unknown:["+s+"]":i=s.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=r.get(o))===void 0)r.set(o,r.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return n("buffer:"),n(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let c=Object.keys(o);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!ow(o)&&(u=vz),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),n("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),n(":"),e.excludeValues||this.dispatch(o[d]),n(",")};for(const d of c)f(d);for(const d of u)f(d)}},array(o,s){if(s=s===void 0?e.unorderedArrays!==!1:s,n("array:"+o.length+":"),!s||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const c=yT(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return r=i,a.sort(),this.array(a,!1)},date(o){return n("date:"+o.toJSON())},symbol(o){return n("symbol:"+o.toString())},unkown(o,s){if(n(s),!!o&&(n(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return n("error:"+o.toString())},boolean(o){return n("bool:"+o)},string(o){n("string:"+o.length+":"),n(o)},function(o){n("fn:"),ow(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return n("number:"+o)},xml(o){return n("xml:"+o.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(o){return n("regex:"+o.toString())},uint8array(o){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return n("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return n("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return n("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return n("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return n("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return n("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return n("url:"+o.toString())},map(o){n("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){n("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return n("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return n("domwindow")},bigint(o){return n("bigint:"+o.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const _T="[native code] }",bz=_T.length;function ow(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-bz)===_T}function wz(e,t,r={}){return e===t||nw(e,r)===nw(t,r)}const Sz=It({inheritAttrs:!1,props:{...Lm,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(r,n,{isActive:o,isExactActive:s}){return e.exactQuery&&!wz(r.query,n.query)||e.exactHash&&r.hash!==n.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),Ez=["href","aria-disabled","role","rel","target","onClick"];function xz(e,t,r,n,o,s){const i=SN;return e.to?(me(),dt(i,ir({key:1},e.$props,{custom:""}),{default:Ns(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:g})=>[Do("a",ir(e.$attrs,{href:e.disabled?void 0:l,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:u,target:c,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(a,e._.provides[mc]||e.$route,{isActive:d,isExactActive:p}),onClick:h=>!g&&!e.disabled&&f(h)}),[Nn(e.$slots,"default",n_(Eh({isActive:e.active!==void 0?e.active:e.exact?p:d})))],16,Ez)]),_:3},16)):(me(),dt(Jf(e.as),ir({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:Ns(()=>[Nn(e.$slots,"default",n_(Eh({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const vT=ni(Sz,[["render",xz]]);function kz({ui:e,props:t}){const r=ur();if(As("ButtonGroupContextConsumer",!0),Ht("ButtonGroupContextConsumer",!1))return{size:Z(()=>t.size),rounded:Z(()=>e.value.rounded)};let o=r.parent,s;for(;o&&!s;){if(o.type.name==="ButtonGroup"){s=Ht(`group-${o.uid}`);break}o=o.parent}const i=Z(()=>s==null?void 0:s.value.children.indexOf(r));return Rr(()=>{s==null||s.value.register(r)}),Qs(()=>{s==null||s.value.unregister(r)}),{size:Z(()=>(s==null?void 0:s.value.size)||t.size),rounded:Z(()=>!s||i.value===-1?e.value.rounded:s.value.children.length===1?s.value.ui.rounded:i.value===0?s.value.rounded.start:i.value===s.value.children.length-1?s.value.rounded.end:"rounded-none")}}const Yn=bc(qr.ui.strategy,qr.ui.button,hz),Cz=It({components:{UIcon:_a,ULink:vT},inheritAttrs:!1,props:{...Lm,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>Yn.default.size,validator(e){return Object.keys(Yn.size).includes(e)}},color:{type:String,default:()=>Yn.default.color,validator(e){return[...qr.ui.colors,...Object.keys(Yn.color)].includes(e)}},variant:{type:String,default:()=>Yn.default.variant,validator(e){return[...Object.keys(Yn.variant),...Object.values(Yn.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Yn.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:r,attrs:n}=Md("button",Js(e,"ui"),Yn),{size:o,rounded:s}=kz({ui:r,props:e}),i=Z(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=Z(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=Z(()=>e.square||!t.default&&!e.label),c=Z(()=>{var m,y;const h=((y=(m=r.value.color)==null?void 0:m[e.color])==null?void 0:y[e.variant])||r.value.variant[e.variant];return zi(zr(r.value.base,r.value.font,s.value,r.value.size[o.value],r.value.gap[o.value],e.padded&&r.value[l.value?"square":"padding"][o.value],h==null?void 0:h.replaceAll("{color}",e.color),e.block?r.value.block:r.value.inline),e.class)}),u=Z(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=Z(()=>e.loading&&!i.value?e.loadingIcon:e.trailingIcon||e.icon),d=Z(()=>zr(r.value.icon.base,r.value.icon.size[o.value],e.loading&&r.value.icon.loading)),p=Z(()=>zr(r.value.icon.base,r.value.icon.size[o.value],e.loading&&!i.value&&r.value.icon.loading)),g=Z(()=>i$(e));return{ui:r,attrs:n,isLeading:i,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:p,linkProps:g}}});function Tz(e,t,r,n,o,s){const i=_a,a=vT;return me(),dt(a,ir({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:Ns(()=>[Nn(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(me(),dt(i,{key:0,name:e.leadingIconName,class:tt(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Qt("",!0)]),Nn(e.$slots,"default",{},()=>[e.label?(me(),vt("span",{key:0,class:tt([e.truncate?e.ui.truncate:""])},Uo(e.label),3)):Qt("",!0)]),Nn(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(me(),dt(i,{key:0,name:e.trailingIconName,class:tt(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Qt("",!0)])]),_:3},16,["type","disabled","class"])}const bT=ni(Cz,[["render",Tz]]);function Az(e,t,r){let n=null;const{pause:o,resume:s,timestamp:i}=bD({controls:!0}),a=ue(null),l=Z(()=>a.value?t-(i.value-a.value):0);function c(...h){n=setTimeout(()=>{n=null,a.value=null,e(...h)},l.value)}function u(){n&&(clearTimeout(n),n=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function g(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:g,remaining:l}}const qa=bc(qr.ui.strategy,qr.ui.notification,gz),Iz=It({components:{UIcon:_a,UAvatar:mT,UButton:bT},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>qa.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>qa.default.closeButton},timeout:{type:Number,default:()=>qa.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>qa.default.color,validator(e){return["gray",...qr.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:r,attrs:n}=Md("notification",Js(e,"ui"),qa);let o=null;const s=ue(e.timeout),i=Z(()=>{var h,m;return zi(zr(r.value.wrapper,(h=r.value.background)==null?void 0:h.replaceAll("{color}",e.color),r.value.rounded,r.value.shadow,(m=r.value.ring)==null?void 0:m.replaceAll("{color}",e.color)),e.class)}),a=Z(()=>{var h;return zr(r.value.progress.base,(h=r.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=Z(()=>({width:`${s.value/e.timeout*100||0}%`})),c=Z(()=>{var h;return zr(r.value.icon.base,(h=r.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}function g(){o&&o.stop(),e.timeout&&(o=Az(()=>{d()},e.timeout),Qf(()=>{s.value=o.remaining.value}))}return Oe(()=>e.timeout,g),Rr(g),Qs(()=>{o&&o.stop()}),{ui:r,attrs:n,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:zi}}});function Oz(e,t,r,n,o,s){const i=_a,a=mT,l=bT;return me(),dt(YS,ir({appear:""},e.ui.transition),{default:Ns(()=>[Do("div",ir({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[Do("div",{class:tt([e.ui.container,e.ui.rounded,e.ui.ring])},[Do("div",{class:tt(["flex",[e.ui.padding,e.ui.gap,{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}]])},[e.icon?(me(),dt(i,{key:0,name:e.icon,class:tt(e.iconClass)},null,8,["name","class"])):Qt("",!0),e.avatar?(me(),dt(a,ir({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):Qt("",!0),Do("div",{class:tt(e.ui.inner)},[e.title||e.$slots.title?(me(),vt("p",{key:0,class:tt(e.ui.title)},[Nn(e.$slots,"title",{title:e.title},()=>[Il(Uo(e.title),1)])],2)):Qt("",!0),e.description||e.$slots.description?(me(),vt("div",{key:1,class:tt(e.twMerge(e.ui.description,!(e.title&&e.$slots.title)&&"mt-0 leading-5"))},[Nn(e.$slots,"description",{description:e.description},()=>[Il(Uo(e.description),1)])],2)):Qt("",!0),(e.description||e.$slots.description)&&e.actions.length?(me(),vt("div",{key:2,class:tt(e.ui.actions)},[(me(!0),vt(wt,null,Vu(e.actions,(c,u)=>(me(),dt(l,ir({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:op(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))],2)):Qt("",!0)],2),e.closeButton||!e.description&&!e.$slots.description&&e.actions.length?(me(),vt("div",{key:2,class:tt(e.twMerge(e.ui.actions,"mt-0"))},[!e.description&&!e.$slots.description&&e.actions.length?(me(!0),vt(wt,{key:0},Vu(e.actions,(c,u)=>(me(),dt(l,ir({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:op(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):Qt("",!0),e.closeButton?(me(),dt(l,ir({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:op(e.onClose,["stop"])}),null,16,["onClick"])):Qt("",!0)],2)):Qt("",!0)],2),e.timeout?(me(),vt("div",{key:0,class:tt(e.progressClass),style:Ps(e.progressStyle)},null,6)):Qt("",!0)],2)],16)]),_:3},16)}const wT=ni(Iz,[["render",Oz]]);function Rz(){const e=ri("notifications",()=>[]);function t(s){const i={id:new Date().getTime().toString(),...s};return e.value.findIndex(l=>l.id===i.id)===-1&&e.value.push(i),i}function r(s){e.value=e.value.filter(i=>i.id!==s)}function n(s,i){const a=e.value.findIndex(l=>l.id===s);if(a!==-1){const l=e.value[a];e.value.splice(a,1,{...l,...i})}}function o(){e.value=[]}return{add:t,remove:r,update:n,clear:o}}const Lz=bc(qr.ui.strategy,qr.ui.notifications,mz),Pz=It({components:{UNotification:wT},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Md("notifications",Js(e,"ui"),Lz),n=Rz(),o=ri("notifications",()=>[]),s=Z(()=>zi(zr(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:r,toast:n,notifications:o,wrapperClass:s}}});function Nz(e,t,r,n,o,s){const i=wT;return me(),dt(kI,{to:"body"},[Do("div",ir({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(me(),vt("div",{key:0,class:tt(e.ui.container)},[(me(!0),vt(wt,null,Vu(e.notifications,a=>(me(),vt("div",{key:a.id},[at(i,ir({ref_for:!0},a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),HI({_:2},[Vu(e.$slots,(l,c)=>({name:c,fn:Ns(u=>[Nn(e.$slots,c,ir({ref_for:!0},u))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):Qt("",!0)],16)])}const Mz=ni(Pz,[["render",Nz]]);function Dz(){Rr(()=>{const{idle:e}=yD(5e3,{initialState:!1});Oe(e,t=>{window.isUserIdle=t},{immediate:!0})})}const Lt={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Ln=console,_s={};Object.keys(Lt).forEach(e=>{_s[e]=Ln[e]});const Ka="Datadog Browser SDK:",Et={debug:_s.debug.bind(Ln,Ka),log:_s.log.bind(Ln,Ka),info:_s.info.bind(Ln,Ka),warn:_s.warn.bind(Ln,Ka),error:_s.error.bind(Ln,Ka)},ky="https://docs.datadoghq.com",$z=`${ky}/real_user_monitoring/browser/troubleshooting`,Cy="More details:";function ST(e,t){return(...r)=>{try{return e(...r)}catch(n){Et.error(t,n)}}}function rl(e){return e!==0&&Math.random()*100<=e}function Fz(e){return Uz(e)&&e>=0&&e<=100}function Uz(e){return typeof e=="number"}const va=1e3,cs=60*va,ET=60*cs,jz=24*ET,Bz=365*jz;function Ho(){return new Date().getTime()}function bo(){return Ho()}function Df(){return performance.now()}function jn(){return{relative:Df(),timeStamp:bo()}}function Hz(){return{relative:0,timeStamp:kT()}}function xT(e,t){return t-e}function Vz(e,t){return e+t}function Wz(e){return e-kT()}let Zp;function kT(){var e,t;return Zp===void 0&&(Zp=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),Zp}const ta=1024,CT=1024*ta,zz=/[^\u0000-\u007F]/;function TT(e){return zz.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function Gz(e){return{...e}}function AT(e,t){return Object.keys(e).some(r=>e[r]===t)}function Cc(e){return Object.keys(e).length===0}function wn(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const mn=wn(),Ks="WorkerGlobalScope"in mn;function ra(e,t){const r=wn();let n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}let $f,IT=!1;function qz(e){$f=e}function Kz(e){IT=e}function Yz(e,t,r){const n=r.value;r.value=function(...o){return($f?St(n):n).apply(this,o)}}function St(e){return function(){return na(e,this,arguments)}}function na(e,t,r){try{return e.apply(t,r)}catch(n){Ty(n)}}function Ty(e){if(zg(e),$f)try{$f(e)}catch(t){zg(t)}}function zg(...e){IT&&Et.error("[MONITOR]",...e)}function Tc(e,t){return ra(wn(),"setTimeout")(St(e),t)}function OT(e){ra(wn(),"clearTimeout")(e)}function Ay(e,t){return ra(wn(),"setInterval")(St(e),t)}function RT(e){ra(wn(),"clearInterval")(e)}function sw(e){var t;const r=(t=mn.queueMicrotask)===null||t===void 0?void 0:t.bind(mn);typeof r=="function"?r(St(e)):Promise.resolve().then(St(e))}class xt{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(r=>r(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(r=>t!==r),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function LT(...e){return new xt(t=>{const r=e.map(n=>n.subscribe(o=>t.notify(o)));return()=>r.forEach(n=>n.unsubscribe())})}class PT extends xt{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let r=!1;const n={unsubscribe:()=>{r=!0,this.removeObserver(t)}};return sw(()=>{for(const o of this.buffer){if(r)return;t(o)}r||this.addObserver(t)}),n}unbuffer(){sw(()=>{this.maxBufferSize=this.buffer.length=0})}}function Zz(e,t,r){let n=!1,o,s;return{throttled:(...i)=>{if(n){o=i;return}e(...i),n=!0,s=Tc(()=>{o&&e(...o),n=!1,o=void 0},t)},cancel:()=>{OT(s),n=!1,o=void 0}}}function Xo(){}function Jo(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Jo)}const oa=/([\w-]+)\s*=\s*([^;]+)/g;function Xz(e,t){for(oa.lastIndex=0;;){const r=oa.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function Jz(e){const t=new Map;for(oa.lastIndex=0;;){const r=oa.exec(e);if(r){const n=r[1],o=r[2];t.has(n)?t.get(n).push(o):t.set(n,[o])}else break}return t}function Qz(e){const t=new Map;for(oa.lastIndex=0;;){const r=oa.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function e8(e,t,r=""){const n=e.charCodeAt(t-1),s=n>=55296&&n<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${r}`}var Ys;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.ENCODE_COOKIE_OPTIONS="encode_cookie_options",e.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive"})(Ys||(Ys={}));const Iy=new Set;function t8(e){Array.isArray(e)&&r8(e.filter(t=>AT(Ys,t)))}function r8(e){e.forEach(t=>{Iy.add(t)})}function Dd(e){return Iy.has(e)}function n8(){return Iy}function o8(){return s8()===0}let fu;function s8(){return fu??(fu=i8())}function i8(e=window){var t;const r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}function Oy(e){return NT(e,location.href).href}function NT(e,t){const{URL:r}=a8();try{return t!==void 0?new r(e,t):new r(e)}catch(n){throw new Error(`Failed to construct URL: ${String(n)}`)}}let Xp;function a8(){if(!Xp){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=mn}Xp={URL:t.URL},e==null||e.remove()}return Xp}function $d(e,t,r=0,n){const o=new Date;o.setTime(o.getTime()+r);const s=`expires=${o.toUTCString()}`,i=n&&n.crossSite?"none":"strict",a=n&&n.domain?`;domain=${n.domain}`:"",l=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${a}${l}${c}`}function Ry(e){return Xz(document.cookie,e)}function l8(e){return Jz(document.cookie).get(e)||[]}let Jp;function ks(e){return Jp||(Jp=Qz(document.cookie)),Jp.get(e)}function MT(e,t){$d(e,"",0,t)}function c8(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Jo()}`,r="test";$d(t,r,cs,e);const n=Ry(t)===r;return MT(t,e),n}catch(t){return Et.error(t),!1}}let Qp;function DT(e=location.hostname,t=document.referrer){if(Qp===void 0){const r=u8(e,t);if(r){const n=`dd_site_test_${Jo()}`,o="test",s=r.split(".");let i=s.pop();for(;s.length&&!Ry(n);)i=`${s.pop()}.${i}`,$d(n,o,va,{domain:i});MT(n,{domain:i}),Qp=i}}return Qp}function u8(e,t){try{return e||NT(t).hostname}catch{}}const ho="_dd_s";function f8(e,t){for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(t(n,r,e))return n}}function Ff(e){return Object.values(e)}function d8(e){return Object.entries(e)}const Ly=4*ET,$T=15*cs,p8=Bz,FT="0",sa={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},UT=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Py="&";function h8(e){return!!e&&(e.indexOf(Py)!==-1||UT.test(e))}const g8="1";function vs(e,t){const r={isExpired:g8};return t.trackAnonymousUser&&(e!=null&&e.anonymousId)&&(r.anonymousId=e==null?void 0:e.anonymousId),r}function Pu(e){return Cc(e)}function jT(e){return!Pu(e)}function Sl(e){return e.isExpired!==void 0||!m8(e)}function m8(e){return(e.created===void 0||Ho()-Number(e.created)t==="anonymousId"?`aid=${r}`:`${t}=${r}`).join(Py)}function Fd(e){const t={};return h8(e)&&e.split(Py).forEach(r=>{const n=UT.exec(r);if(n!==null){const[,o,s]=n;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const y8="_dd",_8="_dd_r",v8="_dd_l",b8="rum",w8="logs";function S8(e){if(!ks(ho)){const r=ks(y8),n=ks(_8),o=ks(v8),s={};r&&(s.id=r),o&&/^[01]$/.test(o)&&(s[w8]=o),n&&/^[012]$/.test(n)&&(s[b8]=n),jT(s)&&(BT(s),e.persistSession(s))}}const E8=0;function iw(e){const t=k8(e);return t&&c8(t)?{type:sa.COOKIE,cookieOptions:t}:void 0}function x8(e,t){const r={isLockEnabled:o8(),persistSession:n=>aw(t,e,n,$T),retrieveSession:()=>HT(t),expireSession:n=>aw(t,e,vs(n,e),Ly)};return S8(r),r}function aw(e,t,r,n){let o=Gg(r);Dd(Ys.ENCODE_COOKIE_OPTIONS)&&(o=Gg({...r,...Cc(r)?{}:{c:VT(e)}})),$d(ho,o,t.trackAnonymousUser?p8:n,e)}function HT(e){if(Dd(Ys.ENCODE_COOKIE_OPTIONS))return C8(e);const t=Ry(ho);return Fd(t)}function k8(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const r=DT();if(!r)return;t.domain=r}return t}function VT(e){const t=e.domain?e.domain.split(".").length-1:0;let r=0;return r|=E8<<5,r|=t<<1,r|=e.crossSite?1:0,r.toString(16)}function C8(e){const t=l8(ho),r=VT(e);let n;for(const o of t.reverse())if(n=Fd(o),n.c===r)break;return n==null||delete n.c,n??{}}const T8="_dd_test_";function lw(){try{const e=Jo(),t=`${T8}${e}`;localStorage.setItem(t,e);const r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:sa.LOCAL_STORAGE}:void 0}catch{return}}function A8(e){return{isLockEnabled:!1,persistSession:WT,retrieveSession:zT,expireSession:t=>I8(t,e)}}function WT(e){localStorage.setItem(ho,Gg(e))}function zT(){const e=localStorage.getItem(ho);return Fd(e)}function I8(e,t){WT(vs(e,t))}const O8=10,R8=100,L8=va,GT="--",qT=[];let Nu;function bs(e,t,r=0){var n;const{isLockEnabled:o,persistSession:s,expireSession:i}=t,a=d=>s({...d,lock:c}),l=()=>{const{lock:d,...p}=t.retrieveSession();return{session:p,lock:d&&!N8(d)?d:void 0}};if(Nu||(Nu=e),e!==Nu){qT.push(e);return}if(o&&r>=R8){cw(t);return}let c,u=l();if(o){if(u.lock){du(e,t,r);return}if(c=P8(),a(u.session),u=l(),u.lock!==c){du(e,t,r);return}}let f=e.process(u.session);if(o&&(u=l(),u.lock!==c)){du(e,t,r);return}if(f&&(Sl(f)?i(f):(BT(f),o?a(f):s(f))),o&&!(f&&Sl(f))){if(u=l(),u.lock!==c){du(e,t,r);return}s(u.session),f=u.session}(n=e.after)===null||n===void 0||n.call(e,f||u.session),cw(t)}function du(e,t,r){Tc(()=>{bs(e,t,r+1)},O8)}function cw(e){Nu=void 0;const t=qT.shift();t&&bs(t,e)}function P8(){return Jo()+GT+bo()}function N8(e){const[,t]=e.split(GT);return!t||xT(Number(t),bo())>L8}const uw=va;function M8(e){switch(e.sessionPersistence){case sa.COOKIE:return iw(e);case sa.LOCAL_STORAGE:return lw();case void 0:{let t=iw(e);return!t&&e.allowFallbackToLocalStorage&&(t=lw()),t}default:Et.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function D8(e,t){return e.type===sa.COOKIE?x8(t,e.cookieOptions):A8(t)}function $8(e,t,r,n,o=D8(e,t)){const s=new xt,i=new xt,a=new xt,l=Ay(p,uw);let c;h();const{throttled:u,cancel:f}=Zz(()=>{bs({process:S=>{if(Pu(S))return;const x=g(S);return m(x),x},after:S=>{jT(S)&&!y()&&v(S),c=S}},o)},uw);function d(){bs({process:S=>y()?g(S):void 0},o)}function p(){const S=o.retrieveSession();Sl(S)?bs({process:x=>Sl(x)?vs(x,t):void 0,after:g},o):g(S)}function g(S){return Sl(S)&&(S=vs(S,t)),y()&&(b(S)?_():(a.notify({previousState:c,newState:S}),c=S)),S}function h(){bs({process:S=>{if(Pu(S))return S.anonymousId=Jo(),vs(S,t)},after:S=>{c=S}},o)}function m(S){if(Pu(S))return!1;const x=n(S[r]);S[r]=x,delete S.isExpired,x!==FT&&!S.id&&(S.id=Jo(),S.created=String(Ho()))}function y(){return(c==null?void 0:c[r])!==void 0}function b(S){return c.id!==S.id||c[r]!==S[r]}function _(){c=vs(c,t),i.notify()}function v(S){c=S,s.notify()}function E(S){bs({process:x=>({...x,...S}),after:g},o)}return{expandOrRenewSession:u,expandSession:d,getSession:()=>c,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:a,restartSession:h,expire:S=>{f(),S===!1&&c&&delete c.anonymousId,o.expireSession(c),g(vs(c,t))},stop:()=>{RT(l)},updateSessionState:E}}const qg={GRANTED:"granted",NOT_GRANTED:"not-granted"};function F8(e){const t=new xt;return{tryToInit(r){e||(e=r)},update(r){e=r,t.notify()},isGranted(){return e===qg.GRANTED},observable:t}}function KT(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function U8(e,t,r=!1){return e.some(n=>{try{if(typeof n=="function")return n(t);if(n instanceof RegExp)return n.test(t);if(typeof n=="string")return r?t.startsWith(n):n===t}catch(o){Et.error(o)}return!1})}const j8=["chrome-extension://","moz-extension://"];function fw(e){return j8.some(t=>e.includes(t))}function B8(e,t=""){if(fw(e))return!1;const n=t.split(` `).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return fw(n)}const H8="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",V8="SDK initialized on a non-allowed domain.";function W8(e,t,r=typeof location<"u"?location.origin:""){const n=e.allowedTrackingOrigins;if(!n)return B8(r,t)?(Et.error(H8),!1):!0;const o=U8(n,r);return o||Et.error(V8),o}const z8="datad0g.com",G8="dd0g-gov.com",Ai="datadoghq.com",q8="ddog-gov.com",K8="pci.browser-intake-datadoghq.com",Y8=["ddsource","dd-api-key","dd-request-id"];function ws(e,t,r){const n=Z8(e,t);return{build(o,s){const i=J8(e,t,o,s,r);return n(i)},trackType:t}}function Z8(e,t){const r=`/api/v2/${t}`,n=e.proxy;if(typeof n=="string"){const s=Oy(n);return i=>`${s}?ddforward=${encodeURIComponent(`${r}?${i}`)}`}if(typeof n=="function")return s=>n({path:r,parameters:s});const o=X8(t,e);return s=>`https://${o}${r}?${s}`}function X8(e,t){const{site:r=Ai,internalAnalyticsSubdomain:n}=t;if(e==="logs"&&t.usePciIntake&&r===Ai)return K8;if(n&&r===Ai)return`${n}.${Ai}`;if(r===G8)return`http-intake.logs.${r}`;const o=r.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function J8({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},n,o,{retry:s,encoding:i},a=[]){const l=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${Jo()}`].concat(a);return i&&l.push(`dd-evp-encoding=${i}`),n==="rum"&&(l.push(`batch_time=${bo()}`,`_dd.api=${o}`),s&&l.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}function Q8(e){const t=e.site||Ai,r=e6(e.source),n=t6({...e,site:t,source:r});return{replica:r6({...e,site:t,source:r}),site:t,source:r,...n}}function e6(e){return e==="flutter"||e==="unity"?e:"browser"}function t6(e){return{logsEndpointBuilder:ws(e,"logs"),rumEndpointBuilder:ws(e,"rum"),profilingEndpointBuilder:ws(e,"profile"),sessionReplayEndpointBuilder:ws(e,"replay"),exposuresEndpointBuilder:ws(e,"exposures")}}function r6(e){if(!e.replica)return;const t={...e,site:Ai,clientToken:e.replica.clientToken};return{logsEndpointBuilder:ws(t,"logs"),rumEndpointBuilder:ws(t,"rum",[`application.id=${e.replica.applicationId}`])}}function n6(e){return Y8.every(t=>e.includes(t))}function eh(e,t){return e!=null&&typeof e!="string"?(Et.error(`${t} must be defined as a string`),!1):!0}function o6(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(Et.error(`Site should be a valid Datadog site. ${Cy} ${ky}/getting_started/site/.`),!1):!0}function pu(e,t){return e!==void 0&&!Fz(e)?(Et.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function s6(e,t){var r,n,o,s,i,a,l,c,u,f;if(!e||!e.clientToken){Et.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){Et.error("Allowed Tracking Origins must be an array");return}if(!(!o6(e.site)||!pu(e.sessionSampleRate,"Session")||!pu(e.telemetrySampleRate,"Telemetry")||!pu(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!pu(e.telemetryUsageSampleRate,"Telemetry Usage")||!eh(e.version,"Version")||!eh(e.env,"Env")||!eh(e.service,"Service")||!W8(e,t??""))){if(e.trackingConsent!==void 0&&!AT(qg,e.trackingConsent)){Et.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&ST(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Ks?void 0:M8(e),sessionSampleRate:(r=e.sessionSampleRate)!==null&&r!==void 0?r:100,telemetrySampleRate:(n=e.telemetrySampleRate)!==null&&n!==void 0?n:20,telemetryConfigurationSampleRate:(o=e.telemetryConfigurationSampleRate)!==null&&o!==void 0?o:5,telemetryUsageSampleRate:(s=e.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(i=e.service)!==null&&i!==void 0?i:void 0,env:(a=e.env)!==null&&a!==void 0?a:void 0,version:(l=e.version)!==null&&l!==void 0?l:void 0,datacenter:(c=e.datacenter)!==null&&c!==void 0?c:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(u=e.trackingConsent)!==null&&u!==void 0?u:qg.GRANTED,trackAnonymousUser:(f=e.trackAnonymousUser)!==null&&f!==void 0?f:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*ta,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*va,batchMessagesLimit:Ks?1:50,messageBytesLimit:256*ta,variant:e.variant,sdkVersion:e.sdkVersion,...Q8(e)}}}function i6(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}const ia="?";function ba(e){var t,r;const n=[];let o=th(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` `).forEach(i=>{const a=c6(i)||f6(i)||p6(i)||m6(i);a&&(!a.func&&a.line&&(a.func=ia),n.push(a))}),n.length>0&&b6()&&e instanceof Error){const i=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&ZT(a);){const l=((t=a.constructor)===null||t===void 0?void 0:t.name)||ia;i.push(l)}for(let l=i.length-1;l>=0&&((r=n[0])===null||r===void 0?void 0:r.func)===i[l];l--)n.shift()}return{message:th(e,"message"),name:th(e,"name"),stack:n}}const YT="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",aa="(?::(\\d+))",a6=new RegExp(`^\\s*at (.*?) ?\\(${YT}${aa}?${aa}?\\)?\\s*$`,"i"),l6=new RegExp(`\\((\\S*)${aa}${aa}\\)`);function c6(e){const t=a6.exec(e);if(!t)return;const r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,o=l6.exec(t[2]);return n&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ia,line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}const u6=new RegExp(`^\\s*at ?${YT}${aa}?${aa}??\\s*$`,"i");function f6(e){const t=u6.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:ia,line:t[2]?+t[2]:void 0,url:t[1]}}const d6=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function p6(e){const t=d6.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ia,line:+t[3],url:t[2]}}const h6=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,g6=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function m6(e){const t=h6.exec(e);if(!t)return;const r=t[3]&&t[3].indexOf(" > eval")>-1,n=g6.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ia,line:t[4]?+t[4]:void 0,url:t[3]}}function th(e,t){if(typeof e!="object"||!e||!(t in e))return;const r=e[t];return typeof r=="string"?r:void 0}function y6(e,t,r,n){if(t===void 0)return;const{name:o,message:s}=v6(e);return{name:o,message:s,stack:[{url:t,column:n,line:r}]}}const _6=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function v6(e){let t,r;return{}.toString.call(e)==="[object String]"&&([,t,r]=_6.exec(e)),{name:t,message:r}}function ZT(e){return String(e.constructor).startsWith("class ")}let hu;function b6(){if(hu!==void 0)return hu;class e extends Error{constructor(){super(),this.name="Error"}}const[t,r]=[e,Error].map(n=>new n);return hu=ZT(Object.getPrototypeOf(t))&&r.stack!==t.stack,hu}function Ud(e){const r=new Error(e);r.name="HandlingStack";let n;return na(()=>{const o=ba(r);o.stack=o.stack.slice(2),n=wa(o)}),n}function wa(e){let t=XT(e);return e.stack.forEach(r=>{const n=r.func==="?"?"":r.func,o=r.args&&r.args.length>0?`(${r.args.join(", ")})`:"",s=r.line?`:${r.line}`:"",i=r.line&&r.column?`:${r.column}`:"";t+=` at ${n}${o} @ ${r.url}${s}${i}`}),t}function XT(e){return`${e.name||"Error"}: ${e.message}`}function Rs(e,t,r,{computeHandlingStack:n}={}){let o=e[t];if(typeof o!="function")if(t in e&&t.startsWith("on"))o=Xo;else return{stop:Xo};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let l;na(r,null,[{target:this,parameters:a,onPostCall:u=>{l=u},handlingStack:n?Ud("instrumented method"):void 0}]);const c=o.apply(this,a);return l&&na(l,null,[c]),c};return e[t]=i,{stop:()=>{s=!0,e[t]===i&&(e[t]=o)}}}function Ac(e,t,r){if(typeof e!="object"||e===null)return JSON.stringify(e);const n=Ii(Object.prototype),o=Ii(Array.prototype),s=Ii(Object.getPrototypeOf(e)),i=Ii(e);try{return JSON.stringify(e,t,r)}catch{return""}finally{n(),o(),s(),i()}}function Ii(e){const t=e,r=t.toJSON;return r?(delete t.toJSON,()=>{t.toJSON=r}):Xo}const w6=220*ta,S6="$",E6=3;function go(e,t=w6){const r=Ii(Object.prototype),n=Ii(Array.prototype),o=[],s=new WeakMap,i=rh(e,S6,void 0,o,s),a=JSON.stringify(i);let l=a?a.length:0;if(l>t){nh(t,"discarded",e);return}for(;o.length>0&&lt){nh(t,"truncated",e);break}c.target[f]=d}else for(const f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){const d=rh(c.source[f],c.path,f,o,s);if(d!==void 0&&(l+=JSON.stringify(d).length+u+f.length+E6,u=1),l>t){nh(t,"truncated",e);break}c.target[f]=d}}return r(),n(),i}function rh(e,t,r,n,o){const s=C6(e);if(!s||typeof s!="object")return x6(s);const i=Kg(s);if(i!=="[Object]"&&i!=="[Array]"&&i!=="[Error]")return i;const a=e;if(o.has(a))return`[Reference seen at ${o.get(a)}]`;const l=r!==void 0?`${t}.${r}`:t,c=Array.isArray(s)?[]:{};return o.set(a,l),n.push({source:s,target:c,path:l}),c}function x6(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function Kg(e){try{if(e instanceof Event)return k6(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const r=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch{}return"[Unserializable]"}function k6(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?Kg(e.currentTarget):null,target:e.target?Kg(e.target):null}}function C6(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function nh(e,t,r){Et.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}const JT="No stack, consider using an instance of Error";function Ny({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:l}){const c=oi(t);return!e&&c&&(e=ba(t)),{startClocks:o,source:a,handling:l,handlingStack:r,componentStack:n,originalError:t,type:e?e.name:void 0,message:T6(e,c,s,t),stack:e?wa(e):i?JT:void 0,causes:c?R6(t,a):void 0,fingerprint:A6(t),context:I6(t)}}function T6(e,t,r,n){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":`${r} ${Ac(go(n))}`}function A6(e){return oi(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function I6(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function O6(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function oi(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function R6(e,t){let r=e;const n=[];for(;oi(r==null?void 0:r.cause)&&n.length<10;){const o=ba(r.cause);n.push({message:r.cause.message,source:t,type:o==null?void 0:o.name,stack:o&&wa(o)}),r=r.cause}return n.length?n:void 0}const Ur={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function L6(){return new xt(e=>{const t=(o,s)=>{const i=Ny({stackTrace:s,originalError:o,startClocks:jn(),nonErrorPrefix:"Uncaught",source:Ur.SOURCE,handling:"unhandled"});e.notify(i)},{stop:r}=P6(t),{stop:n}=N6(t);return()=>{r(),n()}})}function P6(e){return Rs(wn(),"onerror",({parameters:[t,r,n,o,s]})=>{let i;oi(s)||(i=y6(t,r,n,o)),e(s??t,i)})}function N6(e){return Rs(wn(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function M6(e){const t={version:"6.23.0",onReady(r){r()},...e};return Object.defineProperty(t,"_setDebug",{get(){return Kz},enumerable:!1}),t}function D6(e,t,r){const n=e[t];n&&!n.q&&n.version&&Et.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(o=>ST(o,"onReady callback threw an error:")())}function QT(e,t){t.silentMultipleInit||Et.error(`${e} is already initialized.`)}function si(e,t,r,n,o){return My(e,t,[r],n,o)}function My(e,t,r,n,{once:o,capture:s,passive:i}={}){const a=St(d=>{!d.isTrusted&&!d.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),n(d))}),l=i?{capture:s,passive:i}:s,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=ra(c,"addEventListener");r.forEach(d=>u.call(t,d,a,l));function f(){const d=ra(c,"removeEventListener");r.forEach(p=>d.call(t,p,a,l))}return{stop:f}}const Uf={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function $6(e,t){const r=[];t.includes(Uf.cspViolation)&&r.push(U6(e));const n=t.filter(o=>o!==Uf.cspViolation);return n.length&&r.push(F6(n)),LT(...r)}function F6(e){return new xt(t=>{if(!window.ReportingObserver)return;const r=St((o,s)=>o.forEach(i=>t.notify(j6(i)))),n=new window.ReportingObserver(r,{types:e,buffered:!0});return n.observe(),()=>{n.disconnect()}})}function U6(e){return new xt(t=>{const{stop:r}=si(e,document,"securitypolicyviolation",n=>{t.notify(B6(n))});return r})}function j6(e){const{type:t,body:r}=e;return eA({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:tA(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function B6(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return eA({type:e.effectiveDirective,message:`${Uf.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:tA(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${e8(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function eA(e){return{startClocks:jn(),source:Ur.REPORT,handling:"unhandled",...e}}function tA(e,t,r,n,o){return r?wa({name:e,message:t,stack:[{func:"?",url:r,line:n??void 0,column:o??void 0}]}):void 0}const H6=200;function rA(e){const{env:t,service:r,version:n,datacenter:o,sdkVersion:s,variant:i}=e,a=[ys("sdk_version",s??"6.23.0")];return t&&a.push(ys("env",t)),r&&a.push(ys("service",r)),n&&a.push(ys("version",n)),o&&a.push(ys("datacenter",o)),i&&a.push(ys("variant",i)),a}function ys(e,t){const r=t?`${e}:${t}`:e;return(r.length>H6||V6(r))&&Et.warn(`Tag ${r} doesn't meet tag requirements and will be sanitized. ${Cy} ${ky}/getting_started/tagging/#defining-tags`),nA(r)}function nA(e){return e.replace(/,/g,"_")}function V6(e){return W6()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function W6(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function oA(e,t){const r=mn.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function jf(e,t,r=z6()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,o)}if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s=0;return r||e.push(t),r}}}function G6(){var e;const t=mn.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function iA(e){return e>=500}function q6(e){try{return e.clone()}catch{return}}const K6=80*ta,Y6=32,aA=20*CT,Z6=cs,lA=va;function cA(e,t,r,n,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?fA(e,t,r,s,{onSuccess:()=>dA(0,t,r,n,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),uA(t,r,n,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function uA(e,t,r,n,o){e.transportStatus===2&&Tc(()=>{const s=e.queuedPayloads.first();fA(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=lA,dA(1,e,t,r,n,o)},onFailure:()=>{e.currentBackoffTime=Math.min(Z6,e.currentBackoffTime*2),uA(e,t,r,n,o)}})},e.currentBackoffTime)}function fA(e,t,r,n,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),r(e,i=>{t.bandwidthMonitor.remove(e),X6(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function dA(e,t,r,n,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${n} events size queued for upload: ${aA/CT}MiB`,source:Ur.AGENT,startClocks:jn()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=pA();i.size()>0;)cA(i.dequeue(),t,r,n,o,s)}function X6(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||iA(e.status))}function J6(){return{transportStatus:0,currentBackoffTime:lA,bandwidthMonitor:Q6(),queuedPayloads:pA(),queueFullReported:!1}}function pA(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=aA}}}function Q6(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=K6&&this.ongoingRequestCount{for(const i of e)cA(s,o,(a,l)=>{Dd(Ys.AVOID_FETCH_KEEPALIVE)?Bf(i,a,l):rG(i,t,a,l)},i.trackType,r,n)},sendOnExit:s=>{for(const i of e)eG(i,t,s)}}}function eG(e,t,r){if(!!navigator.sendBeacon&&r.bytesCountn==null?void 0:n({status:i.status,type:i.type}))).catch(St(()=>Bf(e,r,n)))}else Bf(e,r,n)}function Bf(e,t,r){const n=e.build("fetch",t);fetch(n,{method:"POST",body:t.data,mode:"cors"}).then(St(o=>r==null?void 0:r({status:o.status,type:o.type}))).catch(St(()=>r==null?void 0:r({status:0})))}function nG(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Dy(){const e=oG();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,r,n){const o=n?{id:n}:void 0;e.send(JSON.stringify({eventType:t,event:r,view:o}))}}}function Hf(e){var t;e===void 0&&(e=(t=wn().location)===null||t===void 0?void 0:t.hostname);const r=Dy();return!!r&&r.getAllowedWebViewHosts().some(n=>e===n||e.endsWith(`.${n}`))}function oG(){return wn().DatadogEventBridge}const Mu={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function sG(e){return new xt(t=>{const{stop:r}=My(e,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:Mu.HIDDEN}):o.type==="freeze"&&t.notify({reason:Mu.FROZEN})},{capture:!0}),n=si(e,window,"beforeunload",()=>{t.notify({reason:Mu.UNLOADING})}).stop;return()=>{r(),n()}})}function iG(e){return Ff(Mu).includes(e)}function gA({encoder:e,request:t,flushController:r,messageBytesLimit:n}){let o={};const s=r.flushObservable.subscribe(f=>u(f));function i(f,d,p){r.notifyBeforeAddMessage(d),p!==void 0?(o[p]=f,r.notifyAfterAddMessage()):e.write(e.isEmpty?f:` ${f}`,g=>{r.notifyAfterAddMessage(g-d)})}function a(f){return f!==void 0&&o[f]!==void 0}function l(f){const d=o[f];delete o[f];const p=e.estimateEncodedBytesCount(d);r.notifyAfterRemoveMessage(p)}function c(f,d){const p=Ac(f),g=e.estimateEncodedBytesCount(p);if(g>=n){Et.warn(`Discarded a message whose size was bigger than the maximum allowed size ${n}KB. ${Cy} ${$z}/#technical-limitations`);return}a(d)&&l(d),i(p,g,d)}function u(f){const d=Ff(o).join(` `);o={};const p=iG(f.reason),g=p?t.sendOnExit:t.send;if(p&&e.isAsync){const h=e.finishSync();h.outputBytesCount&&g(pw(h));const m=[h.pendingData,d].filter(Boolean).join(` `);m&&g({data:m,bytesCount:TT(m)})}else d&&e.write(e.isEmpty?d:` ${d}`),e.finish(h=>{g(pw(h))})}return{flushController:r,add:c,upsert:c,stop:s.unsubscribe}}function pw(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function mA({messagesLimit:e,bytesLimit:t,durationLimit:r,pageMayExitObservable:n,sessionExpireObservable:o}){const s=n.subscribe(g=>u(g.reason)),i=o.subscribe(()=>u("session_expire")),a=new xt(()=>()=>{s.unsubscribe(),i.unsubscribe()});let l=0,c=0;function u(g){if(c===0)return;const h=c,m=l;c=0,l=0,p(),a.notify({reason:g,messagesCount:h,bytesCount:m})}let f;function d(){f===void 0&&(f=Tc(()=>{u("duration_limit")},r))}function p(){OT(f),f=void 0}return{flushObservable:a,get messagesCount(){return c},notifyBeforeAddMessage(g){l+g>=t&&u("bytes_limit"),c+=1,l+=g,d()},notifyAfterAddMessage(g=0){l+=g,c>=e?u("messages_limit"):l>=t&&u("bytes_limit")},notifyAfterRemoveMessage(g){l-=g,c-=1,c===0&&p()}}}const la="DISCARDED",Xs="SKIPPED";function aG(){const e={};return{register(t,r){return e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(n=>n!==r)}}},triggerHook(t,r){const n=e[t]||[],o=[];for(const s of n){const i=s(r);if(i===la)return la;i!==Xs&&o.push(i)}return Zs(...o)}}}const Ls={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},lG=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],cG=1,uG=[q8];let oh;function Ic(){return oh||(oh=new PT(100)),oh}function fG(e,t,r,n,o,s){const i=new xt,{stop:a}=pG(t,n,o,s,i),{enabled:l,metricsEnabled:c}=dG(e,t,r,i);return{stop:a,enabled:l,metricsEnabled:c}}function dG(e,t,r,n,o=cG){const s={},i=!uG.includes(t.site)&&rl(t.telemetrySampleRate),a={[Ls.LOG]:i,[Ls.CONFIGURATION]:i&&rl(t.telemetryConfigurationSampleRate),[Ls.USAGE]:i&&rl(t.telemetryUsageSampleRate),metric:i&&rl(o)},l=hG(),c=Ic();return c.subscribe(({rawEvent:f,metricName:d})=>{if(d&&!a.metric||!a[f.type])return;const p=d||f.status||f.type;let g=s[p];if(g||(g=s[p]=new Set),g.size>=t.maxTelemetryEventsPerPage)return;const h=Ac(f);if(g.has(h))return;const m=r.triggerHook(1,{startTime:jn().relative});if(m===la)return;const y=u(m,e,f,l);n.notify(y),oA("telemetry",y),g.add(h)}),c.unbuffer(),qz(mG),{enabled:i,metricsEnabled:a.metric};function u(f,d,p,g){const m={type:"telemetry",date:jn().timeStamp,service:d,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:Zs(p,{runtime_env:g,connectivity:G6(),sdk_setup:"npm"}),ddtags:rA(t).join(","),experimental_features:Array.from(n8())};return Zs(m,f)}}function pG(e,t,r,n,o){const s=[];if(Hf()){const i=Dy(),a=o.subscribe(l=>i.send("internal_telemetry",l));s.push(a.unsubscribe)}else{const i=[e.rumEndpointBuilder];e.replica&&gG(e)&&i.push(e.replica.rumEndpointBuilder);const a=gA({encoder:n(4),request:hA(i,e.batchBytesLimit,t),flushController:mA({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:new xt}),messageBytesLimit:e.messageBytesLimit});s.push(a.stop);const l=o.subscribe(a.add);s.push(l.unsubscribe)}return{stop:()=>s.forEach(i=>i())}}function hG(){var e;return{is_local_file:((e=mn.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:Ks}}function gG(e){return e.site===z8}function $y(e,t){zg(Lt.debug,e,t),Ic().notify({rawEvent:{type:Ls.LOG,message:e,status:"debug",...t}})}function mG(e,t){Ic().notify({rawEvent:{type:Ls.LOG,status:"error",...vG(e),...t}})}function yG(e){Ic().notify({rawEvent:{type:Ls.CONFIGURATION,configuration:e}})}function _G(e){Ic().notify({rawEvent:{type:Ls.USAGE,usage:e}})}function vG(e){if(oi(e)){const t=ba(e);return{error:{kind:t.name,stack:wa(bG(t))},message:t.message}}return{error:{stack:JT},message:`Uncaught ${Ac(e)}`}}function bG(e){return e.stack=e.stack.filter(t=>!t.url||lG.some(r=>t.url.startsWith(r))),e}function wG(e){const t=new Set;return e.forEach(r=>t.add(r)),Array.from(t)}function yA(e,t){const r=e.indexOf(t);r>=0&&e.splice(r,1)}const gu=1/0,SG=cs;let Ya=null;const Du=new Set;function EG(){Du.forEach(e=>e())}function xG({expireDelay:e,maxEntries:t}){let r=[];Ya||(Ya=Ay(()=>EG(),SG));const n=()=>{const u=Df()-e;for(;r.length>0&&r[r.length-1].endTime{yA(r,d)},close:p=>{d.endTime=p}};return t&&r.length>=t&&r.pop(),r.unshift(d),d}function s(u=gu,f={returnInactive:!1}){for(const d of r)if(d.startTime<=u){if(f.returnInactive||u<=d.endTime)return d.value;break}}function i(u){const f=r[0];f&&f.endTime===gu&&f.close(u)}function a(u=gu,f=0){const d=Vz(u,f);return r.filter(p=>p.startTime<=d&&u<=p.endTime).map(p=>p.value)}function l(){r=[]}function c(){Du.delete(n),Du.size===0&&Ya&&(RT(Ya),Ya=null)}return{add:o,find:s,closeActive:i,findAll:a,reset:l,stop:c}}const kG="datadog-synthetics-public-id",CG="datadog-synthetics-result-id",TG="datadog-synthetics-injects-rum";function _A(){return Ks?!1:!!(mn._DATADOG_SYNTHETICS_INJECTS_RUM||ks(TG))}function AG(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||ks(kG);return typeof e=="string"?e:void 0}function IG(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||ks(CG);return typeof e=="string"?e:void 0}function OG(){return!!(AG()&&IG())}const RG=cs,LG=Ly;function PG(e,t,r,n){const o=new xt,s=new xt,i=$8(e.sessionStoreStrategyType,e,t,r),a=xG({expireDelay:LG});if(i.renewObservable.subscribe(()=>{a.add(l(),Df()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive(Df())}),i.expandOrRenewSession(),a.add(l(),Hz().relative),Dd(Ys.SHORT_SESSION_INVESTIGATION)){const c=i.getSession();c&&FG(e,c)}n.observable.subscribe(()=>{n.isGranted()?i.expandOrRenewSession():i.expire(!1)}),NG(e,()=>{n.isGranted()&&i.expandOrRenewSession()}),MG(e,()=>i.expandSession()),DG(e,()=>i.restartSession());function l(){const c=i.getSession();return c?{id:c.id,trackingType:c[t],isReplayForced:!!c.forcedReplay,anonymousId:c.anonymousId}:($G(e).catch(()=>{}),{id:"invalid",trackingType:FT,isReplayForced:!1,anonymousId:void 0})}return{findSession:(c,u)=>a.find(c,u),renewObservable:o,expireObservable:s,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}function NG(e,t){const{stop:r}=My(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function MG(e,t){const r=()=>{document.visibilityState==="visible"&&t()},{stop:n}=si(e,document,"visibilitychange",r);Ay(r,RG)}function DG(e,t){const{stop:r}=si(e,window,"resume",t,{capture:!0})}async function $G(e){const t=e.sessionStoreStrategyType;if(!t)return;let r,n;t.type===sa.COOKIE?(r=HT(t.cookieOptions),n={cookie:await vA(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):r=zT(),$y("Unexpected session state",{sessionStoreStrategyType:t.type,session:r,isSyntheticsTest:OG(),createdTimestamp:r==null?void 0:r.created,expireTimestamp:r==null?void 0:r.expire,...n})}function FG(e,t){if(!window.cookieStore||!t.created)return;const r=Number(t.created),n=Ho(),{stop:o}=si(e,cookieStore,"change",s);function s(i){const a=f8(i.changed,c=>c.name===ho);if(!a)return;const l=Ho()-r;if(l>14*cs)o();else{const c=Fd(a.value);if(c.id&&c.id!==t.id){o();const u=Ho()-n;vA().then(f=>{$y("Session cookie changed",{time:u,session_age:l,old:t,new:c,cookie:f})}).catch(Ty)}}}}async function vA(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(ho):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(ho)),{count:e.length,domain:DT()||"undefined",...e}}function bA(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){const o=TT(r);t+=o,e+=r,n&&n(o)},finish(r){r(this.finishSync())},finishSync(){const r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount(r){return r.length}}}class UG{constructor(){this.callbacks={}}notify(t,r){const n=this.callbacks[t];n&&n.forEach(o=>o(r))}subscribe(t,r){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(r),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(n=>r!==n)}}}}function jG(e,t,r){let n=0,o=!1;return{isLimitReached(){if(n===0&&Tc(()=>{n=0},cs),n+=1,n<=t||o)return o=!1,!1;if(n===t+1){o=!0;try{r({message:`Reached max number of ${e}s by minute: ${t}`,source:Ur.AGENT,startClocks:jn()})}finally{o=!1}}return!0}}}let sh;const Fy=new WeakMap;function BG(e){return sh||(sh=HG(e)),sh}function HG(e){return new xt(t=>{const{stop:r}=Rs(XMLHttpRequest.prototype,"open",VG),{stop:n}=Rs(XMLHttpRequest.prototype,"send",s=>{WG(s,e,t)},{computeHandlingStack:!0}),{stop:o}=Rs(XMLHttpRequest.prototype,"abort",zG);return()=>{r(),n(),o()}})}function VG({target:e,parameters:[t,r]}){Fy.set(e,{state:"open",method:String(t).toUpperCase(),url:Oy(String(r))})}function WG({target:e,parameters:[t],handlingStack:r},n,o){const s=Fy.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=jn(),i.isAborted=!1,i.xhr=e,i.handlingStack=r,i.body=t;let a=!1;const{stop:l}=Rs(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(u(),l(),a)return;a=!0;const f=s;f.state="complete",f.duration=xT(i.startClocks.timeStamp,bo()),f.status=e.status,o.notify(Gz(f))},{stop:u}=si(n,e,"loadend",c);o.notify(i)}function zG({target:e}){const t=Fy.get(e);t&&(t.isAborted=!0)}let ih;function wA(){return ih||(ih=GG()),ih}function GG(){return new xt(e=>{if(!mn.fetch)return;const{stop:t}=Rs(mn,"fetch",r=>qG(r,e),{computeHandlingStack:!0});return t})}function qG({parameters:e,onPostCall:t,handlingStack:r},n){const[o,s]=e;let i=s&&s.method;i===void 0&&o instanceof Request&&(i=o.method);const a=i!==void 0?String(i).toUpperCase():"GET",l=o instanceof Request?o.url:Oy(String(o)),c=jn(),u={state:"start",init:s,input:o,method:a,startClocks:c,url:l,handlingStack:r};n.notify(u),e[0]=u.input,e[1]=u.init,t(f=>KG(n,f,u))}function KG(e,t,r){const n=r;function o(s){n.state="resolve",Object.assign(n,s),e.notify(n)}t.then(St(s=>{o({response:s,responseType:s.type,status:s.status,isAborted:!1})}),St(s=>{var i,a;o({status:0,isAborted:((a=(i=n.init)===null||i===void 0?void 0:i.signal)===null||a===void 0?void 0:a.aborted)||s instanceof DOMException&&s.code===DOMException.ABORT_ERR,error:s})}))}let ah={};function YG(e){const t=e.map(r=>(ah[r]||(ah[r]=ZG(r)),ah[r]));return LT(...t)}function ZG(e){return new xt(t=>{const r=Ln[e];return Ln[e]=(...n)=>{r.apply(console,n);const o=Ud("console error");na(()=>{t.notify(XG(n,e,o))})},()=>{Ln[e]=r}})}function XG(e,t,r){const n=e.map(o=>JG(o)).join(" ");if(t===Lt.error){const o=e.find(oi),s=Ny({originalError:o,handlingStack:r,startClocks:jn(),source:Ur.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=n,{api:t,message:n,handlingStack:r,error:s}}return{api:t,message:n,error:void 0,handlingStack:r}}function JG(e){return typeof e=="string"?go(e):oi(e)?XT(ba(e)):Ac(go(e),void 0,2)}const QG=500;function e9(){const e=[];return{add:o=>{e.push(o)>QG&&e.splice(0,1)},remove:o=>{yA(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function t9(e){const t=KT(e)==="object";return t||Et.error("Unsupported context:",e),t}function lh(e,t,r){const n={...e};for(const[o,{required:s,type:i}]of Object.entries(t))i==="string"&&!hw(n[o])&&(n[o]=String(n[o])),s&&hw(n[o])&&Et.warn(`The property ${o} of ${r} is required; context will not be sent to the intake.`);return n}function hw(e){return e==null||e===""}function jd(e="",{propertiesConfig:t={}}={}){let r={};const n=new xt,o={getContext:()=>sA(r),setContext:s=>{t9(s)?r=go(lh(s,t,e)):o.clearContext(),n.notify()},setContextProperty:(s,i)=>{r=go(lh({...r,[s]:i},t,e)),n.notify()},removeContextProperty:s=>{delete r[s],lh(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return o}function hr(e,t,r,n){return St((...o)=>e()[t][r](...o))}function ch(e,t,r){e.changeObservable.subscribe(()=>{const n=e.getContext();r.add(o=>o[t].setContext(n))})}const r9="_dd_c",n9=[];function Uy(e,t,r,n){const o=o9(r,n);n9.push(si(e,window,"storage",({key:c})=>{o===c&&i()})),t.changeObservable.subscribe(a);const s=Zs(l(),t.getContext());Cc(s)||t.setContext(s);function i(){t.setContext(l())}function a(){localStorage.setItem(o,JSON.stringify(t.getContext()))}function l(){const c=localStorage.getItem(o);return c?JSON.parse(c):{}}}function o9(e,t){return`${r9}_${e}_${t}`}function s9(e,t,r){const n=SA();return t.storeContextsAcrossPages&&Uy(t,n,r,4),e.register(0,()=>{const o=n.getContext();return Cc(o)||!o.id?Xs:{account:o}}),n}function SA(){return jd("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function i9(e,t,r,n){const o=EA();return t.storeContextsAcrossPages&&Uy(t,o,r,2),e.register(0,()=>o.getContext()),o}function EA(){return jd("global context")}function a9(e,t,r,n){const o=xA();return t.storeContextsAcrossPages&&Uy(t,o,n,1),e.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),l=r.findTrackedSession(i);return l&&l.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),Cc(a)?Xs:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=r.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function xA(){return jd("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const qt={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},gr={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function l9(e,t,r){const n=e.getReader(),o=[];let s=0;i();function i(){n.read().then(St(l=>{if(l.done){a();return}o.push(l.value),s+=l.value.length,s>r.bytesLimit?a():i()}),St(l=>t(l)))}function a(){n.cancel().catch(Xo);let l,c;{let u;if(o.length===1)u=o[0];else{u=new Uint8Array(s);let f=0;o.forEach(d=>{u.set(d,f),f+=d.length})}l=u.slice(0,r.bytesLimit),c=u.length>r.bytesLimit}t(void 0,l,c)}}const gw={XHR:"xhr",FETCH:"fetch"},Yg={FETCH:gw.FETCH,XHR:gw.XHR},c9=500;function u9(e=L6){const t=new PT(c9),r=e().subscribe(n=>{t.notify({type:0,error:n})});return{observable:t,stop:()=>{r.unsubscribe()}}}function Vf(e,t,r){const n=r.getHandler(),o=Array.isArray(n)?n:[n];return mw[e]>=mw[r.getLevel()]&&o.includes(t)}const xe={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},mw={[xe.ok]:0,[xe.debug]:1,[xe.info]:2,[xe.notice]:4,[xe.warn]:5,[xe.error]:6,[xe.critical]:7,[xe.alert]:8,[xe.emerg]:9};function Bd(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var f9=function(e,t,r,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};const uc={console:"console",http:"http"},d9=Object.keys(xe);class Zr{constructor(t,r,n=uc.http,o=xe.debug,s={}){this.handleLogStrategy=t,this.handlerType=n,this.level=o,this.contextManager=jd("logger"),this.tags=[],this.contextManager.setContext(s),r&&this.contextManager.setContextProperty("logger",{name:r})}logImplementation(t,r,n=xe.info,o,s){const i=go(r);let a;if(o!=null){const l=Ny({originalError:o,nonErrorPrefix:"Provided",source:Ur.LOGGER,handling:"handled",startClocks:jn()});a=Zs({error:Bd(l,{includeMessage:!0})},l.context,i)}else a=i;this.handleLogStrategy({message:go(t),context:a,status:n},this,s)}log(t,r,n=xe.info,o){let s;Vf(n,uc.http,this)&&(s=Ud("log")),this.logImplementation(t,r,n,o,s)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,r){this.contextManager.setContextProperty(t,r)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,r){this.tags.push(ys(t,r))}removeTagsWithKey(t){const r=nA(t);this.tags=this.tags.filter(n=>n!==r&&!n.startsWith(`${r}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}f9([Yz],Zr.prototype,"logImplementation",null);Zr.prototype.ok=wo(xe.ok);Zr.prototype.debug=wo(xe.debug);Zr.prototype.info=wo(xe.info);Zr.prototype.notice=wo(xe.notice);Zr.prototype.warn=wo(xe.warn);Zr.prototype.error=wo(xe.error);Zr.prototype.critical=wo(xe.critical);Zr.prototype.alert=wo(xe.alert);Zr.prototype.emerg=wo(xe.emerg);function wo(e){return function(t,r,n){let o;Vf(e,uc.http,this)&&(o=Ud("log")),this.logImplementation(t,r,e,n,o)}}function yw(){return Ks?{}:{view:{referrer:document.referrer,url:window.location.href}}}const p9=32*ta;function h9(e,t){e.usePciIntake===!0&&e.site&&e.site!=="datadoghq.com"&&Et.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const r=s6(e,t),n=_w(e.forwardConsoleLogs,Ff(Lt),"Forward Console Logs"),o=_w(e.forwardReports,Ff(Uf),"Forward Reports");if(!(!r||!n||!o))return e.forwardErrorsToLogs&&!n.includes(Lt.error)&&n.push(Lt.error),{forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:n,forwardReports:o,requestErrorResponseLengthLimit:p9,...r}}function _w(e,t,r){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(n=>t.includes(n)))){Et.error(`${r} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:wG(e)}function g9(e){const t=i6(e);return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function m9(e,t,r){const n=e9(),o=EA();ch(o,qt.globalContext,n);const s=SA();ch(s,qt.accountContext,n);const i=xA();ch(i,qt.userContext,n);let a,l;const c=t.observable.subscribe(u);function u(){if(!l||!a||!t.isGranted())return;c.unsubscribe();const f=r(a,l);n.drain(f)}return{init(f,d){if(!f){Et.error("Missing configuration");return}if(t8(f.enableExperimentalFeatures),Hf()&&(f=y9(f)),a=f,yG(g9(f)),l){QT("DD_LOGS",f);return}const p=h9(f,d);p&&(l=p,wA().subscribe(Xo),t.tryToInit(p.trackingConsent),u())},get initConfiguration(){return a},globalContext:o,accountContext:s,userContext:i,getInternalContext:Xo,handleLog(f,d,p,g=e(),h=bo()){n.add(m=>m.handleLog(f,d,p,g,h))}}}function y9(e){return{...e,clientToken:"empty"}}function _9(e){const t=F8(),r=u9().observable;let n=m9(yw,t,(a,l)=>{const c=e(l,yw,t,r);return n=v9(a,c),c});const o=()=>n,s={},i=new Zr((...a)=>n.handleLog(...a));return M6({logger:i,init:a=>{const l=new Error().stack;na(()=>n.init(a,l))},setTrackingConsent:St(a=>{t.update(a),_G({feature:"set-tracking-consent",tracking_consent:a})}),getGlobalContext:hr(o,qt.globalContext,gr.getContext),setGlobalContext:hr(o,qt.globalContext,gr.setContext),setGlobalContextProperty:hr(o,qt.globalContext,gr.setContextProperty),removeGlobalContextProperty:hr(o,qt.globalContext,gr.removeContextProperty),clearGlobalContext:hr(o,qt.globalContext,gr.clearContext),createLogger:St((a,l={})=>(s[a]=new Zr((...c)=>n.handleLog(...c),go(a),l.handler,l.level,go(l.context)),s[a])),getLogger:St(a=>s[a]),getInitConfiguration:St(()=>sA(n.initConfiguration)),getInternalContext:St(a=>n.getInternalContext(a)),setUser:hr(o,qt.userContext,gr.setContext),getUser:hr(o,qt.userContext,gr.getContext),setUserProperty:hr(o,qt.userContext,gr.setContextProperty),removeUserProperty:hr(o,qt.userContext,gr.removeContextProperty),clearUser:hr(o,qt.userContext,gr.clearContext),setAccount:hr(o,qt.accountContext,gr.setContext),getAccount:hr(o,qt.accountContext,gr.getContext),setAccountProperty:hr(o,qt.accountContext,gr.setContextProperty),removeAccountProperty:hr(o,qt.accountContext,gr.removeContextProperty),clearAccount:hr(o,qt.accountContext,gr.clearContext)})}function v9(e,t){return{init:r=>{QT("DD_LOGS",r)},initConfiguration:e,...t}}const b9="logs";function w9(e,t){const r=PG(e,b9,n=>kA(e,n),t);return{findTrackedSession:(n,o={returnInactive:!1})=>{const s=r.findSession(n,o);return s&&s.trackingType==="1"?{id:s.id,anonymousId:s.anonymousId}:void 0},expireObservable:r.expireObservable}}function S9(e){const r=kA(e)==="1"?{}:void 0;return{findTrackedSession:()=>r,expireObservable:new xt}}function kA(e,t){return E9(t)?t:rl(e.sessionSampleRate)?"1":"0"}function E9(e){return e==="0"||e==="1"}function x9(e,t,r,n,o){const s=d9.concat(["custom"]),i={};s.forEach(a=>{i[a]=jG(a,e.eventRateLimiterThreshold,o)}),t.subscribe(0,({rawLogsEvent:a,messageContext:l=void 0,savedCommonContext:c=void 0,domainContext:u,ddtags:f=[]})=>{var d,p;const g=Wz(a.date),h=c||n(),m=r.triggerHook(0,{startTime:g});if(m===la)return;const y=rA(e),b=Zs({view:h.view},m,a,l,{ddtags:y.concat(f).join(",")});((d=e.beforeSend)===null||d===void 0?void 0:d.call(e,b,u))===!1||b.origin!==Ur.AGENT&&((p=i[b.status])!==null&&p!==void 0?p:i.custom).isLimitReached()||t.notify(1,b)})}const k9={[Lt.log]:xe.info,[Lt.debug]:xe.debug,[Lt.info]:xe.info,[Lt.warn]:xe.warn,[Lt.error]:xe.error};function C9(e,t){const r=YG(e.forwardConsoleLogs).subscribe(n=>{var o;const s={rawLogsEvent:{date:bo(),message:n.message,origin:Ur.CONSOLE,error:n.error&&Bd(n.error),status:k9[n.api]},messageContext:(o=n.error)===null||o===void 0?void 0:o.context,domainContext:{handlingStack:n.handlingStack}};t.notify(0,s)});return{stop:()=>{r.unsubscribe()}}}function T9(e,t){const r=$6(e,e.forwardReports).subscribe(n=>{let o=n.message,s;const i=n.originalError.type==="deprecation"?xe.warn:xe.error;i===xe.error?s=Bd(n):n.stack&&(o+=` Found in ${O6(n.stack)}`),t.notify(0,{rawLogsEvent:{date:bo(),message:o,origin:Ur.REPORT,error:s,status:i}})});return{stop:()=>{r.unsubscribe()}}}function A9(e,t){if(!e.forwardErrorsToLogs)return{stop:Xo};const r=(Ks?new xt:BG(e)).subscribe(s=>{s.state==="complete"&&o(Yg.XHR,s)}),n=wA().subscribe(s=>{s.state==="resolve"&&o(Yg.FETCH,s)});function o(s,i){!n6(i.url)&&(L9(i)||iA(i.status))&&("xhr"in i?I9(i.xhr,e,a):i.response?R9(i.response,e,a):i.error&&O9(i.error,e,a));function a(l){const c={isAborted:i.isAborted,handlingStack:i.handlingStack};t.notify(0,{rawLogsEvent:{message:`${P9(s)} error ${i.method} ${i.url}`,date:i.startClocks.timeStamp,error:{stack:l||"Failed to load",handling:void 0},http:{method:i.method,status_code:i.status,url:i.url},status:xe.error,origin:Ur.NETWORK},domainContext:c})}}return{stop:()=>{r.unsubscribe(),n.unsubscribe()}}}function I9(e,t,r){typeof e.response=="string"?r(jy(e.response,t)):r(e.response)}function O9(e,t,r){r(jy(wa(ba(e)),t))}function R9(e,t,r){const n=q6(e);!n||!n.body?r():window.TextDecoder?N9(n.body,t.requestErrorResponseLengthLimit,(o,s)=>{r(o?`Unable to retrieve response: ${o}`:s)}):n.text().then(St(o=>r(jy(o,t))),St(o=>r(`Unable to retrieve response: ${o}`)))}function L9(e){return e.status===0&&e.responseType!=="opaque"}function jy(e,t){return e.length>t.requestErrorResponseLengthLimit?`${e.substring(0,t.requestErrorResponseLengthLimit)}...`:e}function P9(e){return Yg.XHR===e?"XHR":"Fetch"}function N9(e,t,r){l9(e,(n,o,s)=>{if(n)r(n);else{let i=new TextDecoder().decode(o);s&&(i+="..."),r(void 0,i)}},{bytesLimit:t})}function M9(e,t,r){if(!e.forwardErrorsToLogs)return{stop:Xo};const n=r.subscribe(o=>{if(o.type===0){const s=o.error;t.notify(0,{rawLogsEvent:{message:s.message,date:s.startClocks.timeStamp,error:Bd(s),origin:Ur.SOURCE,status:xe.error},messageContext:s.context})}});return{stop:()=>{n.unsubscribe()}}}const D9=UG;function $9(e){function t(r,n,o,s,i){const a=Zs(n.getContext(),r.context);if(Vf(r.status,uc.console,n)&&U9(r,a),Vf(r.status,uc.http,n)){const l={rawLogsEvent:{date:i||bo(),message:r.message,status:r.status,origin:Ur.LOGGER},messageContext:a,savedCommonContext:s,ddtags:n.getTags()};o&&(l.domainContext={handlingStack:o}),e.notify(0,l)}}return{handleLog:t}}const F9={[xe.ok]:Lt.debug,[xe.debug]:Lt.debug,[xe.info]:Lt.info,[xe.notice]:Lt.info,[xe.warn]:Lt.warn,[xe.error]:Lt.error,[xe.critical]:Lt.error,[xe.alert]:Lt.error,[xe.emerg]:Lt.error};function U9({status:e,message:t},r){_s[F9[e]].call(Ln,t,r)}function j9(e,t,r,n,o){const s=[e.logsEndpointBuilder];e.replica&&s.push(e.replica.logsEndpointBuilder);const i=gA({encoder:bA(),request:hA(s,e.batchBytesLimit,r),flushController:mA({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:o.expireObservable}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(1,a=>{i.add(a)}),i}function B9(e){const t=Dy();e.subscribe(1,r=>{t.send("log",r)})}function H9(e){return{get:t=>{const r=e.findTrackedSession(t);if(r)return{session_id:r.id}}}}function V9(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:Ur.AGENT,status:xe.error}}),$y("Error reported to customer",{"error.message":t.message})}}const W9=aG;function z9(e){const t=mn;e.register(0,({startTime:o})=>{const s=r(o);return s||Xs}),e.register(1,({startTime:o})=>{var s,i;const a=r(o);return a?{application:{id:a.application_id},view:{id:(s=a.view)===null||s===void 0?void 0:s.id},action:{id:(i=a.user_action)===null||i===void 0?void 0:i.id}}:Xs});function r(o){const i=_A()?t.DD_RUM_SYNTHETICS:t.DD_RUM,a=n(o,i);if(a)return a}function n(o,s){if(s&&s.getInternalContext)return s.getInternalContext(o)}}function G9(e,t,r){e.register(0,({startTime:n})=>{const o=r.findTrackedSession(n);return r.findTrackedSession(n,{returnInactive:!0})?{service:t.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:la}),e.register(1,({startTime:n})=>{const o=r.findTrackedSession(n);return!o||!o.id?Xs:{session:{id:o.id}}})}function q9(e,t){function r(){return t.isGranted()?Xs:la}e.register(0,r),e.register(1,r)}const uh="logs";function K9(e,t,r,n){const o=new D9,s=W9(),i=[];o.subscribe(1,m=>oA("logs",m));const a=V9(o),l=Ks?new xt:sG(e),c=fG("browser-logs-sdk",e,s,a,l,bA);i.push(c.stop);const u=e.sessionStoreStrategyType&&!Hf()&&!_A()?w9(e,r):S9(e);q9(s,r),G9(s,e,u);const f=s9(s,e,uh),d=a9(s,e,u,uh),p=i9(s,e,uh);z9(s),A9(e,o),M9(e,o,n),n.unbuffer(),C9(e,o),T9(e,o);const{handleLog:g}=$9(o);if(x9(e,o,s,t,a),Hf())B9(o);else{const{stop:m}=j9(e,o,a,l,u);i.push(()=>m())}const h=H9(u);return{handleLog:g,getInternalContext:h.get,accountContext:f,globalContext:p,userContext:d,stop:()=>{i.forEach(m=>m())}}}const Zg=_9(K9);D6(wn(),"DD_LOGS",Zg);function Y9(e){fm(()=>{const t=lt(),r=t.public.datadogSite||"us3.datadoghq.com";Zg.init({clientToken:"pubc8593913151c3de3f3d832c73b59ffa8",site:r,env:"production",version:t.public.datadogVersion||"unknown",forwardErrorsToLogs:!0,sessionSampleRate:.01,...e}),Zg.logger.setLevel("warn")})}const Z9=""+new URL("one_news_logo.B36a5Azn.svg",import.meta.url).href,X9=""+new URL("one_news_logo_dark.DmBixRSb.svg",import.meta.url).href,vw=O.enum(["Automotive","Business","Entertainment","Food","Health","Lifestyle","Money","News","Politics","Science","Shopping","Sports","Technology","Travel"]).catch("News");function J9(){const e=wD("history",{initialValue:{category:"News",lang:void 0}});Rr(()=>{vw.safeParse(e.category).success||(e.category="News")});const t=ue(vw.parse(e.category));Oe(t,n=>{e.category=n});const r=ue(e.lang);return Oe(r,n=>{Array.isArray(n)?e.lang=n[0]:e.lang=n},{immediate:!0}),{selectedCategory:t,selectedLang:r}}const bw=O.string().regex(/^[A-Za-z]{2}(-([A-Za-z]{2})){0,1}$/).transform(e=>({language:e.split("-")[0].toLowerCase(),country:e.includes("-")?e.split("-")[1].toUpperCase():""})),Q9=O.string().regex(/^[a-z]{2}$/,"Invalid language code"),eq=O.string().regex(/^[A-Z]{2}$/,"Invalid country code"),ww={en:"US",es:"MX",fr:"FR",pt:"BR",de:"DE",it:"IT",pl:"PL",tr:"TR",ca:"ES",ko:"KR",uk:"UA",da:"DK",sv:"SE",no:"NO",hi:"IN",ja:"JP",tl:"PH",th:"TH",id:"ID",vi:"VN",ur:"PK",cs:"CZ",he:"IL",sw:"KE",bn:"BD",ro:"RO",hu:"HU",el:"GR",nl:"NL",ar:"AE",ta:"SG"},tq=pa("locale",()=>{const e=ue(void 0),t=ue(void 0),{selectedLang:r}=J9(),n=Z(()=>Array.isArray(r.value)?l(r.value)??e.value??"en":a(r.value??"")??e.value??"en"),o=Z(()=>{if(!r.value)return t.value??"US"}),s=p=>{if(!p)return"";const g=bw.safeParse(p);return g.success?g.data.country:""},i=p=>{if(!p)return"";const g=bw.safeParse(p);return g.success?g.data.language:""},a=p=>{const g=i(p),h=Q9.safeParse(g);return h.success?h.data:void 0},l=p=>{for(const g of p)if(a(g))return a(g)},c=p=>{for(const g of p){const h=s(g);if(h){const y=eq.safeParse(h);if(y.success)return y.data;continue}const m=a(g);if(m)return u(void 0,m)}},u=(p,g)=>p||(ww[g??"en"]??ww.en);Oe(()=>r.value,p=>{if(!p){r.value=void 0;return}const g=Array.isArray(p)?l(p):a(p);r.value=g},{immediate:!0});const f=l(navigator.languages);e.value=f;const d=c(navigator.languages);return t.value=u(d,f),window.addEventListener("languagechange",()=>{const p=l(navigator.languages),g=c(navigator.languages);e.value=p,t.value=g}),{locale:n,country:o}});function rq(e){function t(o,s){Oe(o,(i,a)=>{if(i!==a){const l=document==null?void 0:document.head.querySelector(`link[rel="${s}"]`);l&&(l.href=i)}},{immediate:!0})}const r=Tx(),n=Z(()=>{const o=e();return{ico:`${lt().app.cdnURL}/${o}.ico`,svg:`${lt().app.cdnURL}/${o}.svg`,png96x96:`${lt().app.cdnURL}/${o}-96x96.png`,png180x180:`${lt().app.cdnURL}/${o}-180x180.png`}});return $s({link:[{rel:"shortcut icon",type:"image/x-icon",href:n.value.ico},{rel:"alternate icon",type:"image/svg+xml",href:n.value.svg},{rel:"icon",sizes:"96x96",href:n.value.png96x96},{rel:"apple-touch-icon",sizes:"180x180",href:n.value.png180x180}]}),t(()=>n.value.ico,"shortcut icon"),t(()=>n.value.svg,"alternate icon"),t(()=>n.value.png96x96,"icon"),t(()=>n.value.png180x180,"apple-touch-icon"),{isDark:r,favicon:n}}const nq=O.object({doodle:O.union([O.literal("off"),O.literal("on"),O.literal("random")]),design:O.optional(O.union([O.literal("google"),O.literal("msn")])),searchboxDesign:O.optional(O.union([O.literal("default"),O.literal("v2"),O.literal("v2-big-yolo"),O.literal("v3")])),searchSuggestionType:O.optional(O.union([O.literal("simple"),O.literal("rich")])),aboveFoldSectionShown:O.optional(O.union([O.literal("LargeCardWithGridSection"),O.literal("HalfPageAdWithGridSection"),O.literal("ContentNewsMixSection"),O.literal("ContentNewsMixWithKeywordSection"),O.literal("CarouselWithGridSection"),O.literal("GamesSection"),O.literal("CategoryMixSection")]))}),Sw=O.object({homePage:O.optional(nq.partial())}),oq=kd({defaults:Sw.parse({homePage:{doodle:"off",design:"msn",searchboxDesign:"default",searchSuggestionType:"simple",aboveFoldSectionShown:void 0}}),configStoreKey:"layoutSettings",schema:e=>Sw.parse(e)}),sq=pa("app:layoutSettings",()=>{const e=ue({siteName:"",articlePageUrl:"",homePageUrl:"",tabCategories:[],videoPageUrl:"",headerLogo:"",headerLogoDarkMode:"",tagline:"",footerBrandName:""}),t=gk(n=>{e.value={...e.value,...n}}),r=Z(()=>e.value);return{setup:t,settings:r}}),iq=It({__name:"app",async setup(e){let t,r;const n=oq(),o=Cd(),s=VC();[t,r]=vS(()=>Promise.all([n.initialized,o.initialized,s.initialized])),await t,r();function i(){const m=ti();return["/contact","/privacy-policy","/terms"].includes(m.path)}$s({htmlAttrs:{lang:"en",class:"bg-background-default dark:bg-background-neutral-subtle"},link:[{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto&display=swap"}],meta:[{name:"apple-mobile-web-app-title",content:"OneNews"}]});const a=()=>{const{onelaunch:m}=Bn();return!!m},l=fk(),c=Tx();function u(){const m=c.value?"-dark":"-light";return a()?l?`home-favicon${m}`:`search-favicon${m}`:"onenews-favicon"}rq(u),Dz();const{setLocale:f}=Sd();Rr(()=>{const m=Yk();i()&&(m.value="light")});{const{locale:m}=tq();f(m.toLowerCase())}const d=[{id:"News",label:"News"},{id:"Sports",label:"Sports"},{id:"Politics",label:"Politics"},{id:"Entertainment",label:"Entertainment"},{id:"Money",label:"Money"},{id:"Lifestyle",label:"Lifestyle"},{id:"Technology",label:"Technology"},{id:"Food",label:"Food"},{id:"Travel",label:"Travel"},{id:"Health",label:"Health"},{id:"Automotive",label:"Automotive"},{id:"Shopping",label:"Shopping"},{id:"Weather",label:"Weather",disableSelection:!0,onClick:p}];function p(){window.open("https://www.accuweather.com/en/ca/woburn/m1h/current-weather/3394003?lang=en-us&partner=web_onelaunch_ntp_adc","_blank").focus()}const{urls:g,siteName:h}=Lr();return sq().setup({siteName:h,homePageUrl:g.home,articlePageUrl:g.article,videoPageUrl:g.video,tabCategories:d,headerLogo:a()?void 0:Z9,headerLogoDarkMode:a()?void 0:X9}),Y9({service:"onenews"}),(m,y)=>{const b=K2,_=Mz;return me(),vt(wt,null,[at(b),at(_)],64)}}}),aq={key:0,class:"h-screen flex justify-center items-center"},lq=It({__name:"error",props:{error:{}},setup(e){const t=e;return fm(()=>{var r;((r=t.error)==null?void 0:r.statusCode)===404&&Oo({path:"/"})}),(r,n)=>{var o;return((o=t.error)==null?void 0:o.statusCode)!==404?(me(),vt("div",aq," An error occured. Please retry! ")):Qt("",!0)}}}),cq={key:0},Ew={__name:"nuxt-root",setup(e){const t=()=>null,r=Ce(),n=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",n);Wt().beforeEach(l)}const o=!1;As(mc,ti()),r.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=ad(),i=!1;mS((l,c,u)=>{if(r.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),wE(l)&&(l.fatal||l.unhandled))return r.runWithContext(()=>Ro(l)),!1});const a=!1;return(l,c)=>(me(),dt(FS,{onResolve:Ve(n)},{default:Ns(()=>[Ve(i)?(me(),vt("div",cq)):Ve(s)?(me(),dt(Ve(lq),{key:1,error:Ve(s)},null,8,["error"])):Ve(a)?(me(),dt(Ve(t),{key:2,context:Ve(a)},null,8,["context"])):Ve(o)?(me(),dt(Jf(Ve(o)),{key:3})):(me(),dt(Ve(iq),{key:4}))]),_:1},8,["onResolve"]))}};let xw;{let e;xw=async function(){var i,a;if(e)return e;const n=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?aR(Ew):iR(Ew),o=_1({vueApp:n});async function s(l){var c;await o.callHook("app:error",l),(c=o.payload).error||(c.error=ld(l))}n.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{n.config.errorHandler===s&&(n.config.errorHandler=void 0)});try{await w1(o,G2)}catch(l){s(l)}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount(g1),await o.hooks.callHook("app:mounted",n),await yn()}catch(l){s(l)}return n},e=xw().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Me as $,Zo as A,Oe as B,Sf as C,vq as D,t4 as E,wt as F,wB as G,zk as H,vS as I,ss as J,Cx as K,Ns as L,dt as M,VC as N,ha as O,fn as P,fq as Q,El as R,Qs as S,Ht as T,As as U,Qf as V,fo as W,At as X,yn as Y,lr as Z,ni as _,Do as a,Eh as a$,nn as a0,QM as a1,Jf as a2,bc as a3,mT as a4,_a as a5,Md as a6,Js as a7,_E as a8,kz as a9,O as aA,Ox as aB,i4 as aC,_q as aD,FV as aE,HI as aF,lt as aG,Yf as aH,$V as aI,q3 as aJ,d4 as aK,AV as aL,oq as aM,Ua as aN,Pl as aO,AB as aP,Bn as aQ,Oo as aR,Ce as aS,mc as aT,Aq as aU,qc as aV,xq as aW,jP as aX,FS as aY,C1 as aZ,n_ as a_,zi as aa,zr as ab,qr as ac,Lq as ad,s$ as ae,Uq as af,p_ as ag,Nn as ah,ir as ai,YS as aj,Ps as ak,pq as al,ti as am,Wt as an,tq as ao,sq as ap,J9 as aq,Tq as ar,Zf as as,Jt as at,RB as au,JB as av,Ob as aw,ei as ax,ri as ay,Cd as az,fm as b,ur as b$,kd as b0,gq as b1,mq as b2,Fq as b3,dy as b4,BB as b5,jB as b6,IB as b7,Rn as b8,Lr as b9,Mq as bA,gS as bB,$q as bC,Dq as bD,II as bE,MV as bF,VV as bG,n2 as bH,K3 as bI,bT as bJ,_D as bK,Pq as bL,VB as bM,hf as bN,B_ as bO,_n as bP,uE as bQ,Sq as bR,bR as bS,WI as bT,op as bU,Ev as bV,mu as bW,Cq as bX,kq as bY,ua as bZ,ld as b_,yV as ba,yq as bb,lz as bc,Iq as bd,LM as be,KN as bf,Oq as bg,Ok as bh,Fb as bi,vk as bj,mk as bk,uH as bl,eo as bm,Hl as bn,os as bo,no as bp,gk as bq,pa as br,Fa as bs,pD as bt,Eq as bu,Nq as bv,mV as bw,SN as bx,CB as by,hD as bz,vt as c,pH as c0,fH as c1,gH as c2,kk as c3,bB as c4,NC as c5,It as d,Z as e,hq as f,Qt as g,at as h,dq as i,Ve as j,wq as k,Qe as l,qe as m,tt as n,me as o,Il as p,Vu as q,ue as r,Q3 as s,Uo as t,Sd as u,bq as v,Rq as w,Rr as x,$s as y,dD as z}; //# sourceMappingURL=HrMm8Q4M.js.map